-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path529.7337a389eb44ee60.js
1 lines (1 loc) · 34.8 KB
/
529.7337a389eb44ee60.js
1
"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[529],{7529:($e,I,l)=>{l.r(I),l.d(I,{BrowseModule:()=>Oe});var m=l(177),h=l(4710),e=l(4438),L=l(6713),M=l(6604),O=l(1635),C=l(5440),R=l(4419),$=l(1148),f=l(1626);class u{constructor(r,t){this.httpClient=r,this.zone=t,this.api="/lobbygamelist"}getLobbyGameList(){return this.httpClient.get(`${C.p}${this.api}`)}static#e=this.\u0275fac=function(t){return new(t||u)(e.KVO(f.Qq),e.KVO(e.SKi))};static#t=this.\u0275prov=e.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}(0,O.Cg)([(0,R.R)({storageStrategy:$.G,maxAge:3e4})],u.prototype,"getLobbyGameList",null);var G=l(4815),k=l(5427);let A=(()=>{class o{constructor(t){this.elementRef=t,this.Active=!1,this.activeChange=new e.bkB,this.switcherEnabled=!0}onClick(t){!t.classList.contains("slider")&&this.switcherEnabled&&this.toggleSwitch()}toggleSwitch(){this.switcherEnabled=!1;const t=this.elementRef.nativeElement.querySelector(".slider");if(!t)return console.error("Slider element not found"),void(this.switcherEnabled=!0);const n=!this.Active;this.Active=n,t.style.transition=n?"background-color 0.9s ease":"none",this.activeChange.emit(this.Active),setTimeout(()=>{this.switcherEnabled=!0},500)}static#e=this.\u0275fac=function(n){return new(n||o)(e.rXU(e.aKT))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-switcher"]],hostBindings:function(n,i){1&n&&e.bIt("click",function(s){return i.onClick(s.target)})},inputs:{Active:"Active"},outputs:{activeChange:"activeChange"},decls:4,vars:2,consts:[[1,"checkbox-wrapper-22"],["for","checkbox",1,"switch"],["type","checkbox","id","checkbox"],[1,"slider","round"]],template:function(n,i){1&n&&(e.j41(0,"div",0)(1,"label",1),e.nrm(2,"input",2)(3,"div",3),e.k0s()()),2&n&&(e.R7$(3),e.AVh("on-state",i.Active))},styles:['.checkbox-wrapper-22[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%]{display:inline-block;height:26px;position:relative;width:46px}.checkbox-wrapper-22[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.checkbox-wrapper-22[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{background-color:var(--button-bg);box-shadow:0 4px 4px #00000040 inset;cursor:pointer;inset:0;position:absolute;transition:none}.checkbox-wrapper-22[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:before{box-shadow:0 2px 2px #0000008c;bottom:0;content:"";height:26px;left:0;position:absolute;transition:.4s;width:26px;background:linear-gradient(180deg,gray,#888)}.on-state[_ngcontent-%COMP%]:before{transform:translate(22px)!important;background:var(--yellow-brand)!important}.checkbox-wrapper-22[_ngcontent-%COMP%] .slider.round[_ngcontent-%COMP%]{border-radius:34px}.checkbox-wrapper-22[_ngcontent-%COMP%] .slider.round[_ngcontent-%COMP%]:before{border-radius:50%}']})}return o})();var N=l(9213),w=l(8834),b=l(3881),T=l(4823),x=l(3801);const Y=["modepicker"],V=["lowerslider"],H=["upperslider"],U=()=>["/profile"],D=o=>({idPlayer:o});function X(o,r){if(1&o&&(e.j41(0,"div"),e.nrm(1,"img",34),e.EFF(2),e.k0s()),2&o){const t=e.XpG(2).$implicit,n=e.XpG(2);e.R7$(),e.Y8G("src",n.IdCivToCivUrl(t.idCiv),e.B4B),e.R7$(),e.Lme(" ","AI"," ",0==t.team?"(Team ?)":"(Team "+t.team+")"," ")}}function K(o,r){1&o&&(e.j41(0,"div",32),e.nrm(1,"div",36),e.j41(2,"div",37),e.EFF(3),e.k0s()()),2&o&&(e.R7$(3),e.SpI(" ","empty slot"," "))}function z(o,r){if(1&o&&(e.j41(0,"a",38),e.nrm(1,"img",34),e.EFF(2),e.k0s()),2&o){const t=e.XpG(3).$implicit,n=e.XpG(2);e.Y8G("routerLink",e.lJ4(6,U))("queryParams",e.eq3(7,D,t.idPlayer)),e.R7$(),e.Y8G("src",n.IdCivToCivUrl(t.idCiv),e.B4B),e.R7$(),e.E5c(" ",t.name," (",-1==t.elo?"Not Ranked":t.elo,") ",0==t.team?"(Team ?)":"(Team "+t.team+")"," ")}}function J(o,r){if(1&o&&e.DNE(0,K,4,1,"div",35)(1,z,3,9,"ng-template",null,5,e.C5r),2&o){const t=e.sdS(2),n=e.XpG(2).$implicit;e.Y8G("ngIf",-1==n.stationID)("ngIfElse",t)}}function Q(o,r){if(1&o&&(e.j41(0,"div",32),e.DNE(1,X,3,3,"div",33)(2,J,3,2,"ng-template",null,4,e.C5r),e.k0s()),2&o){const t=e.sdS(3),n=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",2==n.status)("ngIfElse",t)}}function W(o,r){if(1&o&&(e.j41(0,"div"),e.DNE(1,Q,4,2,"div",31),e.k0s()),2&o){const t=r.$implicit;e.R7$(),e.Y8G("ngIf",1!=t.status)}}function q(o,r){1&o&&(e.j41(0,"div"),e.EFF(1," Standard Rules "),e.k0s())}function Z(o,r){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&o){const t=e.XpG().$implicit,n=e.XpG();e.R7$(),e.SpI(" Game Speed: ",n.gameSpeedToName(t.gameInfo.gameSpeed)," ")}}function ee(o,r){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&o){const t=e.XpG().$implicit,n=e.XpG();e.R7$(),e.SpI(" Starting Age: ",n.startingAgeToName(t.gameInfo.startingAge)," ")}}function te(o,r){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&o){const t=e.XpG().$implicit,n=e.XpG();e.R7$(),e.SpI(" Ending Age: ",n.endingAgeToName(t.gameInfo.endingAge)," ")}}function ne(o,r){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&o){const t=e.XpG().$implicit,n=e.XpG();e.R7$(),e.SpI(" Starting Resources: ",n.startingResourcesToName(t.gameInfo.startingResources)," ")}}function oe(o,r){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&o){const t=e.XpG().$implicit;e.R7$(),e.SpI(" Allow Cheat: ",t.gameInfo.allowCheat?"Enabled":"Disabled"," ")}}function ie(o,r){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&o){const t=e.XpG().$implicit;e.R7$(),e.SpI(" King of the Hill: ",t.gameInfo.koth?"Enabled":"Disabled"," ")}}function ae(o,r){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&o){const t=e.XpG().$implicit;e.R7$(),e.SpI(" Treaty Time: ",t.gameInfo.treatyTime," minutes ")}}function se(o,r){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&o){const t=e.XpG().$implicit;e.R7$(),e.SpI(" Blockade: ",t.gameInfo.blockade?"Enabled":"Disabled"," ")}}function re(o,r){1&o&&(e.j41(0,"div")(1,"mat-icon"),e.EFF(2,"lock"),e.k0s()())}function le(o,r){1&o&&(e.j41(0,"div")(1,"mat-icon"),e.EFF(2,"remove_red_eye"),e.k0s()())}function ce(o,r){if(1&o){const t=e.RV6();e.qex(0),e.j41(1,"tr")(2,"td",26),e.EFF(3),e.k0s(),e.j41(4,"td",26),e.EFF(5),e.k0s(),e.j41(6,"td",27),e.DNE(7,W,2,1,"div",22),e.k0s(),e.j41(8,"td",27),e.DNE(9,q,2,0,"div",28)(10,Z,2,1,"div",28)(11,ee,2,1,"div",28)(12,te,2,1,"div",28)(13,ne,2,1,"div",28)(14,oe,2,1,"div",28)(15,ie,2,1,"div",28)(16,ae,2,1,"div",28)(17,se,2,1,"div",28),e.k0s(),e.j41(18,"td",27),e.DNE(19,re,3,0,"div",28)(20,le,3,0,"div",28),e.k0s(),e.j41(21,"td",27),e.EFF(22),e.k0s(),e.j41(23,"td",27),e.qex(24),e.j41(25,"button",29,3),e.bIt("mouseenter",function(i){return e.eBV(t),e.Njj(i.stopImmediatePropagation())})("mouseleave",function(){e.eBV(t);const i=e.sdS(26);return e.Njj(i.hide())})("click",function(){e.eBV(t);const i=e.sdS(26);return e.Njj(i.show())}),e.j41(27,"mat-icon",30),e.EFF(28,"content_copy"),e.k0s()(),e.bVm(),e.k0s()(),e.bVm()}if(2&o){const t=r.$implicit;e.R7$(3),e.SpI(" ",t.gameInfo.gameName," "),e.R7$(2),e.SpI(" ",t.gameInfo.map," "),e.R7$(2),e.Y8G("ngForOf",t.gameInfo.lobbyGamePlayer),e.R7$(2),e.Y8G("ngIf",1==t.gameInfo.gameSpeed&&1==t.gameInfo.gameSpeed&&0==t.gameInfo.startingAge&&4==t.gameInfo.endingAge&&0==t.gameInfo.startingResources&&!t.gameInfo.allowCheat&&!t.gameInfo.koth&&!t.gameInfo.treatyTime),e.R7$(),e.Y8G("ngIf",1!=t.gameInfo.gameSpeed),e.R7$(),e.Y8G("ngIf",0!=t.gameInfo.startingAge),e.R7$(),e.Y8G("ngIf",4!=t.gameInfo.endingAge),e.R7$(),e.Y8G("ngIf",0!=t.gameInfo.startingResources),e.R7$(),e.Y8G("ngIf",t.gameInfo.allowCheat),e.R7$(),e.Y8G("ngIf",t.gameInfo.koth),e.R7$(),e.Y8G("ngIf",t.gameInfo.treatyTime>0),e.R7$(),e.Y8G("ngIf",t.gameInfo.treatyTime>0),e.R7$(2),e.Y8G("ngIf",t.gameInfo.isPasswordProtected),e.R7$(),e.Y8G("ngIf",t.gameInfo.spectatorMode),e.R7$(2),e.SpI(" ",t.gameInfo.region," "),e.R7$(3),e.Y8G("cdkCopyToClipboard",t.gameInfo.idGame.toString())}}let de=(()=>{class o{constructor(t,n,i){this.router=t,this.service=n,this.cdr=i,this.isLoading=!0,this.page=0,this.size=10,this.minElo=0,this.maxElo=2500,this.eloLowerBound=this.minElo,this.eloUpperBound=this.maxElo,this.selectedGameMode=0,this.showOnlySpectatorMode=!1,this.modeStorageKey="hosted_lobbies_mode_storage_key",this.eloLowerBoundStorageKey="hosted_lobbies_lower_storage_key",this.eloUpperBoundStorageKey="hosted_lobbies_upper_storage_key",this.modeNameList=["All","Solo","Team","Treaty","King of the Hill"],this.modeValueList=[0,1,2,3,4]}ngAfterViewInit(){this.isLoading=!0;const t=localStorage.getItem(this.modeStorageKey);t&&(this.selectedGameMode=+t,this.modepicker.updateItem(+t));const n=localStorage.getItem(this.eloLowerBoundStorageKey);n&&(this.eloLowerBound=+n,this.lowerslider.nativeElement.value=n);const i=localStorage.getItem(this.eloUpperBoundStorageKey);i&&(this.eloUpperBound=+i,this.upperslider.nativeElement.value=i),this.cdr.detectChanges(),this.displayedLobbyGameArray=[],this.lobbyGameArray=[],this.subscription=this.service.getLobbyGameList().subscribe({next:this.handleResponse.bind(this),error:this.handleError.bind(this)})}handleResponse(t){if(!t)return void(this.isLoading=!1);this.displayedLobbyGameArray=[],this.lobbyGameArray=[];let n=t.lobbyGames;n.sort(function(i,a){let s=-1;for(let d=0;d<i.lobbyGamePlayer.length;d++)i.lobbyGamePlayer[d].elo>s&&(s=i.lobbyGamePlayer[d].elo);let c=-1;for(let d=0;d<a.lobbyGamePlayer.length;d++)a.lobbyGamePlayer[d].elo>c&&(c=a.lobbyGamePlayer[d].elo);return c-s});for(let i=0;i<n.length;i++){let a=n[i],s=-1,c=Number.MAX_VALUE;for(let d=0;d<a.lobbyGamePlayer.length;d++)a.lobbyGamePlayer[d].elo>s&&(s=a.lobbyGamePlayer[d].elo),-1!=a.lobbyGamePlayer[d].stationID&&2!=a.lobbyGamePlayer[d].status&&a.lobbyGamePlayer[d].elo<c&&(c=a.lobbyGamePlayer[d].elo);this.lobbyGameArray.push({gameInfo:a,highestElo:s,lowestElo:c})}this.displayedLobbyGameArray=this.lobbyGameArray,this.updatePagination(),this.cdr.detectChanges(),this.isLoading=!1}handleError(t){console.error(t),this.isLoading=!1}onSliderChange(t){"mdc-slider__input"===t.target.className?(this.eloLowerBound=t.srcElement.ariaValueText,localStorage.setItem(this.eloLowerBoundStorageKey,this.eloLowerBound.toString())):"mdc-slider__input mat-slider__right-input"===t.target.className&&(this.eloUpperBound=t.srcElement.ariaValueText,localStorage.setItem(this.eloUpperBoundStorageKey,this.eloUpperBound.toString())),this.cdr.detectChanges(),this.filterMatchArray()}OnModeChanged(t){this.selectedGameMode=Number(t),localStorage.setItem(this.modeStorageKey,t.toString()),this.filterMatchArray()}onSwitchChanged(t){this.showOnlySpectatorMode=t,this.filterMatchArray()}OnPageChanged(t){this.page=t,this.updatePagination()}filterMatchArray(){if(!this.lobbyGameArray)return;let t=this.lobbyGameArray.filter(n=>(this.eloLowerBound==this.minElo||n.lowestElo>this.eloLowerBound)&&(this.eloUpperBound==this.maxElo||n.highestElo<this.eloUpperBound));switch(this.selectedGameMode){case 0:this.displayedLobbyGameArray=t;break;case 1:this.displayedLobbyGameArray=this.lobbyGameArray.filter(n=>2==n.gameInfo.maxPlayer);break;case 2:this.displayedLobbyGameArray=this.lobbyGameArray.filter(n=>n.gameInfo.maxPlayer>2);break;case 3:this.displayedLobbyGameArray=this.lobbyGameArray.filter(n=>n.gameInfo.treatyTime>0);break;case 4:this.displayedLobbyGameArray=this.lobbyGameArray.filter(n=>n.gameInfo.koth)}this.showOnlySpectatorMode&&(this.displayedLobbyGameArray=this.displayedLobbyGameArray.filter(n=>n.gameInfo.spectatorMode)),this.page=0,this.updatePagination()}IdCivToCivUrl(t){return(0,M.HH)(t)}gameSpeedToName(t){switch(t){case 0:return"Slow";case 1:return"Medium";case 2:return"Fast";default:return""}}startingAgeToName(t){switch(t){case 0:return"Exploration Age";case 1:return"Commerce Age";case 2:return"Fortress Age";case 3:return"Industrial Age";case 4:return"Post-Industrial Age";case 5:return"Imperial Age";case 6:return"Post-Imperial Age";default:return""}}endingAgeToName(t){switch(t){case 0:return"Exploration Age";case 1:return"Commerce Age";case 2:return"Fortress Age";case 3:return"Industrial Age";case 4:return"Imperial Age";default:return""}}startingResourcesToName(t){switch(t){case 0:return"Standard";case 1:return"Medium";case 2:return"High";case 3:return"Ultra";case 4:return"Infinite";case 5:return"Random";default:return""}}updatePagination(){const t=this.page*this.size;this.displayedLobbyGameArrayPaginated=this.displayedLobbyGameArray.slice(t,t+this.size),this.maxPage=Math.ceil(this.displayedLobbyGameArray.length/this.size)-1,this.showPage=this.page+1,this.showPageMax=this.maxPage+1}get pagePlusOne(){return this.page+1}set pagePlusOne(t){this.page=t-1}goToPage(){!this.page||this.page<0?this.page=0:this.page>this.maxPage&&(this.page=this.maxPage),this.updatePagination()}nextPage(){this.page!=this.maxPage&&(this.page++,this.updatePagination())}previousPage(){0!=this.page&&(this.page--,this.updatePagination())}lastPage(){this.page=this.maxPage,this.updatePagination()}firstPage(){this.page=0,this.updatePagination()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||o)(e.rXU(h.Ix),e.rXU(u),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-hosted-lobbies"]],viewQuery:function(n,i){if(1&n&&(e.GBs(Y,5),e.GBs(V,5),e.GBs(H,5)),2&n){let a;e.mGM(a=e.lsd())&&(i.modepicker=a.first),e.mGM(a=e.lsd())&&(i.lowerslider=a.first),e.mGM(a=e.lsd())&&(i.upperslider=a.first)}},decls:38,vars:10,consts:[["lowerslider",""],["upperslider",""],["modepicker",""],["tooltip","matTooltip"],["elseBlock",""],["elseBlock2",""],[1,"filter-general-container","custom-parent-sides"],[1,"filter-general-columns"],[1,"slider-container"],["discrete","","showTickMarks","","step","100","min","0","max","2500",1,"slider",3,"change"],["matSliderStartThumb","",3,"value"],["matSliderEndThumb","",3,"value"],[1,"pickers"],[1,"spectator-container"],[1,"spectator-text"],[3,"activeChange"],[3,"OnPageChanged","Name","List","Values"],[1,"table-container"],[1,"table","table-dark","table-striped","table-hover","noborder-table","mt-10"],["scope","col",1,"table-th"],["scope","col",1,"table-th-left"],["id","observable-table"],[4,"ngFor","ngForOf"],[1,"filter-general-container",2,"margin-right","1rem !important"],[3,"OnPageChanged","Page","MaxPage"],[1,"total-pages","mt-10","mb-20"],["scope","row",1,"table-td"],[1,"table-td"],[4,"ngIf"],["mat-icon-button","","matTooltip","Copied to clipboard!",3,"mouseenter","mouseleave","click","cdkCopyToClipboard"],["color","primary"],["style","display: flex",4,"ngIf"],[2,"display","flex"],[4,"ngIf","ngIfElse"],[1,"flag",3,"src"],["style","display: flex",4,"ngIf","ngIfElse"],[2,"border","dashed 1px white","width","40px","height","100%"],[1,"empty-slot"],[3,"routerLink","queryParams"]],template:function(n,i){if(1&n){const a=e.RV6();e.j41(0,"div",6)(1,"div",7)(2,"div",8)(3,"mat-slider",9),e.bIt("change",function(c){return e.eBV(a),e.Njj(i.onSliderChange(c))}),e.nrm(4,"input",10,0)(6,"input",11,1),e.k0s()(),e.j41(8,"div",12)(9,"div",13)(10,"div",14),e.EFF(11,"Spectator Mode:"),e.k0s(),e.j41(12,"app-switcher",15),e.bIt("activeChange",function(c){return e.eBV(a),e.Njj(i.onSwitchChanged(c))}),e.k0s()(),e.j41(13,"app-picker",16,2),e.bIt("OnPageChanged",function(c){return e.eBV(a),e.Njj(i.OnModeChanged(c))}),e.k0s()()()(),e.j41(15,"div",17)(16,"table",18)(17,"thead")(18,"tr")(19,"th",19),e.EFF(20,"Game Name"),e.k0s(),e.j41(21,"th",19),e.EFF(22,"Map"),e.k0s(),e.j41(23,"th",20),e.EFF(24,"Players"),e.k0s(),e.j41(25,"th",19),e.EFF(26,"Settings"),e.k0s(),e.nrm(27,"th",19),e.j41(28,"th",19),e.EFF(29,"Region"),e.k0s(),e.j41(30,"th",19),e.EFF(31,"ID"),e.k0s()()(),e.j41(32,"tbody",21),e.DNE(33,ce,29,16,"ng-container",22),e.k0s()()(),e.j41(34,"div",23)(35,"app-pagination",24),e.bIt("OnPageChanged",function(c){return e.eBV(a),e.Njj(i.OnPageChanged(c))}),e.k0s(),e.j41(36,"div",25),e.EFF(37),e.k0s()()}2&n&&(e.R7$(4),e.Y8G("value",i.eloLowerBound),e.R7$(2),e.Y8G("value",i.eloUpperBound),e.R7$(7),e.Y8G("Name","Mode:")("List",i.modeNameList)("Values",i.modeValueList),e.R7$(20),e.Y8G("ngForOf",i.displayedLobbyGameArrayPaginated),e.R7$(2),e.Y8G("Page",i.page)("MaxPage",i.maxPage),e.R7$(2),e.Lme(" ",i.showPage," of ",i.showPageMax," pages "))},dependencies:[m.Sq,m.bT,h.Wk,G.e,k.I,A,N.An,w.iY,b.IV,b.XM,T.oV,x.dF],styles:['.slider-container[_ngcontent-%COMP%]{display:flex;flex:1}.slider[_ngcontent-%COMP%]{width:calc(100% - 2rem)}.pickers[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}.spectator-container[_ngcontent-%COMP%]{display:flex;gap:.5rem}.spectator-text[_ngcontent-%COMP%]{color:var(--yellow-brand);font-size:clamp(.9rem,3vw,1.2rem);text-shadow:#000000 1px 1px 1px;font-family:"Source Sans 3";font-weight:700;font-variant:normal;-webkit-user-select:none;user-select:none}.table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff!important;font-size:clamp(.7rem,2vw,1rem)!important;font-family:"Source Sans 3"}.player[_ngcontent-%COMP%]:hover{text-decoration:underline}.flag[_ngcontent-%COMP%]{width:25px;margin-right:.5rem;padding:1px}.empty-slot[_ngcontent-%COMP%]{border:dashed 1px white;text-align:center;align-items:center;padding:5px 20px}@media only screen and (max-width: 900px){.filter-general-container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:flex-end}.slider-container[_ngcontent-%COMP%]{width:100%;justify-content:center;padding:0}.pickers[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;width:100%}.filter-general-columns[_ngcontent-%COMP%]{flex:1;flex-direction:column;margin-top:0;gap:0}}@media only screen and (max-width: 400px){.pickers[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}']})}return o})();var E=l(467),F=l(9198);let pe=(()=>{class o{constructor(t,n){this.httpClient=t,this.zone=n,this.apiHttp="/observablelist_all"}getObservableListAll(){return this.httpClient.get(`${C.p}${this.apiHttp}`)}static#e=this.\u0275fac=function(n){return new(n||o)(e.KVO(f.Qq),e.KVO(e.SKi))};static#t=this.\u0275prov=e.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var me=l(728);const ge=["modepicker"],he=["lowerslider"],ue=["upperslider"],_=o=>({"td-no-padding":o}),B=()=>["/profile"],j=o=>({idPlayer:o});function _e(o,r){if(1&o&&(e.j41(0,"div"),e.nrm(1,"img",30),e.EFF(2),e.j41(3,"sup"),e.EFF(4),e.k0s()()),2&o){const t=e.XpG().$implicit;e.R7$(),e.Y8G("src",t.civFlagUrl,e.B4B),e.R7$(),e.SpI(" ",t.name," "),e.R7$(2),e.JRh(t.eloString)}}function fe(o,r){if(1&o&&(e.nrm(0,"img",30),e.j41(1,"a",31),e.EFF(2),e.j41(3,"sup"),e.EFF(4),e.k0s()()),2&o){const t=e.XpG().$implicit;e.Y8G("src",t.civFlagUrl,e.B4B),e.R7$(),e.Y8G("routerLink",e.lJ4(5,B))("queryParams",e.eq3(6,j,t.idPlayer)),e.R7$(),e.SpI(" ",t.name," "),e.R7$(2),e.JRh(t.eloString)}}function be(o,r){if(1&o&&(e.j41(0,"div"),e.DNE(1,_e,5,3,"div",29)(2,fe,5,8,"ng-template",null,4,e.C5r),e.k0s()),2&o){const t=r.$implicit,n=e.sdS(3);e.R7$(),e.Y8G("ngIf",-1==t.idPlayer)("ngIfElse",n)}}function ye(o,r){if(1&o&&(e.qex(0),e.DNE(1,be,4,2,"div",24),e.bVm()),2&o){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",t.value)}}function ve(o,r){if(1&o&&(e.qex(0),e.DNE(1,ye,2,1,"ng-container",28),e.bVm()),2&o){const t=r.index;e.R7$(),e.Y8G("ngIf",t%2==0)}}function Ce(o,r){if(1&o&&(e.j41(0,"div"),e.nrm(1,"img",30),e.EFF(2),e.j41(3,"sup"),e.EFF(4),e.k0s()()),2&o){const t=e.XpG().$implicit;e.R7$(),e.Y8G("src",t.civFlagUrl,e.B4B),e.R7$(),e.SpI(" ",t.name," "),e.R7$(2),e.JRh(t.eloString)}}function xe(o,r){if(1&o&&(e.nrm(0,"img",30),e.j41(1,"a",31),e.EFF(2),e.j41(3,"sup"),e.EFF(4),e.k0s()()),2&o){const t=e.XpG().$implicit;e.Y8G("src",t.civFlagUrl,e.B4B),e.R7$(),e.Y8G("routerLink",e.lJ4(5,B))("queryParams",e.eq3(6,j,t.idPlayer)),e.R7$(),e.SpI(" ",t.name," "),e.R7$(2),e.JRh(t.eloString)}}function Pe(o,r){if(1&o&&(e.j41(0,"div"),e.DNE(1,Ce,5,3,"div",29)(2,xe,5,8,"ng-template",null,4,e.C5r),e.k0s()),2&o){const t=r.$implicit,n=e.sdS(3);e.R7$(),e.Y8G("ngIf",-1==t.idPlayer)("ngIfElse",n)}}function Se(o,r){if(1&o&&(e.qex(0),e.DNE(1,Pe,4,2,"div",24),e.bVm()),2&o){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",t.value)}}function Ie(o,r){if(1&o&&(e.qex(0),e.DNE(1,Se,2,1,"ng-container",28),e.bVm()),2&o){const t=r.index;e.R7$(),e.Y8G("ngIf",t%2!=0)}}function Me(o,r){if(1&o){const t=e.RV6();e.qex(0),e.j41(1,"tr")(2,"td",22),e.EFF(3),e.k0s(),e.j41(4,"td",22),e.EFF(5),e.k0s(),e.j41(6,"td",23),e.DNE(7,ve,2,1,"ng-container",24),e.nI1(8,"keyvalue"),e.k0s(),e.j41(9,"td",23),e.DNE(10,Ie,2,1,"ng-container",24),e.nI1(11,"keyvalue"),e.k0s(),e.j41(12,"td",25),e.EFF(13),e.k0s(),e.j41(14,"td",25),e.qex(15),e.j41(16,"button",26,3),e.bIt("mouseenter",function(i){return e.eBV(t),e.Njj(i.stopImmediatePropagation())})("mouseleave",function(){e.eBV(t);const i=e.sdS(17);return e.Njj(i.hide())})("click",function(){const i=e.eBV(t).$implicit,a=e.sdS(17),s=e.XpG();return a.show(),e.Njj(s.changeIcon(i))}),e.nrm(18,"img",27),e.k0s(),e.bVm(),e.k0s()(),e.bVm()}if(2&o){const t=r.$implicit,n=e.XpG();e.R7$(2),e.Y8G("ngClass",e.eq3(17,_,n.hasTeams(t.teamList))),e.R7$(),e.SpI(" ",t.gameName," "),e.R7$(),e.Y8G("ngClass",e.eq3(19,_,n.hasTeams(t.teamList))),e.R7$(),e.SpI(" ",n.idGroupToName[t.gameMode]," "),e.R7$(),e.Y8G("ngClass",e.eq3(21,_,n.hasTeams(t.teamList))),e.R7$(),e.Y8G("ngForOf",e.bMT(8,13,t.teamList)),e.R7$(2),e.Y8G("ngClass",e.eq3(23,_,n.hasTeams(t.teamList))),e.R7$(),e.Y8G("ngForOf",e.bMT(11,15,t.teamList)),e.R7$(2),e.Y8G("ngClass",e.eq3(25,_,n.hasTeams(t.teamList))),e.R7$(),e.SpI(" ",t.agoString," "),e.R7$(),e.Y8G("ngClass",e.eq3(27,_,n.hasTeams(t.teamList))),e.R7$(2),e.Y8G("cdkCopyToClipboard",t.idGame.toString()),e.R7$(2),e.Y8G("src",t.icon,e.B4B)}}let Ge=(()=>{class o{changeIcon(t){t.icon="assets/icons/clipboard.svg"===t.icon?"assets/icons/clipboard-check.svg":"assets/icons/clipboard.svg",setTimeout(()=>{t.icon="assets/icons/clipboard.svg"},5e3)}constructor(t,n,i,a){this.router=t,this.observableService=n,this.stringTable=i,this.cdr=a,this.isLoading=!0,this.page=0,this.size=10,this.sortByElo=!0,this.minElo=0,this.maxElo=2500,this.eloLowerBound=this.minElo,this.eloUpperBound=this.maxElo,this.gameNameTitle="",this.gameModeTitle="",this.playersTitle="",this.selectedGameMode=-1,this.modeStorageKey="spectator_mode_mode_storage_key",this.eloLowerBoundStorageKey="spectator_mode_lower_storage_key",this.eloUpperBoundStorageKey="spectator_mode_upper_storage_key",this.modeNameList=["All","Solo","Team","DM","Treaty","EW Solo","EW Team","Hosted Lobbies"],this.modeValueList=[-1,1,2,4,3,5,6,0],this.icon="assets/icons/clipboard.svg"}hasTeams(t){return Object.values(t).some(n=>n.length<=1)}ngAfterViewInit(){var t=this;return(0,E.A)(function*(){const n=localStorage.getItem(t.modeStorageKey);n&&(t.selectedGameMode=+n,t.modepicker.updateItem(+n));const i=localStorage.getItem(t.eloLowerBoundStorageKey);i&&(t.eloLowerBound=+i,t.lowerslider.nativeElement.value=i);const a=localStorage.getItem(t.eloUpperBoundStorageKey);a&&(t.eloUpperBound=+a,t.upperslider.nativeElement.value=a),t.cdr.detectChanges(),t.isLoading=!0,t.matchArray=[],t.idGroupToName={},t.subscription=t.observableService.getObservableListAll().subscribe({next:t.handleResponse.bind(t),error:t.handleError.bind(t)}),t.stringTable.setLanguage((0,F.xd)()),yield t.stringTable.loadStringTable();let s=t.stringTable.getLocalizedStrings([18757,21012,18864,18680,29361,18867,102160,21163,70740,19095]);t.idGroupToName[0]=s[18757],t.idGroupToName[1]=s[21012]+" "+s[18864],t.idGroupToName[2]=s[18680]+" "+s[18864],t.idGroupToName[3]=s[29361],t.idGroupToName[4]=s[18867],t.idGroupToName[5]=s[21012]+" "+s[102160],t.idGroupToName[6]=s[18680]+" "+s[102160],t.gameNameTitle=s[21163],t.gameModeTitle=s[70740],t.playersTitle=s[19095]})()}handleResponse(t){if(t){this.matchArray=[];for(let n=0;n<t.observableMatchInfo.length;n++){let i=t.observableMatchInfo[n];if(!i||!i.obeservableMatchPlayerInfo)continue;let a={},s=-1,c=Number.MAX_VALUE;for(let p=0;p<i.obeservableMatchPlayerInfo.length;p++){if(1==i.obeservableMatchPlayerInfo[p].status)continue;let v,y=i.obeservableMatchPlayerInfo[p].idCiv;v=y?(0,M.HH)(y):"";let P,g=i.obeservableMatchPlayerInfo[p].elo;g>s&&(s=g),g<c&&(c=g),P=2==i.obeservableMatchPlayerInfo[p].status?{name:"AI",eloString:"",civFlagUrl:v,idPlayer:-1,idCiv:y}:{name:i.obeservableMatchPlayerInfo[p].name,eloString:g&&-1!=g?g.toString():"",civFlagUrl:v,idPlayer:i.obeservableMatchPlayerInfo[p].idPlayer,idCiv:y};let S=i.obeservableMatchPlayerInfo[p].team+1;a[S]||(a[S]=[]),a[S].push(P)}let d=i.startDate,Re=(0,F.YC)(d);this.matchArray.push({idGame:i.idGame,gameName:i.gameName,teamList:a,playerCount:i.playerCount,isRanked:0!=i.idGroup,startDateTimestamp:d,startDateString:new Date(d).toLocaleString(),agoString:Re,highestElo:s,lowestElo:c,isDisplayed:!0,gameMode:i.gameMode,idGroup:i.idGroup,icon:"assets/icons/clipboard.svg"})}this.filterMatchArray(),this.isLoading=!1}}handleError(t){console.error(t),this.isLoading=!1}onSliderChange(t){"mdc-slider__input"===t.target.className?(this.eloLowerBound=t.srcElement.ariaValueText,localStorage.setItem(this.eloLowerBoundStorageKey,this.eloLowerBound.toString())):"mdc-slider__input mat-slider__right-input"===t.target.className&&(this.eloUpperBound=t.srcElement.ariaValueText,localStorage.setItem(this.eloUpperBoundStorageKey,this.eloUpperBound.toString())),this.filterMatchArray(),this.cdr.detectChanges()}OnModeChanged(t){this.selectedGameMode=Number(t),localStorage.setItem(this.modeStorageKey,t.toString()),this.filterMatchArray()}OnPageChanged(t){this.page=t,this.updatePagination()}updatePagination(){const t=this.page*this.size;this.matchArrayPaginated=this.matchArrayDisplayed.slice(t,t+this.size),this.maxPage=Math.ceil(this.matchArrayDisplayed.length/this.size)-1,this.showPage=this.page+1,this.showPageMax=this.maxPage+1}filterMatchArray(){this.page=0,this.matchArray.sort(this.sortByElo?function(t,n){return n.highestElo-t.highestElo}:function(t,n){return n.startDateTimestamp-t.startDateTimestamp}),this.gameCount=0;for(let t=0;t<this.matchArray.length;t++){let n=this.matchArray[t],i=!1;(-1==this.selectedGameMode||this.selectedGameMode==n.gameMode)&&(i=!0),this.eloLowerBound>this.minElo&&n.lowestElo<this.eloLowerBound&&(i=!1),this.eloUpperBound<this.maxElo&&n.highestElo>this.eloUpperBound&&(i=!1),n.isDisplayed=i,i&&this.gameCount++}this.matchArrayDisplayed=this.matchArray.filter(t=>t.isDisplayed),this.updatePagination()}trackMatch(t,n){return n.isDisplayed}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||o)(e.rXU(h.Ix),e.rXU(pe),e.rXU(me.N),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-spectator-mode"]],viewQuery:function(n,i){if(1&n&&(e.GBs(ge,5),e.GBs(he,5),e.GBs(ue,5)),2&n){let a;e.mGM(a=e.lsd())&&(i.modepicker=a.first),e.mGM(a=e.lsd())&&(i.lowerslider=a.first),e.mGM(a=e.lsd())&&(i.upperslider=a.first)}},decls:33,vars:13,consts:[["lowerslider",""],["upperslider",""],["modepicker",""],["tooltip","matTooltip"],["elseBlock",""],[1,"filter-general-container","custom-parent-sides"],[1,"filter-general-columns"],[1,"slider-container"],["discrete","","showTickMarks","","step","100","min","0","max","2500",1,"slider",3,"change"],["matSliderStartThumb","",3,"value"],["matSliderEndThumb","",3,"value"],[1,"pickers"],[3,"OnPageChanged","Name","List","Values"],[1,"table-container"],[1,"table","table-dark","table-striped","table-hover","noborder-table","mt-10"],["scope","col",1,"table-th"],["scope","col",1,"table-th-left"],["id","observable-table"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"filter-general-container",2,"margin-right","1rem !important"],[3,"OnPageChanged","Page","MaxPage"],[1,"total-pages","mt-10","mb-20"],["scope","row",1,"table-td",3,"ngClass"],[1,"table-td-left",3,"ngClass"],[4,"ngFor","ngForOf"],[1,"table-td",3,"ngClass"],["mat-icon-button","","color","primary","matTooltip","Copied to clipboard!",3,"mouseenter","mouseleave","click","cdkCopyToClipboard"],["alt","clipboard icon",1,"icon-image",3,"src"],[4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"flag",3,"src"],[1,"player",3,"routerLink","queryParams"]],template:function(n,i){if(1&n){const a=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"div",7)(3,"mat-slider",8),e.bIt("change",function(c){return e.eBV(a),e.Njj(i.onSliderChange(c))}),e.nrm(4,"input",9,0)(6,"input",10,1),e.k0s()(),e.j41(8,"div",11)(9,"app-picker",12,2),e.bIt("OnPageChanged",function(c){return e.eBV(a),e.Njj(i.OnModeChanged(c))}),e.k0s()()()(),e.j41(11,"div",13)(12,"table",14)(13,"thead")(14,"tr")(15,"th",15),e.EFF(16),e.k0s(),e.j41(17,"th",15),e.EFF(18),e.k0s(),e.j41(19,"th",16),e.EFF(20,"Team 1"),e.k0s(),e.j41(21,"th",16),e.EFF(22,"Team 2"),e.k0s(),e.j41(23,"th",15),e.EFF(24,"Start Date"),e.k0s(),e.j41(25,"th",15),e.EFF(26,"ID"),e.k0s()()(),e.j41(27,"tbody",17),e.DNE(28,Me,19,29,"ng-container",18),e.k0s()()(),e.j41(29,"div",19)(30,"app-pagination",20),e.bIt("OnPageChanged",function(c){return e.eBV(a),e.Njj(i.OnPageChanged(c))}),e.k0s(),e.j41(31,"div",21),e.EFF(32),e.k0s()()}2&n&&(e.R7$(4),e.Y8G("value",i.eloLowerBound),e.R7$(2),e.Y8G("value",i.eloUpperBound),e.R7$(3),e.Y8G("Name","Mode:")("List",i.modeNameList)("Values",i.modeValueList),e.R7$(7),e.JRh(i.gameNameTitle),e.R7$(2),e.JRh(i.gameModeTitle),e.R7$(10),e.Y8G("ngForOf",i.matchArrayPaginated)("ngForTrackBy",i.trackMatch),e.R7$(2),e.Y8G("Page",i.page)("MaxPage",i.maxPage),e.R7$(2),e.Lme(" ",i.showPage," of ",i.showPageMax," pages "))},dependencies:[m.YU,m.Sq,m.bT,h.Wk,G.e,k.I,w.iY,b.IV,b.XM,T.oV,x.dF,m.lG],styles:['.slider-container[_ngcontent-%COMP%]{display:flex;flex:1}.slider[_ngcontent-%COMP%]{width:calc(100% - 2rem)}.pickers[_ngcontent-%COMP%]{display:flex;gap:1rem}.table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff!important;font-size:clamp(.7rem,2vw,1rem)!important;font-family:"Source Sans 3"}.td-no-padding[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.player[_ngcontent-%COMP%]:hover{text-decoration:underline}.flag[_ngcontent-%COMP%]{width:25px;margin-right:.5rem;padding:1px}.icon-image[_ngcontent-%COMP%]{width:16px;height:16px;display:block;margin:auto}@media only screen and (max-width: 900px){.filter-general-container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:flex-end}.slider-container[_ngcontent-%COMP%]{width:100%;justify-content:center;padding:0}.pickers[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;width:100%}.filter-general-columns[_ngcontent-%COMP%]{flex:1;flex-direction:column;margin-top:0;gap:0}}@media only screen and (max-width: 400px){.pickers[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}']})}return o})();var ke=l(4843);let we=(()=>{class o{constructor(t){this.httpClient=t,this.appid=933110,this.api="/playercount"}getPlayerCount(){const n={params:(new f.Nl).set("appid",this.appid.toString())};return this.httpClient.get(C.p+this.api,n)}static#e=this.\u0275fac=function(n){return new(n||o)(e.KVO(f.Qq))};static#t=this.\u0275prov=e.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Te=l(78);let Ee=(()=>{class o{constructor(t,n){this.playerCountService=t,this.jsonService=n,this.playerCount=""}ngOnInit(){var t=this;return(0,E.A)(function*(){let n=yield(0,ke._)(t.playerCountService.getPlayerCount());t.playerCount=n.response.player_count,isNaN(t.playerCount)||(t.playerCount=Number(t.playerCount).toLocaleString())})()}static#e=this.\u0275fac=function(n){return new(n||o)(e.rXU(we),e.rXU(Te.W))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-home-players-online"]],decls:8,vars:1,consts:[[1,"info-banner","rounded-border-golden"],[1,"players-online"],[1,"player-online-text","responsive-text"],[1,"player-counter"],["src","assets/icons/steam_logo_white.png",1,"steam-icon"],[1,"player-counter-text"]],template:function(n,i){1&n&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.EFF(3,"Online Players"),e.k0s(),e.j41(4,"div",3),e.nrm(5,"img",4),e.j41(6,"div",5),e.EFF(7),e.k0s()()()()),2&n&&(e.R7$(7),e.JRh(i.playerCount))},styles:['.rounded-border[_ngcontent-%COMP%]{border-radius:15px;border:1px solid var(--yellow-brand);background:linear-gradient(180deg,#0000,#000 88.54%);box-shadow:0 4px 4px #00000080 inset,0 4px 4px #00000040}.rounded-border-golden[_ngcontent-%COMP%]{box-sizing:border-box;background:#181818bf;border:1px solid var(--yellow-brand);box-shadow:0 4px 4px #00000040,inset 0 4px 4px #00000080;border-radius:15px}.info-banner[_ngcontent-%COMP%]{display:flex;flex:1;justify-content:flex-end;align-items:center;height:100%;padding:.2rem 1rem}.players-online[_ngcontent-%COMP%]{display:flex;gap:1rem}.steam-icon[_ngcontent-%COMP%]{width:clamp(.8rem,2vw,1.2rem);height:clamp(.8rem,2vw,1.2rem)}.player-counter[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center;justify-content:flex-end}.player-online-text[_ngcontent-%COMP%]{color:#fff;font-family:"Source Sans 3";font-weight:700;font-size:clamp(.7rem,2vw,1rem);text-shadow:2px 2px 4px rgba(0,0,0,.25)}.player-counter-text[_ngcontent-%COMP%]{color:#fff;font-size:clamp(.7rem,2vw,1rem);font-family:"Source Sans 3";font-weight:400;text-shadow:2px 2px 4px rgba(0,0,0,.25)}@media only screen and (max-width: 800px){.player-online-text[_ngcontent-%COMP%]{display:none}}']})}return o})();const Fe=[{path:"",component:(()=>{class o{constructor(){this.index=1,this.indexStorageKey="lobbies_main_index_storage_key",this.setButtonStyles();var t=localStorage.getItem(this.indexStorageKey);t&&(this.index=+t)}setButtonStyles(){this.buttonStyle=window.innerWidth<800?{"padding-left":"0.2rem","padding-right":"0.2rem","min-height":"1rem",width:"100%"}:{"padding-left":"3rem","padding-right":"3rem","min-height":"2.5rem",width:"100%"}}onResize(t){this.setButtonStyles()}OnClicked(t){this.index=t,localStorage.setItem(this.indexStorageKey,this.index.toString())}static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-browse-main"]],hostBindings:function(n,i){1&n&&e.bIt("resize",function(s){return i.onResize(s)},!1,e.tSv)},decls:14,vars:14,consts:[[1,"custom-container"],[1,"main-heading"],[1,"dark-bg","rounded","mt-10"],[1,"custom-parent-top-sides","browse-online-players"],[1,"buttons-container"],[1,"buttons",3,"OnButtonClicked","buttonStyle","InputIndex","Name","ActiveEnabled","activeButton"]],template:function(n,i){1&n&&(e.j41(0,"div",0)(1,"div",1),e.EFF(2,"Browse Games"),e.k0s(),e.j41(3,"div",2)(4,"div",3)(5,"div",4)(6,"app-custom-button",5),e.bIt("OnButtonClicked",function(s){return i.OnClicked(s)}),e.k0s(),e.j41(7,"app-custom-button",5),e.bIt("OnButtonClicked",function(s){return i.OnClicked(s)}),e.k0s()(),e.j41(8,"div"),e.nrm(9,"app-home-players-online"),e.k0s()(),e.j41(10,"div"),e.nrm(11,"app-spectator-mode"),e.k0s(),e.j41(12,"div"),e.nrm(13,"app-hosted-lobbies"),e.k0s()()()),2&n&&(e.R7$(6),e.Y8G("buttonStyle",i.buttonStyle)("InputIndex",1)("Name","Spectator Mode")("ActiveEnabled",1===i.index)("activeButton",i.index),e.R7$(),e.Y8G("buttonStyle",i.buttonStyle)("InputIndex",2)("Name","Hosted Lobbies")("ActiveEnabled",2===i.index)("activeButton",i.index),e.R7$(3),e.HbH(1===i.index?"visible":"hidden"),e.R7$(2),e.HbH(2===i.index?"visible":"hidden"))},dependencies:[L.z,de,Ge,Ee],styles:[".buttons-container[_ngcontent-%COMP%]{display:flex;flex:1;gap:1rem}.visible[_ngcontent-%COMP%]{margin-top:1rem}.browse-online-players[_ngcontent-%COMP%]{display:flex;justify-content:space-around;flex-wrap:wrap;gap:1rem}@media only screen and (max-width: 800px){.buttons[_ngcontent-%COMP%]{width:100%}}"]})}return o})()}];let Be=(()=>{class o{static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275mod=e.$C({type:o});static#n=this.\u0275inj=e.G2t({imports:[h.iI.forChild(Fe),h.iI]})}return o})();var je=l(4719),Le=l(7315);let Oe=(()=>{class o{static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275mod=e.$C({type:o});static#n=this.\u0275inj=e.G2t({imports:[m.MD,Be,je.G,Le.G,x.FQ]})}return o})()}}]);