From bab376259d8f616abbf1baecefd9a2fc6ab9dc12 Mon Sep 17 00:00:00 2001 From: mxtsdev Date: Sun, 29 Dec 2019 03:56:01 +0100 Subject: [PATCH 1/7] ArkSavegameToolkitNet dependency changed from NuGet-package to project reference to prioritize a quick workflow above robustness. When compiling the solution the two repositories must exist side-by-side in the same location on disk. --- ArkBot.sln | 24 ++++++++++++++++++++++-- ArkBot/ArkBot.csproj | 19 ++++++++++--------- ArkBot/packages.config | 1 - 3 files changed, 32 insertions(+), 12 deletions(-) diff --git a/ArkBot.sln b/ArkBot.sln index f8409cc..7f076f3 100644 --- a/ArkBot.sln +++ b/ArkBot.sln @@ -1,12 +1,16 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.27130.2003 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29209.62 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArkBot", "ArkBot\ArkBot.csproj", "{BB61C4D0-0060-401B-BF8F-4747CBD86D9D}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArkBot.Tests", "ArkBot.Tests\ArkBot.Tests.csproj", "{F302C35B-97B4-4E9A-B628-F17FE7DB8A45}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArkSavegameToolkitNet", "..\ArkSavegameToolkitNet\ArkSavegameToolkitNet\ArkSavegameToolkitNet.csproj", "{2B78ED8E-A311-49BD-B4AC-8787F829AD17}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArkSavegameToolkitNet.Domain", "..\ArkSavegameToolkitNet\ArkSavegameToolkitNet.Domain\ArkSavegameToolkitNet.Domain.csproj", "{DBF15752-CB8A-40D8-8DA6-2597538E86D0}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -27,6 +31,22 @@ Global {F302C35B-97B4-4E9A-B628-F17FE7DB8A45}.Debug|x64.ActiveCfg = Debug|x64 {F302C35B-97B4-4E9A-B628-F17FE7DB8A45}.Release|Any CPU.ActiveCfg = Release|Any CPU {F302C35B-97B4-4E9A-B628-F17FE7DB8A45}.Release|x64.ActiveCfg = Release|x64 + {2B78ED8E-A311-49BD-B4AC-8787F829AD17}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2B78ED8E-A311-49BD-B4AC-8787F829AD17}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2B78ED8E-A311-49BD-B4AC-8787F829AD17}.Debug|x64.ActiveCfg = Debug|Any CPU + {2B78ED8E-A311-49BD-B4AC-8787F829AD17}.Debug|x64.Build.0 = Debug|Any CPU + {2B78ED8E-A311-49BD-B4AC-8787F829AD17}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2B78ED8E-A311-49BD-B4AC-8787F829AD17}.Release|Any CPU.Build.0 = Release|Any CPU + {2B78ED8E-A311-49BD-B4AC-8787F829AD17}.Release|x64.ActiveCfg = Release|Any CPU + {2B78ED8E-A311-49BD-B4AC-8787F829AD17}.Release|x64.Build.0 = Release|Any CPU + {DBF15752-CB8A-40D8-8DA6-2597538E86D0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DBF15752-CB8A-40D8-8DA6-2597538E86D0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DBF15752-CB8A-40D8-8DA6-2597538E86D0}.Debug|x64.ActiveCfg = Debug|Any CPU + {DBF15752-CB8A-40D8-8DA6-2597538E86D0}.Debug|x64.Build.0 = Debug|Any CPU + {DBF15752-CB8A-40D8-8DA6-2597538E86D0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DBF15752-CB8A-40D8-8DA6-2597538E86D0}.Release|Any CPU.Build.0 = Release|Any CPU + {DBF15752-CB8A-40D8-8DA6-2597538E86D0}.Release|x64.ActiveCfg = Release|Any CPU + {DBF15752-CB8A-40D8-8DA6-2597538E86D0}.Release|x64.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/ArkBot/ArkBot.csproj b/ArkBot/ArkBot.csproj index af2b518..d789f98 100644 --- a/ArkBot/ArkBot.csproj +++ b/ArkBot/ArkBot.csproj @@ -90,14 +90,6 @@ ..\packages\Accord.Statistics.3.5.0\lib\net46\Accord.Statistics.dll True - - ..\packages\ArkSavegameToolkitNet.1.9.0\lib\net461\ArkSavegameToolkitNet.dll - True - - - ..\packages\ArkSavegameToolkitNet.1.9.0\lib\net461\ArkSavegameToolkitNet.Domain.dll - True - ..\packages\Autofac.4.3.0\lib\net45\Autofac.dll True @@ -895,7 +887,16 @@ Designer - + + + {dbf15752-cb8a-40d8-8da6-2597538e86d0} + ArkSavegameToolkitNet.Domain + + + {2b78ed8e-a311-49bd-b4ac-8787f829ad17} + ArkSavegameToolkitNet + + $(TargetDir)\lib diff --git a/ArkBot/packages.config b/ArkBot/packages.config index 8078528..ede8686 100644 --- a/ArkBot/packages.config +++ b/ArkBot/packages.config @@ -4,7 +4,6 @@ - From e1fce5eafe6d2f321d16f9acc8467724d0c9c8a5 Mon Sep 17 00:00:00 2001 From: mxtsdev Date: Fri, 10 Jan 2020 09:14:17 +0100 Subject: [PATCH 2/7] - Added support for top menu in web app - Added low resolution version of logo New config option webApp->topMenu: "webApp": { "topMenu": false } --- .../Model/WebAppConfigSection.cs | 4 + ArkBot/WebApp/WebAppStartup.cs | 3 +- ArkBot/WebApp/dist/assets/logodark_small.png | Bin 0 -> 5769 bytes ArkBot/WebApp/dist/assets/logolight_small.png | Bin 0 -> 5533 bytes ArkBot/WebApp/dist/index.html | 4 +- ... => inline.8808fd97dffea94e7939.bundle.js} | 2 +- ...js => main.b400f5999df29a53e3cc.bundle.js} | 2 +- ...=> styles.dd9c2abfa63318e82a56.bundle.css} | 2 +- ArkBot/WebApp/package-lock.json | 174 +++++++++--------- ArkBot/WebApp/src/app/app.component.ts | 9 +- ArkBot/WebApp/src/assets/logodark_small.png | Bin 0 -> 5769 bytes ArkBot/WebApp/src/assets/logolight_small.png | Bin 0 -> 5533 bytes ArkBot/WebApp/src/styles.css | 63 +++++++ ArkBot/defaultconfig.json | 1 + 14 files changed, 170 insertions(+), 94 deletions(-) create mode 100644 ArkBot/WebApp/dist/assets/logodark_small.png create mode 100644 ArkBot/WebApp/dist/assets/logolight_small.png rename ArkBot/WebApp/dist/{inline.1b0957fff70131fed7f2.bundle.js => inline.8808fd97dffea94e7939.bundle.js} (95%) rename ArkBot/WebApp/dist/{main.8154e42c5a8fb626ab5c.bundle.js => main.b400f5999df29a53e3cc.bundle.js} (53%) rename ArkBot/WebApp/dist/{styles.07a600519edcc9a023fa.bundle.css => styles.dd9c2abfa63318e82a56.bundle.css} (60%) create mode 100644 ArkBot/WebApp/src/assets/logodark_small.png create mode 100644 ArkBot/WebApp/src/assets/logolight_small.png diff --git a/ArkBot/Configuration/Model/WebAppConfigSection.cs b/ArkBot/Configuration/Model/WebAppConfigSection.cs index 2c6f932..ca25c15 100644 --- a/ArkBot/Configuration/Model/WebAppConfigSection.cs +++ b/ArkBot/Configuration/Model/WebAppConfigSection.cs @@ -32,6 +32,10 @@ public WebAppConfigSection() [Display(Name = "Default Theme", Description = "Default theme to use in the Web App")] public WebAppTheme DefaultTheme { get; set; } = WebAppTheme.Dark; + [JsonProperty(PropertyName = "topMenu")] + [Display(Name = "Top Menu", Description = "Use top menu in the Web App")] + public bool TopMenu { get; set; } = false; + [JsonProperty(PropertyName = "tribeLogLimit")] [Display(Name = "Tribe Log Limit", Description = "Limit for how many tribe logs are displayed in the Web App")] [RangeOptional(1, 1000, Optional = false, ErrorMessage = "{0} must be between 1-1000")] diff --git a/ArkBot/WebApp/WebAppStartup.cs b/ArkBot/WebApp/WebAppStartup.cs index 212a7cb..871ff3d 100644 --- a/ArkBot/WebApp/WebAppStartup.cs +++ b/ArkBot/WebApp/WebAppStartup.cs @@ -107,7 +107,8 @@ public SinglePageApplicationModule(IConfig config) }, webapp = new { - defaultTheme = _config.WebApp.DefaultTheme.ToString() + defaultTheme = _config.WebApp.DefaultTheme.ToString(), + topMenu = _config.WebApp.TopMenu } }; var json = JsonConvert.SerializeObject(obj, Formatting.None); diff --git a/ArkBot/WebApp/dist/assets/logodark_small.png b/ArkBot/WebApp/dist/assets/logodark_small.png new file mode 100644 index 0000000000000000000000000000000000000000..e55130701f9045c484bf1f15c509fe7b981d8a21 GIT binary patch literal 5769 zcmcgw2|Sc*+sCvhNjXHROrx^Yn0>|!recUfj(sUSGxH2nW1eYdjI|;yT7)*KBPvTI zMV2CrN=^&f=vXF|7Am2IbjbINtME^3A-QaGlsm~DYcH?_1GqL}LeM$P z!G#sJfkkDbmeG-BAvD-PASecqA%Q%;h!$dw8n#P=-{s2~6mnQayulo`LhcahVeg2v zgoGfHWK2f0a6}T4LN&&b2}CM&DH4yxnP9Lc7#snOBh!dj8Xk`v{h(lPLNJp*g2bp0eN5` z$QO%XUEH{?AOI3Wq5$XzrpLv9aR8^*-hSN2cd-Npj=K zAl_K-IF4lzX=y3%6)Mueoy%uK!6HL>7^8bY1|SB_QF1vNYl6mMUGO*>fk?v>&{z@; ziycw5huB!BjEd^ zkmF^gSwcKW2)l%F5x!lwwX}2;LL4p+7KofyS|Dw$EXg=3nT*C8c zfwl~D6da{7m&>MM@f0GH!e*keEEqchBvQ~OBr*<7ppZxe9Gi&c5Qt;@84xQ--jeeD zBh$%-Sg?(+@Jt9)B9Y9*qNz->37QBHK{VBbz=DU6$;N>Ig-QTm*u(uuTO;Jc1Of2A zwJJx&hAol+CJ~^racB@EanNKEk%czlU}1a&6AC~kU@3TjfaEvxZl)%SjPbfggvitTFr#S z-!{OoP;O~lh=FZjx)p5j-*9gF_#y5XXc9^CK2O0|Y7?&0!Mp zXePykg2obXEF1^RV#5U-anIxa5XkpDjx>i2SB@ZbG!4$+#;*w(<|i7!8YwPIKHVT2 zg&bMtey7EMu9-&m2M2&~8~x45kEn?tjyM<)f-C&t-uoF=krzW=3%Hx^e z_Xpvl9E1Az;{gCX1xKcm(DI`i&EmkLO{KtREE9_-kw^fU4PfC}`)f76&#M3VU|0}e z0t&xrF99Hg=T8iesyT`ygaVO(K)~a&hS>)r;j>3i`SF=TiXr4z9{*v|*r1U6O&fgc zWgG(X|Iyz+Hr>yi3jg&Y4b#~O8DRdECq{lVMlxwFug&mHg!Vl~_}LzWuO>A3i2H{_ zj|hTPB0#~z=N%P3`N%|=6iF-)4G%8Cghj@Ys31w+(Q<3h|Mk!tXZ3GxpJV(AUuos9 z<9BKJ$M|g=|b>p2T0m`CQE>GV>c%sheNEX-qP09V~Ahd`oF1qu*Yp>gBuXayUQ4HW~S+`sx+AG-Izt$<7*`a*u(mHkC zvY7b$=`-W1apLIOTmzpt9p{HVoc`s?OYdJJqM0R8x6bBmYFn@sO+IBTPAJXX6;ro- z?~TeqhZ(*uCzp^nudCER&SoU+o**#&t@hmX44Ka+)ePLNg7blQjqyR&=S7hvsIE1{fy*AE$GrJL3%YPeRm zZS+-In{kPhaxz;h+|?D)+}hBP_pl&`V{_YXe|SN2TM4n{?j_rVq^k420v*SLk7AEz z>{{-3&0fQb*-YM@Jxd{X>6QjJq_Q1?cJx^EsS6SGCd&oeW`smMLd8|Dlii(vTn(9i z+u-fswENapm3xm}Y%xxmO%c_+4M>Pti>w~n!>b7PBF?$manIyq&kb$ABIx~auQ zJ2rRqh3BDvv2sP3wbRb1OkCAH^J*{HziG0n-dkta=M4Xq+6xxt<+k?} z`5l}3$$DRHxNTfVdr87fvDafI7qB_Z|Ge!^>W?&eeHmzWzKfHa7EcbCK*> zU9ary>q$pnOgN&#h$0(4H!$S`-m`XRKNir=^O|{F{@|R)^ETDmGxR4UZPGgokK0{2Kca&hP&C?U#yMiif&vczWacg|jjq?ZQPp_ZPbm~ak z)6`5Wp@;S_^pUN6f8;RYRNZXc?dSKd>x2y;kkifVPa0HdW?p+DW@>LVqjx5D5cOD6IyJJo$)dB1LOP!D#73p&<6`UEyV9-mR4=G) zRoto~jbE%3e@>EWtG~``nzwSqS^kV`TLxVG^Ogwq(JxE-^0rg7B#Q6yhUPwQTX6qe z#OFf}fzL@j$@Z}+Jl=X`VK&{Oz_rSHh0$Us!uby$R6?!SIP8)hBqy)ZP?4&qE>E1b zNI!lZz2VWvQbYpk)knjD?j*KDwZ875nHO7VHb}>Uv=_czXN$!8R}3q&SS&pSfYbY+ zF5)b6k(L9hK9PQnjdiq*#%N`4gkE@;5-fPw78SVS=!jfvG zzMzykqh!WF`vN6B*#zs0xVW;Kme~iwC7xz~=H6(lZRql247mG~bINg%SEo$Z8jutf z7t<@~-kJUreToWrM%`tE=IWG0HT_51c39eJZ}EZFK}qHng3pbg=*=HLL7z(;KStku z^6Ui0s`Y6UZNA{z>cqn`g@Yf0%%PCCS1v!f)R%$XSoK@~cG2WlLp-PSx&TC_{RYY4 zru!)pcSI+mAi-(U1fKz^Yo9`vE-`}_N}9F|djIhJH?=33sXKWIhLYvxABd1HHY7D`Bn{jsj$WCc^F z(=Bdhlw$0Csd_j?YNQ03?9cD%DH|%?TzRli8liA2|H#H3 zm2Gi5ELrDV9-u>^|2GWc)-EYRIur3%yXS$ybo3`y)!J^*@K|Wp|E*;Ejhq}vb zz`jaCoYsK@S|>;gXINAgo%HDGy@`AHr5=auKGW(=$xZG2a5OKW_sOXN&u68ish5qh zPj62n3qDCVNAC1pSJ=tOc%XCqkB7=RO$Fto_M`i^bFKBE&uCxn_A{R z`h2IsjXl&X^X#)*(&$l`nc?5Oqwvq@hns_IFz>DR_Eu{7_sxVq54k8y$7cySQyjaSZn|gNOPv;0sjbyq>h0w=c|zpPME8d|6)(!4b{^A} zd4BG!a-R_SGV-Q}3iQQ2ubJKEx`J~h9d3{vT< zuyzduFQ>^_@!;+94Z<65`nUfQwSUO1vmdc*1ttXsrQk6+$JDVWBIOP@3UMonWE-s# zu9S#IUpVl%wL@{f!mGOTzdlTE)6s49PJZK@zq#|v`p7Nrol_DF5=8eNcj!h8WP2+5 zJ^ivfv7zg1MAjr_4fL^J@2DbL6!$j1>+W^TKRe%Jnpv>y%E{#=GY|=1P~|aKa* z*K7qpIQBD9()zx{+SmN%f%aNj$&;=@4zkeYuAQdj*Dt-UsbieczJVyPx9rB<(NM2FNuajlaKzX%8Y9E SOqBn#*w)H{k!#_%^?v{fb{$p# literal 0 HcmV?d00001 diff --git a/ArkBot/WebApp/dist/assets/logolight_small.png b/ArkBot/WebApp/dist/assets/logolight_small.png new file mode 100644 index 0000000000000000000000000000000000000000..5533657b63b62ca0b1bd9cd92a9918e7f7dbca85 GIT binary patch literal 5533 zcmc&&2{@E%`?o|zq?0UJnkL!untf%IhC+47AYmE6D_uAaSovc zMZ#B7CzX`aVr2bV4(-Cn{~cSM?_b~P`u_j#`sTXE`_6OU&wc;y?e{#FRAruUm1V85UZM=l=+6u{6I`lO8Q(djrP5Xj> z(U1Wm5ub`eMMOlHM&L|&0)G^SLZP70SQHiuz#4!siYo#m0j_Yxj0G!5$P{q+A`Xv> zkXQs6yf6_B2_u~fA%s6`mMff26Pz$qB*;f$Owp2%CKXxCSv`K3Ab8R_i;04Qp%92G z62iKeSzUerPs9@j@V;YuR{SRiaB3YKW_^4UOGwD93!%t591deTA>Y&%x<~OLlq)3U zg$bCDbvO)j#Y{9pkt_5ipFgl2R-fH0;;_H7S0edSP*5c2JE{`NtSX;M7eJthCvfNS zf@gZic_xbpI$hE$6ojD%hs)wc2#q9ROz(lLKoLYkO5^~V3}DdiSPT`1r($scnm|RP zr&JwyEDk$rMiq+&&=>$safjQEK&E2hoy0Gya3ixo5%`zNEGCuB6NG?p88{)JKZN3Q z{gH^-;!^3nV4eVW45Pz+y>3gVI}3PhPB1JGx~^Y~u(hTWF%%*Zz?xzv;W{`_ZMi}b z$YnydRx~6Wt0{-WqEgr(1mVaS0AgVY0ELLh01OrZ50J1V1{+6Uk#T6k%zi5#GfdK$ zlKoRN%HlC$8(-kDa0DCygD1mTV-o--h$jIc4x#`cgMbGaSO&--lV+?r2{R^a7x_jm2d)MdiI8;HQ~}&zqJt9+dz)Ny=0rllo>m+< zH^NC6B!a}z7n#>T%U~w@k~DWHQe+QCK?314L9GS-r{97(U)6q6#}N#HJzKhNVDLm= zH^8J&Vrf>0f^DEA>@;N#^&N*_mS+lK3Acz4o||vMv6!h4n@oaP5)H!jrLX`t1CIq5 zBr*v=<1kDN8_i_F1)Opp%=s>mZ+V0rz^!V-ksyegPJYZ?yQ2HPh7ohyVy~qkl2@Q))sUTND8bAWMI^_kM(1B*l=_0xsyE@e9H5e~q4n zC$NYVA{HP*Bqji2;Y5=eXbM1Juqi|eNI+vS&`k9I8$Ff^6BYsHr77C_H_=aHW(I&< ze+WL%QOJKk9yS{Xkr`whz=YT&fWnr<1A!O-%VHBS7&OShLGY~oxfyGg&;saKbXUuBp_5cmoFp9 z!$S}S50bC|d~l&92PsUA1SSN)oaVr&j>qyPHexwBRd#oUN6md%&~%S&GhXk2ITBzm1ccuO}_j)90`@GD&ZZ z&AhkH(k?^shJlOlu0E=wLmR_icElQP7F|M`T?miRc`z5{vb$r%*ZRTvk~872m|<aw1@V@%2r*Bg2jR$%+IX4x!EAQODat%~( zcM2GkifNG{Kkt|ml6ly#c|e}*{z3QXX>MY7snSr>;SxT#MNO(MA?WqKQhP;*y|$vC zgRVHt%lS1dZX?&uuc7y*PN0?^rc+_aUL*h39A@DKdp(tZw4M%2u;s`mB4y9n%U?gJ zJjbcYLO0F;Au`XDr$#MZUsN&I%G$t!$2SOYX?wFM%h=xYJ=RgGKgX7^X)e1(M#e)Vb+b|~Kh5gR7U7t|H*-@9e%=&&pTNxtg;JP6^ zif^Fz_jhYf-b`j`JLlYxS+xB5EvYpLvUJB}`BY^wf-9_!Z`Tl+rK=%?c`5nBhWorW>A3}z5y*~uX$Ou&*}Bsg~KkQu@xS3e;#?h zC_uAw&RZLuq3W8KR}`ZwpZLn%ul|6T=fU1-U4E-#K-K1MdZAd|d8w+y?%kcMeC7IV zmJ}ZE_G$|~s8rCHz1adaa9j1Ly50>BEHU!*Z%S;Z;1A1&yS#k(r!Hzaw(BHSQ-tx$ zj1PL^!|OkKZRr|FIPQm4m0GXiW0G-A^Eu&>Zj)1iV_pkj5;*6$XP@bgVRyp%)Pi<} z;RITKLYcWqil1};m6|t$^zPs3=-M8iiG;z3u(g9nbq9WZq;$4|-I#80W=Ep%Q=>)O zi{_UId;>yen`dM(s9MHdys1MjQYq0!#;Af^?yZ6GRWsh>o3b~I1!T4 zesV%v?O+7`{=@U*a;tZC(9X(!+{D}A6u7V<=h3CS+F~7|N7$A44tgH;#9R;FMOt*1 zFSf#Od|ikhvr4OZU}B?lrR6AAcl3`wGiDoA7_e>aBKJPxm4em}WrDtK0Ro-4t8SO_ zF9+lB_K%2Uag2{ond1HK4w=X7aLe{I(|{v)=N~Dip1!G=dGa^?#h2!5j@HLwLl=hz zJsBDOgW2qMlC(0zq_>+~qAm;dc^%l0P)quIB%{v@7nG^`V>^)Wii%)}B{SG(&DU0zp1 zWO9I^Io|)|5of$8sFi!EHlT9 zoZe)%TB@z&mtD%9dm3KnrU$0PdPkOuEiEm>WGShXnmdX$VBUp??Fs!ddo%5>^a>^{ zR2JmaB~yORNSNRs)*8Pd6~Y5^>l2mtDif6Eyxw?kFn^9o~=HKw9f3uzO2i z&5dsQ(7}b`?W8+?<-GfO@$Y11Ni_Y++KJHwCk?}2ZZCXdZYaJmVEDK@Z?4SNH&Wx> z@grqhkgvAQHCWOe?Ep6L_CJ=5_g`)NjIm&O&+ZzFx`bR5aCFVCl#FNQqsO0&lU}TP z@@c1T-Al!1<OD0Rs!SY1k#T zmbczpsb!qEY>3r4d{J}rT5eWzZz6V1<*|2)!=Eee5)KL7nh$C#R%iOJB-sgUt898= zyEa{v2`qV)^yy?o1GO!^Y+H=(n#*DyEpF>zYWlw9j4gGJD9P&~cznz4>exw{IuAF^i0$l0RM)I{)PwA#v~UaO{A2rWFtC8{dej)vN1A3t_L1(o z5V)@Tu*!2pj}!Gk#zyl#>i9&^-IyMB^>}K1JL~aDQuYEfk5k8Ew&!_#%nNr0)}Plu z^{Muk!p?a0Ll&}CJ-0p==RCM}J$99E+QYl<6V9|f?{=hgMr}MVjCI@GyErkZAt|+D z&9>64o0tus&3~=b^L9*j(KtNdCA3i1uI#!j7RenrrRb=-8$n;%az1*Mx2oSSwo%p8 zBJ`W=Vuf0CY~{yoC0AcBGrYKuoM>Dme!p6-$>H}Lt(FAT>xDISJLbfcbZs+Asd`4yq>9ZW_Tu3F*kJ$0QR$OwVoioM z!}o27PDxyEi}9gcy(sGwtxJFN6HZ+g$kg~;Yp^QHXowTcNDhv$~hkE9LO|2mw(e=V3D-lzPK%> z$c{F;A^niWs;W!4!6hm>3l#r&dw?Du$89q2y(23&O6e2{S}W-f@ - +

Loading...

- + diff --git a/ArkBot/WebApp/dist/inline.1b0957fff70131fed7f2.bundle.js b/ArkBot/WebApp/dist/inline.8808fd97dffea94e7939.bundle.js similarity index 95% rename from ArkBot/WebApp/dist/inline.1b0957fff70131fed7f2.bundle.js rename to ArkBot/WebApp/dist/inline.8808fd97dffea94e7939.bundle.js index cfe3840..2d084b3 100644 --- a/ArkBot/WebApp/dist/inline.1b0957fff70131fed7f2.bundle.js +++ b/ArkBot/WebApp/dist/inline.8808fd97dffea94e7939.bundle.js @@ -1 +1 @@ -!function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,a,c){for(var u,i,f,l=0,s=[];l=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this.zone=e,this.serverUpdated$=new n.EventEmitter}return e.prototype.connect=function(){var e=this;this.connection=$.hubConnection(this.getSignalRBaseUrl()),this.proxy=this.connection.createHubProxy("ServerUpdateHub"),this.proxy.on("serverUpdateNotification",function(t){e.zone.run(function(){e.serverUpdated$.emit(t)})}),this.connection.start().done(function(){return console.log("Now connected, connection ID="+e.connection.id)}).fail(function(){return console.log("Could not connect")})},e.prototype.getSignalRBaseUrl=function(){return i.a.signalrBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e}();o=s([r.i(n.Injectable)(),a("design:paramtypes",["function"==typeof(c=void 0!==n.NgZone&&n.NgZone)&&c||Object])],o);var c},"+qYp":function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e}();l=o([r.i(n.Component)({selector:"app-access-denied",template:r("1DTO"),styles:[r("aijx")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},"+rAa":function(e,t,r){"use strict";function n(e,t,r,n){var i=a(e,t,r);if(void 0!=i)return i;var s=Math.pow(10,n),o=void 0!=n?Math.round(e*s)/s:e,c=void 0!=n?Math.round(t*s)/s:t;return o>c?r?1:-1:ot?r?1:-1:e=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t){this.dataService=e,this.router=t}return e.prototype.canActivate=function(e,t){var r=this;return s.Observable.fromPromise(this.dataService.getServers().then(function(t){if(t){var n=e.params.playerid;return r.dataService.hasFeatureAccess("pages",e.data.name,n)?"access":"noaccess"}return"connectionerror"}).catch(function(){return"connectionerror"})).map(function(e){return"noaccess"==e?r.router.navigateByUrl("/accessdenied",{skipLocationChange:!0}):"connectionerror"==e&&r.router.navigateByUrl("/connectionerror",{skipLocationChange:!0}),"access"==e})},e}();l=o([r.i(n.Injectable)(),c("design:paramtypes",["function"==typeof(d=void 0!==a.a&&a.a)&&d||Object,"function"==typeof(u=void 0!==i.b&&i.b)&&u||Object])],l);var d,u},"/Wuq":function(e,t){e.exports='
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given server key.

\r\n
\r\n
\r\n
\r\n

Players

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam IdCharacter IdSteam NameCharacter NameTribe NameTribe IdStructuresCreaturesLast Active
{{player.FakeSteamId || player.SteamId}}{{player.Id}}{{player.SteamName}}{{player.CharacterName}}{{player.CharacterName}}{{player.TribeName}}{{player.TribeId}}{{player.StructureCount}}{{player.CreatureCount}}{{dataService.toRelativeDate(player.LastActiveTime)}}
\r\n
\r\n
\r\n
\r\n

Tribes

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
IdNameMembersStructuresCreaturesLast Active
{{tribe.Id}}{{tribe.Name}}{{getTribeMember(member)?.CharacterName || member}}{{getTribeMember(member)?.CharacterName || member}}, {{tribe.StructureCount}}{{tribe.CreatureCount}}{{dataService.toRelativeDate(tribe.LastActiveTime)}}
\r\n
\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n\r\n
\r\n
\r\n

Egg Summary

\r\n
Save World
\r\n
\r\n\r\n
\r\n
\r\n

Summary

\r\n
\r\n
\r\n

Total Eggs: {{totalEggCount}}

\r\n

Fertilized Eggs: {{fertilizedEggsCount}}

\r\n

Spoiled Eggs: {{spoiledEggsCount}}

\r\n
\r\n
\r\n

There are no fertilized eggs on the map

\r\n
\r\n
\r\n\r\n
\r\n

Fertilized Eggs

\r\n
Destroy All Eggs
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CreatureEgg LevelSpoil Time
{{egg.Dino}}{{egg.EggLevel}}{{egg.SpoilTime}}
\r\n
\r\n\r\n
\r\n

Spoiled Eggs

\r\n
Destroy Spoiled Eggs
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CreatureEgg LevelDropped By
{{egg.Dino}}{{egg.EggLevel}}{{egg.DroppedBy}}{{egg.DroppedBy}}
\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{modalInfo.Header}}

\r\n
\r\n
\r\n
\r\n {{modalInfo.Message}}\r\n
\r\n
\r\n
\r\n
\r\n
'},0:function(e,t,r){e.exports=r("x35b")},"08Wm":function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.dataService.hasFeatureAccess("admin-server","structures")?this.menu.activate("structures"):this.dataService.hasFeatureAccess("admin-server","players")?this.menu.activate("players"):this.dataService.hasFeatureAccess("admin-server","tribes")?this.menu.activate("tribes"):this.dataService.hasFeatureAccess("admin-server","eggs")&&this.menu.activate("eggs")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-admin-server-menu",host:{"[class]":"menu.className"},template:r("bl1B"),styles:[r("9kk6")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},"0Hpj":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Fzro"),s=r("eErF"),a=(r.n(s),r("lHWG"));r.d(t,"a",function(){return d});var o=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.getServers=function(){return this.http.get("assets/demo/servers.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getServer=function(e){return this.http.get("assets/demo/server.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getWildCreatures=function(e){return this.http.get("assets/demo/wildcreatures.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getStructures=function(e){return this.http.get("assets/demo/structures.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getPlayer=function(e){return this.http.get("assets/demo/player.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getAdminServer=function(e){return this.http.get("assets/demo/adminserver.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.adminDestroyAllStructuresForTeamId=function(e,t){return Promise.resolve(null)},t.prototype.adminDestroyStructuresForTeamIdAtPosition=function(e,t,r,n,i,s){return Promise.resolve(null)},t.prototype.adminDestroyDinosForTeamId=function(e,t){return Promise.resolve(null)},t.prototype.adminSaveWorld=function(e){return Promise.resolve(null)},t}(a.a);d=c([r.i(n.Injectable)(),l("design:paramtypes",["function"==typeof(u=void 0!==i.b&&i.b)&&u||Object])],d);var u},"0jRk":function(e,t,r){"use strict";var n=r("3j3K"),i=r("jWPz"),s=r("joX7"),a=r("Gvdl"),o=(r.n(a),r("XlOA")),c=(r.n(o),r("1APj")),l=(r.n(c),r("6Yye")),d=(r.n(l),r("uCY4")),u=(r.n(d),r("wUn1")),p=(r.n(u),r("/lY3"));r.n(p);r.d(t,"a",function(){return m});var h=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},f=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},m=function(){function e(e){this.ref=e,this._modeEnabledSubscriptions=[],this._rows$=a.Observable.of([]),this._orderByColumnKey=new a.BehaviorSubject(void 0),this._filter=new a.BehaviorSubject(void 0),this._sort=new a.Subject,this._fromRow=0,this._numRows=25,this._totalRows=0,this._enabledColumnsForMode={},this._viewOptions=[{value:25,text:"25"},{value:50,text:"50"},{value:100,text:"100"},{value:250,text:"250"},{value:500,text:"500"},{value:1e3,text:"1000"},{value:1e6,text:"All"}],this._prevColumnKey=void 0,this._prevFilter=void 0,this._prevSortedRows=void 0,this._prevFilteredRows=void 0,this._prevSortedRowsKey=void 0,this._prevFilteredRowsKey=void 0}return e.prototype.ngOnInit=function(){var e=this;this._rows$=a.Observable.combineLatest(this._orderByColumnKey,this._filter.debounceTime(250),function(e,t){return{key:e,filter:t}}).skip(1).startWith({key:this._orderByColumnKey.getValue(),filter:this._filter.getValue()}).switchMap(function(t){return a.Observable.of(e.filterAndSortData(t.key,t.filter))}).catch(function(t){return console.log("Error in component ... "+t),a.Observable.of(e._rows)})},Object.defineProperty(e.prototype,"modeTemplates",{set:function(e){if(e){var t=e.toArray();if(t.length){for(var r=[],n=0,i=t;n0&&(this._currentMode=this._modes[0].key)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnTemplates",{set:function(e){if(e){var t=e.toArray();if(t.length){for(var r=[],n=0,i=t;n=this._totalRows&&(t=this._totalRows-1),this._fromRow=parseInt(""+t),this.ref.markForCheck()},e.prototype.setViewOffsetRelative=function(e){this.setViewOffset(this._fromRow+e)},e.prototype.setFirstPage=function(){this.isFirstPage()||this.setViewOffset(0)},e.prototype.setPrevPage=function(){this.isFirstPage()||this.setViewOffsetRelative(-this._numRows)},e.prototype.setNextPage=function(){this.isLastPage()||this.setViewOffsetRelative(this._numRows)},e.prototype.setLastPage=function(){this.isLastPage()||this.setViewOffset(this._totalRows-this._numRows)},e.prototype.isFirstPage=function(){return this._fromRow<=0},e.prototype.isLastPage=function(){return this._fromRow>=this._totalRows-this._numRows},e.prototype.setViewLimit=function(e){this._numRows=parseInt(""+(e>0?e:1e6)),this.ref.markForCheck()},e.prototype.getLastRowOffset=function(){var e=this._fromRow+this._numRows;return e>this._totalRows?this._totalRows:e},e}();h([r.i(n.ContentChildren)(s.a),f("design:type","function"==typeof(v=void 0!==n.QueryList&&n.QueryList)&&v||Object),f("design:paramtypes",["function"==typeof(g=void 0!==n.QueryList&&n.QueryList)&&g||Object])],m.prototype,"modeTemplates",null),h([r.i(n.ContentChildren)(i.a),f("design:type","function"==typeof(y=void 0!==n.QueryList&&n.QueryList)&&y||Object),f("design:paramtypes",["function"==typeof(b=void 0!==n.QueryList&&n.QueryList)&&b||Object])],m.prototype,"columnTemplates",null),h([r.i(n.Input)(),f("design:type",Object),f("design:paramtypes",[Object])],m.prototype,"rows",null),h([r.i(n.Input)(),f("design:type",String),f("design:paramtypes",[String])],m.prototype,"trackByProp",null),h([r.i(n.Input)(),f("design:type",String),f("design:paramtypes",[String])],m.prototype,"filter",null),h([r.i(n.Input)(),f("design:type",Object)],m.prototype,"filterFunction",void 0),h([r.i(n.Input)(),f("design:type",Object)],m.prototype,"sortFunctions",void 0),h([r.i(n.Input)(),f("design:type",String)],m.prototype,"orderByColumn",void 0),m=h([r.i(n.Component)({selector:"ark-data-table",template:r("jkBB"),styles:[r("rZY4")],changeDetection:n.ChangeDetectionStrategy.OnPush,encapsulation:n.ViewEncapsulation.None}),f("design:paramtypes",["function"==typeof(w=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&w||Object])],m);var v,g,y,b,w},"0onv":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("PJh5"));r.n(s);r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.ref=e,this._time=new i.BehaviorSubject(void 0)}return Object.defineProperty(e.prototype,"time",{get:function(){return this._time.getValue()},set:function(e){this._time.next(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._timeSubscription=this._time.subscribe(function(t){e.update()}),this._counter=i.Observable.interval(1e3).map(function(e){return e}),this._counterSubscription=this._counter.subscribe(function(t){return e.update()})},e.prototype.ngOnDestroy=function(){this._timeSubscription.unsubscribe(),this._counterSubscription.unsubscribe()},e.prototype.update=function(){var e=this.toRelativeDate(this.time);e!=this._str&&(this._str=e,this.ref.markForCheck())},e.prototype.toRelativeDate=function(e){return s(new Date(e)).fromNow()},e}();a([r.i(n.Input)(),o("design:type",Object),o("design:paramtypes",[Object])],c.prototype,"time",null),c=a([r.i(n.Component)({selector:"relative-time",template:"{{_str}}",styles:[r("HOjl")],changeDetection:n.ChangeDetectionStrategy.OnPush}),o("design:paramtypes",["function"==typeof(l=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&l||Object])],c);var l},"1DTO":function(e,t){e.exports='
\n
\n

Access Denied

\n

You do not have access to view this page...

\n
\n
'},"38q8":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Qbdm");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this._sanitizer=e}return e.prototype.transform=function(e){return this._sanitizer.bypassSecurityTrustStyle(e)},e}();o=s([r.i(n.Pipe)({name:"sanitizeStyle"}),a("design:paramtypes",["function"==typeof(c=void 0!==i.DomSanitizer&&i.DomSanitizer)&&c||Object])],o);var c},5305:function(e,t,r){"use strict";var n=r("3j3K"),i=r("kZql"),s=r("vwbq");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(){this.width=1024,this.height=1024,this.zoom=s.a().scaleExtent([1,10])}return e.prototype.imageLoaded=function(e){var t=this;this.img=e,this.width=e.naturalWidth,this.height=e.naturalHeight,window.setTimeout(function(){t.resize(),t.redraw()},100)},e.prototype.resize=function(){},e.prototype.zoomed=function(){var e=s.e(this.canvasRef.nativeElement),t=this.canvasRef.nativeElement.getContext("2d");t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,this.width,this.height),t.translate(e.x,e.y),t.scale(e.k,e.k),this.redraw()},e.prototype.redraw=function(){var e=this.canvasRef.nativeElement.getContext("2d");if(e.drawImage(this.img,0,0),null!=this.points)for(var t=0,r=this.points;t/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e}();a([r.i(n.Input)(),o("design:type",String)],c.prototype,"mapName",void 0),a([r.i(n.Input)(),o("design:type",Array)],c.prototype,"points",void 0),a([r.i(n.ViewChild)("myCanvas"),o("design:type","function"==typeof(l=void 0!==n.ElementRef&&n.ElementRef)&&l||Object)],c.prototype,"canvasRef",void 0),c=a([r.i(n.Component)({selector:"arkmap",template:''}),o("design:paramtypes",[])],c);var l},"5xMp":function(e,t){e.exports='\r\n\r\n
\r\n'},"6fYc":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".serverdetails th{white-space:nowrap}.serverdetails td{width:99%}",""]),e.exports=e.exports.toString()},"78nn":function(e,t){e.exports="\r\n

Player

\r\n
\r\n
Profile
\r\n
Creatures
\r\n
Creatures (Cloud)
\r\n
Breeding
\r\n
Crops
\r\n
Electrical Generators
\r\n
Kibbles and Eggs
\r\n
Tribe Log
\r\n
\r\n
"},"7T2B":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){this.callback=new n.EventEmitter,this.confirming=!1}return e.prototype.ngOnInit=function(){},e.prototype.onClick=function(e){var t=this;this.confirming?e.detail>=3&&(window.clearTimeout(this.resetTimeout),this.confirming=!1,this.callback.emit()):(this.confirming=!0,this.resetTimeout=window.setTimeout(function(){t.confirming=!1},5e3))},e}();i([r.i(n.Output)(),s("design:type","function"==typeof(o=void 0!==n.EventEmitter&&n.EventEmitter)&&o||Object)],a.prototype,"callback",void 0),i([r.i(n.Input)(),s("design:type",Number)],a.prototype,"width",void 0),i([r.i(n.ViewChild)("confirmButton"),s("design:type","function"==typeof(c=void 0!==n.ElementRef&&n.ElementRef)&&c||Object)],a.prototype,"confirmButton",void 0),a=i([r.i(n.Component)({selector:"confirm-button",template:r("QaTd"),styles:[r("8Zim")]}),s("design:paramtypes",[])],a);var o,c},"7arz":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"7fuz":function(e,t){e.exports='
\n \n
'},"7uO+":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"7xIs":function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.dataService.hasFeatureAccess("server","players")?this.menu.activate("players"):this.dataService.hasFeatureAccess("server","tribes")?this.menu.activate("tribes"):this.dataService.hasFeatureAccess("server","wildcreatures-statistics")?this.menu.activate("wildcreatures-statistics"):this.dataService.hasFeatureAccess("server","wildcreatures")&&this.menu.activate("wildcreatures")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-server-menu",host:{"[class]":"menu.className"},template:r("MjD/"),styles:[r("oLRk")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},"8Zim":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"8kYA":function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this.dataService=e,this.menuOption=void 0,this.menuVisible=!1,this.className="menucontainer"}return e.prototype.ngOnInit=function(){var e=this;this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe()},e.prototype.activate=function(e){this.dataService.SetMenuOption(e)},e.prototype.active=function(e){return this.menuOption==e},e.prototype.toggleMenu=function(){this.menuVisible=!this.menuVisible},e}();o=s([r.i(n.Component)({selector:"app-menu",template:r("m8aW"),styles:[r("ne8d")]}),a("design:paramtypes",["function"==typeof(c=void 0!==i.a&&i.a)&&c||Object])],o);var c},"8zLQ":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(e){this._elementRef=e,this.clickOutside=new n.EventEmitter}return e.prototype.onClick=function(e,t){if(t){this._elementRef.nativeElement.contains(t)||this.clickOutside.emit(e)}},e}();i([r.i(n.Output)(),s("design:type",Object)],a.prototype,"clickOutside",void 0),i([r.i(n.HostListener)("document:click",["$event","$event.target"]),s("design:type",Function),s("design:paramtypes",[Object,Object]),s("design:returntype",void 0)],a.prototype,"onClick",null),a=i([r.i(n.Directive)({selector:"[clickOutside]"}),s("design:paramtypes",["function"==typeof(o=void 0!==n.ElementRef&&n.ElementRef)&&o||Object])],a);var o},"9kk6":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},ATz5:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("lHWG")),a=r("+Lwu"),o=r("kZql"),c=r("PJh5");r.n(c);r.d(t,"a",function(){return u});var l=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},d=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(){function e(e,t){var r=this;this.httpService=e,this.messageService=t,this._servers=new i.BehaviorSubject(void 0),this.menuOption=new i.BehaviorSubject(void 0),this.theme=new i.BehaviorSubject(void 0),this.ServersUpdated$=new n.EventEmitter,t.serverUpdated$.subscribe(function(e){return r.updateServer(e)})}return Object.defineProperty(e.prototype,"Theme",{get:function(){return this.theme.asObservable()},enumerable:!0,configurable:!0}),e.prototype.SetTheme=function(e){this.theme.next(e)},Object.defineProperty(e.prototype,"MenuOption",{get:function(){return this.menuOption.asObservable()},enumerable:!0,configurable:!0}),e.prototype.SetMenuOption=function(e){this.menuOption.next(e)},e.prototype.getServers=function(){var e=this;return this.httpService.getServers().then(function(t){e.Servers=t;var r=t?t.User:void 0;return e.UserSteamId=r&&r.SteamId?r.SteamId:void 0,e._servers.next(t),e.ServersUpdated$.emit(t),!0}).catch(function(t){return e.Servers=null,e.UserSteamId=void 0,e._servers.next(null),e.ServersUpdated$.emit(null),!1})},e.prototype.updateServer=function(e){this.getServers()},e.prototype.hasFeatureAccess=function(e,t,r){var n=this.Servers?this.Servers.AccessControl:void 0;if(!n)return!1;var i=n[e];if(!i)return!1;var s=i[t];if(!s)return!1;var a=this.Servers?this.Servers.User:void 0,o=a&&a.Roles?a.Roles.slice(0):[];a&&a.SteamId&&a.SteamId==r&&o.push("self");for(var c=function(e){if(s.find(function(t){return e.toLowerCase()===t.toLowerCase()}))return{value:!0}},l=0,d=o;l=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e,t){this.dataService=e,this.router=t}return e.prototype.resolve=function(e,t){var r=this;return this.dataService.getServers().then(function(e){return r.dataService}).catch(function(e){return r.dataService})},e}();c=a([r.i(n.Injectable)(),o("design:paramtypes",["function"==typeof(l=void 0!==s.a&&s.a)&&l||Object,"function"==typeof(d=void 0!==i.b&&i.b)&&d||Object])],c);var l,d},CzL3:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("kZql")),a=r("PJh5");r.n(a);r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(){this._ready=!1,this._wasExpired=!1,this._notificationSent=!1,this._time=new i.BehaviorSubject(void 0),this._notification=new i.BehaviorSubject(void 0),this._loadedAt=a()}return Object.defineProperty(e.prototype,"time",{get:function(){return this._time.getValue()},set:function(e){this._time.next(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"notification",{get:function(){return this._notification.getValue()},set:function(e){this._notification.next(e)},enumerable:!0,configurable:!0}),e.prototype.updateDiff=function(e){e&&(s.a.demo?this._wasExpired=a(new Date(e)).diff(a(new Date(s.a.demoDate)))-a().diff(this._loadedAt)<=0:this._wasExpired=a(new Date(e)).diff(a())<=0,this._notificationSent=!1,this._str=void 0,this._ready=this._wasExpired,this._wasExpired||1!=this.state._completed||(this.state._completed=!1)),s.a.demo?this._diff=e||this.time?a.duration(a(new Date(e||this.time)).diff(a(new Date(s.a.demoDate)))-a().diff(this._loadedAt)):void 0:this._diff=e||this.time?a.duration(a(new Date(e||this.time)).diff(a())):void 0},e.prototype.update=function(){if(!this._diff)return"";if(this._diff.asMilliseconds()<=0){if(!this._notificationSent){if(this.notification&&this.state.imprintNotifications&&!this._wasExpired){new Audio("assets/Alarm01.mp3").play()}this._ready=!0}return this._notificationSent=!0,void(this._str=void 0)}var e=this._diff.seconds(),t=this._diff.minutes(),r=this._diff.hours(),n=Math.floor(this._diff.asDays()),i=[];n>0&&i.push(n+"d"),(n>0||r>0)&&i.push(r+"h"),(n>0||r>0||t>0)&&i.push(t+"m"),i.push(e+"s"),this._str=i.join(" "),this._ready=!1,this.state._completed=!1},e.prototype.ngOnInit=function(){var e=this;this._timeSubscription=this._time.subscribe(function(t){e.updateDiff(t),e.update()}),this._notificationSubscription=this._notification.subscribe(function(e){}),this._counter=i.Observable.interval(1e3).map(function(t){return e.updateDiff(void 0),t}),this._counterSubscription=this._counter.subscribe(function(t){return e.update()})},e.prototype.ngOnDestroy=function(){this._timeSubscription.unsubscribe(),this._notificationSubscription.unsubscribe(),this._counterSubscription.unsubscribe()},e}();o([r.i(n.Input)(),c("design:type",Object)],l.prototype,"state",void 0),o([r.i(n.Input)(),c("design:type",Object),c("design:paramtypes",[Object])],l.prototype,"time",null),o([r.i(n.Input)(),c("design:type",Object),c("design:paramtypes",[Object])],l.prototype,"notification",null),l=o([r.i(n.Component)({selector:"timer",template:'{{_str}}',styles:[r("cPj0")]}),c("design:paramtypes",[])],l)},EEDX:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},EM12:function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n={configJs:'var config = {"webapi":{"port":60001},"webapp":{"defaultTheme":"Dark"}};'}},Fnlp:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0,this.demoMode=!1}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.demoMode="true"==localStorage.getItem("demoMode")},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.toggleDemoMode=function(){var e="true"!=localStorage.getItem("demoMode");this.demoMode=e,localStorage.setItem("demoMode",e+"")},e}();l=o([r.i(n.Component)({selector:"app-developer",template:r("7fuz"),styles:[r("EEDX")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},FxpQ:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e}();l=o([r.i(n.Component)({selector:"app-connection-error",template:r("lRu1"),styles:[r("mf93")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},HOjl:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},Iksp:function(e,t,r){"use strict";var n=r("Qbdm"),i=r("KN8t"),s=r("3j3K"),a=r("NVOs"),o=r("5oXY"),c=r("Fzro"),l=r("3MNG"),d=(r.n(l),r("hHgl")),u=r("YWx4"),p=r("KZxv"),h=r("RiXa"),f=r("qn86"),m=r("JLFQ"),v=r("e/mT"),g=r("5305"),y=r("lHWG"),b=r("0Hpj"),w=r("+Lwu"),S=r("ATz5"),C=r("AcJ7"),O=r("+w0e"),j=r("38q8"),_=r("ilmp"),k=r("8zLQ"),I=r("JKTH"),x=r("8kYA"),A=r("7xIs"),F=r("08Wm"),M=r("lCrv"),R=r("CzL3"),T=r("0onv"),L=r("7T2B"),N=r("+qYp"),P=r("FxpQ"),D=r("Fnlp"),B=r("J8nT"),E=r("kZql");r.d(t,"a",function(){return z});var K=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},U=[{path:"player/:playerid",canActivate:[O.a],data:{name:"player"},children:[{path:"",component:p.a},{path:"",component:h.a,outlet:"menu"}]},{path:"server/:id",canActivate:[O.a],data:{name:"server"},children:[{path:"",component:f.a},{path:"",component:A.a,outlet:"menu"}]},{path:"admin/:id",canActivate:[O.a],data:{name:"admin-server"},children:[{path:"",component:v.a},{path:"",component:F.a,outlet:"menu"}]},{path:"servers",canActivate:[O.a],data:{name:"home"},children:[{path:"",component:m.a},{path:"",component:I.a,outlet:"menu"}]},{path:"developer",component:D.a},{path:"accessdenied",component:N.a},{path:"connectionerror",component:P.a},{path:"",redirectTo:"/servers",pathMatch:"full"}],z=function(){function e(){}return e}();z=K([r.i(s.NgModule)({declarations:[u.a,m.a,g.a,j.a,_.a,k.a,p.a,h.a,f.a,v.a,I.a,x.a,A.a,F.a,M.a,R.a,T.a,L.a,N.a,P.a,D.a],imports:[o.a.forRoot(U),d.a.forRoot(),n.BrowserModule,a.a,c.a,i.a,l.SimpleNotificationsModule.forRoot(),B.a],providers:[[{provide:y.a,useClass:E.a.demo?b.a:y.a}],w.a,S.a,C.a,O.a,{provide:s.LOCALE_ID,useValue:"en-US"}],bootstrap:[u.a]})],z)},J8nT:function(e,t,r){"use strict";var n=r("3j3K"),i=r("2Je8"),s=r("NVOs"),a=r("0jRk"),o=r("jWPz"),c=r("joX7");r.d(t,"a",function(){return d});var l=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},d=function(){function e(){}return e}();d=l([r.i(n.NgModule)({imports:[i.CommonModule,s.a],providers:[],declarations:[a.a,o.a,o.b,o.c,c.a],exports:[a.a,o.a,o.b,o.c,c.a]})],d)},JKTH:function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.menu.activate("overview")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-server-list-menu",host:{"[class]":"menu.className"},template:r("rHbN"),styles:[r("P+hD")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},JLFQ:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0,this.serverCount=0,this.onlinePlayerCount=0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.serversUpdatedSubscription=this.dataService.ServersUpdated$.subscribe(function(t){e.updateData(t)}),this.serverUpdateInterval=window.setInterval(function(){e.dataService.updateServer(null)},6e4),this.updateData(this.dataService.Servers)},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe(),this.serversUpdatedSubscription.unsubscribe(),window.clearInterval(this.serverUpdateInterval)},e.prototype.updateData=function(e){var t=0,r=0;if(e&&e.Servers){t=e.Servers.length;for(var n=0,i=e.Servers;n=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,n,i,s,a,o){this.route=e,this.router=t,this.httpService=n,this.dataService=i,this.messageService=s,this.notificationsService=a,this.ref=o,this.menuOption=void 0,this.theme=void 0,this.imprintNotifications=!1,this.keysGetter=Object.keys,this.loaded=!1,this.showMap=!1,this.creaturesMode="status",this.creatureStates={},this.creaturesSortField="food",this.creaturesAltSortFields="name",this.creaturesSortFunctions={food:function(e,t,n){return r.i(l.c)(e.FoodStatus,t.FoodStatus,n,2)},name:function(e,t,n){return r.i(l.a)(e.Name,t.Name,n)},species:function(e,t,n){return r.i(l.a)(e.Species,t.Species,n)},gender:function(e,t,n){return r.i(l.a)(e.Gender,t.Gender,n)},base_level:function(e,t,n){return r.i(l.b)(e.BaseLevel,t.BaseLevel,!n)},level:function(e,t,n){return r.i(l.b)(e.Level==e.BaseLevel?null:e.Level,t.Level==t.BaseLevel?null:t.Level,!n)},imprint:function(e,t,n){return r.i(l.c)(e.Imprint,t.Imprint,!n,2)},latitude:function(e,t,n){return r.i(l.c)(e.Latitude,t.Latitude,n,1)},longitude:function(e,t,n){return r.i(l.c)(e.Longitude,t.Longitude,n,1)},owner:function(e,t,n){return r.i(l.a)(e.OwnerType,t.OwnerType,n)},stat_health:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.Health:null,void 0!=t.BaseStats?t.BaseStats.Health:null,!n)},stat_stamina:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.Stamina:null,void 0!=t.BaseStats?t.BaseStats.Stamina:null,!n)},stat_oxygen:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.Oxygen:null,void 0!=t.BaseStats?t.BaseStats.Oxygen:null,!n)},stat_food:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.Food:null,void 0!=t.BaseStats?t.BaseStats.Food:null,!n)},stat_weight:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.Weight:null,void 0!=t.BaseStats?t.BaseStats.Weight:null,!n)},stat_melee:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.Melee:null,void 0!=t.BaseStats?t.BaseStats.Melee:null,!n)},stat_speed:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.MovementSpeed:null,void 0!=t.BaseStats?t.BaseStats.MovementSpeed:null,!n)},id1:function(e,t,n){return r.i(l.b)(e.Id1,t.Id1,n)},id2:function(e,t,n){return r.i(l.b)(e.Id1,t.Id1,n)}},this.tribeLogFilterFunction=function(e,t){return null==t||null!=e.Message&&e.Message.toLowerCase().indexOf(t)>=0}}return e.prototype.getPlayer=function(){var e=this;this.httpService.getPlayer(this.steamId).then(function(t){var r=Object.keys(t.Servers);e.serverKey&&void 0!=r.find(function(t){return t==e.serverKey})||(e.serverKey=r.length>0?r[0]:null);var n=Object.keys(t.Clusters);e.clusterKey&&void 0!=n.find(function(t){return t==e.clusterKey})||(e.clusterKey=n.length>0?n[0]:null),e.player=t,e.filterAndSort(),e.sortCluster(),e.filterCluster(),e.loaded=!0,e.ref.detectChanges()}).catch(function(t){e.player=null,e.filteredCreatures=null,e.imprintCreatures=null,e.filteredClusterCreatures=null,e.loaded=!0})},e.prototype.ngOnInit=function(){var e=this;this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.theme$=this.dataService.Theme,this.themeSubscription=this.theme$.subscribe(function(t){e.theme=t}),this.steamId=this.route.snapshot.params.playerid,this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.updateServer(t)}),this.getPlayer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.themeSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.haveMatingCooldown=function(e){return null!=e.NextMating&&new Date(e.NextMating)>new Date},e.prototype.active=function(e){return this.serverKey==e},e.prototype.activate=function(e){this.serverKey=e,this.filterAndSort()},e.prototype.serverWidth=function(){return 100/Object.keys(this.player.Servers).length},e.prototype.activeCluster=function(e){return this.clusterKey==e},e.prototype.activateCluster=function(e){this.clusterKey=e,this.sortCluster(),this.filterCluster()},e.prototype.clusterWidth=function(){return 100/Object.keys(this.player.Clusters).length},e.prototype.sort=function(){var e=this,t="-"!=this.creaturesSortField[0],r=this.creaturesSortFunctions[this.creaturesSortField.replace(/^\-/,"")],n=this.creaturesAltSortFields.split(",").map(function(t){var r={};return r.asc="-"!=t[0],r.sortFunc=e.creaturesSortFunctions[t.replace(/^\-/,"")],r});this.filteredCreatures.sort(function(e,i){var s=r(e,i,t);if(0==s)for(var a=0,o=n;a=0||null!=t.Name&&t.Name.toLowerCase().indexOf(e)>=0})}var t=this.player.Servers[this.serverKey].Creatures.filter(function(e){return null!=e.BabyAge});t.sort(function(e,t){return new Date(e.BabyNextCuddle)new Date(t.BabyNextCuddle)?1:0}),this.imprintCreatures=t;for(var r=[],n=0,i=this.filteredCreatures;nt.Level?-1:e.Level=0||null!=t.Name&&t.Name.toLowerCase().indexOf(e)>=0})}},e.prototype.run=function(){if(null==this.steamId||""==this.steamId)return this.player=null,this.filteredCreatures=null,void(this.imprintCreatures=null);this.getPlayer()},e.prototype.openMap=function(e){this.showMap=!0,e.stopPropagation()},e.prototype.closeMap=function(e){this.showMap=!1},e.prototype.updateServer=function(e){this.getPlayer(),this.showServerUpdateNotification(e)},e.prototype.haveCluster=function(){return null!=this.player&&Object.keys(this.player.Clusters).length>0},e.prototype.sumKibbleAndEggs=function(){return void 0!=this.player.Servers[this.serverKey].KibblesAndEggs?this.player.Servers[this.serverKey].KibblesAndEggs.reduce(function(e,t){return e+t.KibbleCount+t.EggCount},0):0},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.getStateForCreature=function(e){if(e){var t=this.creatureStates[e.Id1+"_"+e.Id2];return t||(t={imprintNotifications:!0},this.creatureStates[e.Id1+"_"+e.Id2]=t),t}},e.prototype.toggleImprintNotificationForCreature=function(e){var t=this.getStateForCreature(e);t.imprintNotifications=!t.imprintNotifications},e.prototype.activeCreaturesMode=function(e){return e==this.creaturesMode},e.prototype.activateCreaturesMode=function(e){this.creaturesMode=e},e.prototype.setCreaturesSort=function(e){var t=this.creaturesSortField==e;this.creaturesSortField=t?"-"+e:e,this.creaturesAltSortFields="latitude"==e?t?"-longitude,name":"longitude,name":"longitude"==e?t?"-latitude,name":"latitude,name":"name",this.sort()},e.prototype.copyCreature=function(e){},e.prototype.getCurrentServer=function(){var e=this;if(this.dataService&&this.dataService.Servers&&this.dataService.Servers.Servers){return this.dataService.Servers.Servers.find(function(t){return t.Key==e.serverKey})}},e.prototype.numCreatureTabs=function(){var e=1;return this.dataService.hasFeatureAccess("player","creatures-basestats",this.steamId)&&(e+=1),this.dataService.hasFeatureAccess("player","creatures-ids",this.steamId)&&(e+=1),e},e.prototype.isTheme=function(e){return this.theme==e},e}();p=d([r.i(n.Component)({selector:"app-player",template:r("jFLX"),styles:[r("S6EL")]}),u("design:paramtypes",["function"==typeof(h=void 0!==i.g&&i.g)&&h||Object,"function"==typeof(f=void 0!==i.b&&i.b)&&f||Object,"function"==typeof(m=void 0!==c.a&&c.a)&&m||Object,"function"==typeof(v=void 0!==a.a&&a.a)&&v||Object,"function"==typeof(g=void 0!==o.a&&o.a)&&g||Object,"function"==typeof(y=void 0!==s.NotificationsService&&s.NotificationsService)&&y||Object,"function"==typeof(b=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&b||Object])],p);var h,f,m,v,g,y,b},MOVZ:function(e,t){function r(e){throw new Error("Cannot find module '"+e+"'.")}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id="MOVZ"},"MjD/":function(e,t){e.exports="\r\n

Server

\r\n
\r\n
Players
\r\n
Tribes
\r\n
Wild Statistics
\r\n
Wild Creatures
\r\n
\r\n
"},"P+hD":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},QMiF:function(e,t){e.exports='\x3c!--
\r\n \r\n

{{currentOwner.Name}}

\r\n
Coords: {{currentArea.Latitude | number:\'1.0-1\'}}, {{currentArea.Longitude | number:\'1.0-1\'}}
\r\n
Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n
{{currentArea.StructureCount | number}} structures
\r\n \r\n
\r\n
--\x3e\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{currentOwner.Name}}

\r\n
\r\n
\r\n
\r\n Coords: {{currentArea.Latitude | number:\'1.0-1\'}}, {{currentArea.Longitude | number:\'1.0-1\'}}
\r\n Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n {{currentArea.StructureCount | number}} structures\r\n
\r\n
\r\n
Destroy this area
\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{currentOwner.Name}}

\r\n
\r\n
\r\n
\r\n Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n {{currentOwner.AreaCount | number}} areas
\r\n {{currentOwner.StructureCount | number}} structures
\r\n {{currentOwner.CreatureCount | number}} creatures\r\n
\r\n
\r\n
Destroy all structures
\r\n
Destroy all creatures
\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{modalInfo.Header}}

\r\n
\r\n
\r\n
\r\n {{modalInfo.Message}}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n

Structures

\r\n
Save World
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n
\r\n

Player/Tribe Locations

\r\n
\r\n
\r\n \x3c!--\r\n --\x3e\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameTypeA#S#C#Last Active
{{owner.Name}}{{owner.Type}}{{owner.AreaCount}}{{owner.StructureCount}}{{owner.CreatureCount}}{{dataService.toRelativeDate(owner.LastActiveTime)}}
\r\n
\r\n
'},QaTd:function(e,t){e.exports=''},RiXa:function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("5oXY"),a=r("ATz5");r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t){this.route=e,this.dataService=t}return e.prototype.ngOnInit=function(){this.steamId=this.route.snapshot.params.playerid,this.dataService.hasFeatureAccess("player","profile",this.steamId)?this.menu.activate("profile"):this.dataService.hasFeatureAccess("player","creatures",this.steamId)?this.menu.activate("creatures"):this.dataService.hasFeatureAccess("player","creatures-cloud",this.steamId)?this.menu.activate("creatures_cloud"):this.dataService.hasFeatureAccess("player","breeding",this.steamId)?this.menu.activate("breeding"):this.dataService.hasFeatureAccess("player","crops",this.steamId)?this.menu.activate("crop_plots"):this.dataService.hasFeatureAccess("player","generators",this.steamId)?this.menu.activate("electrical_generators"):this.dataService.hasFeatureAccess("player","kibbles-eggs",this.steamId)?this.menu.activate("kibbles_and_eggs"):this.dataService.hasFeatureAccess("player","tribelog",this.steamId)&&this.menu.activate("tribelog")},e}();o([r.i(n.ViewChild)("menu"),c("design:type","function"==typeof(d=void 0!==i.a&&i.a)&&d||Object)],l.prototype,"menu",void 0),l=o([r.i(n.Component)({selector:"app-player-menu",host:{"[class]":"menu.className"},template:r("78nn"),styles:[r("7uO+")]}),c("design:paramtypes",["function"==typeof(u=void 0!==s.g&&s.g)&&u||Object,"function"==typeof(p=void 0!==a.a&&a.a)&&p||Object])],l);var d,u,p},S6EL:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},SH1B:function(e,t){e.exports='
\r\n

My Profile

\r\n
\r\n
\r\n

Hello, {{dataService.Servers.User.Name}}

\r\n
\r\n
\r\n

\r\n Find your tames, view base stats and keep track of their food status. Get notified of pending imprints, the amount of fertilizer and gasoline remaining in your crops and generators. This and much more is available in your profile.\r\n

\r\n

View my profile ❯

\r\n
\r\n
\r\n
\r\n
\r\n

Servers

\r\n
\r\n
\r\n

{{server.MapName}} - {{server.Key}}{{server.MapName}} - {{server.Key}}

\r\n
\r\n
\r\n

\r\n Last Update {{server.LastUpdate}}, Next Update {{server.NextUpdate || \'-\'}}\r\n

\r\n

View server ❯

\r\n

Admin ❯

\r\n
\r\n
\r\n
\r\n
\r\n

Online {{onlinePlayerCount}}

\r\n
There are no players online...
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam NameCharacter NameTribe NameDiscord TagServerTime Online
{{player.SteamName}}{{player.CharacterName}}{{player.TribeName}}{{player.DiscordName}}{{server.Key}}{{player.TimeOnline}}
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n

{{server.Name}}{{server.Name}}

\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Address{{server.Address}}
Version{{server.Version}}
Player Slots{{server.OnlinePlayerMax}}
Map{{server.MapName}}
In-Game Day{{server.InGameTime}}
Tamed Creatures{{server.TamedCreatureCount | number}}
Cloud Creatures{{server.CloudCreatureCount | number}}
Wild Creatures{{server.WildCreatureCount | number}}
Structures{{server.StructureCount | number}}
Players{{server.PlayerCount | number}}
Tribes{{server.TribeCount | number}}
Last Update{{server.LastUpdate}}
Next Update{{server.NextUpdate}}
Uptime{{server.ServerStarted ? dataService.toRelativeDate(server.ServerStarted) : \'-\'}}
\r\n
\r\n
\r\n\r\n \x3c!--

{{server.Name}}{{server.Name}}

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Address{{server.Address}}
Version{{server.Version}}
Player Slots{{server.OnlinePlayerMax}}
Map{{server.MapName}}
In-Game Time{{server.InGameTime}}
Tamed Creatures{{server.TamedCreatureCount | number}}
Cloud Creatures{{server.CloudCreatureCount | number}}
Wild Creatures{{server.WildCreatureCount | number}}
Structures{{server.StructureCount | number}}
Players{{server.PlayerCount | number}}
Tribes{{server.TribeCount | number}}
Last Update{{server.LastUpdate}}
Next Update{{server.NextUpdate}}
Uptime{{server.ServerStarted ? dataService.toRelativeDate(server.ServerStarted) : \'-\'}}
\r\n
--\x3e\r\n \r\n

Online {{server.OnlinePlayerCount}}

\r\n
There are no players online...
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam NameCharacter NameTribe NameDiscord TagTime Online
{{player.SteamName}}{{player.CharacterName}}{{player.TribeName}}{{player.DiscordName}}{{player.TimeOnline}}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

External Resources

\r\n
\r\n
\r\n

Wiki

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Taming Calculators

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Creature Library and Breeding Suggestions

\r\n
\r\n \r\n
\r\n
'},YWx4:function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("hHgl")),o=r("+Lwu"),c=r("ATz5"),l=r("lHWG"),d=r("kZql"),u=r("2Je8");r.d(t,"a",function(){return m});var p=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},h=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},m=function(){function e(e,t,r,n,i,s,a){this.doc=e,this.messageService=t,this.dataService=r,this.httpService=n,this.breadcrumbService=i,this.notificationsService=s,this.router=a,this.notificationOptions={position:["top","right"],timeOut:1e3,lastOnBottom:!1},this.showLogin=!1,this.currentUrl="/",this.serversUpdatedBefore=!1,this.loading=!0;var o=this.doc.getElementById("configjs"),c=null;if(null!=d.a.configJsOverride?c=d.a.configJsOverride:"/*[[config]]*/"==o.text&&(c=d.a.configJsDefault),null!=c){var l=this.doc.createElement("script");l.type="text/javascript",l.id="configjs",l.text=c,o.parentNode.replaceChild(l,o)}i.addFriendlyNameForRoute("/accessdenied","Access Denied"),i.addFriendlyNameForRoute("/connectionerror","Connection error"),i.hideRoute("/player"),i.hideRoute("/servers"),i.hideRoute("/server"),i.hideRoute("/admin"),i.addCallbackForRouteRegex("^/player/.+$",this.getNameForPlayer),d.a.demo||t.connect()}return e.prototype.ngOnInit=function(){var e=this;this.dataService.SetTheme(this.getTheme()),this.routerEventsSubscription=this.router.events.subscribe(function(t){e.navigationInterceptor(t)}),this.currentUrl=window.location.href||"/",this.serversUpdatedSubscription=this.dataService.ServersUpdated$.subscribe(function(t){e.serversUpdatedBefore||!t||t.User&&t.User.SteamId||(e.showLogin=!0),e.serversUpdatedBefore=!0})},e.prototype.ngOnDestroy=function(){this.routerEventsSubscription.unsubscribe(),this.serversUpdatedSubscription.unsubscribe()},e.prototype.navigationInterceptor=function(e){e instanceof i.d?this.loading=!0:e instanceof i.c?this.loading=!1:e instanceof i.e?this.loading=!1:e instanceof i.f&&(this.loading=!1)},e.prototype.getNameForPlayer=function(e){return"Player"},e.prototype.getDefaultTheme=function(){var e="undefined"!=typeof config&&"undefined"!==config.webapp&&"string"==typeof config.webapp.defaultTheme?config.webapp.defaultTheme.toLowerCase():void 0;return"light"!=e&&"dark"!=e?"dark":e},e.prototype.getTheme=function(){return localStorage.getItem("theme")||this.getDefaultTheme()},e.prototype.setTheme=function(e){return this.dataService.SetTheme(e),localStorage.setItem("theme",e),!1},e.prototype.openLogin=function(e){this.showLogin=!0,e.stopPropagation(),e.preventDefault()},e.prototype.closeLogin=function(e){this.showLogin=!1},e.prototype.getLoginUrl=function(){return d.a.demo?"":this.httpService.getApiBaseUrl()+"/authentication/login"},e.prototype.getLogoutUrl=function(){return d.a.demo?"":this.httpService.getApiBaseUrl()+"/authentication/logout?returnUrl="+this.currentUrl},e}();m=p([r.i(n.Component)({selector:"body",host:{"[class]":"getTheme()"},template:r("5xMp"),styles:[r("okgc")]}),f(0,r.i(n.Inject)(u.DOCUMENT)),h("design:paramtypes",[Object,"function"==typeof(v=void 0!==o.a&&o.a)&&v||Object,"function"==typeof(g=void 0!==c.a&&c.a)&&g||Object,"function"==typeof(y=void 0!==l.a&&l.a)&&y||Object,"function"==typeof(b=void 0!==a.b&&a.b)&&b||Object,"function"==typeof(w=void 0!==s.NotificationsService&&s.NotificationsService)&&w||Object,"function"==typeof(S=void 0!==i.b&&i.b)&&S||Object])],m);var v,g,y,b,w,S},aijx:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},bKAj:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},bl1B:function(e,t){e.exports="\r\n

Admin|Server

\r\n
\r\n
Structures
\r\n
Players
\r\n
Tribes
\r\n
Fertilized Eggs
\r\n
\r\n
"},cPj0:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"e/mT":function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("ATz5")),o=r("+Lwu"),c=r("lHWG"),l=r("vwbq");r.d(t,"a",function(){return p});var d=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,r,n,i,s){this.route=e,this.router=t,this.httpService=r,this.dataService=n,this.messageService=i,this.notificationsService=s,this.menuOption=void 0,this.loaded=!1,this.loadedStructures=!1,this.loadedFertilizedEggs=!1}return e.prototype.getServer=function(){var e=this;this.httpService.getAdminServer(this.serverKey).then(function(t){e.server=t,e.loaded=!0}).catch(function(t){e.server=null,e.loaded=!0})},e.prototype.getStructures=function(){var e=this;this.httpService.getStructures(this.serverKey).then(function(t){e.structures=t,e.loadedStructures=!0}).catch(function(t){e.structures=void 0,e.loadedStructures=!0})},e.prototype.getListFertilizedEggs=function(){var e=this;this.httpService.adminListFertilizedEggs(this.serverKey).then(function(t){e.spoiledEggsList=t.SpoiledEggList,e.fertilizedEggsList=t.FertilizedEggList,e.fertilizedEggsCount=void 0===t.FertilizedEggsCount?0:t.FertilizedEggsCount,e.spoiledEggsCount=void 0===t.SpoiledEggsCount?0:t.SpoiledEggsCount,e.totalEggCount=e.spoiledEggsCount+e.fertilizedEggsCount,e.loadedFertilizedEggs=!0}).catch(function(t){e.fertilizedEggsList=void 0,e.loadedFertilizedEggs=!0})},e.prototype.ngOnInit=function(){var e=this;this.serverKey=this.route.snapshot.params.id,this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){e.menuOption=t,"structures"==e.menuOption?e.getStructures():"fertilized-eggs"==e.menuOption&&e.getListFertilizedEggs()}),this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){e.serverKey==t&&(e.updateServer(),e.showServerUpdateNotification(t))}),this.getServer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.getTribeMember=function(e){return this.server.Players.find(function(t){return t.SteamId==e})},e.prototype.updateServer=function(){this.getServer()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.showInfoModal=function(e,t){var r={};r.Header=e,r.Message=t,this.modalInfo=r,l.b(this.contextMenu.nativeElement).style("display","block"),l.c&&l.c.stopPropagation()},e.prototype.hideContextMenu=function(){l.b(this.contextMenu.nativeElement).style("display","none"),this.modalInfo=void 0},e.prototype.saveWorld=function(e){var t=this;this.httpService.adminSaveWorld(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyAllEggs=function(e){var t=this;this.httpService.adminDestroyAllEggs(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroySpoiledEggs=function(e){var t=this;this.httpService.adminDestroySpoiledEggs(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e}();d([r.i(n.ViewChild)("contextMenu"),u("design:type","function"==typeof(h=void 0!==n.ElementRef&&n.ElementRef)&&h||Object)],p.prototype,"contextMenu",void 0),p=d([r.i(n.Component)({selector:"app-admin-server",template:r("/Wuq"),styles:[r("7arz")]}),u("design:paramtypes",["function"==typeof(f=void 0!==i.g&&i.g)&&f||Object,"function"==typeof(m=void 0!==i.b&&i.b)&&m||Object,"function"==typeof(v=void 0!==c.a&&c.a)&&v||Object,"function"==typeof(g=void 0!==a.a&&a.a)&&g||Object,"function"==typeof(y=void 0!==o.a&&o.a)&&y||Object,"function"==typeof(b=void 0!==s.NotificationsService&&s.NotificationsService)&&b||Object])],p);var h,f,m,v,g,y,b},"fT+k":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,'.map canvas,.map svg{position:absolute;top:0;left:0;width:100%}rect.overlay{fill:transparent}.wrapper{position:relative}.wrapper:after{padding-top:100%;display:block;content:""}.wrapper .buttons{position:absolute;left:5px;top:5px;opacity:.75;z-index:2}',""]),e.exports=e.exports.toString()},ilmp:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Qbdm");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this._sanitizer=e}return e.prototype.transform=function(e){return this._sanitizer.bypassSecurityTrustHtml(e)},e}();o=s([r.i(n.Pipe)({name:"sanitizeHtml"}),a("design:paramtypes",["function"==typeof(c=void 0!==i.DomSanitizer&&i.DomSanitizer)&&c||Object])],o);var c},jFLX:function(e,t){e.exports='
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given steam id.

\r\n
\r\n
\r\n
\r\n

Servers

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Player

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Character NameGenderTribe NameSteam IdTribe IdLevelEngram PointsLatLngSaved At
{{player?.Servers[serverKey]?.CharacterName}}{{player?.Servers[serverKey]?.Gender}}{{player?.Servers[serverKey]?.TribeName}}{{player?.Servers[serverKey]?.FakeSteamId || player?.Servers[serverKey]?.SteamId}}{{player?.Servers[serverKey]?.TribeId}}{{player?.Servers[serverKey]?.Level}}{{player?.Servers[serverKey]?.EngramPoints | number}}{{player?.Servers[serverKey]?.Latitude | number:\'1.1-1\'}}{{player?.Servers[serverKey]?.Longitude | number:\'1.1-1\'}}{{dataService.toDate(player?.Servers[serverKey]?.SavedAt)}}
\r\n
\r\n
\r\n
\r\n
\r\n

Creatures {{filteredCreatures.length}}

\r\n
\r\n
\r\n
There are no creatures...
\r\n \r\n
\r\n close\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameClassNameSpeciesAliasesGenderBase LevelLevelImprintFoodLatLngStatusOwnerHPSTOXFOWEMESPID1ID2
No matching creatures...
{{creature.Name}}{{creature.ClassName}}{{creature.Species}}{{creature.Aliases}}{{creature.Gender}}{{creature.BaseLevel}}{{creature.Level}}{{creature.Imprint | percent:\'1.0-0\'}}\r\n
\r\n
{{creature.FoodStatus | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{creature.Latitude | number:\'1.1-1\'}}{{creature.Longitude | number:\'1.1-1\'}}\r\n Next mating {{dataService.toRelativeDate(creature.NextMating)}}\r\n
\r\n
\r\n
Baby
\r\n
\r\n
\r\n
{{creature.BabyAge | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
\r\n
cuddle {{dataService.toRelativeDate(creature.BabyNextCuddle)}}
\r\n
\r\n
\r\n
{{creature.OwnerType}}{{creature.BaseStats?.Health}}{{creature.BaseStats?.Stamina}}{{creature.BaseStats?.Oxygen}}{{creature.BaseStats?.Food}}{{creature.BaseStats?.Weight}}{{creature.BaseStats?.Melee}}{{creature.BaseStats?.MovementSpeed}}content_copy{{creature.Id1}}{{creature.Id2}}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Breeding {{imprintCreatures.length}}

\r\n
\r\n
\r\n
There are no baby creatures...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameSpeciesGenderBase LevelImprintProgressFully Grown AtNext Imprint
{{creature.Name}}{{creature.Species}}{{creature.Gender}}{{creature.BaseLevel}}{{creature.Imprint | percent:\'1.0-0\'}}\r\n
\r\n
{{creature.BabyAge | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{dataService.toDate(creature.BabyFullyGrown)}}
\r\n
\r\n \x3c!--

\r\n Last Update {{getCurrentServer().LastUpdate}}, Next Update {{getCurrentServer().NextUpdate || \'-\'}}\r\n

--\x3e\r\n
\r\n
\r\n
\r\n

Kibbles and Eggs {{sumKibbleAndEggs() | number:0.0-0}}

\r\n
\r\n
There are no kibbles or eggs...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameKibblesEggsTotal
{{ke.Name}}{{ke.KibbleCount}}{{ke.EggCount}}{{ke.KibbleCount + ke.EggCount}}
\r\n
\r\n
\r\n
\r\n

Clusters

\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n

Creatures

\r\n
\r\n
There are no creatures in the cloud...
\r\n
\r\n
\r\n
\r\n

Creatures {{filteredClusterCreatures.length}}

\r\n
\r\n
There are no creatures in the cloud...
\r\n
\r\n close\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameSpeciesLevel
No matching creatures...
{{creature.Name}}{{creature.Species}}{{creature.Level}}
\r\n
\r\n
\r\n
\r\n
\r\n

Crops

\r\n
\r\n
There are no crops...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CropSizeFertilizer %Fertilizer UnitsWaterLatLng
{{(cp.PlantedCropName || cp.PlantedCropClassName)}}{{cp.Size}}\r\n
\r\n
{{(cp.FertilizerQuantity / cp.FertilizerMax) | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{cp.FertilizerQuantity | number}}{{cp.WaterAmount | number:\'1.0-0\'}}{{cp.Latitude | number:\'1.1-1\'}}{{cp.Longitude | number:\'1.1-1\'}}
\r\n
\r\n
\r\n
\r\n
\r\n

Electrical Generators

\r\n
\r\n
There are no electrical generators...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Gasoline %Gasoline QuantityActivatedLatLng
\r\n
\r\n
{{(eg.GasolineQuantity / 800.0) | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{eg.GasolineQuantity | number}}{{(eg.Activated == true ? "Yes" : "No")}}{{eg.Latitude | number:\'1.1-1\'}}{{eg.Longitude | number:\'1.1-1\'}}
\r\n
\r\n
\r\n
\r\n
\r\n

Tribe Log

\r\n
\r\n
There are no tribe logs...
\r\n \r\n
\r\n close\r\n \r\n
\r\n \r\n \r\n \r\n \r\n Day\r\n \r\n \r\n {{log.Day}}\r\n \r\n \r\n \r\n \r\n Time\r\n \r\n \r\n {{log.Time}}\r\n \r\n \r\n \r\n \r\n Message\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n'},jWPz:function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"c",function(){return a}),r.d(t,"b",function(){return o}),r.d(t,"a",function(){return c});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(e){this.template=e}return e}();a=i([r.i(n.Directive)({selector:"[ark-dt-cell]"}),s("design:paramtypes",["function"==typeof(l=void 0!==n.TemplateRef&&n.TemplateRef)&&l||Object])],a);var o=function(){function e(e){this.template=e}return e}();o=i([r.i(n.Directive)({selector:"[ark-dt-header]"}),s("design:paramtypes",["function"==typeof(d=void 0!==n.TemplateRef&&n.TemplateRef)&&d||Object])],o);var c=function(){function e(){}return e}();i([r.i(n.Input)(),r.i(n.ContentChild)(a,{read:n.TemplateRef}),s("design:type","function"==typeof(u=void 0!==n.TemplateRef&&n.TemplateRef)&&u||Object)],c.prototype,"cellTemplate",void 0),i([r.i(n.Input)(),r.i(n.ContentChild)(o,{read:n.TemplateRef}),s("design:type","function"==typeof(p=void 0!==n.TemplateRef&&n.TemplateRef)&&p||Object)],c.prototype,"headerTemplate",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"mode",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"key",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"thenSort",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"title",void 0),i([r.i(n.Input)(),s("design:type",Boolean)],c.prototype,"orderBy",void 0),c=i([r.i(n.Directive)({selector:"ark-dt-column"})],c);var l,d,u,p},jkBB:function(e,t){e.exports='
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n
No matching entries...
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n «\r\n \r\n \r\n  {{_fromRow}} - {{getLastRowOffset()}} of {{_totalRows}} \r\n »\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
'},joX7:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl");r.n(i);r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(){this.enabled=i.Observable.of(!0)}return Object.defineProperty(e.prototype,"columnKeys",{set:function(e){this._columnKeys=e,this.ColumnKeys=this._columnKeys.split(",")},enumerable:!0,configurable:!0}),e}();s([r.i(n.Input)(),a("design:type",String)],o.prototype,"key",void 0),s([r.i(n.Input)(),a("design:type",String)],o.prototype,"name",void 0),s([r.i(n.Input)(),a("design:type","function"==typeof(c=void 0!==i.Observable&&i.Observable)&&c||Object)],o.prototype,"enabled",void 0),s([r.i(n.Input)(),a("design:type",String),a("design:paramtypes",[String])],o.prototype,"columnKeys",null),o=s([r.i(n.Directive)({selector:"ark-dt-mode"})],o);var c},kZql:function(e,t,r){"use strict";var n=r("EM12");r.d(t,"a",function(){return i});var i={production:!0,demo:!1,demoDate:null,configJsOverride:null,configJsDefault:n.a.configJs,apiBaseUrl:"//:/api",signalrBaseUrl:"//:/signalr"}},lCrv:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("ATz5")),a=r("lHWG"),o=r("kZql"),c=r("vwbq"),l=r("PJh5");r.n(l);r.d(t,"a",function(){return p});var d=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,r){this.dataService=e,this.httpService=t,this.zone=r,this._structures=new i.BehaviorSubject(void 0),this.keysGetter=Object.keys,this.ownerSortField="locations",this.ownerSortFunctions={locations:function(e,t){return e.AreaCount>t.AreaCount?-1:e.AreaCountt.StructureCount?-1:e.StructureCountt.StructureCount?-1:e.StructureCountt.LastActiveTime||void 0==t.LastActiveTime?1:0}},this.width=1024,this.height=1024,this.zoom=c.a().scaleExtent([1,8])}return Object.defineProperty(e.prototype,"structures",{get:function(){return this._structures.getValue()},set:function(e){this._structures.next(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._structuresSubscription=this._structures.subscribe(function(t){return e.update(t)});var t=this.mapContainer.nativeElement;this.map={},this.map.canvas=c.b(t).append("canvas").attr("width",1024).attr("height",1024).node().getContext("2d"),this.map.svg=c.b(t).append("svg").attr("viewBox","0 0 1024 1024").attr("preserveAspectRatio","xMidYMid").append("g").on("contextmenu",function(e,t){c.c.preventDefault()}),this.map.svg.append("rect").attr("class","overlay").attr("width",1024).attr("height",1024),this.map.x=c.d().domain([0,1024]).range([0,1024]),this.map.y=c.d().domain([0,1024]).range([0,1024]),c.b(t).call(this.zoom.on("zoom",function(){e.hideContextMenu(),e.redraw()})).on("wheel.zoom",null),this.structures&&this.updateMap()},e.prototype.ngOnDestroy=function(){this._structuresSubscription.unsubscribe()},e.prototype.zoomIn=function(){this.zoom.scaleBy(c.b(this.mapContainer.nativeElement),1.2)},e.prototype.zoomOut=function(){this.zoom.scaleBy(c.b(this.mapContainer.nativeElement),.8)},e.prototype.updateSelection=function(){var e=this;this.map.svg.circle.attr("display",function(t){var r=e.structures.Owners[t.OwnerId];return t.Removed||r.Removed||e.selectedOwner&&(!e.selectedOwner||e.selectedOwner.Id!=t.OwnerId)?"none":"block"}),this.redraw()},e.prototype.update=function(e){this.sortOwners(e),this.map&&this.updateMap()},e.prototype.sortOwners=function(e){var t=this.ownerSortFunctions[this.ownerSortField];if(e){var r=e.Owners.slice();r.sort(t),this.ownersSorted=r}else this.ownersSorted=void 0},e.prototype.updateMap=function(){var e=this;this.map.svg.nodes=this.structures.Areas,this.map.svg.draw=function(){e.map.svg.circle=e.map.svg.selectAll("circle").data(e.map.svg.nodes).enter().append("circle").attr("r",function(e){return e.RadiusPx<2?2:e.RadiusPx}).attr("fill","transparent").attr("stroke",function(t){var r=e.structures.Owners[t.OwnerId];return!!r.LastActiveTime&&l(new Date(r.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(t.StructureCount>=100||t.TrashQuota<.5&&t.StructureCount>=10)?"magenta":"red"}).attr("stroke-width",function(t){var r=e.structures.Owners[t.OwnerId];return!!r.LastActiveTime&&l(new Date(r.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(t.StructureCount>=100||t.TrashQuota<.5&&t.StructureCount>=10)?3:2}).attr("transform",e.map.svg.transform),e.map.svg.circle.on("click",function(t){c.c.preventDefault();var r={};r.x=c.c.pageX,r.y=c.c.pageY,e.showAreaModal(t,r)}),e.map.svg.circle.append("svg:title").text(function(t){var r=e.structures.Owners[t.OwnerId],n=r.LastActiveTime?l(new Date(r.LastActiveTime)).fromNow():null;return r.Name+": "+t.StructureCount+" structures\nCoords: "+t.Latitude+", "+t.Longitude+"\n"+(n?"Last active: "+n+"\n":"")+"---\n"+t.Structures.map(function(t){var r=e.structures.Types[t.t];return t.c+": "+(r?r.Name:t.t)}).join("\n")})},this.map.svg.draw(),this.map.svg.transform=function(t){return"translate("+e.map.x(t.TopoMapX)+","+e.map.y(t.TopoMapY)+")"},this.map.svg.circle.attr("transform",this.map.svg.transform)},e.prototype.imageLoaded=function(e){var t=this;this.img=e,this.width=e?e.naturalWidth:1024,this.height=e?e.naturalHeight:1024,window.setTimeout(function(){t.resize(),t.redraw()},100)},e.prototype.resize=function(){},e.prototype.redraw=function(){var e=this,t=c.e(this.mapContainer.nativeElement);this.map.svg.attr("transform","translate("+t.x+","+t.y+") scale("+t.k+")"),t.k!=this.prevTransformK&&this.map.svg.circle.attr("stroke-width",function(r){var n=e.structures.Owners[r.OwnerId];return(!!n.LastActiveTime&&l(new Date(n.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(r.StructureCount>=100||r.TrashQuota<.5&&r.StructureCount>=10)?3:2)/t.k});var r=this.map.canvas;r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,1024,1024),r.translate(t.x,t.y),r.scale(t.k,t.k),this.img&&r.drawImage(this.img,0,0),this.prevTransformK=t.k},e.prototype.ngOnChanges=function(e){var t=this;if(null!=this.mapName){var r=new Image;r.onload=function(){return t.imageLoaded(r)},r.onerror=function(){return t.imageLoaded(void 0)},r.src=o.a.demo?"assets/demo/Ragnarok.jpg":this.getApiBaseUrl()+"/map/"+this.mapName,r.complete&&(r.onload=null,r.onerror=null,this.imageLoaded(r))}},e.prototype.getApiBaseUrl=function(){return o.a.apiBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e.prototype.reset=function(){this.selectedOwner=void 0,this.updateSelection()},e.prototype.setSelectedOwner=function(e){this.selectedOwner=e,this.updateSelection()},e.prototype.setOwnerSort=function(e){this.ownerSortField=e,this.sortOwners(this.structures)},e.prototype.showAreaModal=function(e,t){this.currentArea=e,this.currentOwner=this.structures.Owners[e.OwnerId],c.b(this.contextMenu.nativeElement).style("display","block"),c.c&&c.c.stopPropagation()},e.prototype.showOwnerModal=function(e,t){this.currentOwner=t,c.b(this.contextMenu.nativeElement).style("display","block"),e.stopPropagation()},e.prototype.showInfoModal=function(e,t){var r={};r.Header=e,r.Message=t,this.modalInfo=r,c.b(this.contextMenu.nativeElement).style("display","block"),c.c&&c.c.stopPropagation()},e.prototype.hideContextMenu=function(){c.b(this.contextMenu.nativeElement).style("display","none"),this.currentArea=void 0,this.currentOwner=void 0,this.modalInfo=void 0},e.prototype.destroyCurrentArea=function(e){var t=this;this.httpService.adminDestroyStructuresForTeamIdAtPosition(this.serverKey,this.currentOwner.OwnerId,this.currentArea.X,this.currentArea.Y,+this.currentArea.RadiusUu+1e3,1).then(function(e){t.currentArea.Removed=!0,t.currentOwner.AreaCount-=1,t.currentOwner.StructureCount-=t.currentArea.StructureCount,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyAllStructuresForTeam=function(e){var t=this;this.httpService.adminDestroyAllStructuresForTeamId(this.serverKey,this.currentOwner.OwnerId).then(function(e){t.currentOwner.Removed=!0,t.currentOwner.AreaCount=0,t.currentOwner.StructureCount=0,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyDinosForTeam=function(e){var t=this;this.httpService.adminDestroyDinosForTeamId(this.serverKey,this.currentOwner.OwnerId).then(function(e){t.currentOwner.CreatureCount=0,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.saveWorld=function(e){var t=this;this.httpService.adminSaveWorld(this.serverKey).then(function(e){t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e}();d([r.i(n.Input)(),u("design:type",Object),u("design:paramtypes",[Object])],p.prototype,"structures",null),d([r.i(n.Input)(),u("design:type",String)],p.prototype,"serverKey",void 0),d([r.i(n.Input)(),u("design:type",String)],p.prototype,"mapName",void 0),d([r.i(n.ViewChild)("map"),u("design:type","function"==typeof(h=void 0!==n.ElementRef&&n.ElementRef)&&h||Object)],p.prototype,"mapContainer",void 0),d([r.i(n.ViewChild)("contextMenu"),u("design:type","function"==typeof(f=void 0!==n.ElementRef&&n.ElementRef)&&f||Object)],p.prototype,"contextMenu",void 0),p=d([r.i(n.Component)({selector:"arkmap-structures",template:r("QMiF"),styles:[r("fT+k")],encapsulation:n.ViewEncapsulation.None}),u("design:paramtypes",["function"==typeof(m=void 0!==s.a&&s.a)&&m||Object,"function"==typeof(v=void 0!==a.a&&a.a)&&v||Object,"function"==typeof(g=void 0!==n.NgZone&&n.NgZone)&&g||Object])],p);var h,f,m,v,g},lHWG:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Fzro"),s=r("eErF"),a=(r.n(s),r("kZql"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e){this.http=e,this.headers=new i.c({"Content-Type":"application/json"}),this.serversUrl="/servers",this.serverUrl="/server",this.wildCreaturesUrl="/wildcreatures",this.structuresUrl="/structures",this.adminServerUrl="/adminserver",this.administerUrl="/administer",this.playerUrl="/player"}return e.prototype.getOptions=function(){var e="true"==localStorage.getItem("demoMode"),t=new i.d({withCredentials:!0});return e&&(t.headers||(t.headers=new i.c),t.headers.append("demoMode","true")),t},e.prototype.getServers=function(){return this.http.get(""+this.getApiBaseUrl()+this.serversUrl+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getServer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.serverUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getWildCreatures=function(e){return this.http.get(""+this.getApiBaseUrl()+this.wildCreaturesUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getStructures=function(e){return this.http.get(""+this.getApiBaseUrl()+this.structuresUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getPlayer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.playerUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getAdminServer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.adminServerUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyAllStructuresForTeamId=function(e,t){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyAllStructuresForTeamId/"+e+"?teamId="+t+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyStructuresForTeamIdAtPosition=function(e,t,r,n,i,s){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyStructuresForTeamIdAtPosition/"+e+"?teamId="+t+"&x="+r+"&y="+n+"&radius="+i+"&rafts="+s+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyDinosForTeamId=function(e,t){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyDinosForTeamId/"+e+"?teamId="+t+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminSaveWorld=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/SaveWorld/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminListFertilizedEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DroppedEggsList/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyAllEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyAllEggs/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroySpoiledEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroySpoiledEggs/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getApiBaseUrl=function(){return a.a.apiBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e.prototype.handleError=function(e){return Promise.reject(e.message||e)},e}();l=o([r.i(n.Injectable)(),c("design:paramtypes",["function"==typeof(d=void 0!==i.b&&i.b)&&d||Object])],l);var d},lRu1:function(e,t){e.exports='
\n
\n

Connection error

\n

The application was unable to connect to the Web API. This could be due to a configuration error...

\n
\n
'},m8aW:function(e,t){e.exports=''},mf93:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},ne8d:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},oLRk:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},okgc:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},qn86:function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("PJh5")),o=(r.n(a),r("ATz5")),c=r("+Lwu"),l=r("lHWG"),d=r("+rAa");r.d(t,"a",function(){return h});var u=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},p=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},h=function(){function e(e,t,n,i,s,a,o){this.route=e,this.router=t,this.httpService=n,this.dataService=i,this.messageService=s,this.notificationsService=a,this.ref=o,this.menuOption=void 0,this.loaded=!1,this.creaturesLoaded=!1,this.keysGetter=Object.keys,this.showMap=!1,this.creaturesMode="status",this.creaturesSortField="base_level",this.creaturesAltSortFields="base_level,gender",this.creaturesSortFunctions={gender:function(e,t,n){return r.i(d.a)(e.Gender,t.Gender,n)},base_level:function(e,t,n){return r.i(d.b)(e.BaseLevel,t.BaseLevel,!n)},tameable:function(e,t,n){return r.i(d.b)(e.IsTameable,t.IsTameable,!n)},latitude:function(e,t,n){return r.i(d.c)(e.Latitude,t.Latitude,n,1)},longitude:function(e,t,n){return r.i(d.c)(e.Longitude,t.Longitude,n,1)},x:function(e,t,n){return r.i(d.c)(e.X,t.X,n,0)},y:function(e,t,n){return r.i(d.c)(e.Y,t.Y,n,0)},z:function(e,t,n){return r.i(d.c)(e.Z,t.Z,n,0)},stat_health:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.Health:null,void 0!=t.BaseStats?t.BaseStats.Health:null,!n)},stat_stamina:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.Stamina:null,void 0!=t.BaseStats?t.BaseStats.Stamina:null,!n)},stat_oxygen:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.Oxygen:null,void 0!=t.BaseStats?t.BaseStats.Oxygen:null,!n)},stat_food:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.Food:null,void 0!=t.BaseStats?t.BaseStats.Food:null,!n)},stat_weight:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.Weight:null,void 0!=t.BaseStats?t.BaseStats.Weight:null,!n)},stat_melee:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.Melee:null,void 0!=t.BaseStats?t.BaseStats.Melee:null,!n)},stat_speed:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.MovementSpeed:null,void 0!=t.BaseStats?t.BaseStats.MovementSpeed:null,!n)},id1:function(e,t,n){return r.i(d.b)(e.Id1,t.Id1,n)},id2:function(e,t,n){return r.i(d.b)(e.Id1,t.Id1,n)}},this.playerSortFunctions={character_name:function(e,t,n){return r.i(d.a)(e.CharacterName,t.CharacterName,n)},tribe_name:function(e,t,n){return r.i(d.a)(e.TribeName,t.TribeName,n)},last_active:function(e,t,n){return r.i(d.b)(e.LastActiveTime,t.LastActiveTime,!n)}},this.tribeSortFunctions={tribe_name:function(e,t,n){return r.i(d.a)(e.Name,t.Name,n)},last_active:function(e,t,n){return r.i(d.b)(e.LastActiveTime,t.LastActiveTime,!n)}},this.wildStatisticsSortFunctions={species:function(e,t,n){return r.i(d.a)(e.Name,t.Name,n)},class_name:function(e,t,n){return r.i(d.a)(e.ClassName,t.ClassName,n)},count:function(e,t,n){return r.i(d.b)(e.Count,t.Count,!n)},fraction:function(e,t,n){return r.i(d.c)(e.Fraction,t.Fraction,!n,4)}}}return e.prototype.getServer=function(){var e=this;this.httpService.getServer(this.serverKey).then(function(t){e.server=t,e.filter(),e.loaded=!0}).catch(function(t){e.server=null,e.filteredPlayers=null,e.filteredTribes=null,e.loaded=!0})},e.prototype.getWildCreatures=function(){var e=this;this.httpService.getWildCreatures(this.serverKey).then(function(t){e.wild=t,e.species=Object.keys(e.wild.Species).sort(function(t,n){return r.i(d.a)(e.wild.Species[t].Name||t,e.wild.Species[n].Name||n,!0)}),e.selectedSpecies&&void 0!=e.species.find(function(t){return t==e.selectedSpecies})||(e.selectedSpecies=e.species.length>0?e.species[0]:null),e.filterAndSortWild(),e.creaturesLoaded=!0,e.ref.detectChanges()}).catch(function(t){e.wild=null,e.species=null,e.filteredCreatures=null,e.creaturesLoaded=!0})},e.prototype.ngOnInit=function(){var e=this;this.accessControl_pages_player=this.dataService.hasFeatureAccessObservable("pages","player"),this.serverKey=this.route.snapshot.params.id,this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){e.menuOption=t,0!=e.creaturesLoaded||"wildcreatures"!=e.menuOption&&"wildcreatures-statistics"!=e.menuOption||e.getWildCreatures()}),this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){e.serverKey==t&&(e.updateServer(),e.showServerUpdateNotification(t))}),this.getServer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.filter=function(){var e=this.dataService.getCurrentDate(),t=e.subtract(90,"day");this.filteredPlayers=this.server.Players.filter(function(e){return a(new Date(e.LastActiveTime)).isSameOrAfter(t)}),this.filteredTribes=this.server.Tribes.filter(function(e){return a(new Date(e.LastActiveTime)).isSameOrAfter(t)})},e.prototype.sortWild=function(){var e=this,t="-"!=this.creaturesSortField[0],r=this.creaturesSortFunctions[this.creaturesSortField.replace(/^\-/,"")],n=this.creaturesAltSortFields.split(",").map(function(t){var r={};return r.asc="-"!=t[0],r.sortFunc=e.creaturesSortFunctions[t.replace(/^\-/,"")],r});void 0!=this.filteredCreatures&&this.filteredCreatures.sort(function(e,i){var s=r(e,i,t);if(0==s)for(var a=0,o=n;aOverview\r\n \r\n
{{server.Key}}
\r\n
\r\n \r\n'},rZY4:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"tr th.orderBy{cursor:pointer}a.w3-button.disabled{color:#a9a9a9}a.w3-button.disabled:hover{color:#a9a9a9!important;background-color:transparent!important;opacity:1!important;cursor:default}",""]),e.exports=e.exports.toString()},uslO:function(e,t,r){function n(e){return r(i(e))}function i(e){var t=s[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}var s={"./af":"3CJN","./af.js":"3CJN","./ar":"3MVc","./ar-dz":"tkWw","./ar-dz.js":"tkWw","./ar-kw":"j8cJ","./ar-kw.js":"j8cJ","./ar-ly":"wPpW","./ar-ly.js":"wPpW","./ar-ma":"dURR","./ar-ma.js":"dURR","./ar-sa":"7OnE","./ar-sa.js":"7OnE","./ar-tn":"BEem","./ar-tn.js":"BEem","./ar.js":"3MVc","./az":"eHwN","./az.js":"eHwN","./be":"3hfc","./be.js":"3hfc","./bg":"lOED","./bg.js":"lOED","./bm":"hng5","./bm.js":"hng5","./bn":"aM0x","./bn.js":"aM0x","./bo":"w2Hs","./bo.js":"w2Hs","./br":"OSsP","./br.js":"OSsP","./bs":"aqvp","./bs.js":"aqvp","./ca":"wIgY","./ca.js":"wIgY","./cs":"ssxj","./cs.js":"ssxj","./cv":"N3vo","./cv.js":"N3vo","./cy":"ZFGz","./cy.js":"ZFGz","./da":"YBA/","./da.js":"YBA/","./de":"DOkx","./de-at":"8v14","./de-at.js":"8v14","./de-ch":"Frex","./de-ch.js":"Frex","./de.js":"DOkx","./dv":"rIuo","./dv.js":"rIuo","./el":"CFqe","./el.js":"CFqe","./en-SG":"oYA3","./en-SG.js":"oYA3","./en-au":"Sjoy","./en-au.js":"Sjoy","./en-ca":"Tqun","./en-ca.js":"Tqun","./en-gb":"hPuz","./en-gb.js":"hPuz","./en-ie":"ALEw","./en-ie.js":"ALEw","./en-il":"QZk1","./en-il.js":"QZk1","./en-nz":"dyB6","./en-nz.js":"dyB6","./eo":"Nd3h","./eo.js":"Nd3h","./es":"LT9G","./es-do":"7MHZ","./es-do.js":"7MHZ","./es-us":"INcR","./es-us.js":"INcR","./es.js":"LT9G","./et":"XlWM","./et.js":"XlWM","./eu":"sqLM","./eu.js":"sqLM","./fa":"2pmY","./fa.js":"2pmY","./fi":"nS2h","./fi.js":"nS2h","./fo":"OVPi","./fo.js":"OVPi","./fr":"tzHd","./fr-ca":"bXQP","./fr-ca.js":"bXQP","./fr-ch":"VK9h","./fr-ch.js":"VK9h","./fr.js":"tzHd","./fy":"g7KF","./fy.js":"g7KF","./ga":"U5Iz","./ga.js":"U5Iz","./gd":"nLOz","./gd.js":"nLOz","./gl":"FuaP","./gl.js":"FuaP","./gom-latn":"+27R","./gom-latn.js":"+27R","./gu":"rtsW","./gu.js":"rtsW","./he":"Nzt2","./he.js":"Nzt2","./hi":"ETHv","./hi.js":"ETHv","./hr":"V4qH","./hr.js":"V4qH","./hu":"xne+","./hu.js":"xne+","./hy-am":"GrS7","./hy-am.js":"GrS7","./id":"yRTJ","./id.js":"yRTJ","./is":"upln","./is.js":"upln","./it":"FKXc","./it-ch":"/E8D","./it-ch.js":"/E8D","./it.js":"FKXc","./ja":"ORgI","./ja.js":"ORgI","./jv":"JwiF","./jv.js":"JwiF","./ka":"RnJI","./ka.js":"RnJI","./kk":"j+vx","./kk.js":"j+vx","./km":"5j66","./km.js":"5j66","./kn":"gEQe","./kn.js":"gEQe","./ko":"eBB/","./ko.js":"eBB/","./ku":"kI9l","./ku.js":"kI9l","./ky":"6cf8","./ky.js":"6cf8","./lb":"z3hR","./lb.js":"z3hR","./lo":"nE8X","./lo.js":"nE8X","./lt":"/6P1","./lt.js":"/6P1","./lv":"jxEH","./lv.js":"jxEH","./me":"svD2","./me.js":"svD2","./mi":"gEU3","./mi.js":"gEU3","./mk":"Ab7C","./mk.js":"Ab7C","./ml":"oo1B","./ml.js":"oo1B","./mn":"CqHt","./mn.js":"CqHt","./mr":"5vPg","./mr.js":"5vPg","./ms":"ooba","./ms-my":"G++c","./ms-my.js":"G++c","./ms.js":"ooba","./mt":"oCzW","./mt.js":"oCzW","./my":"F+2e","./my.js":"F+2e","./nb":"FlzV","./nb.js":"FlzV","./ne":"/mhn","./ne.js":"/mhn","./nl":"3K28","./nl-be":"Bp2f","./nl-be.js":"Bp2f","./nl.js":"3K28","./nn":"C7av","./nn.js":"C7av","./pa-in":"pfs9","./pa-in.js":"pfs9","./pl":"7LV+","./pl.js":"7LV+","./pt":"ZoSI","./pt-br":"AoDM","./pt-br.js":"AoDM","./pt.js":"ZoSI","./ro":"wT5f","./ro.js":"wT5f","./ru":"ulq9","./ru.js":"ulq9","./sd":"fW1y","./sd.js":"fW1y","./se":"5Omq","./se.js":"5Omq","./si":"Lgqo","./si.js":"Lgqo","./sk":"OUMt","./sk.js":"OUMt","./sl":"2s1U","./sl.js":"2s1U","./sq":"V0td","./sq.js":"V0td","./sr":"f4W3","./sr-cyrl":"c1x4","./sr-cyrl.js":"c1x4","./sr.js":"f4W3","./ss":"7Q8x","./ss.js":"7Q8x","./sv":"Fpqq","./sv.js":"Fpqq","./sw":"DSXN","./sw.js":"DSXN","./ta":"+7/x","./ta.js":"+7/x","./te":"Nlnz","./te.js":"Nlnz","./tet":"gUgh","./tet.js":"gUgh","./tg":"5SNd","./tg.js":"5SNd","./th":"XzD+","./th.js":"XzD+","./tl-ph":"3LKG","./tl-ph.js":"3LKG","./tlh":"m7yE","./tlh.js":"m7yE","./tr":"k+5o","./tr.js":"k+5o","./tzl":"iNtv","./tzl.js":"iNtv","./tzm":"FRPF","./tzm-latn":"krPU","./tzm-latn.js":"krPU","./tzm.js":"FRPF","./ug-cn":"To0v","./ug-cn.js":"To0v","./uk":"ntHu","./uk.js":"ntHu","./ur":"uSe8","./ur.js":"uSe8","./uz":"XU1s","./uz-latn":"/bsm","./uz-latn.js":"/bsm","./uz.js":"XU1s","./vi":"0X8Q","./vi.js":"0X8Q","./x-pseudo":"e/KL","./x-pseudo.js":"e/KL","./yo":"YXlc","./yo.js":"YXlc","./zh-cn":"Vz2w","./zh-cn.js":"Vz2w","./zh-hk":"ZUyn","./zh-hk.js":"ZUyn","./zh-tw":"BbgG","./zh-tw.js":"BbgG"};n.keys=function(){return Object.keys(s)},n.resolve=i,e.exports=n,n.id="uslO"},x35b:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("3j3K"),i=r("O61y"),s=r("Iksp");r("kZql").a.production&&r.i(n.enableProdMode)(),r.i(i.a)().bootstrapModule(s.a)},xEL3:function(e,t){e.exports='
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given server key.

\r\n
\r\n
\r\n
\r\n

Players

\r\n \r\n \r\n \r\n \r\n Character Name\r\n \r\n \r\n {{player.CharacterName}}{{player.CharacterName}}\r\n \r\n \r\n \r\n \r\n Tribe Name\r\n \r\n \r\n {{player.TribeName}}\r\n \r\n \r\n \r\n \r\n Last Active\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n

Tribes

\r\n \r\n \r\n \r\n \r\n Tribe Name\r\n \r\n \r\n {{tribe.Name}}\r\n \r\n \r\n \r\n \r\n Members\r\n \r\n \r\n {{getTribeMember(member)?.CharacterName || member}}{{getTribeMember(member)?.CharacterName || member}}, \r\n \r\n \r\n \r\n \r\n Last Active\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n

Wild Statistics {{(wild.Statistics.Species?.length || 0) | number}}

\r\n \r\n \r\n \r\n \r\n Species\r\n \r\n \r\n {{species.Name}}\r\n \r\n \r\n \r\n \r\n Class Name\r\n \r\n \r\n {{species.ClassName}}\r\n \r\n \r\n \r\n \r\n Aliases\r\n \r\n \r\n {{species.Aliases.length > 0 ? species.Aliases.join(\', \') : \'\'}}\r\n \r\n \r\n \r\n \r\n Count\r\n \r\n \r\n {{species.Count | number}}\r\n \r\n \r\n \r\n \r\n Fraction\r\n \r\n \r\n {{species.Fraction | percent:\'1.0-4\'}}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n

Wild Creatures {{(filteredCreatures?.length || 0) | number}} / {{(wild?.Statistics?.CreatureCount || 0) | number}}

\r\n
\r\n
\r\n
There are no creatures...
\r\n \r\n \r\n \x3c!--
\r\n close\r\n \r\n
--\x3e\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
GenderBase LevelTameableXYZLatLngHPSTOXFOWEMESPID1ID2
No matching creatures...
{{creature.Gender}}{{creature.BaseLevel}}{{(wild.Species[selectedSpecies].IsTameable && creature.IsTameable == true ? "Yes" : "No")}}{{creature.X}}{{creature.Y}}{{creature.Z}}{{creature.Latitude | number:\'1.1-1\'}}{{creature.Longitude | number:\'1.1-1\'}}{{creature.BaseStats?.Health}}{{creature.BaseStats?.Stamina}}{{creature.BaseStats?.Oxygen}}{{creature.BaseStats?.Food}}{{creature.BaseStats?.Weight}}{{creature.BaseStats?.Melee}}{{creature.BaseStats?.MovementSpeed}}content_copy{{creature.Id1}}{{creature.Id2}}
\r\n
\r\n
\r\n
\r\n'}},[0]); \ No newline at end of file +webpackJsonp([1,5],{"+Lwu":function(e,t,r){"use strict";var n=r("3j3K"),i=r("kZql");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this.zone=e,this.serverUpdated$=new n.EventEmitter}return e.prototype.connect=function(){var e=this;this.connection=$.hubConnection(this.getSignalRBaseUrl()),this.proxy=this.connection.createHubProxy("ServerUpdateHub"),this.proxy.on("serverUpdateNotification",function(t){e.zone.run(function(){e.serverUpdated$.emit(t)})}),this.connection.start().done(function(){return console.log("Now connected, connection ID="+e.connection.id)}).fail(function(){return console.log("Could not connect")})},e.prototype.getSignalRBaseUrl=function(){return i.a.signalrBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e}();o=s([r.i(n.Injectable)(),a("design:paramtypes",["function"==typeof(c=void 0!==n.NgZone&&n.NgZone)&&c||Object])],o);var c},"+qYp":function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e}();l=o([r.i(n.Component)({selector:"app-access-denied",template:r("1DTO"),styles:[r("aijx")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},"+rAa":function(e,t,r){"use strict";function n(e,t,r,n){var i=a(e,t,r);if(void 0!=i)return i;var s=Math.pow(10,n),o=void 0!=n?Math.round(e*s)/s:e,c=void 0!=n?Math.round(t*s)/s:t;return o>c?r?1:-1:ot?r?1:-1:e=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t){this.dataService=e,this.router=t}return e.prototype.canActivate=function(e,t){var r=this;return s.Observable.fromPromise(this.dataService.getServers().then(function(t){if(t){var n=e.params.playerid;return r.dataService.hasFeatureAccess("pages",e.data.name,n)?"access":"noaccess"}return"connectionerror"}).catch(function(){return"connectionerror"})).map(function(e){return"noaccess"==e?r.router.navigateByUrl("/accessdenied",{skipLocationChange:!0}):"connectionerror"==e&&r.router.navigateByUrl("/connectionerror",{skipLocationChange:!0}),"access"==e})},e}();l=o([r.i(n.Injectable)(),c("design:paramtypes",["function"==typeof(d=void 0!==a.a&&a.a)&&d||Object,"function"==typeof(u=void 0!==i.b&&i.b)&&u||Object])],l);var d,u},"/Wuq":function(e,t){e.exports='
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given server key.

\r\n
\r\n
\r\n
\r\n

Players

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam IdCharacter IdSteam NameCharacter NameTribe NameTribe IdStructuresCreaturesLast Active
{{player.FakeSteamId || player.SteamId}}{{player.Id}}{{player.SteamName}}{{player.CharacterName}}{{player.CharacterName}}{{player.TribeName}}{{player.TribeId}}{{player.StructureCount}}{{player.CreatureCount}}{{dataService.toRelativeDate(player.LastActiveTime)}}
\r\n
\r\n
\r\n
\r\n

Tribes

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
IdNameMembersStructuresCreaturesLast Active
{{tribe.Id}}{{tribe.Name}}{{getTribeMember(member)?.CharacterName || member}}{{getTribeMember(member)?.CharacterName || member}}, {{tribe.StructureCount}}{{tribe.CreatureCount}}{{dataService.toRelativeDate(tribe.LastActiveTime)}}
\r\n
\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n\r\n
\r\n
\r\n

Egg Summary

\r\n
Save World
\r\n
\r\n\r\n
\r\n
\r\n

Summary

\r\n
\r\n
\r\n

Total Eggs: {{totalEggCount}}

\r\n

Fertilized Eggs: {{fertilizedEggsCount}}

\r\n

Spoiled Eggs: {{spoiledEggsCount}}

\r\n
\r\n
\r\n

There are no fertilized eggs on the map

\r\n
\r\n
\r\n\r\n
\r\n

Fertilized Eggs

\r\n
Destroy All Eggs
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CreatureEgg LevelSpoil Time
{{egg.Dino}}{{egg.EggLevel}}{{egg.SpoilTime}}
\r\n
\r\n\r\n
\r\n

Spoiled Eggs

\r\n
Destroy Spoiled Eggs
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CreatureEgg LevelDropped By
{{egg.Dino}}{{egg.EggLevel}}{{egg.DroppedBy}}{{egg.DroppedBy}}
\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{modalInfo.Header}}

\r\n
\r\n
\r\n
\r\n {{modalInfo.Message}}\r\n
\r\n
\r\n
\r\n
\r\n
'},0:function(e,t,r){e.exports=r("x35b")},"08Wm":function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.dataService.hasFeatureAccess("admin-server","structures")?this.menu.activate("structures"):this.dataService.hasFeatureAccess("admin-server","players")?this.menu.activate("players"):this.dataService.hasFeatureAccess("admin-server","tribes")?this.menu.activate("tribes"):this.dataService.hasFeatureAccess("admin-server","eggs")&&this.menu.activate("eggs")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-admin-server-menu",host:{"[class]":"menu.className"},template:r("bl1B"),styles:[r("9kk6")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},"0Hpj":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Fzro"),s=r("eErF"),a=(r.n(s),r("lHWG"));r.d(t,"a",function(){return d});var o=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.getServers=function(){return this.http.get("assets/demo/servers.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getServer=function(e){return this.http.get("assets/demo/server.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getWildCreatures=function(e){return this.http.get("assets/demo/wildcreatures.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getStructures=function(e){return this.http.get("assets/demo/structures.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getPlayer=function(e){return this.http.get("assets/demo/player.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getAdminServer=function(e){return this.http.get("assets/demo/adminserver.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.adminDestroyAllStructuresForTeamId=function(e,t){return Promise.resolve(null)},t.prototype.adminDestroyStructuresForTeamIdAtPosition=function(e,t,r,n,i,s){return Promise.resolve(null)},t.prototype.adminDestroyDinosForTeamId=function(e,t){return Promise.resolve(null)},t.prototype.adminSaveWorld=function(e){return Promise.resolve(null)},t}(a.a);d=c([r.i(n.Injectable)(),l("design:paramtypes",["function"==typeof(u=void 0!==i.b&&i.b)&&u||Object])],d);var u},"0jRk":function(e,t,r){"use strict";var n=r("3j3K"),i=r("jWPz"),s=r("joX7"),a=r("Gvdl"),o=(r.n(a),r("XlOA")),c=(r.n(o),r("1APj")),l=(r.n(c),r("6Yye")),d=(r.n(l),r("uCY4")),u=(r.n(d),r("wUn1")),p=(r.n(u),r("/lY3"));r.n(p);r.d(t,"a",function(){return m});var h=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},f=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},m=function(){function e(e){this.ref=e,this._modeEnabledSubscriptions=[],this._rows$=a.Observable.of([]),this._orderByColumnKey=new a.BehaviorSubject(void 0),this._filter=new a.BehaviorSubject(void 0),this._sort=new a.Subject,this._fromRow=0,this._numRows=25,this._totalRows=0,this._enabledColumnsForMode={},this._viewOptions=[{value:25,text:"25"},{value:50,text:"50"},{value:100,text:"100"},{value:250,text:"250"},{value:500,text:"500"},{value:1e3,text:"1000"},{value:1e6,text:"All"}],this._prevColumnKey=void 0,this._prevFilter=void 0,this._prevSortedRows=void 0,this._prevFilteredRows=void 0,this._prevSortedRowsKey=void 0,this._prevFilteredRowsKey=void 0}return e.prototype.ngOnInit=function(){var e=this;this._rows$=a.Observable.combineLatest(this._orderByColumnKey,this._filter.debounceTime(250),function(e,t){return{key:e,filter:t}}).skip(1).startWith({key:this._orderByColumnKey.getValue(),filter:this._filter.getValue()}).switchMap(function(t){return a.Observable.of(e.filterAndSortData(t.key,t.filter))}).catch(function(t){return console.log("Error in component ... "+t),a.Observable.of(e._rows)})},Object.defineProperty(e.prototype,"modeTemplates",{set:function(e){if(e){var t=e.toArray();if(t.length){for(var r=[],n=0,i=t;n0&&(this._currentMode=this._modes[0].key)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnTemplates",{set:function(e){if(e){var t=e.toArray();if(t.length){for(var r=[],n=0,i=t;n=this._totalRows&&(t=this._totalRows-1),this._fromRow=parseInt(""+t),this.ref.markForCheck()},e.prototype.setViewOffsetRelative=function(e){this.setViewOffset(this._fromRow+e)},e.prototype.setFirstPage=function(){this.isFirstPage()||this.setViewOffset(0)},e.prototype.setPrevPage=function(){this.isFirstPage()||this.setViewOffsetRelative(-this._numRows)},e.prototype.setNextPage=function(){this.isLastPage()||this.setViewOffsetRelative(this._numRows)},e.prototype.setLastPage=function(){this.isLastPage()||this.setViewOffset(this._totalRows-this._numRows)},e.prototype.isFirstPage=function(){return this._fromRow<=0},e.prototype.isLastPage=function(){return this._fromRow>=this._totalRows-this._numRows},e.prototype.setViewLimit=function(e){this._numRows=parseInt(""+(e>0?e:1e6)),this.ref.markForCheck()},e.prototype.getLastRowOffset=function(){var e=this._fromRow+this._numRows;return e>this._totalRows?this._totalRows:e},e}();h([r.i(n.ContentChildren)(s.a),f("design:type","function"==typeof(v=void 0!==n.QueryList&&n.QueryList)&&v||Object),f("design:paramtypes",["function"==typeof(g=void 0!==n.QueryList&&n.QueryList)&&g||Object])],m.prototype,"modeTemplates",null),h([r.i(n.ContentChildren)(i.a),f("design:type","function"==typeof(y=void 0!==n.QueryList&&n.QueryList)&&y||Object),f("design:paramtypes",["function"==typeof(b=void 0!==n.QueryList&&n.QueryList)&&b||Object])],m.prototype,"columnTemplates",null),h([r.i(n.Input)(),f("design:type",Object),f("design:paramtypes",[Object])],m.prototype,"rows",null),h([r.i(n.Input)(),f("design:type",String),f("design:paramtypes",[String])],m.prototype,"trackByProp",null),h([r.i(n.Input)(),f("design:type",String),f("design:paramtypes",[String])],m.prototype,"filter",null),h([r.i(n.Input)(),f("design:type",Object)],m.prototype,"filterFunction",void 0),h([r.i(n.Input)(),f("design:type",Object)],m.prototype,"sortFunctions",void 0),h([r.i(n.Input)(),f("design:type",String)],m.prototype,"orderByColumn",void 0),m=h([r.i(n.Component)({selector:"ark-data-table",template:r("jkBB"),styles:[r("rZY4")],changeDetection:n.ChangeDetectionStrategy.OnPush,encapsulation:n.ViewEncapsulation.None}),f("design:paramtypes",["function"==typeof(w=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&w||Object])],m);var v,g,y,b,w},"0onv":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("PJh5"));r.n(s);r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.ref=e,this._time=new i.BehaviorSubject(void 0)}return Object.defineProperty(e.prototype,"time",{get:function(){return this._time.getValue()},set:function(e){this._time.next(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._timeSubscription=this._time.subscribe(function(t){e.update()}),this._counter=i.Observable.interval(1e3).map(function(e){return e}),this._counterSubscription=this._counter.subscribe(function(t){return e.update()})},e.prototype.ngOnDestroy=function(){this._timeSubscription.unsubscribe(),this._counterSubscription.unsubscribe()},e.prototype.update=function(){var e=this.toRelativeDate(this.time);e!=this._str&&(this._str=e,this.ref.markForCheck())},e.prototype.toRelativeDate=function(e){return s(new Date(e)).fromNow()},e}();a([r.i(n.Input)(),o("design:type",Object),o("design:paramtypes",[Object])],c.prototype,"time",null),c=a([r.i(n.Component)({selector:"relative-time",template:"{{_str}}",styles:[r("HOjl")],changeDetection:n.ChangeDetectionStrategy.OnPush}),o("design:paramtypes",["function"==typeof(l=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&l||Object])],c);var l},"1DTO":function(e,t){e.exports='
\n
\n

Access Denied

\n

You do not have access to view this page...

\n
\n
'},"38q8":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Qbdm");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this._sanitizer=e}return e.prototype.transform=function(e){return this._sanitizer.bypassSecurityTrustStyle(e)},e}();o=s([r.i(n.Pipe)({name:"sanitizeStyle"}),a("design:paramtypes",["function"==typeof(c=void 0!==i.DomSanitizer&&i.DomSanitizer)&&c||Object])],o);var c},5305:function(e,t,r){"use strict";var n=r("3j3K"),i=r("kZql"),s=r("vwbq");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(){this.width=1024,this.height=1024,this.zoom=s.a().scaleExtent([1,10])}return e.prototype.imageLoaded=function(e){var t=this;this.img=e,this.width=e.naturalWidth,this.height=e.naturalHeight,window.setTimeout(function(){t.resize(),t.redraw()},100)},e.prototype.resize=function(){},e.prototype.zoomed=function(){var e=s.e(this.canvasRef.nativeElement),t=this.canvasRef.nativeElement.getContext("2d");t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,this.width,this.height),t.translate(e.x,e.y),t.scale(e.k,e.k),this.redraw()},e.prototype.redraw=function(){var e=this.canvasRef.nativeElement.getContext("2d");if(e.drawImage(this.img,0,0),null!=this.points)for(var t=0,r=this.points;t/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e}();a([r.i(n.Input)(),o("design:type",String)],c.prototype,"mapName",void 0),a([r.i(n.Input)(),o("design:type",Array)],c.prototype,"points",void 0),a([r.i(n.ViewChild)("myCanvas"),o("design:type","function"==typeof(l=void 0!==n.ElementRef&&n.ElementRef)&&l||Object)],c.prototype,"canvasRef",void 0),c=a([r.i(n.Component)({selector:"arkmap",template:''}),o("design:paramtypes",[])],c);var l},"5xMp":function(e,t){e.exports='\r\n\r\n
\r\n
\r\n \r\n
Logged in as {{dataService.Servers.User.Name}} | Logout | Login | Theme: Light | Dark
\r\n
\r\n \r\n
\r\n'},"6fYc":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".serverdetails th{white-space:nowrap}.serverdetails td{width:99%}",""]),e.exports=e.exports.toString()},"78nn":function(e,t){e.exports="\r\n

Player

\r\n
\r\n
Profile
\r\n
Creatures
\r\n
Creatures (Cloud)
\r\n
Breeding
\r\n
Crops
\r\n
Electrical Generators
\r\n
Kibbles and Eggs
\r\n
Tribe Log
\r\n
\r\n
"},"7T2B":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){this.callback=new n.EventEmitter,this.confirming=!1}return e.prototype.ngOnInit=function(){},e.prototype.onClick=function(e){var t=this;this.confirming?e.detail>=3&&(window.clearTimeout(this.resetTimeout),this.confirming=!1,this.callback.emit()):(this.confirming=!0,this.resetTimeout=window.setTimeout(function(){t.confirming=!1},5e3))},e}();i([r.i(n.Output)(),s("design:type","function"==typeof(o=void 0!==n.EventEmitter&&n.EventEmitter)&&o||Object)],a.prototype,"callback",void 0),i([r.i(n.Input)(),s("design:type",Number)],a.prototype,"width",void 0),i([r.i(n.ViewChild)("confirmButton"),s("design:type","function"==typeof(c=void 0!==n.ElementRef&&n.ElementRef)&&c||Object)],a.prototype,"confirmButton",void 0),a=i([r.i(n.Component)({selector:"confirm-button",template:r("QaTd"),styles:[r("8Zim")]}),s("design:paramtypes",[])],a);var o,c},"7arz":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"7fuz":function(e,t){e.exports='
\n \n
'},"7uO+":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"7xIs":function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.dataService.hasFeatureAccess("server","players")?this.menu.activate("players"):this.dataService.hasFeatureAccess("server","tribes")?this.menu.activate("tribes"):this.dataService.hasFeatureAccess("server","wildcreatures-statistics")?this.menu.activate("wildcreatures-statistics"):this.dataService.hasFeatureAccess("server","wildcreatures")&&this.menu.activate("wildcreatures")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-server-menu",host:{"[class]":"menu.className"},template:r("MjD/"),styles:[r("oLRk")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},"8Zim":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"8kYA":function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this.dataService=e,this.menuOption=void 0,this.menuVisible=!1,this.className="menucontainer"}return e.prototype.ngOnInit=function(){var e=this;this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe()},e.prototype.activate=function(e){this.dataService.SetMenuOption(e)},e.prototype.active=function(e){return this.menuOption==e},e.prototype.toggleMenu=function(){this.menuVisible=!this.menuVisible},e}();o=s([r.i(n.Component)({selector:"app-menu",template:r("m8aW"),styles:[r("ne8d")]}),a("design:paramtypes",["function"==typeof(c=void 0!==i.a&&i.a)&&c||Object])],o);var c},"8zLQ":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(e){this._elementRef=e,this.clickOutside=new n.EventEmitter}return e.prototype.onClick=function(e,t){if(t){this._elementRef.nativeElement.contains(t)||this.clickOutside.emit(e)}},e}();i([r.i(n.Output)(),s("design:type",Object)],a.prototype,"clickOutside",void 0),i([r.i(n.HostListener)("document:click",["$event","$event.target"]),s("design:type",Function),s("design:paramtypes",[Object,Object]),s("design:returntype",void 0)],a.prototype,"onClick",null),a=i([r.i(n.Directive)({selector:"[clickOutside]"}),s("design:paramtypes",["function"==typeof(o=void 0!==n.ElementRef&&n.ElementRef)&&o||Object])],a);var o},"9kk6":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},ATz5:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("lHWG")),a=r("+Lwu"),o=r("kZql"),c=r("PJh5");r.n(c);r.d(t,"a",function(){return u});var l=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},d=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(){function e(e,t){var r=this;this.httpService=e,this.messageService=t,this._servers=new i.BehaviorSubject(void 0),this.menuOption=new i.BehaviorSubject(void 0),this.theme=new i.BehaviorSubject(void 0),this.ServersUpdated$=new n.EventEmitter,t.serverUpdated$.subscribe(function(e){return r.updateServer(e)})}return Object.defineProperty(e.prototype,"Theme",{get:function(){return this.theme.asObservable()},enumerable:!0,configurable:!0}),e.prototype.SetTheme=function(e){this.theme.next(e)},Object.defineProperty(e.prototype,"MenuOption",{get:function(){return this.menuOption.asObservable()},enumerable:!0,configurable:!0}),e.prototype.SetMenuOption=function(e){this.menuOption.next(e)},e.prototype.getServers=function(){var e=this;return this.httpService.getServers().then(function(t){e.Servers=t;var r=t?t.User:void 0;return e.UserSteamId=r&&r.SteamId?r.SteamId:void 0,e._servers.next(t),e.ServersUpdated$.emit(t),!0}).catch(function(t){return e.Servers=null,e.UserSteamId=void 0,e._servers.next(null),e.ServersUpdated$.emit(null),!1})},e.prototype.updateServer=function(e){this.getServers()},e.prototype.hasFeatureAccess=function(e,t,r){var n=this.Servers?this.Servers.AccessControl:void 0;if(!n)return!1;var i=n[e];if(!i)return!1;var s=i[t];if(!s)return!1;var a=this.Servers?this.Servers.User:void 0,o=a&&a.Roles?a.Roles.slice(0):[];a&&a.SteamId&&a.SteamId==r&&o.push("self");for(var c=function(e){if(s.find(function(t){return e.toLowerCase()===t.toLowerCase()}))return{value:!0}},l=0,d=o;l=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e,t){this.dataService=e,this.router=t}return e.prototype.resolve=function(e,t){var r=this;return this.dataService.getServers().then(function(e){return r.dataService}).catch(function(e){return r.dataService})},e}();c=a([r.i(n.Injectable)(),o("design:paramtypes",["function"==typeof(l=void 0!==s.a&&s.a)&&l||Object,"function"==typeof(d=void 0!==i.b&&i.b)&&d||Object])],c);var l,d},CzL3:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("kZql")),a=r("PJh5");r.n(a);r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(){this._ready=!1,this._wasExpired=!1,this._notificationSent=!1,this._time=new i.BehaviorSubject(void 0),this._notification=new i.BehaviorSubject(void 0),this._loadedAt=a()}return Object.defineProperty(e.prototype,"time",{get:function(){return this._time.getValue()},set:function(e){this._time.next(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"notification",{get:function(){return this._notification.getValue()},set:function(e){this._notification.next(e)},enumerable:!0,configurable:!0}),e.prototype.updateDiff=function(e){e&&(s.a.demo?this._wasExpired=a(new Date(e)).diff(a(new Date(s.a.demoDate)))-a().diff(this._loadedAt)<=0:this._wasExpired=a(new Date(e)).diff(a())<=0,this._notificationSent=!1,this._str=void 0,this._ready=this._wasExpired,this._wasExpired||1!=this.state._completed||(this.state._completed=!1)),s.a.demo?this._diff=e||this.time?a.duration(a(new Date(e||this.time)).diff(a(new Date(s.a.demoDate)))-a().diff(this._loadedAt)):void 0:this._diff=e||this.time?a.duration(a(new Date(e||this.time)).diff(a())):void 0},e.prototype.update=function(){if(!this._diff)return"";if(this._diff.asMilliseconds()<=0){if(!this._notificationSent){if(this.notification&&this.state.imprintNotifications&&!this._wasExpired){new Audio("assets/Alarm01.mp3").play()}this._ready=!0}return this._notificationSent=!0,void(this._str=void 0)}var e=this._diff.seconds(),t=this._diff.minutes(),r=this._diff.hours(),n=Math.floor(this._diff.asDays()),i=[];n>0&&i.push(n+"d"),(n>0||r>0)&&i.push(r+"h"),(n>0||r>0||t>0)&&i.push(t+"m"),i.push(e+"s"),this._str=i.join(" "),this._ready=!1,this.state._completed=!1},e.prototype.ngOnInit=function(){var e=this;this._timeSubscription=this._time.subscribe(function(t){e.updateDiff(t),e.update()}),this._notificationSubscription=this._notification.subscribe(function(e){}),this._counter=i.Observable.interval(1e3).map(function(t){return e.updateDiff(void 0),t}),this._counterSubscription=this._counter.subscribe(function(t){return e.update()})},e.prototype.ngOnDestroy=function(){this._timeSubscription.unsubscribe(),this._notificationSubscription.unsubscribe(),this._counterSubscription.unsubscribe()},e}();o([r.i(n.Input)(),c("design:type",Object)],l.prototype,"state",void 0),o([r.i(n.Input)(),c("design:type",Object),c("design:paramtypes",[Object])],l.prototype,"time",null),o([r.i(n.Input)(),c("design:type",Object),c("design:paramtypes",[Object])],l.prototype,"notification",null),l=o([r.i(n.Component)({selector:"timer",template:'{{_str}}',styles:[r("cPj0")]}),c("design:paramtypes",[])],l)},EEDX:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},EM12:function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n={configJs:'var config = {"webapi":{"port":60001},"webapp":{"defaultTheme":"Dark"}};'}},Fnlp:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0,this.demoMode=!1}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.demoMode="true"==localStorage.getItem("demoMode")},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.toggleDemoMode=function(){var e="true"!=localStorage.getItem("demoMode");this.demoMode=e,localStorage.setItem("demoMode",e+"")},e}();l=o([r.i(n.Component)({selector:"app-developer",template:r("7fuz"),styles:[r("EEDX")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},FxpQ:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e}();l=o([r.i(n.Component)({selector:"app-connection-error",template:r("lRu1"),styles:[r("mf93")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},HOjl:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},Iksp:function(e,t,r){"use strict";var n=r("Qbdm"),i=r("KN8t"),s=r("3j3K"),a=r("NVOs"),o=r("5oXY"),c=r("Fzro"),l=r("3MNG"),d=(r.n(l),r("hHgl")),u=r("YWx4"),p=r("KZxv"),h=r("RiXa"),f=r("qn86"),m=r("JLFQ"),v=r("e/mT"),g=r("5305"),y=r("lHWG"),b=r("0Hpj"),w=r("+Lwu"),S=r("ATz5"),C=r("AcJ7"),O=r("+w0e"),j=r("38q8"),_=r("ilmp"),k=r("8zLQ"),I=r("JKTH"),x=r("8kYA"),A=r("7xIs"),F=r("08Wm"),M=r("lCrv"),R=r("CzL3"),T=r("0onv"),L=r("7T2B"),N=r("+qYp"),P=r("FxpQ"),D=r("Fnlp"),B=r("J8nT"),E=r("kZql");r.d(t,"a",function(){return z});var K=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},U=[{path:"player/:playerid",canActivate:[O.a],data:{name:"player"},children:[{path:"",component:p.a},{path:"",component:h.a,outlet:"menu"}]},{path:"server/:id",canActivate:[O.a],data:{name:"server"},children:[{path:"",component:f.a},{path:"",component:A.a,outlet:"menu"}]},{path:"admin/:id",canActivate:[O.a],data:{name:"admin-server"},children:[{path:"",component:v.a},{path:"",component:F.a,outlet:"menu"}]},{path:"servers",canActivate:[O.a],data:{name:"home"},children:[{path:"",component:m.a},{path:"",component:I.a,outlet:"menu"}]},{path:"developer",component:D.a},{path:"accessdenied",component:N.a},{path:"connectionerror",component:P.a},{path:"",redirectTo:"/servers",pathMatch:"full"}],z=function(){function e(){}return e}();z=K([r.i(s.NgModule)({declarations:[u.a,m.a,g.a,j.a,_.a,k.a,p.a,h.a,f.a,v.a,I.a,x.a,A.a,F.a,M.a,R.a,T.a,L.a,N.a,P.a,D.a],imports:[o.a.forRoot(U),d.a.forRoot(),n.BrowserModule,a.a,c.a,i.a,l.SimpleNotificationsModule.forRoot(),B.a],providers:[[{provide:y.a,useClass:E.a.demo?b.a:y.a}],w.a,S.a,C.a,O.a,{provide:s.LOCALE_ID,useValue:"en-US"}],bootstrap:[u.a]})],z)},J8nT:function(e,t,r){"use strict";var n=r("3j3K"),i=r("2Je8"),s=r("NVOs"),a=r("0jRk"),o=r("jWPz"),c=r("joX7");r.d(t,"a",function(){return d});var l=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},d=function(){function e(){}return e}();d=l([r.i(n.NgModule)({imports:[i.CommonModule,s.a],providers:[],declarations:[a.a,o.a,o.b,o.c,c.a],exports:[a.a,o.a,o.b,o.c,c.a]})],d)},JKTH:function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.menu.activate("overview")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-server-list-menu",host:{"[class]":"menu.className"},template:r("rHbN"),styles:[r("P+hD")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},JLFQ:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0,this.serverCount=0,this.onlinePlayerCount=0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.serversUpdatedSubscription=this.dataService.ServersUpdated$.subscribe(function(t){e.updateData(t)}),this.serverUpdateInterval=window.setInterval(function(){e.dataService.updateServer(null)},6e4),this.updateData(this.dataService.Servers)},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe(),this.serversUpdatedSubscription.unsubscribe(),window.clearInterval(this.serverUpdateInterval)},e.prototype.updateData=function(e){var t=0,r=0;if(e&&e.Servers){t=e.Servers.length;for(var n=0,i=e.Servers;n=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,n,i,s,a,o){this.route=e,this.router=t,this.httpService=n,this.dataService=i,this.messageService=s,this.notificationsService=a,this.ref=o,this.menuOption=void 0,this.theme=void 0,this.imprintNotifications=!1,this.keysGetter=Object.keys,this.loaded=!1,this.showMap=!1,this.creaturesMode="status",this.creatureStates={},this.creaturesSortField="food",this.creaturesAltSortFields="name",this.creaturesSortFunctions={food:function(e,t,n){return r.i(l.c)(e.FoodStatus,t.FoodStatus,n,2)},name:function(e,t,n){return r.i(l.a)(e.Name,t.Name,n)},species:function(e,t,n){return r.i(l.a)(e.Species,t.Species,n)},gender:function(e,t,n){return r.i(l.a)(e.Gender,t.Gender,n)},base_level:function(e,t,n){return r.i(l.b)(e.BaseLevel,t.BaseLevel,!n)},level:function(e,t,n){return r.i(l.b)(e.Level==e.BaseLevel?null:e.Level,t.Level==t.BaseLevel?null:t.Level,!n)},imprint:function(e,t,n){return r.i(l.c)(e.Imprint,t.Imprint,!n,2)},latitude:function(e,t,n){return r.i(l.c)(e.Latitude,t.Latitude,n,1)},longitude:function(e,t,n){return r.i(l.c)(e.Longitude,t.Longitude,n,1)},owner:function(e,t,n){return r.i(l.a)(e.OwnerType,t.OwnerType,n)},stat_health:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.Health:null,void 0!=t.BaseStats?t.BaseStats.Health:null,!n)},stat_stamina:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.Stamina:null,void 0!=t.BaseStats?t.BaseStats.Stamina:null,!n)},stat_oxygen:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.Oxygen:null,void 0!=t.BaseStats?t.BaseStats.Oxygen:null,!n)},stat_food:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.Food:null,void 0!=t.BaseStats?t.BaseStats.Food:null,!n)},stat_weight:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.Weight:null,void 0!=t.BaseStats?t.BaseStats.Weight:null,!n)},stat_melee:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.Melee:null,void 0!=t.BaseStats?t.BaseStats.Melee:null,!n)},stat_speed:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.MovementSpeed:null,void 0!=t.BaseStats?t.BaseStats.MovementSpeed:null,!n)},id1:function(e,t,n){return r.i(l.b)(e.Id1,t.Id1,n)},id2:function(e,t,n){return r.i(l.b)(e.Id1,t.Id1,n)}},this.tribeLogFilterFunction=function(e,t){return null==t||null!=e.Message&&e.Message.toLowerCase().indexOf(t)>=0}}return e.prototype.getPlayer=function(){var e=this;this.httpService.getPlayer(this.steamId).then(function(t){var r=Object.keys(t.Servers);e.serverKey&&void 0!=r.find(function(t){return t==e.serverKey})||(e.serverKey=r.length>0?r[0]:null);var n=Object.keys(t.Clusters);e.clusterKey&&void 0!=n.find(function(t){return t==e.clusterKey})||(e.clusterKey=n.length>0?n[0]:null),e.player=t,e.filterAndSort(),e.sortCluster(),e.filterCluster(),e.loaded=!0,e.ref.detectChanges()}).catch(function(t){e.player=null,e.filteredCreatures=null,e.imprintCreatures=null,e.filteredClusterCreatures=null,e.loaded=!0})},e.prototype.ngOnInit=function(){var e=this;this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.theme$=this.dataService.Theme,this.themeSubscription=this.theme$.subscribe(function(t){e.theme=t}),this.steamId=this.route.snapshot.params.playerid,this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.updateServer(t)}),this.getPlayer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.themeSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.haveMatingCooldown=function(e){return null!=e.NextMating&&new Date(e.NextMating)>new Date},e.prototype.active=function(e){return this.serverKey==e},e.prototype.activate=function(e){this.serverKey=e,this.filterAndSort()},e.prototype.serverWidth=function(){return 100/Object.keys(this.player.Servers).length},e.prototype.activeCluster=function(e){return this.clusterKey==e},e.prototype.activateCluster=function(e){this.clusterKey=e,this.sortCluster(),this.filterCluster()},e.prototype.clusterWidth=function(){return 100/Object.keys(this.player.Clusters).length},e.prototype.sort=function(){var e=this,t="-"!=this.creaturesSortField[0],r=this.creaturesSortFunctions[this.creaturesSortField.replace(/^\-/,"")],n=this.creaturesAltSortFields.split(",").map(function(t){var r={};return r.asc="-"!=t[0],r.sortFunc=e.creaturesSortFunctions[t.replace(/^\-/,"")],r});this.filteredCreatures.sort(function(e,i){var s=r(e,i,t);if(0==s)for(var a=0,o=n;a=0||null!=t.Name&&t.Name.toLowerCase().indexOf(e)>=0})}var t=this.player.Servers[this.serverKey].Creatures.filter(function(e){return null!=e.BabyAge});t.sort(function(e,t){return new Date(e.BabyNextCuddle)new Date(t.BabyNextCuddle)?1:0}),this.imprintCreatures=t;for(var r=[],n=0,i=this.filteredCreatures;nt.Level?-1:e.Level=0||null!=t.Name&&t.Name.toLowerCase().indexOf(e)>=0})}},e.prototype.run=function(){if(null==this.steamId||""==this.steamId)return this.player=null,this.filteredCreatures=null,void(this.imprintCreatures=null);this.getPlayer()},e.prototype.openMap=function(e){this.showMap=!0,e.stopPropagation()},e.prototype.closeMap=function(e){this.showMap=!1},e.prototype.updateServer=function(e){this.getPlayer(),this.showServerUpdateNotification(e)},e.prototype.haveCluster=function(){return null!=this.player&&Object.keys(this.player.Clusters).length>0},e.prototype.sumKibbleAndEggs=function(){return void 0!=this.player.Servers[this.serverKey].KibblesAndEggs?this.player.Servers[this.serverKey].KibblesAndEggs.reduce(function(e,t){return e+t.KibbleCount+t.EggCount},0):0},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.getStateForCreature=function(e){if(e){var t=this.creatureStates[e.Id1+"_"+e.Id2];return t||(t={imprintNotifications:!0},this.creatureStates[e.Id1+"_"+e.Id2]=t),t}},e.prototype.toggleImprintNotificationForCreature=function(e){var t=this.getStateForCreature(e);t.imprintNotifications=!t.imprintNotifications},e.prototype.activeCreaturesMode=function(e){return e==this.creaturesMode},e.prototype.activateCreaturesMode=function(e){this.creaturesMode=e},e.prototype.setCreaturesSort=function(e){var t=this.creaturesSortField==e;this.creaturesSortField=t?"-"+e:e,this.creaturesAltSortFields="latitude"==e?t?"-longitude,name":"longitude,name":"longitude"==e?t?"-latitude,name":"latitude,name":"name",this.sort()},e.prototype.copyCreature=function(e){},e.prototype.getCurrentServer=function(){var e=this;if(this.dataService&&this.dataService.Servers&&this.dataService.Servers.Servers){return this.dataService.Servers.Servers.find(function(t){return t.Key==e.serverKey})}},e.prototype.numCreatureTabs=function(){var e=1;return this.dataService.hasFeatureAccess("player","creatures-basestats",this.steamId)&&(e+=1),this.dataService.hasFeatureAccess("player","creatures-ids",this.steamId)&&(e+=1),e},e.prototype.isTheme=function(e){return this.theme==e},e}();p=d([r.i(n.Component)({selector:"app-player",template:r("jFLX"),styles:[r("S6EL")]}),u("design:paramtypes",["function"==typeof(h=void 0!==i.g&&i.g)&&h||Object,"function"==typeof(f=void 0!==i.b&&i.b)&&f||Object,"function"==typeof(m=void 0!==c.a&&c.a)&&m||Object,"function"==typeof(v=void 0!==a.a&&a.a)&&v||Object,"function"==typeof(g=void 0!==o.a&&o.a)&&g||Object,"function"==typeof(y=void 0!==s.NotificationsService&&s.NotificationsService)&&y||Object,"function"==typeof(b=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&b||Object])],p);var h,f,m,v,g,y,b},MOVZ:function(e,t){function r(e){throw new Error("Cannot find module '"+e+"'.")}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id="MOVZ"},"MjD/":function(e,t){e.exports="\r\n

Server

\r\n
\r\n
Players
\r\n
Tribes
\r\n
Wild Statistics
\r\n
Wild Creatures
\r\n
\r\n
"},"P+hD":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},QMiF:function(e,t){e.exports='\x3c!--
\r\n \r\n

{{currentOwner.Name}}

\r\n
Coords: {{currentArea.Latitude | number:\'1.0-1\'}}, {{currentArea.Longitude | number:\'1.0-1\'}}
\r\n
Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n
{{currentArea.StructureCount | number}} structures
\r\n \r\n
\r\n
--\x3e\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{currentOwner.Name}}

\r\n
\r\n
\r\n
\r\n Coords: {{currentArea.Latitude | number:\'1.0-1\'}}, {{currentArea.Longitude | number:\'1.0-1\'}}
\r\n Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n {{currentArea.StructureCount | number}} structures\r\n
\r\n
\r\n
Destroy this area
\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{currentOwner.Name}}

\r\n
\r\n
\r\n
\r\n Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n {{currentOwner.AreaCount | number}} areas
\r\n {{currentOwner.StructureCount | number}} structures
\r\n {{currentOwner.CreatureCount | number}} creatures\r\n
\r\n
\r\n
Destroy all structures
\r\n
Destroy all creatures
\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{modalInfo.Header}}

\r\n
\r\n
\r\n
\r\n {{modalInfo.Message}}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n

Structures

\r\n
Save World
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n
\r\n

Player/Tribe Locations

\r\n
\r\n
\r\n \x3c!--\r\n --\x3e\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameTypeA#S#C#Last Active
{{owner.Name}}{{owner.Type}}{{owner.AreaCount}}{{owner.StructureCount}}{{owner.CreatureCount}}{{dataService.toRelativeDate(owner.LastActiveTime)}}
\r\n
\r\n
'},QaTd:function(e,t){e.exports=''},RiXa:function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("5oXY"),a=r("ATz5");r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t){this.route=e,this.dataService=t}return e.prototype.ngOnInit=function(){this.steamId=this.route.snapshot.params.playerid,this.dataService.hasFeatureAccess("player","profile",this.steamId)?this.menu.activate("profile"):this.dataService.hasFeatureAccess("player","creatures",this.steamId)?this.menu.activate("creatures"):this.dataService.hasFeatureAccess("player","creatures-cloud",this.steamId)?this.menu.activate("creatures_cloud"):this.dataService.hasFeatureAccess("player","breeding",this.steamId)?this.menu.activate("breeding"):this.dataService.hasFeatureAccess("player","crops",this.steamId)?this.menu.activate("crop_plots"):this.dataService.hasFeatureAccess("player","generators",this.steamId)?this.menu.activate("electrical_generators"):this.dataService.hasFeatureAccess("player","kibbles-eggs",this.steamId)?this.menu.activate("kibbles_and_eggs"):this.dataService.hasFeatureAccess("player","tribelog",this.steamId)&&this.menu.activate("tribelog")},e}();o([r.i(n.ViewChild)("menu"),c("design:type","function"==typeof(d=void 0!==i.a&&i.a)&&d||Object)],l.prototype,"menu",void 0),l=o([r.i(n.Component)({selector:"app-player-menu",host:{"[class]":"menu.className"},template:r("78nn"),styles:[r("7uO+")]}),c("design:paramtypes",["function"==typeof(u=void 0!==s.g&&s.g)&&u||Object,"function"==typeof(p=void 0!==a.a&&a.a)&&p||Object])],l);var d,u,p},S6EL:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},SH1B:function(e,t){e.exports='
\r\n

My Profile

\r\n
\r\n
\r\n

Hello, {{dataService.Servers.User.Name}}

\r\n
\r\n
\r\n

\r\n Find your tames, view base stats and keep track of their food status. Get notified of pending imprints, the amount of fertilizer and gasoline remaining in your crops and generators. This and much more is available in your profile.\r\n

\r\n

View my profile ❯

\r\n
\r\n
\r\n
\r\n
\r\n

Servers

\r\n
\r\n
\r\n

{{server.MapName}} - {{server.Key}}{{server.MapName}} - {{server.Key}}

\r\n
\r\n
\r\n

\r\n Last Update {{server.LastUpdate}}, Next Update {{server.NextUpdate || \'-\'}}\r\n

\r\n

View server ❯

\r\n

Admin ❯

\r\n
\r\n
\r\n
\r\n
\r\n

Online {{onlinePlayerCount}}

\r\n
There are no players online...
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam NameCharacter NameTribe NameDiscord TagServerTime Online
{{player.SteamName}}{{player.CharacterName}}{{player.TribeName}}{{player.DiscordName}}{{server.Key}}{{player.TimeOnline}}
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n

{{server.Name}}{{server.Name}}

\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Address{{server.Address}}
Version{{server.Version}}
Player Slots{{server.OnlinePlayerMax}}
Map{{server.MapName}}
In-Game Day{{server.InGameTime}}
Tamed Creatures{{server.TamedCreatureCount | number}}
Cloud Creatures{{server.CloudCreatureCount | number}}
Wild Creatures{{server.WildCreatureCount | number}}
Structures{{server.StructureCount | number}}
Players{{server.PlayerCount | number}}
Tribes{{server.TribeCount | number}}
Last Update{{server.LastUpdate}}
Next Update{{server.NextUpdate}}
Uptime{{server.ServerStarted ? dataService.toRelativeDate(server.ServerStarted) : \'-\'}}
\r\n
\r\n
\r\n\r\n \x3c!--

{{server.Name}}{{server.Name}}

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Address{{server.Address}}
Version{{server.Version}}
Player Slots{{server.OnlinePlayerMax}}
Map{{server.MapName}}
In-Game Time{{server.InGameTime}}
Tamed Creatures{{server.TamedCreatureCount | number}}
Cloud Creatures{{server.CloudCreatureCount | number}}
Wild Creatures{{server.WildCreatureCount | number}}
Structures{{server.StructureCount | number}}
Players{{server.PlayerCount | number}}
Tribes{{server.TribeCount | number}}
Last Update{{server.LastUpdate}}
Next Update{{server.NextUpdate}}
Uptime{{server.ServerStarted ? dataService.toRelativeDate(server.ServerStarted) : \'-\'}}
\r\n
--\x3e\r\n \r\n

Online {{server.OnlinePlayerCount}}

\r\n
There are no players online...
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam NameCharacter NameTribe NameDiscord TagTime Online
{{player.SteamName}}{{player.CharacterName}}{{player.TribeName}}{{player.DiscordName}}{{player.TimeOnline}}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

External Resources

\r\n
\r\n
\r\n

Wiki

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Taming Calculators

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Creature Library and Breeding Suggestions

\r\n
\r\n \r\n
\r\n
'},YWx4:function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("hHgl")),o=r("+Lwu"),c=r("ATz5"),l=r("lHWG"),d=r("kZql"),u=r("2Je8");r.d(t,"a",function(){return m});var p=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},h=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},m=function(){function e(e,t,r,n,i,s,a){this.doc=e,this.messageService=t,this.dataService=r,this.httpService=n,this.breadcrumbService=i,this.notificationsService=s,this.router=a,this.notificationOptions={position:["top","right"],timeOut:1e3,lastOnBottom:!1},this.showLogin=!1,this.currentUrl="/",this.serversUpdatedBefore=!1,this.loading=!0;var o=this.doc.getElementById("configjs"),c=null;if(null!=d.a.configJsOverride?c=d.a.configJsOverride:"/*[[config]]*/"==o.text&&(c=d.a.configJsDefault),null!=c){var l=this.doc.createElement("script");l.type="text/javascript",l.id="configjs",l.text=c,o.parentNode.replaceChild(l,o)}i.addFriendlyNameForRoute("/accessdenied","Access Denied"),i.addFriendlyNameForRoute("/connectionerror","Connection error"),i.hideRoute("/player"),i.hideRoute("/servers"),i.hideRoute("/server"),i.hideRoute("/admin"),i.addCallbackForRouteRegex("^/player/.+$",this.getNameForPlayer),d.a.demo||t.connect()}return e.prototype.ngOnInit=function(){var e=this;this.dataService.SetTheme(this.getTheme()),this.routerEventsSubscription=this.router.events.subscribe(function(t){e.navigationInterceptor(t)}),this.currentUrl=window.location.href||"/",this.serversUpdatedSubscription=this.dataService.ServersUpdated$.subscribe(function(t){e.serversUpdatedBefore||!t||t.User&&t.User.SteamId||(e.showLogin=!0),e.serversUpdatedBefore=!0})},e.prototype.ngOnDestroy=function(){this.routerEventsSubscription.unsubscribe(),this.serversUpdatedSubscription.unsubscribe()},e.prototype.navigationInterceptor=function(e){e instanceof i.d?this.loading=!0:e instanceof i.c?this.loading=!1:e instanceof i.e?this.loading=!1:e instanceof i.f&&(this.loading=!1)},e.prototype.getNameForPlayer=function(e){return"Player"},e.prototype.getBodyClasses=function(){var e=this.getTheme();return"undefined"!=typeof config&&"undefined"!==config.webapp&&!0===config.webapp.topMenu&&(e+=" topmenu"),e},e.prototype.getDefaultTheme=function(){var e="undefined"!=typeof config&&"undefined"!==config.webapp&&"string"==typeof config.webapp.defaultTheme?config.webapp.defaultTheme.toLowerCase():void 0;return"light"!=e&&"dark"!=e?"dark":e},e.prototype.getTheme=function(){return localStorage.getItem("theme")||this.getDefaultTheme()},e.prototype.setTheme=function(e){return this.dataService.SetTheme(e),localStorage.setItem("theme",e),!1},e.prototype.openLogin=function(e){this.showLogin=!0,e.stopPropagation(),e.preventDefault()},e.prototype.closeLogin=function(e){this.showLogin=!1},e.prototype.getLoginUrl=function(){return d.a.demo?"":this.httpService.getApiBaseUrl()+"/authentication/login"},e.prototype.getLogoutUrl=function(){return d.a.demo?"":this.httpService.getApiBaseUrl()+"/authentication/logout?returnUrl="+this.currentUrl},e}();m=p([r.i(n.Component)({selector:"body",host:{"[class]":"getBodyClasses()"},template:r("5xMp"),styles:[r("okgc")]}),f(0,r.i(n.Inject)(u.DOCUMENT)),h("design:paramtypes",[Object,"function"==typeof(v=void 0!==o.a&&o.a)&&v||Object,"function"==typeof(g=void 0!==c.a&&c.a)&&g||Object,"function"==typeof(y=void 0!==l.a&&l.a)&&y||Object,"function"==typeof(b=void 0!==a.b&&a.b)&&b||Object,"function"==typeof(w=void 0!==s.NotificationsService&&s.NotificationsService)&&w||Object,"function"==typeof(S=void 0!==i.b&&i.b)&&S||Object])],m);var v,g,y,b,w,S},aijx:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},bKAj:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},bl1B:function(e,t){e.exports="\r\n

Admin|Server

\r\n
\r\n
Structures
\r\n
Players
\r\n
Tribes
\r\n
Fertilized Eggs
\r\n
\r\n
"},cPj0:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"e/mT":function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("ATz5")),o=r("+Lwu"),c=r("lHWG"),l=r("vwbq");r.d(t,"a",function(){return p});var d=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,r,n,i,s){this.route=e,this.router=t,this.httpService=r,this.dataService=n,this.messageService=i,this.notificationsService=s,this.menuOption=void 0,this.loaded=!1,this.loadedStructures=!1,this.loadedFertilizedEggs=!1}return e.prototype.getServer=function(){var e=this;this.httpService.getAdminServer(this.serverKey).then(function(t){e.server=t,e.loaded=!0}).catch(function(t){e.server=null,e.loaded=!0})},e.prototype.getStructures=function(){var e=this;this.httpService.getStructures(this.serverKey).then(function(t){e.structures=t,e.loadedStructures=!0}).catch(function(t){e.structures=void 0,e.loadedStructures=!0})},e.prototype.getListFertilizedEggs=function(){var e=this;this.httpService.adminListFertilizedEggs(this.serverKey).then(function(t){e.spoiledEggsList=t.SpoiledEggList,e.fertilizedEggsList=t.FertilizedEggList,e.fertilizedEggsCount=void 0===t.FertilizedEggsCount?0:t.FertilizedEggsCount,e.spoiledEggsCount=void 0===t.SpoiledEggsCount?0:t.SpoiledEggsCount,e.totalEggCount=e.spoiledEggsCount+e.fertilizedEggsCount,e.loadedFertilizedEggs=!0}).catch(function(t){e.fertilizedEggsList=void 0,e.loadedFertilizedEggs=!0})},e.prototype.ngOnInit=function(){var e=this;this.serverKey=this.route.snapshot.params.id,this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){e.menuOption=t,"structures"==e.menuOption?e.getStructures():"fertilized-eggs"==e.menuOption&&e.getListFertilizedEggs()}),this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){e.serverKey==t&&(e.updateServer(),e.showServerUpdateNotification(t))}),this.getServer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.getTribeMember=function(e){return this.server.Players.find(function(t){return t.SteamId==e})},e.prototype.updateServer=function(){this.getServer()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.showInfoModal=function(e,t){var r={};r.Header=e,r.Message=t,this.modalInfo=r,l.b(this.contextMenu.nativeElement).style("display","block"),l.c&&l.c.stopPropagation()},e.prototype.hideContextMenu=function(){l.b(this.contextMenu.nativeElement).style("display","none"),this.modalInfo=void 0},e.prototype.saveWorld=function(e){var t=this;this.httpService.adminSaveWorld(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyAllEggs=function(e){var t=this;this.httpService.adminDestroyAllEggs(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroySpoiledEggs=function(e){var t=this;this.httpService.adminDestroySpoiledEggs(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e}();d([r.i(n.ViewChild)("contextMenu"),u("design:type","function"==typeof(h=void 0!==n.ElementRef&&n.ElementRef)&&h||Object)],p.prototype,"contextMenu",void 0),p=d([r.i(n.Component)({selector:"app-admin-server",template:r("/Wuq"),styles:[r("7arz")]}),u("design:paramtypes",["function"==typeof(f=void 0!==i.g&&i.g)&&f||Object,"function"==typeof(m=void 0!==i.b&&i.b)&&m||Object,"function"==typeof(v=void 0!==c.a&&c.a)&&v||Object,"function"==typeof(g=void 0!==a.a&&a.a)&&g||Object,"function"==typeof(y=void 0!==o.a&&o.a)&&y||Object,"function"==typeof(b=void 0!==s.NotificationsService&&s.NotificationsService)&&b||Object])],p);var h,f,m,v,g,y,b},"fT+k":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,'.map canvas,.map svg{position:absolute;top:0;left:0;width:100%}rect.overlay{fill:transparent}.wrapper{position:relative}.wrapper:after{padding-top:100%;display:block;content:""}.wrapper .buttons{position:absolute;left:5px;top:5px;opacity:.75;z-index:2}',""]),e.exports=e.exports.toString()},ilmp:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Qbdm");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this._sanitizer=e}return e.prototype.transform=function(e){return this._sanitizer.bypassSecurityTrustHtml(e)},e}();o=s([r.i(n.Pipe)({name:"sanitizeHtml"}),a("design:paramtypes",["function"==typeof(c=void 0!==i.DomSanitizer&&i.DomSanitizer)&&c||Object])],o);var c},jFLX:function(e,t){e.exports='
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given steam id.

\r\n
\r\n
\r\n
\r\n

Servers

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Player

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Character NameGenderTribe NameSteam IdTribe IdLevelEngram PointsLatLngSaved At
{{player?.Servers[serverKey]?.CharacterName}}{{player?.Servers[serverKey]?.Gender}}{{player?.Servers[serverKey]?.TribeName}}{{player?.Servers[serverKey]?.FakeSteamId || player?.Servers[serverKey]?.SteamId}}{{player?.Servers[serverKey]?.TribeId}}{{player?.Servers[serverKey]?.Level}}{{player?.Servers[serverKey]?.EngramPoints | number}}{{player?.Servers[serverKey]?.Latitude | number:\'1.1-1\'}}{{player?.Servers[serverKey]?.Longitude | number:\'1.1-1\'}}{{dataService.toDate(player?.Servers[serverKey]?.SavedAt)}}
\r\n
\r\n
\r\n
\r\n
\r\n

Creatures {{filteredCreatures.length}}

\r\n
\r\n
\r\n
There are no creatures...
\r\n \r\n
\r\n close\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameClassNameSpeciesAliasesGenderBase LevelLevelImprintFoodLatLngStatusOwnerHPSTOXFOWEMESPID1ID2
No matching creatures...
{{creature.Name}}{{creature.ClassName}}{{creature.Species}}{{creature.Aliases}}{{creature.Gender}}{{creature.BaseLevel}}{{creature.Level}}{{creature.Imprint | percent:\'1.0-0\'}}\r\n
\r\n
{{creature.FoodStatus | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{creature.Latitude | number:\'1.1-1\'}}{{creature.Longitude | number:\'1.1-1\'}}\r\n Next mating {{dataService.toRelativeDate(creature.NextMating)}}\r\n
\r\n
\r\n
Baby
\r\n
\r\n
\r\n
{{creature.BabyAge | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
\r\n
cuddle {{dataService.toRelativeDate(creature.BabyNextCuddle)}}
\r\n
\r\n
\r\n
{{creature.OwnerType}}{{creature.BaseStats?.Health}}{{creature.BaseStats?.Stamina}}{{creature.BaseStats?.Oxygen}}{{creature.BaseStats?.Food}}{{creature.BaseStats?.Weight}}{{creature.BaseStats?.Melee}}{{creature.BaseStats?.MovementSpeed}}content_copy{{creature.Id1}}{{creature.Id2}}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Breeding {{imprintCreatures.length}}

\r\n
\r\n
\r\n
There are no baby creatures...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameSpeciesGenderBase LevelImprintProgressFully Grown AtNext Imprint
{{creature.Name}}{{creature.Species}}{{creature.Gender}}{{creature.BaseLevel}}{{creature.Imprint | percent:\'1.0-0\'}}\r\n
\r\n
{{creature.BabyAge | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{dataService.toDate(creature.BabyFullyGrown)}}
\r\n
\r\n \x3c!--

\r\n Last Update {{getCurrentServer().LastUpdate}}, Next Update {{getCurrentServer().NextUpdate || \'-\'}}\r\n

--\x3e\r\n
\r\n
\r\n
\r\n

Kibbles and Eggs {{sumKibbleAndEggs() | number:0.0-0}}

\r\n
\r\n
There are no kibbles or eggs...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameKibblesEggsTotal
{{ke.Name}}{{ke.KibbleCount}}{{ke.EggCount}}{{ke.KibbleCount + ke.EggCount}}
\r\n
\r\n
\r\n
\r\n

Clusters

\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n

Creatures

\r\n
\r\n
There are no creatures in the cloud...
\r\n
\r\n
\r\n
\r\n

Creatures {{filteredClusterCreatures.length}}

\r\n
\r\n
There are no creatures in the cloud...
\r\n
\r\n close\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameSpeciesLevel
No matching creatures...
{{creature.Name}}{{creature.Species}}{{creature.Level}}
\r\n
\r\n
\r\n
\r\n
\r\n

Crops

\r\n
\r\n
There are no crops...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CropSizeFertilizer %Fertilizer UnitsWaterLatLng
{{(cp.PlantedCropName || cp.PlantedCropClassName)}}{{cp.Size}}\r\n
\r\n
{{(cp.FertilizerQuantity / cp.FertilizerMax) | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{cp.FertilizerQuantity | number}}{{cp.WaterAmount | number:\'1.0-0\'}}{{cp.Latitude | number:\'1.1-1\'}}{{cp.Longitude | number:\'1.1-1\'}}
\r\n
\r\n
\r\n
\r\n
\r\n

Electrical Generators

\r\n
\r\n
There are no electrical generators...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Gasoline %Gasoline QuantityActivatedLatLng
\r\n
\r\n
{{(eg.GasolineQuantity / 800.0) | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{eg.GasolineQuantity | number}}{{(eg.Activated == true ? "Yes" : "No")}}{{eg.Latitude | number:\'1.1-1\'}}{{eg.Longitude | number:\'1.1-1\'}}
\r\n
\r\n
\r\n
\r\n
\r\n

Tribe Log

\r\n
\r\n
There are no tribe logs...
\r\n \r\n
\r\n close\r\n \r\n
\r\n \r\n \r\n \r\n \r\n Day\r\n \r\n \r\n {{log.Day}}\r\n \r\n \r\n \r\n \r\n Time\r\n \r\n \r\n {{log.Time}}\r\n \r\n \r\n \r\n \r\n Message\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n'},jWPz:function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"c",function(){return a}),r.d(t,"b",function(){return o}),r.d(t,"a",function(){return c});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(e){this.template=e}return e}();a=i([r.i(n.Directive)({selector:"[ark-dt-cell]"}),s("design:paramtypes",["function"==typeof(l=void 0!==n.TemplateRef&&n.TemplateRef)&&l||Object])],a);var o=function(){function e(e){this.template=e}return e}();o=i([r.i(n.Directive)({selector:"[ark-dt-header]"}),s("design:paramtypes",["function"==typeof(d=void 0!==n.TemplateRef&&n.TemplateRef)&&d||Object])],o);var c=function(){function e(){}return e}();i([r.i(n.Input)(),r.i(n.ContentChild)(a,{read:n.TemplateRef}),s("design:type","function"==typeof(u=void 0!==n.TemplateRef&&n.TemplateRef)&&u||Object)],c.prototype,"cellTemplate",void 0),i([r.i(n.Input)(),r.i(n.ContentChild)(o,{read:n.TemplateRef}),s("design:type","function"==typeof(p=void 0!==n.TemplateRef&&n.TemplateRef)&&p||Object)],c.prototype,"headerTemplate",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"mode",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"key",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"thenSort",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"title",void 0),i([r.i(n.Input)(),s("design:type",Boolean)],c.prototype,"orderBy",void 0),c=i([r.i(n.Directive)({selector:"ark-dt-column"})],c);var l,d,u,p},jkBB:function(e,t){e.exports='
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n
No matching entries...
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n «\r\n \r\n \r\n  {{_fromRow}} - {{getLastRowOffset()}} of {{_totalRows}} \r\n »\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
'},joX7:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl");r.n(i);r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(){this.enabled=i.Observable.of(!0)}return Object.defineProperty(e.prototype,"columnKeys",{set:function(e){this._columnKeys=e,this.ColumnKeys=this._columnKeys.split(",")},enumerable:!0,configurable:!0}),e}();s([r.i(n.Input)(),a("design:type",String)],o.prototype,"key",void 0),s([r.i(n.Input)(),a("design:type",String)],o.prototype,"name",void 0),s([r.i(n.Input)(),a("design:type","function"==typeof(c=void 0!==i.Observable&&i.Observable)&&c||Object)],o.prototype,"enabled",void 0),s([r.i(n.Input)(),a("design:type",String),a("design:paramtypes",[String])],o.prototype,"columnKeys",null),o=s([r.i(n.Directive)({selector:"ark-dt-mode"})],o);var c},kZql:function(e,t,r){"use strict";var n=r("EM12");r.d(t,"a",function(){return i});var i={production:!0,demo:!1,demoDate:null,configJsOverride:null,configJsDefault:n.a.configJs,apiBaseUrl:"//:/api",signalrBaseUrl:"//:/signalr"}},lCrv:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("ATz5")),a=r("lHWG"),o=r("kZql"),c=r("vwbq"),l=r("PJh5");r.n(l);r.d(t,"a",function(){return p});var d=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,r){this.dataService=e,this.httpService=t,this.zone=r,this._structures=new i.BehaviorSubject(void 0),this.keysGetter=Object.keys,this.ownerSortField="locations",this.ownerSortFunctions={locations:function(e,t){return e.AreaCount>t.AreaCount?-1:e.AreaCountt.StructureCount?-1:e.StructureCountt.StructureCount?-1:e.StructureCountt.LastActiveTime||void 0==t.LastActiveTime?1:0}},this.width=1024,this.height=1024,this.zoom=c.a().scaleExtent([1,8])}return Object.defineProperty(e.prototype,"structures",{get:function(){return this._structures.getValue()},set:function(e){this._structures.next(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._structuresSubscription=this._structures.subscribe(function(t){return e.update(t)});var t=this.mapContainer.nativeElement;this.map={},this.map.canvas=c.b(t).append("canvas").attr("width",1024).attr("height",1024).node().getContext("2d"),this.map.svg=c.b(t).append("svg").attr("viewBox","0 0 1024 1024").attr("preserveAspectRatio","xMidYMid").append("g").on("contextmenu",function(e,t){c.c.preventDefault()}),this.map.svg.append("rect").attr("class","overlay").attr("width",1024).attr("height",1024),this.map.x=c.d().domain([0,1024]).range([0,1024]),this.map.y=c.d().domain([0,1024]).range([0,1024]),c.b(t).call(this.zoom.on("zoom",function(){e.hideContextMenu(),e.redraw()})).on("wheel.zoom",null),this.structures&&this.updateMap()},e.prototype.ngOnDestroy=function(){this._structuresSubscription.unsubscribe()},e.prototype.zoomIn=function(){this.zoom.scaleBy(c.b(this.mapContainer.nativeElement),1.2)},e.prototype.zoomOut=function(){this.zoom.scaleBy(c.b(this.mapContainer.nativeElement),.8)},e.prototype.updateSelection=function(){var e=this;this.map.svg.circle.attr("display",function(t){var r=e.structures.Owners[t.OwnerId];return t.Removed||r.Removed||e.selectedOwner&&(!e.selectedOwner||e.selectedOwner.Id!=t.OwnerId)?"none":"block"}),this.redraw()},e.prototype.update=function(e){this.sortOwners(e),this.map&&this.updateMap()},e.prototype.sortOwners=function(e){var t=this.ownerSortFunctions[this.ownerSortField];if(e){var r=e.Owners.slice();r.sort(t),this.ownersSorted=r}else this.ownersSorted=void 0},e.prototype.updateMap=function(){var e=this;this.map.svg.nodes=this.structures.Areas,this.map.svg.draw=function(){e.map.svg.circle=e.map.svg.selectAll("circle").data(e.map.svg.nodes).enter().append("circle").attr("r",function(e){return e.RadiusPx<2?2:e.RadiusPx}).attr("fill","transparent").attr("stroke",function(t){var r=e.structures.Owners[t.OwnerId];return!!r.LastActiveTime&&l(new Date(r.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(t.StructureCount>=100||t.TrashQuota<.5&&t.StructureCount>=10)?"magenta":"red"}).attr("stroke-width",function(t){var r=e.structures.Owners[t.OwnerId];return!!r.LastActiveTime&&l(new Date(r.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(t.StructureCount>=100||t.TrashQuota<.5&&t.StructureCount>=10)?3:2}).attr("transform",e.map.svg.transform),e.map.svg.circle.on("click",function(t){c.c.preventDefault();var r={};r.x=c.c.pageX,r.y=c.c.pageY,e.showAreaModal(t,r)}),e.map.svg.circle.append("svg:title").text(function(t){var r=e.structures.Owners[t.OwnerId],n=r.LastActiveTime?l(new Date(r.LastActiveTime)).fromNow():null;return r.Name+": "+t.StructureCount+" structures\nCoords: "+t.Latitude+", "+t.Longitude+"\n"+(n?"Last active: "+n+"\n":"")+"---\n"+t.Structures.map(function(t){var r=e.structures.Types[t.t];return t.c+": "+(r?r.Name:t.t)}).join("\n")})},this.map.svg.draw(),this.map.svg.transform=function(t){return"translate("+e.map.x(t.TopoMapX)+","+e.map.y(t.TopoMapY)+")"},this.map.svg.circle.attr("transform",this.map.svg.transform)},e.prototype.imageLoaded=function(e){var t=this;this.img=e,this.width=e?e.naturalWidth:1024,this.height=e?e.naturalHeight:1024,window.setTimeout(function(){t.resize(),t.redraw()},100)},e.prototype.resize=function(){},e.prototype.redraw=function(){var e=this,t=c.e(this.mapContainer.nativeElement);this.map.svg.attr("transform","translate("+t.x+","+t.y+") scale("+t.k+")"),t.k!=this.prevTransformK&&this.map.svg.circle.attr("stroke-width",function(r){var n=e.structures.Owners[r.OwnerId];return(!!n.LastActiveTime&&l(new Date(n.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(r.StructureCount>=100||r.TrashQuota<.5&&r.StructureCount>=10)?3:2)/t.k});var r=this.map.canvas;r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,1024,1024),r.translate(t.x,t.y),r.scale(t.k,t.k),this.img&&r.drawImage(this.img,0,0),this.prevTransformK=t.k},e.prototype.ngOnChanges=function(e){var t=this;if(null!=this.mapName){var r=new Image;r.onload=function(){return t.imageLoaded(r)},r.onerror=function(){return t.imageLoaded(void 0)},r.src=o.a.demo?"assets/demo/Ragnarok.jpg":this.getApiBaseUrl()+"/map/"+this.mapName,r.complete&&(r.onload=null,r.onerror=null,this.imageLoaded(r))}},e.prototype.getApiBaseUrl=function(){return o.a.apiBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e.prototype.reset=function(){this.selectedOwner=void 0,this.updateSelection()},e.prototype.setSelectedOwner=function(e){this.selectedOwner=e,this.updateSelection()},e.prototype.setOwnerSort=function(e){this.ownerSortField=e,this.sortOwners(this.structures)},e.prototype.showAreaModal=function(e,t){this.currentArea=e,this.currentOwner=this.structures.Owners[e.OwnerId],c.b(this.contextMenu.nativeElement).style("display","block"),c.c&&c.c.stopPropagation()},e.prototype.showOwnerModal=function(e,t){this.currentOwner=t,c.b(this.contextMenu.nativeElement).style("display","block"),e.stopPropagation()},e.prototype.showInfoModal=function(e,t){var r={};r.Header=e,r.Message=t,this.modalInfo=r,c.b(this.contextMenu.nativeElement).style("display","block"),c.c&&c.c.stopPropagation()},e.prototype.hideContextMenu=function(){c.b(this.contextMenu.nativeElement).style("display","none"),this.currentArea=void 0,this.currentOwner=void 0,this.modalInfo=void 0},e.prototype.destroyCurrentArea=function(e){var t=this;this.httpService.adminDestroyStructuresForTeamIdAtPosition(this.serverKey,this.currentOwner.OwnerId,this.currentArea.X,this.currentArea.Y,+this.currentArea.RadiusUu+1e3,1).then(function(e){t.currentArea.Removed=!0,t.currentOwner.AreaCount-=1,t.currentOwner.StructureCount-=t.currentArea.StructureCount,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyAllStructuresForTeam=function(e){var t=this;this.httpService.adminDestroyAllStructuresForTeamId(this.serverKey,this.currentOwner.OwnerId).then(function(e){t.currentOwner.Removed=!0,t.currentOwner.AreaCount=0,t.currentOwner.StructureCount=0,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyDinosForTeam=function(e){var t=this;this.httpService.adminDestroyDinosForTeamId(this.serverKey,this.currentOwner.OwnerId).then(function(e){t.currentOwner.CreatureCount=0,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.saveWorld=function(e){var t=this;this.httpService.adminSaveWorld(this.serverKey).then(function(e){t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e}();d([r.i(n.Input)(),u("design:type",Object),u("design:paramtypes",[Object])],p.prototype,"structures",null),d([r.i(n.Input)(),u("design:type",String)],p.prototype,"serverKey",void 0),d([r.i(n.Input)(),u("design:type",String)],p.prototype,"mapName",void 0),d([r.i(n.ViewChild)("map"),u("design:type","function"==typeof(h=void 0!==n.ElementRef&&n.ElementRef)&&h||Object)],p.prototype,"mapContainer",void 0),d([r.i(n.ViewChild)("contextMenu"),u("design:type","function"==typeof(f=void 0!==n.ElementRef&&n.ElementRef)&&f||Object)],p.prototype,"contextMenu",void 0),p=d([r.i(n.Component)({selector:"arkmap-structures",template:r("QMiF"),styles:[r("fT+k")],encapsulation:n.ViewEncapsulation.None}),u("design:paramtypes",["function"==typeof(m=void 0!==s.a&&s.a)&&m||Object,"function"==typeof(v=void 0!==a.a&&a.a)&&v||Object,"function"==typeof(g=void 0!==n.NgZone&&n.NgZone)&&g||Object])],p);var h,f,m,v,g},lHWG:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Fzro"),s=r("eErF"),a=(r.n(s),r("kZql"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e){this.http=e,this.headers=new i.c({"Content-Type":"application/json"}),this.serversUrl="/servers",this.serverUrl="/server",this.wildCreaturesUrl="/wildcreatures",this.structuresUrl="/structures",this.adminServerUrl="/adminserver",this.administerUrl="/administer",this.playerUrl="/player"}return e.prototype.getOptions=function(){var e="true"==localStorage.getItem("demoMode"),t=new i.d({withCredentials:!0});return e&&(t.headers||(t.headers=new i.c),t.headers.append("demoMode","true")),t},e.prototype.getServers=function(){return this.http.get(""+this.getApiBaseUrl()+this.serversUrl+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getServer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.serverUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getWildCreatures=function(e){return this.http.get(""+this.getApiBaseUrl()+this.wildCreaturesUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getStructures=function(e){return this.http.get(""+this.getApiBaseUrl()+this.structuresUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getPlayer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.playerUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getAdminServer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.adminServerUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyAllStructuresForTeamId=function(e,t){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyAllStructuresForTeamId/"+e+"?teamId="+t+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyStructuresForTeamIdAtPosition=function(e,t,r,n,i,s){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyStructuresForTeamIdAtPosition/"+e+"?teamId="+t+"&x="+r+"&y="+n+"&radius="+i+"&rafts="+s+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyDinosForTeamId=function(e,t){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyDinosForTeamId/"+e+"?teamId="+t+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminSaveWorld=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/SaveWorld/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminListFertilizedEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DroppedEggsList/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyAllEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyAllEggs/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroySpoiledEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroySpoiledEggs/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getApiBaseUrl=function(){return a.a.apiBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e.prototype.handleError=function(e){return Promise.reject(e.message||e)},e}();l=o([r.i(n.Injectable)(),c("design:paramtypes",["function"==typeof(d=void 0!==i.b&&i.b)&&d||Object])],l);var d},lRu1:function(e,t){e.exports='
\n
\n

Connection error

\n

The application was unable to connect to the Web API. This could be due to a configuration error...

\n
\n
'},m8aW:function(e,t){e.exports=''},mf93:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},ne8d:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},oLRk:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},okgc:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},qn86:function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("PJh5")),o=(r.n(a),r("ATz5")),c=r("+Lwu"),l=r("lHWG"),d=r("+rAa");r.d(t,"a",function(){return h});var u=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},p=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},h=function(){function e(e,t,n,i,s,a,o){this.route=e,this.router=t,this.httpService=n,this.dataService=i,this.messageService=s,this.notificationsService=a,this.ref=o,this.menuOption=void 0,this.loaded=!1,this.creaturesLoaded=!1,this.keysGetter=Object.keys,this.showMap=!1,this.creaturesMode="status",this.creaturesSortField="base_level",this.creaturesAltSortFields="base_level,gender",this.creaturesSortFunctions={gender:function(e,t,n){return r.i(d.a)(e.Gender,t.Gender,n)},base_level:function(e,t,n){return r.i(d.b)(e.BaseLevel,t.BaseLevel,!n)},tameable:function(e,t,n){return r.i(d.b)(e.IsTameable,t.IsTameable,!n)},latitude:function(e,t,n){return r.i(d.c)(e.Latitude,t.Latitude,n,1)},longitude:function(e,t,n){return r.i(d.c)(e.Longitude,t.Longitude,n,1)},x:function(e,t,n){return r.i(d.c)(e.X,t.X,n,0)},y:function(e,t,n){return r.i(d.c)(e.Y,t.Y,n,0)},z:function(e,t,n){return r.i(d.c)(e.Z,t.Z,n,0)},stat_health:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.Health:null,void 0!=t.BaseStats?t.BaseStats.Health:null,!n)},stat_stamina:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.Stamina:null,void 0!=t.BaseStats?t.BaseStats.Stamina:null,!n)},stat_oxygen:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.Oxygen:null,void 0!=t.BaseStats?t.BaseStats.Oxygen:null,!n)},stat_food:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.Food:null,void 0!=t.BaseStats?t.BaseStats.Food:null,!n)},stat_weight:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.Weight:null,void 0!=t.BaseStats?t.BaseStats.Weight:null,!n)},stat_melee:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.Melee:null,void 0!=t.BaseStats?t.BaseStats.Melee:null,!n)},stat_speed:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.MovementSpeed:null,void 0!=t.BaseStats?t.BaseStats.MovementSpeed:null,!n)},id1:function(e,t,n){return r.i(d.b)(e.Id1,t.Id1,n)},id2:function(e,t,n){return r.i(d.b)(e.Id1,t.Id1,n)}},this.playerSortFunctions={character_name:function(e,t,n){return r.i(d.a)(e.CharacterName,t.CharacterName,n)},tribe_name:function(e,t,n){return r.i(d.a)(e.TribeName,t.TribeName,n)},last_active:function(e,t,n){return r.i(d.b)(e.LastActiveTime,t.LastActiveTime,!n)}},this.tribeSortFunctions={tribe_name:function(e,t,n){return r.i(d.a)(e.Name,t.Name,n)},last_active:function(e,t,n){return r.i(d.b)(e.LastActiveTime,t.LastActiveTime,!n)}},this.wildStatisticsSortFunctions={species:function(e,t,n){return r.i(d.a)(e.Name,t.Name,n)},class_name:function(e,t,n){return r.i(d.a)(e.ClassName,t.ClassName,n)},count:function(e,t,n){return r.i(d.b)(e.Count,t.Count,!n)},fraction:function(e,t,n){return r.i(d.c)(e.Fraction,t.Fraction,!n,4)}}}return e.prototype.getServer=function(){var e=this;this.httpService.getServer(this.serverKey).then(function(t){e.server=t,e.filter(),e.loaded=!0}).catch(function(t){e.server=null,e.filteredPlayers=null,e.filteredTribes=null,e.loaded=!0})},e.prototype.getWildCreatures=function(){var e=this;this.httpService.getWildCreatures(this.serverKey).then(function(t){e.wild=t,e.species=Object.keys(e.wild.Species).sort(function(t,n){return r.i(d.a)(e.wild.Species[t].Name||t,e.wild.Species[n].Name||n,!0)}),e.selectedSpecies&&void 0!=e.species.find(function(t){return t==e.selectedSpecies})||(e.selectedSpecies=e.species.length>0?e.species[0]:null),e.filterAndSortWild(),e.creaturesLoaded=!0,e.ref.detectChanges()}).catch(function(t){e.wild=null,e.species=null,e.filteredCreatures=null,e.creaturesLoaded=!0})},e.prototype.ngOnInit=function(){var e=this;this.accessControl_pages_player=this.dataService.hasFeatureAccessObservable("pages","player"),this.serverKey=this.route.snapshot.params.id,this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){e.menuOption=t,0!=e.creaturesLoaded||"wildcreatures"!=e.menuOption&&"wildcreatures-statistics"!=e.menuOption||e.getWildCreatures()}),this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){e.serverKey==t&&(e.updateServer(),e.showServerUpdateNotification(t))}),this.getServer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.filter=function(){var e=this.dataService.getCurrentDate(),t=e.subtract(90,"day");this.filteredPlayers=this.server.Players.filter(function(e){return a(new Date(e.LastActiveTime)).isSameOrAfter(t)}),this.filteredTribes=this.server.Tribes.filter(function(e){return a(new Date(e.LastActiveTime)).isSameOrAfter(t)})},e.prototype.sortWild=function(){var e=this,t="-"!=this.creaturesSortField[0],r=this.creaturesSortFunctions[this.creaturesSortField.replace(/^\-/,"")],n=this.creaturesAltSortFields.split(",").map(function(t){var r={};return r.asc="-"!=t[0],r.sortFunc=e.creaturesSortFunctions[t.replace(/^\-/,"")],r});void 0!=this.filteredCreatures&&this.filteredCreatures.sort(function(e,i){var s=r(e,i,t);if(0==s)for(var a=0,o=n;aOverview\r\n \r\n
{{server.Key}}
\r\n
\r\n \r\n'},rZY4:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"tr th.orderBy{cursor:pointer}a.w3-button.disabled{color:#a9a9a9}a.w3-button.disabled:hover{color:#a9a9a9!important;background-color:transparent!important;opacity:1!important;cursor:default}",""]),e.exports=e.exports.toString()},uslO:function(e,t,r){function n(e){return r(i(e))}function i(e){var t=s[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}var s={"./af":"3CJN","./af.js":"3CJN","./ar":"3MVc","./ar-dz":"tkWw","./ar-dz.js":"tkWw","./ar-kw":"j8cJ","./ar-kw.js":"j8cJ","./ar-ly":"wPpW","./ar-ly.js":"wPpW","./ar-ma":"dURR","./ar-ma.js":"dURR","./ar-sa":"7OnE","./ar-sa.js":"7OnE","./ar-tn":"BEem","./ar-tn.js":"BEem","./ar.js":"3MVc","./az":"eHwN","./az.js":"eHwN","./be":"3hfc","./be.js":"3hfc","./bg":"lOED","./bg.js":"lOED","./bm":"hng5","./bm.js":"hng5","./bn":"aM0x","./bn.js":"aM0x","./bo":"w2Hs","./bo.js":"w2Hs","./br":"OSsP","./br.js":"OSsP","./bs":"aqvp","./bs.js":"aqvp","./ca":"wIgY","./ca.js":"wIgY","./cs":"ssxj","./cs.js":"ssxj","./cv":"N3vo","./cv.js":"N3vo","./cy":"ZFGz","./cy.js":"ZFGz","./da":"YBA/","./da.js":"YBA/","./de":"DOkx","./de-at":"8v14","./de-at.js":"8v14","./de-ch":"Frex","./de-ch.js":"Frex","./de.js":"DOkx","./dv":"rIuo","./dv.js":"rIuo","./el":"CFqe","./el.js":"CFqe","./en-SG":"oYA3","./en-SG.js":"oYA3","./en-au":"Sjoy","./en-au.js":"Sjoy","./en-ca":"Tqun","./en-ca.js":"Tqun","./en-gb":"hPuz","./en-gb.js":"hPuz","./en-ie":"ALEw","./en-ie.js":"ALEw","./en-il":"QZk1","./en-il.js":"QZk1","./en-nz":"dyB6","./en-nz.js":"dyB6","./eo":"Nd3h","./eo.js":"Nd3h","./es":"LT9G","./es-do":"7MHZ","./es-do.js":"7MHZ","./es-us":"INcR","./es-us.js":"INcR","./es.js":"LT9G","./et":"XlWM","./et.js":"XlWM","./eu":"sqLM","./eu.js":"sqLM","./fa":"2pmY","./fa.js":"2pmY","./fi":"nS2h","./fi.js":"nS2h","./fo":"OVPi","./fo.js":"OVPi","./fr":"tzHd","./fr-ca":"bXQP","./fr-ca.js":"bXQP","./fr-ch":"VK9h","./fr-ch.js":"VK9h","./fr.js":"tzHd","./fy":"g7KF","./fy.js":"g7KF","./ga":"U5Iz","./ga.js":"U5Iz","./gd":"nLOz","./gd.js":"nLOz","./gl":"FuaP","./gl.js":"FuaP","./gom-latn":"+27R","./gom-latn.js":"+27R","./gu":"rtsW","./gu.js":"rtsW","./he":"Nzt2","./he.js":"Nzt2","./hi":"ETHv","./hi.js":"ETHv","./hr":"V4qH","./hr.js":"V4qH","./hu":"xne+","./hu.js":"xne+","./hy-am":"GrS7","./hy-am.js":"GrS7","./id":"yRTJ","./id.js":"yRTJ","./is":"upln","./is.js":"upln","./it":"FKXc","./it-ch":"/E8D","./it-ch.js":"/E8D","./it.js":"FKXc","./ja":"ORgI","./ja.js":"ORgI","./jv":"JwiF","./jv.js":"JwiF","./ka":"RnJI","./ka.js":"RnJI","./kk":"j+vx","./kk.js":"j+vx","./km":"5j66","./km.js":"5j66","./kn":"gEQe","./kn.js":"gEQe","./ko":"eBB/","./ko.js":"eBB/","./ku":"kI9l","./ku.js":"kI9l","./ky":"6cf8","./ky.js":"6cf8","./lb":"z3hR","./lb.js":"z3hR","./lo":"nE8X","./lo.js":"nE8X","./lt":"/6P1","./lt.js":"/6P1","./lv":"jxEH","./lv.js":"jxEH","./me":"svD2","./me.js":"svD2","./mi":"gEU3","./mi.js":"gEU3","./mk":"Ab7C","./mk.js":"Ab7C","./ml":"oo1B","./ml.js":"oo1B","./mn":"CqHt","./mn.js":"CqHt","./mr":"5vPg","./mr.js":"5vPg","./ms":"ooba","./ms-my":"G++c","./ms-my.js":"G++c","./ms.js":"ooba","./mt":"oCzW","./mt.js":"oCzW","./my":"F+2e","./my.js":"F+2e","./nb":"FlzV","./nb.js":"FlzV","./ne":"/mhn","./ne.js":"/mhn","./nl":"3K28","./nl-be":"Bp2f","./nl-be.js":"Bp2f","./nl.js":"3K28","./nn":"C7av","./nn.js":"C7av","./pa-in":"pfs9","./pa-in.js":"pfs9","./pl":"7LV+","./pl.js":"7LV+","./pt":"ZoSI","./pt-br":"AoDM","./pt-br.js":"AoDM","./pt.js":"ZoSI","./ro":"wT5f","./ro.js":"wT5f","./ru":"ulq9","./ru.js":"ulq9","./sd":"fW1y","./sd.js":"fW1y","./se":"5Omq","./se.js":"5Omq","./si":"Lgqo","./si.js":"Lgqo","./sk":"OUMt","./sk.js":"OUMt","./sl":"2s1U","./sl.js":"2s1U","./sq":"V0td","./sq.js":"V0td","./sr":"f4W3","./sr-cyrl":"c1x4","./sr-cyrl.js":"c1x4","./sr.js":"f4W3","./ss":"7Q8x","./ss.js":"7Q8x","./sv":"Fpqq","./sv.js":"Fpqq","./sw":"DSXN","./sw.js":"DSXN","./ta":"+7/x","./ta.js":"+7/x","./te":"Nlnz","./te.js":"Nlnz","./tet":"gUgh","./tet.js":"gUgh","./tg":"5SNd","./tg.js":"5SNd","./th":"XzD+","./th.js":"XzD+","./tl-ph":"3LKG","./tl-ph.js":"3LKG","./tlh":"m7yE","./tlh.js":"m7yE","./tr":"k+5o","./tr.js":"k+5o","./tzl":"iNtv","./tzl.js":"iNtv","./tzm":"FRPF","./tzm-latn":"krPU","./tzm-latn.js":"krPU","./tzm.js":"FRPF","./ug-cn":"To0v","./ug-cn.js":"To0v","./uk":"ntHu","./uk.js":"ntHu","./ur":"uSe8","./ur.js":"uSe8","./uz":"XU1s","./uz-latn":"/bsm","./uz-latn.js":"/bsm","./uz.js":"XU1s","./vi":"0X8Q","./vi.js":"0X8Q","./x-pseudo":"e/KL","./x-pseudo.js":"e/KL","./yo":"YXlc","./yo.js":"YXlc","./zh-cn":"Vz2w","./zh-cn.js":"Vz2w","./zh-hk":"ZUyn","./zh-hk.js":"ZUyn","./zh-tw":"BbgG","./zh-tw.js":"BbgG"};n.keys=function(){return Object.keys(s)},n.resolve=i,e.exports=n,n.id="uslO"},x35b:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("3j3K"),i=r("O61y"),s=r("Iksp");r("kZql").a.production&&r.i(n.enableProdMode)(),r.i(i.a)().bootstrapModule(s.a)},xEL3:function(e,t){e.exports='
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given server key.

\r\n
\r\n
\r\n
\r\n

Players

\r\n \r\n \r\n \r\n \r\n Character Name\r\n \r\n \r\n {{player.CharacterName}}{{player.CharacterName}}\r\n \r\n \r\n \r\n \r\n Tribe Name\r\n \r\n \r\n {{player.TribeName}}\r\n \r\n \r\n \r\n \r\n Last Active\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n

Tribes

\r\n \r\n \r\n \r\n \r\n Tribe Name\r\n \r\n \r\n {{tribe.Name}}\r\n \r\n \r\n \r\n \r\n Members\r\n \r\n \r\n {{getTribeMember(member)?.CharacterName || member}}{{getTribeMember(member)?.CharacterName || member}}, \r\n \r\n \r\n \r\n \r\n Last Active\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n

Wild Statistics {{(wild.Statistics.Species?.length || 0) | number}}

\r\n \r\n \r\n \r\n \r\n Species\r\n \r\n \r\n {{species.Name}}\r\n \r\n \r\n \r\n \r\n Class Name\r\n \r\n \r\n {{species.ClassName}}\r\n \r\n \r\n \r\n \r\n Aliases\r\n \r\n \r\n {{species.Aliases.length > 0 ? species.Aliases.join(\', \') : \'\'}}\r\n \r\n \r\n \r\n \r\n Count\r\n \r\n \r\n {{species.Count | number}}\r\n \r\n \r\n \r\n \r\n Fraction\r\n \r\n \r\n {{species.Fraction | percent:\'1.0-4\'}}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n

Wild Creatures {{(filteredCreatures?.length || 0) | number}} / {{(wild?.Statistics?.CreatureCount || 0) | number}}

\r\n
\r\n
\r\n
There are no creatures...
\r\n \r\n \r\n \x3c!--
\r\n close\r\n \r\n
--\x3e\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
GenderBase LevelTameableXYZLatLngHPSTOXFOWEMESPID1ID2
No matching creatures...
{{creature.Gender}}{{creature.BaseLevel}}{{(wild.Species[selectedSpecies].IsTameable && creature.IsTameable == true ? "Yes" : "No")}}{{creature.X}}{{creature.Y}}{{creature.Z}}{{creature.Latitude | number:\'1.1-1\'}}{{creature.Longitude | number:\'1.1-1\'}}{{creature.BaseStats?.Health}}{{creature.BaseStats?.Stamina}}{{creature.BaseStats?.Oxygen}}{{creature.BaseStats?.Food}}{{creature.BaseStats?.Weight}}{{creature.BaseStats?.Melee}}{{creature.BaseStats?.MovementSpeed}}content_copy{{creature.Id1}}{{creature.Id2}}
\r\n
\r\n
\r\n
\r\n'}},[0]); \ No newline at end of file diff --git a/ArkBot/WebApp/dist/styles.07a600519edcc9a023fa.bundle.css b/ArkBot/WebApp/dist/styles.dd9c2abfa63318e82a56.bundle.css similarity index 60% rename from ArkBot/WebApp/dist/styles.07a600519edcc9a023fa.bundle.css rename to ArkBot/WebApp/dist/styles.dd9c2abfa63318e82a56.bundle.css index 51523fa..67a81b2 100644 --- a/ArkBot/WebApp/dist/styles.07a600519edcc9a023fa.bundle.css +++ b/ArkBot/WebApp/dist/styles.dd9c2abfa63318e82a56.bundle.css @@ -1 +1 @@ -.light .theme-l1{color:#000!important;background-color:#fff!important}.light .theme-l2{color:#000!important;background-color:#f1f1f1!important}.light .theme-d1{color:#fff!important;background-color:#2196f3!important}.light .theme-c1{color:#fff!important;background-color:#4caf50!important}.light .theme-e1{color:#fff!important;background-color:#f44336!important}.light .odd .theme-l2{color:#000!important;background-color:#f5f5f5!important}.light .theme-l1.theme-hover:hover,.light .theme-l2.theme-hover:hover{color:#000!important;background-color:#ccc!important}.light .theme-text-l1-light{color:#a9a9a9!important}.light .theme-text-d1{color:#2196f3!important}.light .theme-text-c1{color:#4caf50!important}.light .border-theme{border-color:#ddd!important}body.dark{color:#fff}.dark .theme-l1,body.dark{background-color:#141519!important}.dark .theme-l1,.dark .theme-l2{color:#fff!important}.dark .theme-l2{background-color:#2a2c36!important}.dark .theme-c1,.dark .theme-d1{color:#fff!important;background-color:#114f7f!important}.dark .theme-e1{color:#fff!important;background-color:#f44336!important}.dark .theme-l1.theme-hover:hover,.dark .theme-l2.theme-hover:hover{color:#fff!important;background-color:#ccc!important}.dark .theme-text-l1-light{color:#a9a9a9!important}.dark .theme-text-d1{color:#fff!important}.dark .theme-text-c1{color:#114f7f!important}.dark .border-theme{border-color:#2b2d33!important}.dark .w3-bordered tr,.dark .w3-table-all tr{border-bottom:1px solid #2b2d33}.dark .w3-striped tbody tr:nth-child(2n){background-color:#22232b;color:#fff}.dark .w3-table-all tr:nth-child(odd){background-color:#141519;color:#fff}.dark .w3-table-all tr:nth-child(2n){background-color:#22232b;color:#fff}.dark .w3-ul li{border-bottom:1px solid #2b2d33}.dark .w3-ul li:last-child{border-bottom:none}.dark .w3-card-4{box-shadow:none}.dark .breadcrumb ul li a{color:#fff!important}.app-hover-green-light:hover,.dark .app-green-light{background-color:#58a6dd!important}.app-green-light,.app-hover-green-light:hover{background-color:#ceedce!important}.light .theme-c1 a:hover,.light .theme-d1 a:hover{color:#fff}.light a:hover{color:#2196f3}a:hover{opacity:.6}body{margin-bottom:2em}.inner-addon{position:relative}.inner-addon .material-icons{position:absolute;padding:10px}.left-addon .material-icons{left:0}.right-addon .material-icons{right:0}.left-addon input{padding-left:30px}.right-addon input{padding-right:30px}.navigation a:not(.w3-green){background-color:#ceedce!important}.breadcrumb ul{list-style:none;padding:0;margin:0}.breadcrumb ul li{display:inline;color:#a9a9a9}.breadcrumb ul li+li:before{padding:8px;color:silver;content:"/\A0"}.breadcrumb ul li a{text-decoration:none;cursor:pointer;color:#2196f3}h2.logo{display:block;margin-left:auto;margin-right:auto;margin-top:5px;margin-bottom:10px;height:200px;width:200px;text-indent:-99999em;overflow:hidden;background-size:contain!important}.dark h2.logo{background:url(/assets/logodark.png) 0 0 no-repeat}.light h2.logo{background:url(/assets/logolight.png) 0 0 no-repeat}.menucontainer+#page{margin-left:220px}#menu.w3-sidebar{width:220px;padding-bottom:10px}#menu .w3-cell{display:inline-block;width:100%;text-align:left}#menucontent.hide{display:block}#menu .menu-header,#menubtn{display:none}#menu .menu-items{margin-top:20px}.device-medium-show,.device-small-show,.device-tiny-show{display:none}@media screen and (max-width:767px){.dark #menu h2.logo,.light #menu h2.logo{height:46px;width:46px;margin-top:3px;margin-left:14px;margin-right:0;margin-bottom:-7px}.menucontainer+#page{margin-left:0}#menu.w3-sidebar{position:relative!important;width:auto}#menu .w3-cell{display:table-cell;width:auto;text-align:center}#menubtn{display:block}#menucontent.hide,.device-medium-hide{display:none}.device-medium-show{display:unset}}@media screen and (max-width:600px){#menu .w3-cell{display:block}#menucontent.hide,.device-medium-hide,.device-small-hide{display:none}.device-medium-show,.device-small-show{display:unset}}@media screen and (max-width:400px){.device-medium-hide,.device-small-hide,.device-tiny-hide{display:none}.device-medium-show,.device-small-show,.device-tiny-show{display:unset}} \ No newline at end of file +.light .theme-l1{color:#000!important;background-color:#fff!important}.light .theme-l2{color:#000!important;background-color:#f1f1f1!important}.light .theme-d1{color:#fff!important;background-color:#2196f3!important}.light .theme-c1{color:#fff!important;background-color:#4caf50!important}.light .theme-e1{color:#fff!important;background-color:#f44336!important}.light .odd .theme-l2{color:#000!important;background-color:#f5f5f5!important}.light .theme-l1.theme-hover:hover,.light .theme-l2.theme-hover:hover{color:#000!important;background-color:#ccc!important}.light .theme-text-l1-light{color:#a9a9a9!important}.light .theme-text-d1{color:#2196f3!important}.light .theme-text-c1{color:#4caf50!important}.light .border-theme{border-color:#ddd!important}body.dark{color:#fff}.dark .theme-l1,body.dark{background-color:#141519!important}.dark .theme-l1,.dark .theme-l2{color:#fff!important}.dark .theme-l2{background-color:#2a2c36!important}.dark .theme-c1,.dark .theme-d1{color:#fff!important;background-color:#114f7f!important}.dark .theme-e1{color:#fff!important;background-color:#f44336!important}.dark .theme-l1.theme-hover:hover,.dark .theme-l2.theme-hover:hover{color:#fff!important;background-color:#ccc!important}.dark .theme-text-l1-light{color:#a9a9a9!important}.dark .theme-text-d1{color:#fff!important}.dark .theme-text-c1{color:#114f7f!important}.dark .border-theme{border-color:#2b2d33!important}.dark .w3-bordered tr,.dark .w3-table-all tr{border-bottom:1px solid #2b2d33}.dark .w3-striped tbody tr:nth-child(2n){background-color:#22232b;color:#fff}.dark .w3-table-all tr:nth-child(odd){background-color:#141519;color:#fff}.dark .w3-table-all tr:nth-child(2n){background-color:#22232b;color:#fff}.dark .w3-ul li{border-bottom:1px solid #2b2d33}.dark .w3-ul li:last-child{border-bottom:none}.dark .w3-card-4{box-shadow:none}.dark .breadcrumb ul li a{color:#fff!important}.app-hover-green-light:hover,.dark .app-green-light{background-color:#58a6dd!important}.app-green-light,.app-hover-green-light:hover{background-color:#ceedce!important}.light .theme-c1 a:hover,.light .theme-d1 a:hover{color:#fff}.light a:hover{color:#2196f3}a:hover{opacity:.6}body{margin-bottom:2em}.inner-addon{position:relative}.inner-addon .material-icons{position:absolute;padding:10px}.left-addon .material-icons{left:0}.right-addon .material-icons{right:0}.left-addon input{padding-left:30px}.right-addon input{padding-right:30px}.navigation a:not(.w3-green){background-color:#ceedce!important}.breadcrumb ul{list-style:none;padding:0;margin:0}.breadcrumb ul li{display:inline;color:#a9a9a9}.breadcrumb ul li+li:before{padding:8px;color:silver;content:"/\A0"}.breadcrumb ul li a{text-decoration:none;cursor:pointer;color:#2196f3}h2.logo{display:block;margin-left:auto;margin-right:auto;margin-top:5px;margin-bottom:10px;height:200px;width:200px;text-indent:-99999em;overflow:hidden;background-size:contain!important}.dark h2.logo{background:url(/assets/logodark.png) 0 0 no-repeat}.light h2.logo{background:url(/assets/logolight.png) 0 0 no-repeat}.menucontainer+#page{margin-left:220px}#menu.w3-sidebar{width:220px;padding-bottom:10px}#menu .w3-cell{display:inline-block;width:100%;text-align:left}#menucontent.hide{display:block}#menu .menu-header,#menubtn{display:none}#menu .menu-items{margin-top:20px}.device-medium-show,.device-small-show,.device-tiny-show{display:none}body.dark *{--scrollbarBG:#141519;--thumbBG:#2a2c36}body.dark ::-webkit-scrollbar{width:auto}body.dark *{scrollbar-width:auto;scrollbar-color:var(--thumbBG) var(--scrollbarBG)}body.dark ::-webkit-scrollbar-track{background:var(--scrollbarBG)}body.dark ::-webkit-scrollbar-thumb{background-color:var(--thumbBG);border-radius:10px;border:3px solid var(--scrollbarBG)}@media screen and (min-width:601px){.topmenu.dark h2.logo{background:url(/assets/logodark_small.png) 0 0 no-repeat}.topmenu.light h2.logo{background:url(/assets/logolight_small.png) 0 0 no-repeat}.topmenu.dark #menu h2.logo,.topmenu.light #menu h2.logo{height:46px;width:46px;margin-top:3px;margin-left:14px;margin-right:0;margin-bottom:-7px}.topmenu .menucontainer+#page{margin-left:0}.topmenu #menu.w3-sidebar{position:relative!important;width:auto}.topmenu #menucontent{display:block!important;position:absolute;right:0;top:0;width:100%;padding-left:75px}.topmenu #menucontent .menu-items{width:auto;display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;margin-top:7px}.topmenu #menubtn{display:none!important}.topmenu #menu .w3-cell{display:table-cell;width:auto;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}@media screen and (max-width:767px){.dark h2.logo{background:url(/assets/logodark_small.png) 0 0 no-repeat}.light h2.logo{background:url(/assets/logolight_small.png) 0 0 no-repeat}.dark #menu h2.logo,.light #menu h2.logo{height:46px;width:46px;margin-top:3px;margin-left:14px;margin-right:0;margin-bottom:-7px}.menucontainer+#page{margin-left:0}#menu.w3-sidebar{position:relative!important;width:auto}#menu .w3-cell{display:table-cell;width:auto;text-align:center}#menubtn{display:block}#menucontent.hide,.device-medium-hide{display:none}.device-medium-show{display:unset}}@media screen and (max-width:600px){#menu .w3-cell{display:block}#menucontent.hide,.device-medium-hide,.device-small-hide{display:none}.device-medium-show,.device-small-show{display:unset}}@media screen and (max-width:400px){.device-medium-hide,.device-small-hide,.device-tiny-hide{display:none}.device-medium-show,.device-small-show,.device-tiny-show{display:unset}} \ No newline at end of file diff --git a/ArkBot/WebApp/package-lock.json b/ArkBot/WebApp/package-lock.json index 2863aee..78ee004 100644 --- a/ArkBot/WebApp/package-lock.json +++ b/ArkBot/WebApp/package-lock.json @@ -3532,8 +3532,8 @@ "dev": true, "optional": true, "requires": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" + "delegates": "1.0.0", + "readable-stream": "2.3.6" } }, "balanced-match": { @@ -3546,7 +3546,7 @@ "bundled": true, "dev": true, "requires": { - "balanced-match": "^1.0.0", + "balanced-match": "1.0.0", "concat-map": "0.0.1" } }, @@ -3583,7 +3583,7 @@ "dev": true, "optional": true, "requires": { - "ms": "^2.1.1" + "ms": "2.1.1" } }, "deep-extend": { @@ -3610,7 +3610,7 @@ "dev": true, "optional": true, "requires": { - "minipass": "^2.2.1" + "minipass": "2.3.5" } }, "fs.realpath": { @@ -3625,14 +3625,14 @@ "dev": true, "optional": true, "requires": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" + "aproba": "1.2.0", + "console-control-strings": "1.1.0", + "has-unicode": "2.0.1", + "object-assign": "4.1.1", + "signal-exit": "3.0.2", + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wide-align": "1.1.3" } }, "glob": { @@ -3641,12 +3641,12 @@ "dev": true, "optional": true, "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" } }, "has-unicode": { @@ -3661,7 +3661,7 @@ "dev": true, "optional": true, "requires": { - "safer-buffer": ">= 2.1.2 < 3" + "safer-buffer": "2.1.2" } }, "ignore-walk": { @@ -3670,7 +3670,7 @@ "dev": true, "optional": true, "requires": { - "minimatch": "^3.0.4" + "minimatch": "3.0.4" } }, "inflight": { @@ -3679,8 +3679,8 @@ "dev": true, "optional": true, "requires": { - "once": "^1.3.0", - "wrappy": "1" + "once": "1.4.0", + "wrappy": "1.0.2" } }, "inherits": { @@ -3699,7 +3699,7 @@ "bundled": true, "dev": true, "requires": { - "number-is-nan": "^1.0.0" + "number-is-nan": "1.0.1" } }, "isarray": { @@ -3713,7 +3713,7 @@ "bundled": true, "dev": true, "requires": { - "brace-expansion": "^1.1.7" + "brace-expansion": "1.1.11" } }, "minimist": { @@ -3726,8 +3726,8 @@ "bundled": true, "dev": true, "requires": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" + "safe-buffer": "5.1.2", + "yallist": "3.0.3" } }, "minizlib": { @@ -3736,7 +3736,7 @@ "dev": true, "optional": true, "requires": { - "minipass": "^2.2.1" + "minipass": "2.3.5" } }, "mkdirp": { @@ -3759,9 +3759,9 @@ "dev": true, "optional": true, "requires": { - "debug": "^4.1.0", - "iconv-lite": "^0.4.4", - "sax": "^1.2.4" + "debug": "4.1.1", + "iconv-lite": "0.4.24", + "sax": "1.2.4" } }, "node-pre-gyp": { @@ -3770,16 +3770,16 @@ "dev": true, "optional": true, "requires": { - "detect-libc": "^1.0.2", - "mkdirp": "^0.5.1", - "needle": "^2.2.1", - "nopt": "^4.0.1", - "npm-packlist": "^1.1.6", - "npmlog": "^4.0.2", - "rc": "^1.2.7", - "rimraf": "^2.6.1", - "semver": "^5.3.0", - "tar": "^4" + "detect-libc": "1.0.3", + "mkdirp": "0.5.1", + "needle": "2.3.0", + "nopt": "4.0.1", + "npm-packlist": "1.4.1", + "npmlog": "4.1.2", + "rc": "1.2.8", + "rimraf": "2.6.3", + "semver": "5.7.0", + "tar": "4.4.8" } }, "nopt": { @@ -3788,8 +3788,8 @@ "dev": true, "optional": true, "requires": { - "abbrev": "1", - "osenv": "^0.1.4" + "abbrev": "1.1.1", + "osenv": "0.1.5" } }, "npm-bundled": { @@ -3804,8 +3804,8 @@ "dev": true, "optional": true, "requires": { - "ignore-walk": "^3.0.1", - "npm-bundled": "^1.0.1" + "ignore-walk": "3.0.1", + "npm-bundled": "1.0.6" } }, "npmlog": { @@ -3814,10 +3814,10 @@ "dev": true, "optional": true, "requires": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" + "are-we-there-yet": "1.1.5", + "console-control-strings": "1.1.0", + "gauge": "2.7.4", + "set-blocking": "2.0.0" } }, "number-is-nan": { @@ -3836,7 +3836,7 @@ "bundled": true, "dev": true, "requires": { - "wrappy": "1" + "wrappy": "1.0.2" } }, "os-homedir": { @@ -3857,8 +3857,8 @@ "dev": true, "optional": true, "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" } }, "path-is-absolute": { @@ -3879,10 +3879,10 @@ "dev": true, "optional": true, "requires": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" + "deep-extend": "0.6.0", + "ini": "1.3.5", + "minimist": "1.2.0", + "strip-json-comments": "2.0.1" }, "dependencies": { "minimist": { @@ -3899,13 +3899,13 @@ "dev": true, "optional": true, "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.2", + "string_decoder": "1.1.1", + "util-deprecate": "1.0.2" } }, "rimraf": { @@ -3914,7 +3914,7 @@ "dev": true, "optional": true, "requires": { - "glob": "^7.1.3" + "glob": "7.1.3" } }, "safe-buffer": { @@ -3957,9 +3957,9 @@ "bundled": true, "dev": true, "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" } }, "string_decoder": { @@ -3968,7 +3968,7 @@ "dev": true, "optional": true, "requires": { - "safe-buffer": "~5.1.0" + "safe-buffer": "5.1.2" } }, "strip-ansi": { @@ -3976,7 +3976,7 @@ "bundled": true, "dev": true, "requires": { - "ansi-regex": "^2.0.0" + "ansi-regex": "2.1.1" } }, "strip-json-comments": { @@ -3991,13 +3991,13 @@ "dev": true, "optional": true, "requires": { - "chownr": "^1.1.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.3.4", - "minizlib": "^1.1.1", - "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.2", - "yallist": "^3.0.2" + "chownr": "1.1.1", + "fs-minipass": "1.2.5", + "minipass": "2.3.5", + "minizlib": "1.2.1", + "mkdirp": "0.5.1", + "safe-buffer": "5.1.2", + "yallist": "3.0.3" } }, "util-deprecate": { @@ -4012,7 +4012,7 @@ "dev": true, "optional": true, "requires": { - "string-width": "^1.0.2 || 2" + "string-width": "1.0.2" } }, "wrappy": { @@ -4640,10 +4640,10 @@ "integrity": "sha1-+G5jdNQyBabmxg6RlvF8Apm/s0g=", "dev": true, "requires": { - "big.js": "^3.1.3", - "emojis-list": "^2.0.0", - "json5": "^0.5.0", - "object-assign": "^4.0.1" + "big.js": "3.2.0", + "emojis-list": "2.1.0", + "json5": "0.5.1", + "object-assign": "4.1.1" } } } @@ -5586,8 +5586,8 @@ "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", "dev": true, "requires": { - "minimist": "~0.0.1", - "wordwrap": "~0.0.2" + "minimist": "0.0.10", + "wordwrap": "0.0.3" } }, "source-map": { @@ -6723,7 +6723,7 @@ "dev": true, "optional": true, "requires": { - "abbrev": "1" + "abbrev": "1.1.1" } }, "oauth-sign": { @@ -8326,8 +8326,8 @@ "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", "dev": true, "requires": { - "minimist": "~0.0.1", - "wordwrap": "~0.0.2" + "minimist": "0.0.10", + "wordwrap": "0.0.3" } }, "performance-now": { @@ -9051,7 +9051,7 @@ "dev": true, "optional": true, "requires": { - "amdefine": ">=0.0.4" + "amdefine": "1.0.1" } } } diff --git a/ArkBot/WebApp/src/app/app.component.ts b/ArkBot/WebApp/src/app/app.component.ts index 013250e..e54b43d 100644 --- a/ArkBot/WebApp/src/app/app.component.ts +++ b/ArkBot/WebApp/src/app/app.component.ts @@ -12,7 +12,7 @@ declare var config: any; @Component({ selector: 'body', - host: {'[class]': 'getTheme()'}, + host: {'[class]': 'getBodyClasses()'}, templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) @@ -94,6 +94,13 @@ export class AppComponent implements OnInit, OnDestroy { return `Player`; } + getBodyClasses(): string { + let classes = this.getTheme(); + if (typeof config !== 'undefined' && config.webapp !== 'undefined' && config.webapp.topMenu === true) + classes += " topmenu"; + return classes; + } + getDefaultTheme(): string { var value = (typeof config !== 'undefined' && config.webapp !== 'undefined' && typeof config.webapp.defaultTheme === 'string' ? config.webapp.defaultTheme.toLowerCase() : undefined); return value != 'light' && value != 'dark' ? 'dark' : value; diff --git a/ArkBot/WebApp/src/assets/logodark_small.png b/ArkBot/WebApp/src/assets/logodark_small.png new file mode 100644 index 0000000000000000000000000000000000000000..e55130701f9045c484bf1f15c509fe7b981d8a21 GIT binary patch literal 5769 zcmcgw2|Sc*+sCvhNjXHROrx^Yn0>|!recUfj(sUSGxH2nW1eYdjI|;yT7)*KBPvTI zMV2CrN=^&f=vXF|7Am2IbjbINtME^3A-QaGlsm~DYcH?_1GqL}LeM$P z!G#sJfkkDbmeG-BAvD-PASecqA%Q%;h!$dw8n#P=-{s2~6mnQayulo`LhcahVeg2v zgoGfHWK2f0a6}T4LN&&b2}CM&DH4yxnP9Lc7#snOBh!dj8Xk`v{h(lPLNJp*g2bp0eN5` z$QO%XUEH{?AOI3Wq5$XzrpLv9aR8^*-hSN2cd-Npj=K zAl_K-IF4lzX=y3%6)Mueoy%uK!6HL>7^8bY1|SB_QF1vNYl6mMUGO*>fk?v>&{z@; ziycw5huB!BjEd^ zkmF^gSwcKW2)l%F5x!lwwX}2;LL4p+7KofyS|Dw$EXg=3nT*C8c zfwl~D6da{7m&>MM@f0GH!e*keEEqchBvQ~OBr*<7ppZxe9Gi&c5Qt;@84xQ--jeeD zBh$%-Sg?(+@Jt9)B9Y9*qNz->37QBHK{VBbz=DU6$;N>Ig-QTm*u(uuTO;Jc1Of2A zwJJx&hAol+CJ~^racB@EanNKEk%czlU}1a&6AC~kU@3TjfaEvxZl)%SjPbfggvitTFr#S z-!{OoP;O~lh=FZjx)p5j-*9gF_#y5XXc9^CK2O0|Y7?&0!Mp zXePykg2obXEF1^RV#5U-anIxa5XkpDjx>i2SB@ZbG!4$+#;*w(<|i7!8YwPIKHVT2 zg&bMtey7EMu9-&m2M2&~8~x45kEn?tjyM<)f-C&t-uoF=krzW=3%Hx^e z_Xpvl9E1Az;{gCX1xKcm(DI`i&EmkLO{KtREE9_-kw^fU4PfC}`)f76&#M3VU|0}e z0t&xrF99Hg=T8iesyT`ygaVO(K)~a&hS>)r;j>3i`SF=TiXr4z9{*v|*r1U6O&fgc zWgG(X|Iyz+Hr>yi3jg&Y4b#~O8DRdECq{lVMlxwFug&mHg!Vl~_}LzWuO>A3i2H{_ zj|hTPB0#~z=N%P3`N%|=6iF-)4G%8Cghj@Ys31w+(Q<3h|Mk!tXZ3GxpJV(AUuos9 z<9BKJ$M|g=|b>p2T0m`CQE>GV>c%sheNEX-qP09V~Ahd`oF1qu*Yp>gBuXayUQ4HW~S+`sx+AG-Izt$<7*`a*u(mHkC zvY7b$=`-W1apLIOTmzpt9p{HVoc`s?OYdJJqM0R8x6bBmYFn@sO+IBTPAJXX6;ro- z?~TeqhZ(*uCzp^nudCER&SoU+o**#&t@hmX44Ka+)ePLNg7blQjqyR&=S7hvsIE1{fy*AE$GrJL3%YPeRm zZS+-In{kPhaxz;h+|?D)+}hBP_pl&`V{_YXe|SN2TM4n{?j_rVq^k420v*SLk7AEz z>{{-3&0fQb*-YM@Jxd{X>6QjJq_Q1?cJx^EsS6SGCd&oeW`smMLd8|Dlii(vTn(9i z+u-fswENapm3xm}Y%xxmO%c_+4M>Pti>w~n!>b7PBF?$manIyq&kb$ABIx~auQ zJ2rRqh3BDvv2sP3wbRb1OkCAH^J*{HziG0n-dkta=M4Xq+6xxt<+k?} z`5l}3$$DRHxNTfVdr87fvDafI7qB_Z|Ge!^>W?&eeHmzWzKfHa7EcbCK*> zU9ary>q$pnOgN&#h$0(4H!$S`-m`XRKNir=^O|{F{@|R)^ETDmGxR4UZPGgokK0{2Kca&hP&C?U#yMiif&vczWacg|jjq?ZQPp_ZPbm~ak z)6`5Wp@;S_^pUN6f8;RYRNZXc?dSKd>x2y;kkifVPa0HdW?p+DW@>LVqjx5D5cOD6IyJJo$)dB1LOP!D#73p&<6`UEyV9-mR4=G) zRoto~jbE%3e@>EWtG~``nzwSqS^kV`TLxVG^Ogwq(JxE-^0rg7B#Q6yhUPwQTX6qe z#OFf}fzL@j$@Z}+Jl=X`VK&{Oz_rSHh0$Us!uby$R6?!SIP8)hBqy)ZP?4&qE>E1b zNI!lZz2VWvQbYpk)knjD?j*KDwZ875nHO7VHb}>Uv=_czXN$!8R}3q&SS&pSfYbY+ zF5)b6k(L9hK9PQnjdiq*#%N`4gkE@;5-fPw78SVS=!jfvG zzMzykqh!WF`vN6B*#zs0xVW;Kme~iwC7xz~=H6(lZRql247mG~bINg%SEo$Z8jutf z7t<@~-kJUreToWrM%`tE=IWG0HT_51c39eJZ}EZFK}qHng3pbg=*=HLL7z(;KStku z^6Ui0s`Y6UZNA{z>cqn`g@Yf0%%PCCS1v!f)R%$XSoK@~cG2WlLp-PSx&TC_{RYY4 zru!)pcSI+mAi-(U1fKz^Yo9`vE-`}_N}9F|djIhJH?=33sXKWIhLYvxABd1HHY7D`Bn{jsj$WCc^F z(=Bdhlw$0Csd_j?YNQ03?9cD%DH|%?TzRli8liA2|H#H3 zm2Gi5ELrDV9-u>^|2GWc)-EYRIur3%yXS$ybo3`y)!J^*@K|Wp|E*;Ejhq}vb zz`jaCoYsK@S|>;gXINAgo%HDGy@`AHr5=auKGW(=$xZG2a5OKW_sOXN&u68ish5qh zPj62n3qDCVNAC1pSJ=tOc%XCqkB7=RO$Fto_M`i^bFKBE&uCxn_A{R z`h2IsjXl&X^X#)*(&$l`nc?5Oqwvq@hns_IFz>DR_Eu{7_sxVq54k8y$7cySQyjaSZn|gNOPv;0sjbyq>h0w=c|zpPME8d|6)(!4b{^A} zd4BG!a-R_SGV-Q}3iQQ2ubJKEx`J~h9d3{vT< zuyzduFQ>^_@!;+94Z<65`nUfQwSUO1vmdc*1ttXsrQk6+$JDVWBIOP@3UMonWE-s# zu9S#IUpVl%wL@{f!mGOTzdlTE)6s49PJZK@zq#|v`p7Nrol_DF5=8eNcj!h8WP2+5 zJ^ivfv7zg1MAjr_4fL^J@2DbL6!$j1>+W^TKRe%Jnpv>y%E{#=GY|=1P~|aKa* z*K7qpIQBD9()zx{+SmN%f%aNj$&;=@4zkeYuAQdj*Dt-UsbieczJVyPx9rB<(NM2FNuajlaKzX%8Y9E SOqBn#*w)H{k!#_%^?v{fb{$p# literal 0 HcmV?d00001 diff --git a/ArkBot/WebApp/src/assets/logolight_small.png b/ArkBot/WebApp/src/assets/logolight_small.png new file mode 100644 index 0000000000000000000000000000000000000000..5533657b63b62ca0b1bd9cd92a9918e7f7dbca85 GIT binary patch literal 5533 zcmc&&2{@E%`?o|zq?0UJnkL!untf%IhC+47AYmE6D_uAaSovc zMZ#B7CzX`aVr2bV4(-Cn{~cSM?_b~P`u_j#`sTXE`_6OU&wc;y?e{#FRAruUm1V85UZM=l=+6u{6I`lO8Q(djrP5Xj> z(U1Wm5ub`eMMOlHM&L|&0)G^SLZP70SQHiuz#4!siYo#m0j_Yxj0G!5$P{q+A`Xv> zkXQs6yf6_B2_u~fA%s6`mMff26Pz$qB*;f$Owp2%CKXxCSv`K3Ab8R_i;04Qp%92G z62iKeSzUerPs9@j@V;YuR{SRiaB3YKW_^4UOGwD93!%t591deTA>Y&%x<~OLlq)3U zg$bCDbvO)j#Y{9pkt_5ipFgl2R-fH0;;_H7S0edSP*5c2JE{`NtSX;M7eJthCvfNS zf@gZic_xbpI$hE$6ojD%hs)wc2#q9ROz(lLKoLYkO5^~V3}DdiSPT`1r($scnm|RP zr&JwyEDk$rMiq+&&=>$safjQEK&E2hoy0Gya3ixo5%`zNEGCuB6NG?p88{)JKZN3Q z{gH^-;!^3nV4eVW45Pz+y>3gVI}3PhPB1JGx~^Y~u(hTWF%%*Zz?xzv;W{`_ZMi}b z$YnydRx~6Wt0{-WqEgr(1mVaS0AgVY0ELLh01OrZ50J1V1{+6Uk#T6k%zi5#GfdK$ zlKoRN%HlC$8(-kDa0DCygD1mTV-o--h$jIc4x#`cgMbGaSO&--lV+?r2{R^a7x_jm2d)MdiI8;HQ~}&zqJt9+dz)Ny=0rllo>m+< zH^NC6B!a}z7n#>T%U~w@k~DWHQe+QCK?314L9GS-r{97(U)6q6#}N#HJzKhNVDLm= zH^8J&Vrf>0f^DEA>@;N#^&N*_mS+lK3Acz4o||vMv6!h4n@oaP5)H!jrLX`t1CIq5 zBr*v=<1kDN8_i_F1)Opp%=s>mZ+V0rz^!V-ksyegPJYZ?yQ2HPh7ohyVy~qkl2@Q))sUTND8bAWMI^_kM(1B*l=_0xsyE@e9H5e~q4n zC$NYVA{HP*Bqji2;Y5=eXbM1Juqi|eNI+vS&`k9I8$Ff^6BYsHr77C_H_=aHW(I&< ze+WL%QOJKk9yS{Xkr`whz=YT&fWnr<1A!O-%VHBS7&OShLGY~oxfyGg&;saKbXUuBp_5cmoFp9 z!$S}S50bC|d~l&92PsUA1SSN)oaVr&j>qyPHexwBRd#oUN6md%&~%S&GhXk2ITBzm1ccuO}_j)90`@GD&ZZ z&AhkH(k?^shJlOlu0E=wLmR_icElQP7F|M`T?miRc`z5{vb$r%*ZRTvk~872m|<aw1@V@%2r*Bg2jR$%+IX4x!EAQODat%~( zcM2GkifNG{Kkt|ml6ly#c|e}*{z3QXX>MY7snSr>;SxT#MNO(MA?WqKQhP;*y|$vC zgRVHt%lS1dZX?&uuc7y*PN0?^rc+_aUL*h39A@DKdp(tZw4M%2u;s`mB4y9n%U?gJ zJjbcYLO0F;Au`XDr$#MZUsN&I%G$t!$2SOYX?wFM%h=xYJ=RgGKgX7^X)e1(M#e)Vb+b|~Kh5gR7U7t|H*-@9e%=&&pTNxtg;JP6^ zif^Fz_jhYf-b`j`JLlYxS+xB5EvYpLvUJB}`BY^wf-9_!Z`Tl+rK=%?c`5nBhWorW>A3}z5y*~uX$Ou&*}Bsg~KkQu@xS3e;#?h zC_uAw&RZLuq3W8KR}`ZwpZLn%ul|6T=fU1-U4E-#K-K1MdZAd|d8w+y?%kcMeC7IV zmJ}ZE_G$|~s8rCHz1adaa9j1Ly50>BEHU!*Z%S;Z;1A1&yS#k(r!Hzaw(BHSQ-tx$ zj1PL^!|OkKZRr|FIPQm4m0GXiW0G-A^Eu&>Zj)1iV_pkj5;*6$XP@bgVRyp%)Pi<} z;RITKLYcWqil1};m6|t$^zPs3=-M8iiG;z3u(g9nbq9WZq;$4|-I#80W=Ep%Q=>)O zi{_UId;>yen`dM(s9MHdys1MjQYq0!#;Af^?yZ6GRWsh>o3b~I1!T4 zesV%v?O+7`{=@U*a;tZC(9X(!+{D}A6u7V<=h3CS+F~7|N7$A44tgH;#9R;FMOt*1 zFSf#Od|ikhvr4OZU}B?lrR6AAcl3`wGiDoA7_e>aBKJPxm4em}WrDtK0Ro-4t8SO_ zF9+lB_K%2Uag2{ond1HK4w=X7aLe{I(|{v)=N~Dip1!G=dGa^?#h2!5j@HLwLl=hz zJsBDOgW2qMlC(0zq_>+~qAm;dc^%l0P)quIB%{v@7nG^`V>^)Wii%)}B{SG(&DU0zp1 zWO9I^Io|)|5of$8sFi!EHlT9 zoZe)%TB@z&mtD%9dm3KnrU$0PdPkOuEiEm>WGShXnmdX$VBUp??Fs!ddo%5>^a>^{ zR2JmaB~yORNSNRs)*8Pd6~Y5^>l2mtDif6Eyxw?kFn^9o~=HKw9f3uzO2i z&5dsQ(7}b`?W8+?<-GfO@$Y11Ni_Y++KJHwCk?}2ZZCXdZYaJmVEDK@Z?4SNH&Wx> z@grqhkgvAQHCWOe?Ep6L_CJ=5_g`)NjIm&O&+ZzFx`bR5aCFVCl#FNQqsO0&lU}TP z@@c1T-Al!1<OD0Rs!SY1k#T zmbczpsb!qEY>3r4d{J}rT5eWzZz6V1<*|2)!=Eee5)KL7nh$C#R%iOJB-sgUt898= zyEa{v2`qV)^yy?o1GO!^Y+H=(n#*DyEpF>zYWlw9j4gGJD9P&~cznz4>exw{IuAF^i0$l0RM)I{)PwA#v~UaO{A2rWFtC8{dej)vN1A3t_L1(o z5V)@Tu*!2pj}!Gk#zyl#>i9&^-IyMB^>}K1JL~aDQuYEfk5k8Ew&!_#%nNr0)}Plu z^{Muk!p?a0Ll&}CJ-0p==RCM}J$99E+QYl<6V9|f?{=hgMr}MVjCI@GyErkZAt|+D z&9>64o0tus&3~=b^L9*j(KtNdCA3i1uI#!j7RenrrRb=-8$n;%az1*Mx2oSSwo%p8 zBJ`W=Vuf0CY~{yoC0AcBGrYKuoM>Dme!p6-$>H}Lt(FAT>xDISJLbfcbZs+Asd`4yq>9ZW_Tu3F*kJ$0QR$OwVoioM z!}o27PDxyEi}9gcy(sGwtxJFN6HZ+g$kg~;Yp^QHXowTcNDhv$~hkE9LO|2mw(e=V3D-lzPK%> z$c{F;A^niWs;W!4!6hm>3l#r&dw?Du$89q2y(23&O6e2{S}W-f@ Date: Sat, 11 Jan 2020 04:29:53 +0100 Subject: [PATCH 3/7] Custom theme support New configuration option webApp->customCssFilePath "webApp": { "customCssFilePath": null }, --- .../Model/WebAppConfigSection.cs | 17 ++ ArkBot/WebApp/WebAppStartup.cs | 10 +- ArkBot/WebApp/dist/index.html | 4 +- .../inline.1ccc4762072d68a34d50.bundle.js | 1 + .../inline.8808fd97dffea94e7939.bundle.js | 1 - .../dist/main.2915f341c3f7c98f54f6.bundle.js | 1 + .../dist/main.b400f5999df29a53e3cc.bundle.js | 1 - .../styles.aa9c14f786b2ded43f69.bundle.css | 1 + .../styles.dd9c2abfa63318e82a56.bundle.css | 1 - ... => vendor.f57cda56526e5fdd5036.bundle.js} | 0 ArkBot/WebApp/src/app/app.component.html | 14 +- ArkBot/WebApp/src/app/app.component.ts | 24 +++ ArkBot/WebApp/src/app/app.module.ts | 6 +- .../custom-theme/custom-theme.component.css | 46 +++++ .../custom-theme/custom-theme.component.html | 24 +++ .../custom-theme/custom-theme.component.ts | 136 +++++++++++++ ArkBot/WebApp/src/app/hotkeys.service.ts | 41 ++++ .../src/app/player/player.component.html | 12 +- ArkBot/WebApp/src/app/utils.ts | 15 +- ArkBot/WebApp/src/styles.css | 178 +++++++++++------- ArkBot/defaultconfig.json | 3 +- 21 files changed, 452 insertions(+), 84 deletions(-) create mode 100644 ArkBot/WebApp/dist/inline.1ccc4762072d68a34d50.bundle.js delete mode 100644 ArkBot/WebApp/dist/inline.8808fd97dffea94e7939.bundle.js create mode 100644 ArkBot/WebApp/dist/main.2915f341c3f7c98f54f6.bundle.js delete mode 100644 ArkBot/WebApp/dist/main.b400f5999df29a53e3cc.bundle.js create mode 100644 ArkBot/WebApp/dist/styles.aa9c14f786b2ded43f69.bundle.css delete mode 100644 ArkBot/WebApp/dist/styles.dd9c2abfa63318e82a56.bundle.css rename ArkBot/WebApp/dist/{vendor.f8d4a57af80469b13c5c.bundle.js => vendor.f57cda56526e5fdd5036.bundle.js} (100%) create mode 100644 ArkBot/WebApp/src/app/custom-theme/custom-theme.component.css create mode 100644 ArkBot/WebApp/src/app/custom-theme/custom-theme.component.html create mode 100644 ArkBot/WebApp/src/app/custom-theme/custom-theme.component.ts create mode 100644 ArkBot/WebApp/src/app/hotkeys.service.ts diff --git a/ArkBot/Configuration/Model/WebAppConfigSection.cs b/ArkBot/Configuration/Model/WebAppConfigSection.cs index ca25c15..1aff411 100644 --- a/ArkBot/Configuration/Model/WebAppConfigSection.cs +++ b/ArkBot/Configuration/Model/WebAppConfigSection.cs @@ -30,19 +30,36 @@ public WebAppConfigSection() [JsonProperty(PropertyName = "defaultTheme")] [Display(Name = "Default Theme", Description = "Default theme to use in the Web App")] + [PropertyOrder(0)] public WebAppTheme DefaultTheme { get; set; } = WebAppTheme.Dark; [JsonProperty(PropertyName = "topMenu")] [Display(Name = "Top Menu", Description = "Use top menu in the Web App")] + [PropertyOrder(1)] public bool TopMenu { get; set; } = false; [JsonProperty(PropertyName = "tribeLogLimit")] [Display(Name = "Tribe Log Limit", Description = "Limit for how many tribe logs are displayed in the Web App")] + [PropertyOrder(2)] [RangeOptional(1, 1000, Optional = false, ErrorMessage = "{0} must be between 1-1000")] public int TribeLogLimit { get; set; } = 100; [JsonProperty(PropertyName = "tribeLogColors")] [Display(Name = "Tribe Log Colors", Description = "Enable colored tribe log entries in the Web App")] + [PropertyOrder(3)] public bool TribeLogColors { get; set; } = false; + + [JsonProperty(PropertyName = "customCssFilePath")] + [Display(Name = "Custom Style Sheet Path", Description = "Path to a custom style sheet file (.css) to use in the Web App")] + [ConfigurationHelp(remarks: new[] { + "The Web App supports creating custom themes and importing them as a style sheet file (.css).\r\n", + "Open the Custom Theme Creator in the Web App from the `Admin Options` menu accessed using the hotkey `Shift + Control + A`.", + "After customizing your theme paste the generated styles into a new style sheet file and set the file path in this property.", + }, Example = @"`C:\ARKBot\WebApp\custom.css`")] + [PropertyOrder(4)] + [Editor(typeof(OpenFilePathEditor), typeof(OpenFilePathEditor))] + [OpenFilePathEditor(Filter = "Style Sheet files (*.css)|*.css|All files (*.*)|*.*")] + [FileExists(ErrorMessage = "{0} is not set or the file path does not exist")] + public string CustomCssFilePath { get; set; } } } diff --git a/ArkBot/WebApp/WebAppStartup.cs b/ArkBot/WebApp/WebAppStartup.cs index 871ff3d..09875f3 100644 --- a/ArkBot/WebApp/WebAppStartup.cs +++ b/ArkBot/WebApp/WebAppStartup.cs @@ -108,7 +108,8 @@ public SinglePageApplicationModule(IConfig config) webapp = new { defaultTheme = _config.WebApp.DefaultTheme.ToString(), - topMenu = _config.WebApp.TopMenu + topMenu = _config.WebApp.TopMenu, + useCustomCssFile = !string.IsNullOrEmpty(_config.WebApp.CustomCssFilePath) } }; var json = JsonConvert.SerializeObject(obj, Formatting.None); @@ -122,7 +123,12 @@ public SinglePageApplicationModule(IConfig config) Get[@"^(?.*)$"] = parameters => { - if (File.Exists(Path.Combine(Response.RootPath, parameters["path"].Value))) return Response.AsFile((string)parameters["path"].Value); + if (parameters["path"].Value.Equals("custom.css") && !string.IsNullOrEmpty(_config.WebApp.CustomCssFilePath) && File.Exists(_config.WebApp.CustomCssFilePath)) + { + return Response.AsText(File.ReadAllText(_config.WebApp.CustomCssFilePath), "text/css"); + } + + if (File.Exists(Path.Combine(Response.RootPath, parameters["path"].Value))) return Response.AsFile((string)parameters["path"].Value); return getIndex(); }; } diff --git a/ArkBot/WebApp/dist/index.html b/ArkBot/WebApp/dist/index.html index ec46851..84e8e81 100644 --- a/ArkBot/WebApp/dist/index.html +++ b/ArkBot/WebApp/dist/index.html @@ -12,12 +12,12 @@ - +

Loading...

- + diff --git a/ArkBot/WebApp/dist/inline.1ccc4762072d68a34d50.bundle.js b/ArkBot/WebApp/dist/inline.1ccc4762072d68a34d50.bundle.js new file mode 100644 index 0000000..2441428 --- /dev/null +++ b/ArkBot/WebApp/dist/inline.1ccc4762072d68a34d50.bundle.js @@ -0,0 +1 @@ +!function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,c,a){for(var u,f,i,l=0,s=[];l=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this.zone=e,this.serverUpdated$=new n.EventEmitter}return e.prototype.connect=function(){var e=this;this.connection=$.hubConnection(this.getSignalRBaseUrl()),this.proxy=this.connection.createHubProxy("ServerUpdateHub"),this.proxy.on("serverUpdateNotification",function(t){e.zone.run(function(){e.serverUpdated$.emit(t)})}),this.connection.start().done(function(){return console.log("Now connected, connection ID="+e.connection.id)}).fail(function(){return console.log("Could not connect")})},e.prototype.getSignalRBaseUrl=function(){return i.a.signalrBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e}();o=s([r.i(n.Injectable)(),a("design:paramtypes",["function"==typeof(c=void 0!==n.NgZone&&n.NgZone)&&c||Object])],o);var c},"+qYp":function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e}();l=o([r.i(n.Component)({selector:"app-access-denied",template:r("1DTO"),styles:[r("aijx")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},"+rAa":function(e,t,r){"use strict";function n(e,t,r,n){var i=a(e,t,r);if(void 0!=i)return i;var s=Math.pow(10,n),o=void 0!=n?Math.round(e*s)/s:e,c=void 0!=n?Math.round(t*s)/s:t;return o>c?r?1:-1:ot?r?1:-1:e=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t){this.dataService=e,this.router=t}return e.prototype.canActivate=function(e,t){var r=this;return s.Observable.fromPromise(this.dataService.getServers().then(function(t){if(t){var n=e.params.playerid;return r.dataService.hasFeatureAccess("pages",e.data.name,n)?"access":"noaccess"}return"connectionerror"}).catch(function(){return"connectionerror"})).map(function(e){return"noaccess"==e?r.router.navigateByUrl("/accessdenied",{skipLocationChange:!0}):"connectionerror"==e&&r.router.navigateByUrl("/connectionerror",{skipLocationChange:!0}),"access"==e})},e}();l=o([r.i(n.Injectable)(),c("design:paramtypes",["function"==typeof(d=void 0!==a.a&&a.a)&&d||Object,"function"==typeof(u=void 0!==i.b&&i.b)&&u||Object])],l);var d,u},"/Wuq":function(e,t){e.exports='
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given server key.

\r\n
\r\n
\r\n
\r\n

Players

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam IdCharacter IdSteam NameCharacter NameTribe NameTribe IdStructuresCreaturesLast Active
{{player.FakeSteamId || player.SteamId}}{{player.Id}}{{player.SteamName}}{{player.CharacterName}}{{player.CharacterName}}{{player.TribeName}}{{player.TribeId}}{{player.StructureCount}}{{player.CreatureCount}}{{dataService.toRelativeDate(player.LastActiveTime)}}
\r\n
\r\n
\r\n
\r\n

Tribes

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
IdNameMembersStructuresCreaturesLast Active
{{tribe.Id}}{{tribe.Name}}{{getTribeMember(member)?.CharacterName || member}}{{getTribeMember(member)?.CharacterName || member}}, {{tribe.StructureCount}}{{tribe.CreatureCount}}{{dataService.toRelativeDate(tribe.LastActiveTime)}}
\r\n
\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n\r\n
\r\n
\r\n

Egg Summary

\r\n
Save World
\r\n
\r\n\r\n
\r\n
\r\n

Summary

\r\n
\r\n
\r\n

Total Eggs: {{totalEggCount}}

\r\n

Fertilized Eggs: {{fertilizedEggsCount}}

\r\n

Spoiled Eggs: {{spoiledEggsCount}}

\r\n
\r\n
\r\n

There are no fertilized eggs on the map

\r\n
\r\n
\r\n\r\n
\r\n

Fertilized Eggs

\r\n
Destroy All Eggs
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CreatureEgg LevelSpoil Time
{{egg.Dino}}{{egg.EggLevel}}{{egg.SpoilTime}}
\r\n
\r\n\r\n
\r\n

Spoiled Eggs

\r\n
Destroy Spoiled Eggs
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CreatureEgg LevelDropped By
{{egg.Dino}}{{egg.EggLevel}}{{egg.DroppedBy}}{{egg.DroppedBy}}
\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{modalInfo.Header}}

\r\n
\r\n
\r\n
\r\n {{modalInfo.Message}}\r\n
\r\n
\r\n
\r\n
\r\n
'},0:function(e,t,r){e.exports=r("x35b")},"08Wm":function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.dataService.hasFeatureAccess("admin-server","structures")?this.menu.activate("structures"):this.dataService.hasFeatureAccess("admin-server","players")?this.menu.activate("players"):this.dataService.hasFeatureAccess("admin-server","tribes")?this.menu.activate("tribes"):this.dataService.hasFeatureAccess("admin-server","eggs")&&this.menu.activate("eggs")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-admin-server-menu",host:{"[class]":"menu.className"},template:r("bl1B"),styles:[r("9kk6")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},"0Hpj":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Fzro"),s=r("eErF"),a=(r.n(s),r("lHWG"));r.d(t,"a",function(){return d});var o=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.getServers=function(){return this.http.get("assets/demo/servers.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getServer=function(e){return this.http.get("assets/demo/server.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getWildCreatures=function(e){return this.http.get("assets/demo/wildcreatures.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getStructures=function(e){return this.http.get("assets/demo/structures.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getPlayer=function(e){return this.http.get("assets/demo/player.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getAdminServer=function(e){return this.http.get("assets/demo/adminserver.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.adminDestroyAllStructuresForTeamId=function(e,t){return Promise.resolve(null)},t.prototype.adminDestroyStructuresForTeamIdAtPosition=function(e,t,r,n,i,s){return Promise.resolve(null)},t.prototype.adminDestroyDinosForTeamId=function(e,t){return Promise.resolve(null)},t.prototype.adminSaveWorld=function(e){return Promise.resolve(null)},t}(a.a);d=c([r.i(n.Injectable)(),l("design:paramtypes",["function"==typeof(u=void 0!==i.b&&i.b)&&u||Object])],d);var u},"0jRk":function(e,t,r){"use strict";var n=r("3j3K"),i=r("jWPz"),s=r("joX7"),a=r("Gvdl"),o=(r.n(a),r("XlOA")),c=(r.n(o),r("1APj")),l=(r.n(c),r("6Yye")),d=(r.n(l),r("uCY4")),u=(r.n(d),r("wUn1")),p=(r.n(u),r("/lY3"));r.n(p);r.d(t,"a",function(){return f});var h=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},m=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(){function e(e){this.ref=e,this._modeEnabledSubscriptions=[],this._rows$=a.Observable.of([]),this._orderByColumnKey=new a.BehaviorSubject(void 0),this._filter=new a.BehaviorSubject(void 0),this._sort=new a.Subject,this._fromRow=0,this._numRows=25,this._totalRows=0,this._enabledColumnsForMode={},this._viewOptions=[{value:25,text:"25"},{value:50,text:"50"},{value:100,text:"100"},{value:250,text:"250"},{value:500,text:"500"},{value:1e3,text:"1000"},{value:1e6,text:"All"}],this._prevColumnKey=void 0,this._prevFilter=void 0,this._prevSortedRows=void 0,this._prevFilteredRows=void 0,this._prevSortedRowsKey=void 0,this._prevFilteredRowsKey=void 0}return e.prototype.ngOnInit=function(){var e=this;this._rows$=a.Observable.combineLatest(this._orderByColumnKey,this._filter.debounceTime(250),function(e,t){return{key:e,filter:t}}).skip(1).startWith({key:this._orderByColumnKey.getValue(),filter:this._filter.getValue()}).switchMap(function(t){return a.Observable.of(e.filterAndSortData(t.key,t.filter))}).catch(function(t){return console.log("Error in component ... "+t),a.Observable.of(e._rows)})},Object.defineProperty(e.prototype,"modeTemplates",{set:function(e){if(e){var t=e.toArray();if(t.length){for(var r=[],n=0,i=t;n0&&(this._currentMode=this._modes[0].key)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnTemplates",{set:function(e){if(e){var t=e.toArray();if(t.length){for(var r=[],n=0,i=t;n=this._totalRows&&(t=this._totalRows-1),this._fromRow=parseInt(""+t),this.ref.markForCheck()},e.prototype.setViewOffsetRelative=function(e){this.setViewOffset(this._fromRow+e)},e.prototype.setFirstPage=function(){this.isFirstPage()||this.setViewOffset(0)},e.prototype.setPrevPage=function(){this.isFirstPage()||this.setViewOffsetRelative(-this._numRows)},e.prototype.setNextPage=function(){this.isLastPage()||this.setViewOffsetRelative(this._numRows)},e.prototype.setLastPage=function(){this.isLastPage()||this.setViewOffset(this._totalRows-this._numRows)},e.prototype.isFirstPage=function(){return this._fromRow<=0},e.prototype.isLastPage=function(){return this._fromRow>=this._totalRows-this._numRows},e.prototype.setViewLimit=function(e){this._numRows=parseInt(""+(e>0?e:1e6)),this.ref.markForCheck()},e.prototype.getLastRowOffset=function(){var e=this._fromRow+this._numRows;return e>this._totalRows?this._totalRows:e},e}();h([r.i(n.ContentChildren)(s.a),m("design:type","function"==typeof(v=void 0!==n.QueryList&&n.QueryList)&&v||Object),m("design:paramtypes",["function"==typeof(g=void 0!==n.QueryList&&n.QueryList)&&g||Object])],f.prototype,"modeTemplates",null),h([r.i(n.ContentChildren)(i.a),m("design:type","function"==typeof(y=void 0!==n.QueryList&&n.QueryList)&&y||Object),m("design:paramtypes",["function"==typeof(b=void 0!==n.QueryList&&n.QueryList)&&b||Object])],f.prototype,"columnTemplates",null),h([r.i(n.Input)(),m("design:type",Object),m("design:paramtypes",[Object])],f.prototype,"rows",null),h([r.i(n.Input)(),m("design:type",String),m("design:paramtypes",[String])],f.prototype,"trackByProp",null),h([r.i(n.Input)(),m("design:type",String),m("design:paramtypes",[String])],f.prototype,"filter",null),h([r.i(n.Input)(),m("design:type",Object)],f.prototype,"filterFunction",void 0),h([r.i(n.Input)(),m("design:type",Object)],f.prototype,"sortFunctions",void 0),h([r.i(n.Input)(),m("design:type",String)],f.prototype,"orderByColumn",void 0),f=h([r.i(n.Component)({selector:"ark-data-table",template:r("jkBB"),styles:[r("rZY4")],changeDetection:n.ChangeDetectionStrategy.OnPush,encapsulation:n.ViewEncapsulation.None}),m("design:paramtypes",["function"==typeof(w=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&w||Object])],f);var v,g,y,b,w},"0onv":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("PJh5"));r.n(s);r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.ref=e,this._time=new i.BehaviorSubject(void 0)}return Object.defineProperty(e.prototype,"time",{get:function(){return this._time.getValue()},set:function(e){this._time.next(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._timeSubscription=this._time.subscribe(function(t){e.update()}),this._counter=i.Observable.interval(1e3).map(function(e){return e}),this._counterSubscription=this._counter.subscribe(function(t){return e.update()})},e.prototype.ngOnDestroy=function(){this._timeSubscription.unsubscribe(),this._counterSubscription.unsubscribe()},e.prototype.update=function(){var e=this.toRelativeDate(this.time);e!=this._str&&(this._str=e,this.ref.markForCheck())},e.prototype.toRelativeDate=function(e){return s(new Date(e)).fromNow()},e}();a([r.i(n.Input)(),o("design:type",Object),o("design:paramtypes",[Object])],c.prototype,"time",null),c=a([r.i(n.Component)({selector:"relative-time",template:"{{_str}}",styles:[r("HOjl")],changeDetection:n.ChangeDetectionStrategy.OnPush}),o("design:paramtypes",["function"==typeof(l=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&l||Object])],c);var l},"1DTO":function(e,t){e.exports='
\n
\n

Access Denied

\n

You do not have access to view this page...

\n
\n
'},"38q8":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Qbdm");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this._sanitizer=e}return e.prototype.transform=function(e){return this._sanitizer.bypassSecurityTrustStyle(e)},e}();o=s([r.i(n.Pipe)({name:"sanitizeStyle"}),a("design:paramtypes",["function"==typeof(c=void 0!==i.DomSanitizer&&i.DomSanitizer)&&c||Object])],o);var c},5305:function(e,t,r){"use strict";var n=r("3j3K"),i=r("kZql"),s=r("vwbq");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(){this.width=1024,this.height=1024,this.zoom=s.a().scaleExtent([1,10])}return e.prototype.imageLoaded=function(e){var t=this;this.img=e,this.width=e.naturalWidth,this.height=e.naturalHeight,window.setTimeout(function(){t.resize(),t.redraw()},100)},e.prototype.resize=function(){},e.prototype.zoomed=function(){var e=s.e(this.canvasRef.nativeElement),t=this.canvasRef.nativeElement.getContext("2d");t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,this.width,this.height),t.translate(e.x,e.y),t.scale(e.k,e.k),this.redraw()},e.prototype.redraw=function(){var e=this.canvasRef.nativeElement.getContext("2d");if(e.drawImage(this.img,0,0),null!=this.points)for(var t=0,r=this.points;t/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e}();a([r.i(n.Input)(),o("design:type",String)],c.prototype,"mapName",void 0),a([r.i(n.Input)(),o("design:type",Array)],c.prototype,"points",void 0),a([r.i(n.ViewChild)("myCanvas"),o("design:type","function"==typeof(l=void 0!==n.ElementRef&&n.ElementRef)&&l||Object)],c.prototype,"canvasRef",void 0),c=a([r.i(n.Component)({selector:"arkmap",template:''}),o("design:paramtypes",[])],c);var l},"5xMp":function(e,t){e.exports='\r\n\r\n
\r\n\r\n\r\n'},"6fYc":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".serverdetails th{white-space:nowrap}.serverdetails td{width:99%}",""]),e.exports=e.exports.toString()},"78nn":function(e,t){e.exports="\r\n

Player

\r\n
\r\n
Profile
\r\n
Creatures
\r\n
Creatures (Cloud)
\r\n
Breeding
\r\n
Crops
\r\n
Electrical Generators
\r\n
Kibbles and Eggs
\r\n
Tribe Log
\r\n
\r\n
"},"7T2B":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){this.callback=new n.EventEmitter,this.confirming=!1}return e.prototype.ngOnInit=function(){},e.prototype.onClick=function(e){var t=this;this.confirming?e.detail>=3&&(window.clearTimeout(this.resetTimeout),this.confirming=!1,this.callback.emit()):(this.confirming=!0,this.resetTimeout=window.setTimeout(function(){t.confirming=!1},5e3))},e}();i([r.i(n.Output)(),s("design:type","function"==typeof(o=void 0!==n.EventEmitter&&n.EventEmitter)&&o||Object)],a.prototype,"callback",void 0),i([r.i(n.Input)(),s("design:type",Number)],a.prototype,"width",void 0),i([r.i(n.ViewChild)("confirmButton"),s("design:type","function"==typeof(c=void 0!==n.ElementRef&&n.ElementRef)&&c||Object)],a.prototype,"confirmButton",void 0),a=i([r.i(n.Component)({selector:"confirm-button",template:r("QaTd"),styles:[r("8Zim")]}),s("design:paramtypes",[])],a);var o,c},"7arz":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"7fuz":function(e,t){e.exports='
\n \n
'},"7uO+":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"7xIs":function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.dataService.hasFeatureAccess("server","players")?this.menu.activate("players"):this.dataService.hasFeatureAccess("server","tribes")?this.menu.activate("tribes"):this.dataService.hasFeatureAccess("server","wildcreatures-statistics")?this.menu.activate("wildcreatures-statistics"):this.dataService.hasFeatureAccess("server","wildcreatures")&&this.menu.activate("wildcreatures")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-server-menu",host:{"[class]":"menu.className"},template:r("MjD/"),styles:[r("oLRk")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},"8Zim":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"8kYA":function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this.dataService=e,this.menuOption=void 0,this.menuVisible=!1,this.className="menucontainer"}return e.prototype.ngOnInit=function(){var e=this;this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe()},e.prototype.activate=function(e){this.dataService.SetMenuOption(e)},e.prototype.active=function(e){return this.menuOption==e},e.prototype.toggleMenu=function(){this.menuVisible=!this.menuVisible},e}();o=s([r.i(n.Component)({selector:"app-menu",template:r("m8aW"),styles:[r("ne8d")]}),a("design:paramtypes",["function"==typeof(c=void 0!==i.a&&i.a)&&c||Object])],o);var c},"8zLQ":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(e){this._elementRef=e,this.clickOutside=new n.EventEmitter}return e.prototype.onClick=function(e,t){if(t){this._elementRef.nativeElement.contains(t)||this.clickOutside.emit(e)}},e}();i([r.i(n.Output)(),s("design:type",Object)],a.prototype,"clickOutside",void 0),i([r.i(n.HostListener)("document:click",["$event","$event.target"]),s("design:type",Function),s("design:paramtypes",[Object,Object]),s("design:returntype",void 0)],a.prototype,"onClick",null),a=i([r.i(n.Directive)({selector:"[clickOutside]"}),s("design:paramtypes",["function"==typeof(o=void 0!==n.ElementRef&&n.ElementRef)&&o||Object])],a);var o},"9kk6":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"A+2f":function(e,t){e.exports=''},ATz5:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("lHWG")),a=r("+Lwu"),o=r("kZql"),c=r("PJh5");r.n(c);r.d(t,"a",function(){return u});var l=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},d=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(){function e(e,t){var r=this;this.httpService=e,this.messageService=t,this._servers=new i.BehaviorSubject(void 0),this.menuOption=new i.BehaviorSubject(void 0),this.theme=new i.BehaviorSubject(void 0),this.ServersUpdated$=new n.EventEmitter,t.serverUpdated$.subscribe(function(e){return r.updateServer(e)})}return Object.defineProperty(e.prototype,"Theme",{get:function(){return this.theme.asObservable()},enumerable:!0,configurable:!0}),e.prototype.SetTheme=function(e){this.theme.next(e)},Object.defineProperty(e.prototype,"MenuOption",{get:function(){return this.menuOption.asObservable()},enumerable:!0,configurable:!0}),e.prototype.SetMenuOption=function(e){this.menuOption.next(e)},e.prototype.getServers=function(){var e=this;return this.httpService.getServers().then(function(t){e.Servers=t;var r=t?t.User:void 0;return e.UserSteamId=r&&r.SteamId?r.SteamId:void 0,e._servers.next(t),e.ServersUpdated$.emit(t),!0}).catch(function(t){return e.Servers=null,e.UserSteamId=void 0,e._servers.next(null),e.ServersUpdated$.emit(null),!1})},e.prototype.updateServer=function(e){this.getServers()},e.prototype.hasFeatureAccess=function(e,t,r){var n=this.Servers?this.Servers.AccessControl:void 0;if(!n)return!1;var i=n[e];if(!i)return!1;var s=i[t];if(!s)return!1;var a=this.Servers?this.Servers.User:void 0,o=a&&a.Roles?a.Roles.slice(0):[];a&&a.SteamId&&a.SteamId==r&&o.push("self");for(var c=function(e){if(s.find(function(t){return e.toLowerCase()===t.toLowerCase()}))return{value:!0}},l=0,d=o;l=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e,t){this.dataService=e,this.router=t}return e.prototype.resolve=function(e,t){var r=this;return this.dataService.getServers().then(function(e){return r.dataService}).catch(function(e){return r.dataService})},e}();c=a([r.i(n.Injectable)(),o("design:paramtypes",["function"==typeof(l=void 0!==s.a&&s.a)&&l||Object,"function"==typeof(d=void 0!==i.b&&i.b)&&d||Object])],c);var l,d},CzL3:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("kZql")),a=r("PJh5");r.n(a);r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(){this._ready=!1,this._wasExpired=!1,this._notificationSent=!1,this._time=new i.BehaviorSubject(void 0),this._notification=new i.BehaviorSubject(void 0),this._loadedAt=a()}return Object.defineProperty(e.prototype,"time",{get:function(){return this._time.getValue()},set:function(e){this._time.next(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"notification",{get:function(){return this._notification.getValue()},set:function(e){this._notification.next(e)},enumerable:!0,configurable:!0}),e.prototype.updateDiff=function(e){e&&(s.a.demo?this._wasExpired=a(new Date(e)).diff(a(new Date(s.a.demoDate)))-a().diff(this._loadedAt)<=0:this._wasExpired=a(new Date(e)).diff(a())<=0,this._notificationSent=!1,this._str=void 0,this._ready=this._wasExpired,this._wasExpired||1!=this.state._completed||(this.state._completed=!1)),s.a.demo?this._diff=e||this.time?a.duration(a(new Date(e||this.time)).diff(a(new Date(s.a.demoDate)))-a().diff(this._loadedAt)):void 0:this._diff=e||this.time?a.duration(a(new Date(e||this.time)).diff(a())):void 0},e.prototype.update=function(){if(!this._diff)return"";if(this._diff.asMilliseconds()<=0){if(!this._notificationSent){if(this.notification&&this.state.imprintNotifications&&!this._wasExpired){new Audio("assets/Alarm01.mp3").play()}this._ready=!0}return this._notificationSent=!0,void(this._str=void 0)}var e=this._diff.seconds(),t=this._diff.minutes(),r=this._diff.hours(),n=Math.floor(this._diff.asDays()),i=[];n>0&&i.push(n+"d"),(n>0||r>0)&&i.push(r+"h"),(n>0||r>0||t>0)&&i.push(t+"m"),i.push(e+"s"),this._str=i.join(" "),this._ready=!1,this.state._completed=!1},e.prototype.ngOnInit=function(){var e=this;this._timeSubscription=this._time.subscribe(function(t){e.updateDiff(t),e.update()}),this._notificationSubscription=this._notification.subscribe(function(e){}),this._counter=i.Observable.interval(1e3).map(function(t){return e.updateDiff(void 0),t}),this._counterSubscription=this._counter.subscribe(function(t){return e.update()})},e.prototype.ngOnDestroy=function(){this._timeSubscription.unsubscribe(),this._notificationSubscription.unsubscribe(),this._counterSubscription.unsubscribe()},e}();o([r.i(n.Input)(),c("design:type",Object)],l.prototype,"state",void 0),o([r.i(n.Input)(),c("design:type",Object),c("design:paramtypes",[Object])],l.prototype,"time",null),o([r.i(n.Input)(),c("design:type",Object),c("design:paramtypes",[Object])],l.prototype,"notification",null),l=o([r.i(n.Component)({selector:"timer",template:'{{_str}}',styles:[r("cPj0")]}),c("design:paramtypes",[])],l)},EEDX:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},EM12:function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n={configJs:'var config = {"webapi":{"port":60001},"webapp":{"defaultTheme":"Dark"}};'}},Fnlp:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0,this.demoMode=!1}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.demoMode="true"==localStorage.getItem("demoMode")},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.toggleDemoMode=function(){var e="true"!=localStorage.getItem("demoMode");this.demoMode=e,localStorage.setItem("demoMode",e+"")},e}();l=o([r.i(n.Component)({selector:"app-developer",template:r("7fuz"),styles:[r("EEDX")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},FxpQ:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e}();l=o([r.i(n.Component)({selector:"app-connection-error",template:r("lRu1"),styles:[r("mf93")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},HOjl:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},Iksp:function(e,t,r){"use strict";var n=r("Qbdm"),i=r("KN8t"),s=r("3j3K"),a=r("NVOs"),o=r("5oXY"),c=r("Fzro"),l=r("3MNG"),d=(r.n(l),r("hHgl")),u=r("YWx4"),p=r("KZxv"),h=r("RiXa"),m=r("qn86"),f=r("JLFQ"),v=r("e/mT"),g=r("5305"),y=r("lHWG"),b=r("0Hpj"),w=r("+Lwu"),S=r("ATz5"),C=r("AcJ7"),O=r("r5VE"),k=r("+w0e"),j=r("38q8"),_=r("ilmp"),x=r("8zLQ"),I=r("JKTH"),A=r("8kYA"),F=r("7xIs"),M=r("08Wm"),R=r("lCrv"),T=r("CzL3"),L=r("0onv"),P=r("7T2B"),N=r("+qYp"),D=r("FxpQ"),B=r("Fnlp"),E=r("vMp4"),K=r("J8nT"),z=r("kZql");r.d(t,"a",function(){return G});var U=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},W=[{path:"player/:playerid",canActivate:[k.a],data:{name:"player"},children:[{path:"",component:p.a},{path:"",component:h.a,outlet:"menu"}]},{path:"server/:id",canActivate:[k.a],data:{name:"server"},children:[{path:"",component:m.a},{path:"",component:F.a,outlet:"menu"}]},{path:"admin/:id",canActivate:[k.a],data:{name:"admin-server"},children:[{path:"",component:v.a},{path:"",component:M.a,outlet:"menu"}]},{path:"servers",canActivate:[k.a],data:{name:"home"},children:[{path:"",component:f.a},{path:"",component:I.a,outlet:"menu"}]},{path:"developer",component:B.a},{path:"accessdenied",component:N.a},{path:"connectionerror",component:D.a},{path:"",redirectTo:"/servers",pathMatch:"full"}],G=function(){function e(){}return e}();G=U([r.i(s.NgModule)({declarations:[u.a,f.a,g.a,j.a,_.a,x.a,p.a,h.a,m.a,v.a,I.a,A.a,F.a,M.a,R.a,T.a,L.a,P.a,N.a,D.a,B.a,E.a],imports:[o.a.forRoot(W),d.a.forRoot(),n.BrowserModule,a.a,c.a,i.a,l.SimpleNotificationsModule.forRoot(),K.a],providers:[[{provide:y.a,useClass:z.a.demo?b.a:y.a}],w.a,S.a,C.a,O.a,k.a,{provide:s.LOCALE_ID,useValue:"en-US"}],bootstrap:[u.a]})],G)},J8nT:function(e,t,r){"use strict";var n=r("3j3K"),i=r("2Je8"),s=r("NVOs"),a=r("0jRk"),o=r("jWPz"),c=r("joX7");r.d(t,"a",function(){return d});var l=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},d=function(){function e(){}return e}();d=l([r.i(n.NgModule)({imports:[i.CommonModule,s.a],providers:[],declarations:[a.a,o.a,o.b,o.c,c.a],exports:[a.a,o.a,o.b,o.c,c.a]})],d)},JKTH:function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.menu.activate("overview")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-server-list-menu",host:{"[class]":"menu.className"},template:r("rHbN"),styles:[r("P+hD")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},JLFQ:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0,this.serverCount=0,this.onlinePlayerCount=0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.serversUpdatedSubscription=this.dataService.ServersUpdated$.subscribe(function(t){e.updateData(t)}),this.serverUpdateInterval=window.setInterval(function(){e.dataService.updateServer(null)},6e4),this.updateData(this.dataService.Servers)},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe(),this.serversUpdatedSubscription.unsubscribe(),window.clearInterval(this.serverUpdateInterval)},e.prototype.updateData=function(e){var t=0,r=0;if(e&&e.Servers){t=e.Servers.length;for(var n=0,i=e.Servers;n=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,n,i,s,a,o){this.route=e,this.router=t,this.httpService=n,this.dataService=i,this.messageService=s,this.notificationsService=a,this.ref=o,this.menuOption=void 0,this.theme=void 0,this.imprintNotifications=!1,this.keysGetter=Object.keys,this.loaded=!1,this.showMap=!1,this.creaturesMode="status",this.creatureStates={},this.creaturesSortField="food",this.creaturesAltSortFields="name",this.creaturesSortFunctions={food:function(e,t,n){return r.i(l.d)(e.FoodStatus,t.FoodStatus,n,2)},name:function(e,t,n){return r.i(l.b)(e.Name,t.Name,n)},species:function(e,t,n){return r.i(l.b)(e.Species,t.Species,n)},gender:function(e,t,n){return r.i(l.b)(e.Gender,t.Gender,n)},base_level:function(e,t,n){return r.i(l.c)(e.BaseLevel,t.BaseLevel,!n)},level:function(e,t,n){return r.i(l.c)(e.Level==e.BaseLevel?null:e.Level,t.Level==t.BaseLevel?null:t.Level,!n)},imprint:function(e,t,n){return r.i(l.d)(e.Imprint,t.Imprint,!n,2)},latitude:function(e,t,n){return r.i(l.d)(e.Latitude,t.Latitude,n,1)},longitude:function(e,t,n){return r.i(l.d)(e.Longitude,t.Longitude,n,1)},owner:function(e,t,n){return r.i(l.b)(e.OwnerType,t.OwnerType,n)},stat_health:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Health:null,void 0!=t.BaseStats?t.BaseStats.Health:null,!n)},stat_stamina:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Stamina:null,void 0!=t.BaseStats?t.BaseStats.Stamina:null,!n)},stat_oxygen:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Oxygen:null,void 0!=t.BaseStats?t.BaseStats.Oxygen:null,!n)},stat_food:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Food:null,void 0!=t.BaseStats?t.BaseStats.Food:null,!n)},stat_weight:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Weight:null,void 0!=t.BaseStats?t.BaseStats.Weight:null,!n)},stat_melee:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Melee:null,void 0!=t.BaseStats?t.BaseStats.Melee:null,!n)},stat_speed:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.MovementSpeed:null,void 0!=t.BaseStats?t.BaseStats.MovementSpeed:null,!n)},id1:function(e,t,n){return r.i(l.c)(e.Id1,t.Id1,n)},id2:function(e,t,n){return r.i(l.c)(e.Id1,t.Id1,n)}},this.tribeLogFilterFunction=function(e,t){return null==t||null!=e.Message&&e.Message.toLowerCase().indexOf(t)>=0}}return e.prototype.getPlayer=function(){var e=this;this.httpService.getPlayer(this.steamId).then(function(t){var r=Object.keys(t.Servers);e.serverKey&&void 0!=r.find(function(t){return t==e.serverKey})||(e.serverKey=r.length>0?r[0]:null);var n=Object.keys(t.Clusters);e.clusterKey&&void 0!=n.find(function(t){return t==e.clusterKey})||(e.clusterKey=n.length>0?n[0]:null),e.player=t,e.filterAndSort(),e.sortCluster(),e.filterCluster(),e.loaded=!0,e.ref.detectChanges()}).catch(function(t){e.player=null,e.filteredCreatures=null,e.imprintCreatures=null,e.filteredClusterCreatures=null,e.loaded=!0})},e.prototype.ngOnInit=function(){var e=this;this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.theme$=this.dataService.Theme,this.themeSubscription=this.theme$.subscribe(function(t){e.theme=t}),this.steamId=this.route.snapshot.params.playerid,this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.updateServer(t)}),this.getPlayer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.themeSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.haveMatingCooldown=function(e){return null!=e.NextMating&&new Date(e.NextMating)>new Date},e.prototype.active=function(e){return this.serverKey==e},e.prototype.activate=function(e){this.serverKey=e,this.filterAndSort()},e.prototype.serverWidth=function(){return 100/Object.keys(this.player.Servers).length},e.prototype.activeCluster=function(e){return this.clusterKey==e},e.prototype.activateCluster=function(e){this.clusterKey=e,this.sortCluster(),this.filterCluster()},e.prototype.clusterWidth=function(){return 100/Object.keys(this.player.Clusters).length},e.prototype.sort=function(){var e=this,t="-"!=this.creaturesSortField[0],r=this.creaturesSortFunctions[this.creaturesSortField.replace(/^\-/,"")],n=this.creaturesAltSortFields.split(",").map(function(t){var r={};return r.asc="-"!=t[0],r.sortFunc=e.creaturesSortFunctions[t.replace(/^\-/,"")],r});this.filteredCreatures.sort(function(e,i){var s=r(e,i,t);if(0==s)for(var a=0,o=n;a=0||null!=t.Name&&t.Name.toLowerCase().indexOf(e)>=0})}var t=this.player.Servers[this.serverKey].Creatures.filter(function(e){return null!=e.BabyAge});t.sort(function(e,t){return new Date(e.BabyNextCuddle)new Date(t.BabyNextCuddle)?1:0}),this.imprintCreatures=t;for(var r=[],n=0,i=this.filteredCreatures;nt.Level?-1:e.Level=0||null!=t.Name&&t.Name.toLowerCase().indexOf(e)>=0})}},e.prototype.run=function(){if(null==this.steamId||""==this.steamId)return this.player=null,this.filteredCreatures=null,void(this.imprintCreatures=null);this.getPlayer()},e.prototype.openMap=function(e){this.showMap=!0,e.stopPropagation()},e.prototype.closeMap=function(e){this.showMap=!1},e.prototype.updateServer=function(e){this.getPlayer(),this.showServerUpdateNotification(e)},e.prototype.haveCluster=function(){return null!=this.player&&Object.keys(this.player.Clusters).length>0},e.prototype.sumKibbleAndEggs=function(){return void 0!=this.player.Servers[this.serverKey].KibblesAndEggs?this.player.Servers[this.serverKey].KibblesAndEggs.reduce(function(e,t){return e+t.KibbleCount+t.EggCount},0):0},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.getStateForCreature=function(e){if(e){var t=this.creatureStates[e.Id1+"_"+e.Id2];return t||(t={imprintNotifications:!0},this.creatureStates[e.Id1+"_"+e.Id2]=t),t}},e.prototype.toggleImprintNotificationForCreature=function(e){var t=this.getStateForCreature(e);t.imprintNotifications=!t.imprintNotifications},e.prototype.activeCreaturesMode=function(e){return e==this.creaturesMode},e.prototype.activateCreaturesMode=function(e){this.creaturesMode=e},e.prototype.setCreaturesSort=function(e){var t=this.creaturesSortField==e;this.creaturesSortField=t?"-"+e:e,this.creaturesAltSortFields="latitude"==e?t?"-longitude,name":"longitude,name":"longitude"==e?t?"-latitude,name":"latitude,name":"name",this.sort()},e.prototype.copyCreature=function(e){},e.prototype.getCurrentServer=function(){var e=this;if(this.dataService&&this.dataService.Servers&&this.dataService.Servers.Servers){return this.dataService.Servers.Servers.find(function(t){return t.Key==e.serverKey})}},e.prototype.numCreatureTabs=function(){var e=1;return this.dataService.hasFeatureAccess("player","creatures-basestats",this.steamId)&&(e+=1),this.dataService.hasFeatureAccess("player","creatures-ids",this.steamId)&&(e+=1),e},e.prototype.isTheme=function(e){return this.theme==e},e}();p=d([r.i(n.Component)({selector:"app-player",template:r("jFLX"),styles:[r("S6EL")]}),u("design:paramtypes",["function"==typeof(h=void 0!==i.g&&i.g)&&h||Object,"function"==typeof(m=void 0!==i.b&&i.b)&&m||Object,"function"==typeof(f=void 0!==c.a&&c.a)&&f||Object,"function"==typeof(v=void 0!==a.a&&a.a)&&v||Object,"function"==typeof(g=void 0!==o.a&&o.a)&&g||Object,"function"==typeof(y=void 0!==s.NotificationsService&&s.NotificationsService)&&y||Object,"function"==typeof(b=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&b||Object])],p);var h,m,f,v,g,y,b},MOVZ:function(e,t){function r(e){throw new Error("Cannot find module '"+e+"'.")}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id="MOVZ"},"MjD/":function(e,t){e.exports="\r\n

Server

\r\n
\r\n
Players
\r\n
Tribes
\r\n
Wild Statistics
\r\n
Wild Creatures
\r\n
\r\n
"},"P+hD":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},QMiF:function(e,t){e.exports='\x3c!--
\r\n \r\n

{{currentOwner.Name}}

\r\n
Coords: {{currentArea.Latitude | number:\'1.0-1\'}}, {{currentArea.Longitude | number:\'1.0-1\'}}
\r\n
Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n
{{currentArea.StructureCount | number}} structures
\r\n \r\n
\r\n
--\x3e\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{currentOwner.Name}}

\r\n
\r\n
\r\n
\r\n Coords: {{currentArea.Latitude | number:\'1.0-1\'}}, {{currentArea.Longitude | number:\'1.0-1\'}}
\r\n Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n {{currentArea.StructureCount | number}} structures\r\n
\r\n
\r\n
Destroy this area
\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{currentOwner.Name}}

\r\n
\r\n
\r\n
\r\n Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n {{currentOwner.AreaCount | number}} areas
\r\n {{currentOwner.StructureCount | number}} structures
\r\n {{currentOwner.CreatureCount | number}} creatures\r\n
\r\n
\r\n
Destroy all structures
\r\n
Destroy all creatures
\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{modalInfo.Header}}

\r\n
\r\n
\r\n
\r\n {{modalInfo.Message}}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n

Structures

\r\n
Save World
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n
\r\n

Player/Tribe Locations

\r\n
\r\n
\r\n \x3c!--\r\n --\x3e\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameTypeA#S#C#Last Active
{{owner.Name}}{{owner.Type}}{{owner.AreaCount}}{{owner.StructureCount}}{{owner.CreatureCount}}{{dataService.toRelativeDate(owner.LastActiveTime)}}
\r\n
\r\n
'},QaTd:function(e,t){e.exports=''},RiXa:function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("5oXY"),a=r("ATz5");r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t){this.route=e,this.dataService=t}return e.prototype.ngOnInit=function(){this.steamId=this.route.snapshot.params.playerid,this.dataService.hasFeatureAccess("player","profile",this.steamId)?this.menu.activate("profile"):this.dataService.hasFeatureAccess("player","creatures",this.steamId)?this.menu.activate("creatures"):this.dataService.hasFeatureAccess("player","creatures-cloud",this.steamId)?this.menu.activate("creatures_cloud"):this.dataService.hasFeatureAccess("player","breeding",this.steamId)?this.menu.activate("breeding"):this.dataService.hasFeatureAccess("player","crops",this.steamId)?this.menu.activate("crop_plots"):this.dataService.hasFeatureAccess("player","generators",this.steamId)?this.menu.activate("electrical_generators"):this.dataService.hasFeatureAccess("player","kibbles-eggs",this.steamId)?this.menu.activate("kibbles_and_eggs"):this.dataService.hasFeatureAccess("player","tribelog",this.steamId)&&this.menu.activate("tribelog")},e}();o([r.i(n.ViewChild)("menu"),c("design:type","function"==typeof(d=void 0!==i.a&&i.a)&&d||Object)],l.prototype,"menu",void 0),l=o([r.i(n.Component)({selector:"app-player-menu",host:{"[class]":"menu.className"},template:r("78nn"),styles:[r("7uO+")]}),c("design:paramtypes",["function"==typeof(u=void 0!==s.g&&s.g)&&u||Object,"function"==typeof(p=void 0!==a.a&&a.a)&&p||Object])],l);var d,u,p},S6EL:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},SH1B:function(e,t){e.exports='
\r\n

My Profile

\r\n
\r\n
\r\n

Hello, {{dataService.Servers.User.Name}}

\r\n
\r\n
\r\n

\r\n Find your tames, view base stats and keep track of their food status. Get notified of pending imprints, the amount of fertilizer and gasoline remaining in your crops and generators. This and much more is available in your profile.\r\n

\r\n

View my profile ❯

\r\n
\r\n
\r\n
\r\n
\r\n

Servers

\r\n
\r\n
\r\n

{{server.MapName}} - {{server.Key}}{{server.MapName}} - {{server.Key}}

\r\n
\r\n
\r\n

\r\n Last Update {{server.LastUpdate}}, Next Update {{server.NextUpdate || \'-\'}}\r\n

\r\n

View server ❯

\r\n

Admin ❯

\r\n
\r\n
\r\n
\r\n
\r\n

Online {{onlinePlayerCount}}

\r\n
There are no players online...
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam NameCharacter NameTribe NameDiscord TagServerTime Online
{{player.SteamName}}{{player.CharacterName}}{{player.TribeName}}{{player.DiscordName}}{{server.Key}}{{player.TimeOnline}}
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n

{{server.Name}}{{server.Name}}

\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Address{{server.Address}}
Version{{server.Version}}
Player Slots{{server.OnlinePlayerMax}}
Map{{server.MapName}}
In-Game Day{{server.InGameTime}}
Tamed Creatures{{server.TamedCreatureCount | number}}
Cloud Creatures{{server.CloudCreatureCount | number}}
Wild Creatures{{server.WildCreatureCount | number}}
Structures{{server.StructureCount | number}}
Players{{server.PlayerCount | number}}
Tribes{{server.TribeCount | number}}
Last Update{{server.LastUpdate}}
Next Update{{server.NextUpdate}}
Uptime{{server.ServerStarted ? dataService.toRelativeDate(server.ServerStarted) : \'-\'}}
\r\n
\r\n
\r\n\r\n \x3c!--

{{server.Name}}{{server.Name}}

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Address{{server.Address}}
Version{{server.Version}}
Player Slots{{server.OnlinePlayerMax}}
Map{{server.MapName}}
In-Game Time{{server.InGameTime}}
Tamed Creatures{{server.TamedCreatureCount | number}}
Cloud Creatures{{server.CloudCreatureCount | number}}
Wild Creatures{{server.WildCreatureCount | number}}
Structures{{server.StructureCount | number}}
Players{{server.PlayerCount | number}}
Tribes{{server.TribeCount | number}}
Last Update{{server.LastUpdate}}
Next Update{{server.NextUpdate}}
Uptime{{server.ServerStarted ? dataService.toRelativeDate(server.ServerStarted) : \'-\'}}
\r\n
--\x3e\r\n \r\n

Online {{server.OnlinePlayerCount}}

\r\n
There are no players online...
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam NameCharacter NameTribe NameDiscord TagTime Online
{{player.SteamName}}{{player.CharacterName}}{{player.TribeName}}{{player.DiscordName}}{{player.TimeOnline}}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

External Resources

\r\n
\r\n
\r\n

Wiki

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Taming Calculators

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Creature Library and Breeding Suggestions

\r\n
\r\n \r\n
\r\n
'},YWx4:function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("hHgl")),o=r("+Lwu"),c=r("ATz5"),l=r("lHWG"),d=r("r5VE"),u=r("kZql"),p=r("2Je8");r.d(t,"a",function(){return v});var h=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},m=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},v=function(){function e(e,t,r,n,i,s,a,o){this.doc=e,this.messageService=t,this.dataService=r,this.httpService=n,this.hotkeysService=i,this.breadcrumbService=s,this.notificationsService=a,this.router=o,this.notificationOptions={position:["top","right"],timeOut:1e3,lastOnBottom:!1},this.showLogin=!1,this.showAdmin=!1,this.currentUrl="/",this.serversUpdatedBefore=!1,this.loading=!0;var c=this.doc.getElementById("configjs"),l=null;if(null!=u.a.configJsOverride?l=u.a.configJsOverride:"/*[[config]]*/"==c.text&&(l=u.a.configJsDefault),null!=l){var d=this.doc.createElement("script");d.type="text/javascript",d.id="configjs",d.text=l,c.parentNode.replaceChild(d,c)}if("undefined"!=typeof config&&"undefined"!==config.webapp&&!0===config.webapp.useCustomCssFile){var p=this.doc.createElement("link");p.rel="stylesheet",p.href="/custom.css",this.doc.getElementsByTagName("head")[0].appendChild(p)}s.addFriendlyNameForRoute("/accessdenied","Access Denied"),s.addFriendlyNameForRoute("/connectionerror","Connection error"),s.hideRoute("/player"),s.hideRoute("/servers"),s.hideRoute("/server"),s.hideRoute("/admin"),s.addCallbackForRouteRegex("^/player/.+$",this.getNameForPlayer),u.a.demo||t.connect()}return e.prototype.ngOnInit=function(){var e=this;this.dataService.SetTheme(this.getTheme()),this.routerEventsSubscription=this.router.events.subscribe(function(t){e.navigationInterceptor(t)}),this.currentUrl=window.location.href||"/",this.serversUpdatedSubscription=this.dataService.ServersUpdated$.subscribe(function(t){e.serversUpdatedBefore||!t||t.User&&t.User.SteamId||(e.showLogin=!0),e.serversUpdatedBefore=!0}),this.adminOptionsHotkeySubscription=this.hotkeysService.add({keys:"control.shift.a"}).subscribe(function(){e.dataService.hasFeatureAccess("pages","admin-server")&&(e.showAdmin=!0)})},e.prototype.ngOnDestroy=function(){this.routerEventsSubscription.unsubscribe(),this.serversUpdatedSubscription.unsubscribe(),this.adminOptionsHotkeySubscription.unsubscribe()},e.prototype.navigationInterceptor=function(e){e instanceof i.d?this.loading=!0:e instanceof i.c?this.loading=!1:e instanceof i.e?this.loading=!1:e instanceof i.f&&(this.loading=!1)},e.prototype.getNameForPlayer=function(e){return"Player"},e.prototype.getBodyClasses=function(){var e=this.getTheme();return"undefined"!=typeof config&&"undefined"!==config.webapp&&!0===config.webapp.topMenu&&(e+=" topmenu"),e},e.prototype.getDefaultTheme=function(){var e="undefined"!=typeof config&&"undefined"!==config.webapp&&"string"==typeof config.webapp.defaultTheme?config.webapp.defaultTheme.toLowerCase():void 0;return"light"!=e&&"dark"!=e?"dark":e},e.prototype.getTheme=function(){return localStorage.getItem("theme")||this.getDefaultTheme()},e.prototype.setTheme=function(e){return this.dataService.SetTheme(e),localStorage.setItem("theme",e),!1},e.prototype.openLogin=function(e){this.showLogin=!0,e.stopPropagation(),e.preventDefault()},e.prototype.closeLogin=function(e){this.showLogin=!1},e.prototype.openCustomTheme=function(e,t){e.stopPropagation(),e.preventDefault(),this.showAdmin=!1,t.show()},e.prototype.getLoginUrl=function(){return u.a.demo?"":this.httpService.getApiBaseUrl()+"/authentication/login"},e.prototype.getLogoutUrl=function(){return u.a.demo?"":this.httpService.getApiBaseUrl()+"/authentication/logout?returnUrl="+this.currentUrl},e}();v=h([r.i(n.Component)({selector:"body",host:{"[class]":"getBodyClasses()"},template:r("5xMp"),styles:[r("okgc")]}),f(0,r.i(n.Inject)(p.DOCUMENT)),m("design:paramtypes",[Object,"function"==typeof(g=void 0!==o.a&&o.a)&&g||Object,"function"==typeof(y=void 0!==c.a&&c.a)&&y||Object,"function"==typeof(b=void 0!==l.a&&l.a)&&b||Object,"function"==typeof(w=void 0!==d.a&&d.a)&&w||Object,"function"==typeof(S=void 0!==a.b&&a.b)&&S||Object,"function"==typeof(C=void 0!==s.NotificationsService&&s.NotificationsService)&&C||Object,"function"==typeof(O=void 0!==i.b&&i.b)&&O||Object])],v);var g,y,b,w,S,C,O},aijx:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},bKAj:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},bl1B:function(e,t){e.exports="\r\n

Admin|Server

\r\n
\r\n
Structures
\r\n
Players
\r\n
Tribes
\r\n
Fertilized Eggs
\r\n
\r\n
"},cPj0:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"e/mT":function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("ATz5")),o=r("+Lwu"),c=r("lHWG"),l=r("vwbq");r.d(t,"a",function(){return p});var d=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,r,n,i,s){this.route=e,this.router=t,this.httpService=r,this.dataService=n,this.messageService=i,this.notificationsService=s,this.menuOption=void 0,this.loaded=!1,this.loadedStructures=!1,this.loadedFertilizedEggs=!1}return e.prototype.getServer=function(){var e=this;this.httpService.getAdminServer(this.serverKey).then(function(t){e.server=t,e.loaded=!0}).catch(function(t){e.server=null,e.loaded=!0})},e.prototype.getStructures=function(){var e=this;this.httpService.getStructures(this.serverKey).then(function(t){e.structures=t,e.loadedStructures=!0}).catch(function(t){e.structures=void 0,e.loadedStructures=!0})},e.prototype.getListFertilizedEggs=function(){var e=this;this.httpService.adminListFertilizedEggs(this.serverKey).then(function(t){e.spoiledEggsList=t.SpoiledEggList,e.fertilizedEggsList=t.FertilizedEggList,e.fertilizedEggsCount=void 0===t.FertilizedEggsCount?0:t.FertilizedEggsCount,e.spoiledEggsCount=void 0===t.SpoiledEggsCount?0:t.SpoiledEggsCount,e.totalEggCount=e.spoiledEggsCount+e.fertilizedEggsCount,e.loadedFertilizedEggs=!0}).catch(function(t){e.fertilizedEggsList=void 0,e.loadedFertilizedEggs=!0})},e.prototype.ngOnInit=function(){var e=this;this.serverKey=this.route.snapshot.params.id,this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){e.menuOption=t,"structures"==e.menuOption?e.getStructures():"fertilized-eggs"==e.menuOption&&e.getListFertilizedEggs()}),this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){e.serverKey==t&&(e.updateServer(),e.showServerUpdateNotification(t))}),this.getServer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.getTribeMember=function(e){return this.server.Players.find(function(t){return t.SteamId==e})},e.prototype.updateServer=function(){this.getServer()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.showInfoModal=function(e,t){var r={};r.Header=e,r.Message=t,this.modalInfo=r,l.b(this.contextMenu.nativeElement).style("display","block"),l.c&&l.c.stopPropagation()},e.prototype.hideContextMenu=function(){l.b(this.contextMenu.nativeElement).style("display","none"),this.modalInfo=void 0},e.prototype.saveWorld=function(e){var t=this;this.httpService.adminSaveWorld(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyAllEggs=function(e){var t=this;this.httpService.adminDestroyAllEggs(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroySpoiledEggs=function(e){var t=this;this.httpService.adminDestroySpoiledEggs(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e}();d([r.i(n.ViewChild)("contextMenu"),u("design:type","function"==typeof(h=void 0!==n.ElementRef&&n.ElementRef)&&h||Object)],p.prototype,"contextMenu",void 0),p=d([r.i(n.Component)({selector:"app-admin-server",template:r("/Wuq"),styles:[r("7arz")]}),u("design:paramtypes",["function"==typeof(m=void 0!==i.g&&i.g)&&m||Object,"function"==typeof(f=void 0!==i.b&&i.b)&&f||Object,"function"==typeof(v=void 0!==c.a&&c.a)&&v||Object,"function"==typeof(g=void 0!==a.a&&a.a)&&g||Object,"function"==typeof(y=void 0!==o.a&&o.a)&&y||Object,"function"==typeof(b=void 0!==s.NotificationsService&&s.NotificationsService)&&b||Object])],p);var h,m,f,v,g,y,b},eqcJ:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".customThemeContainer{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-line-pack:justify;align-content:space-between}.customThemeItem{width:50%;padding:2px;cursor:pointer}.customThemeColorPreview{width:28px;height:28px;display:inline-block;vertical-align:middle;margin-right:5px;border:2px solid #000;box-sizing:border-box}.customThemeColorPreview>div{width:24px;height:24px;display:inline-block;border:2px solid #fff;box-sizing:border-box}.customThemeColor{font-family:monospace;padding:1px 3px;width:55px;border-radius:8px;margin-right:10px}.customThemeColor,.customThemeName{height:20px;display:inline-block;vertical-align:middle}",""]),e.exports=e.exports.toString()},"fT+k":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,'.map canvas,.map svg{position:absolute;top:0;left:0;width:100%}rect.overlay{fill:transparent}.wrapper{position:relative}.wrapper:after{padding-top:100%;display:block;content:""}.wrapper .buttons{position:absolute;left:5px;top:5px;opacity:.75;z-index:2}',""]),e.exports=e.exports.toString()},ilmp:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Qbdm");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this._sanitizer=e}return e.prototype.transform=function(e){return this._sanitizer.bypassSecurityTrustHtml(e)},e}();o=s([r.i(n.Pipe)({name:"sanitizeHtml"}),a("design:paramtypes",["function"==typeof(c=void 0!==i.DomSanitizer&&i.DomSanitizer)&&c||Object])],o);var c},jFLX:function(e,t){e.exports='
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given steam id.

\r\n
\r\n
\r\n
\r\n

Servers

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Player

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Character NameGenderTribe NameSteam IdTribe IdLevelEngram PointsLatLngSaved At
{{player?.Servers[serverKey]?.CharacterName}}{{player?.Servers[serverKey]?.Gender}}{{player?.Servers[serverKey]?.TribeName}}{{player?.Servers[serverKey]?.FakeSteamId || player?.Servers[serverKey]?.SteamId}}{{player?.Servers[serverKey]?.TribeId}}{{player?.Servers[serverKey]?.Level}}{{player?.Servers[serverKey]?.EngramPoints | number}}{{player?.Servers[serverKey]?.Latitude | number:\'1.1-1\'}}{{player?.Servers[serverKey]?.Longitude | number:\'1.1-1\'}}{{dataService.toDate(player?.Servers[serverKey]?.SavedAt)}}
\r\n
\r\n
\r\n
\r\n
\r\n

Creatures {{filteredCreatures.length}}

\r\n
\r\n
\r\n
There are no creatures...
\r\n \r\n
\r\n close\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameClassNameSpeciesAliasesGenderBase LevelLevelImprintFoodLatLngStatusOwnerHPSTOXFOWEMESPID1ID2
No matching creatures...
{{creature.Name}}{{creature.ClassName}}{{creature.Species}}{{creature.Aliases}}{{creature.Gender}}{{creature.BaseLevel}}{{creature.Level}}{{creature.Imprint | percent:\'1.0-0\'}}\r\n
\r\n
{{creature.FoodStatus | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{creature.Latitude | number:\'1.1-1\'}}{{creature.Longitude | number:\'1.1-1\'}}\r\n Next mating {{dataService.toRelativeDate(creature.NextMating)}}\r\n
\r\n
\r\n
Baby
\r\n
\r\n
\r\n
{{creature.BabyAge | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
\r\n
cuddle {{dataService.toRelativeDate(creature.BabyNextCuddle)}}
\r\n
\r\n
\r\n
{{creature.OwnerType}}{{creature.BaseStats?.Health}}{{creature.BaseStats?.Stamina}}{{creature.BaseStats?.Oxygen}}{{creature.BaseStats?.Food}}{{creature.BaseStats?.Weight}}{{creature.BaseStats?.Melee}}{{creature.BaseStats?.MovementSpeed}}content_copy{{creature.Id1}}{{creature.Id2}}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Breeding {{imprintCreatures.length}}

\r\n
\r\n
\r\n
There are no baby creatures...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameSpeciesGenderBase LevelImprintProgressFully Grown AtNext Imprint
{{creature.Name}}{{creature.Species}}{{creature.Gender}}{{creature.BaseLevel}}{{creature.Imprint | percent:\'1.0-0\'}}\r\n
\r\n
{{creature.BabyAge | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{dataService.toDate(creature.BabyFullyGrown)}}
\r\n
\r\n \x3c!--

\r\n Last Update {{getCurrentServer().LastUpdate}}, Next Update {{getCurrentServer().NextUpdate || \'-\'}}\r\n

--\x3e\r\n
\r\n
\r\n
\r\n

Kibbles and Eggs {{sumKibbleAndEggs() | number:0.0-0}}

\r\n
\r\n
There are no kibbles or eggs...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameKibblesEggsTotal
{{ke.Name}}{{ke.KibbleCount}}{{ke.EggCount}}{{ke.KibbleCount + ke.EggCount}}
\r\n
\r\n
\r\n
\r\n

Clusters

\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n

Creatures

\r\n
\r\n
There are no creatures in the cloud...
\r\n
\r\n
\r\n
\r\n

Creatures {{filteredClusterCreatures.length}}

\r\n
\r\n
There are no creatures in the cloud...
\r\n
\r\n close\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameSpeciesLevel
No matching creatures...
{{creature.Name}}{{creature.Species}}{{creature.Level}}
\r\n
\r\n
\r\n
\r\n
\r\n

Crops

\r\n
\r\n
There are no crops...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CropSizeFertilizer %Fertilizer UnitsWaterLatLng
{{(cp.PlantedCropName || cp.PlantedCropClassName)}}{{cp.Size}}\r\n
\r\n
{{(cp.FertilizerQuantity / cp.FertilizerMax) | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{cp.FertilizerQuantity | number}}{{cp.WaterAmount | number:\'1.0-0\'}}{{cp.Latitude | number:\'1.1-1\'}}{{cp.Longitude | number:\'1.1-1\'}}
\r\n
\r\n
\r\n
\r\n
\r\n

Electrical Generators

\r\n
\r\n
There are no electrical generators...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Gasoline %Gasoline QuantityActivatedLatLng
\r\n
\r\n
{{(eg.GasolineQuantity / 800.0) | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{eg.GasolineQuantity | number}}{{(eg.Activated == true ? "Yes" : "No")}}{{eg.Latitude | number:\'1.1-1\'}}{{eg.Longitude | number:\'1.1-1\'}}
\r\n
\r\n
\r\n
\r\n
\r\n

Tribe Log

\r\n
\r\n
There are no tribe logs...
\r\n \r\n
\r\n close\r\n \r\n
\r\n \r\n \r\n \r\n \r\n Day\r\n \r\n \r\n {{log.Day}}\r\n \r\n \r\n \r\n \r\n Time\r\n \r\n \r\n {{log.Time}}\r\n \r\n \r\n \r\n \r\n Message\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n'},jWPz:function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"c",function(){return a}),r.d(t,"b",function(){return o}),r.d(t,"a",function(){return c});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(e){this.template=e}return e}();a=i([r.i(n.Directive)({selector:"[ark-dt-cell]"}),s("design:paramtypes",["function"==typeof(l=void 0!==n.TemplateRef&&n.TemplateRef)&&l||Object])],a);var o=function(){function e(e){this.template=e}return e}();o=i([r.i(n.Directive)({selector:"[ark-dt-header]"}),s("design:paramtypes",["function"==typeof(d=void 0!==n.TemplateRef&&n.TemplateRef)&&d||Object])],o);var c=function(){function e(){}return e}();i([r.i(n.Input)(),r.i(n.ContentChild)(a,{read:n.TemplateRef}),s("design:type","function"==typeof(u=void 0!==n.TemplateRef&&n.TemplateRef)&&u||Object)],c.prototype,"cellTemplate",void 0),i([r.i(n.Input)(),r.i(n.ContentChild)(o,{read:n.TemplateRef}),s("design:type","function"==typeof(p=void 0!==n.TemplateRef&&n.TemplateRef)&&p||Object)],c.prototype,"headerTemplate",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"mode",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"key",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"thenSort",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"title",void 0),i([r.i(n.Input)(),s("design:type",Boolean)],c.prototype,"orderBy",void 0),c=i([r.i(n.Directive)({selector:"ark-dt-column"})],c);var l,d,u,p},jkBB:function(e,t){e.exports='
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n
No matching entries...
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n «\r\n \r\n \r\n  {{_fromRow}} - {{getLastRowOffset()}} of {{_totalRows}} \r\n »\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
'},joX7:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl");r.n(i);r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(){this.enabled=i.Observable.of(!0)}return Object.defineProperty(e.prototype,"columnKeys",{set:function(e){this._columnKeys=e,this.ColumnKeys=this._columnKeys.split(",")},enumerable:!0,configurable:!0}),e}();s([r.i(n.Input)(),a("design:type",String)],o.prototype,"key",void 0),s([r.i(n.Input)(),a("design:type",String)],o.prototype,"name",void 0),s([r.i(n.Input)(),a("design:type","function"==typeof(c=void 0!==i.Observable&&i.Observable)&&c||Object)],o.prototype,"enabled",void 0),s([r.i(n.Input)(),a("design:type",String),a("design:paramtypes",[String])],o.prototype,"columnKeys",null),o=s([r.i(n.Directive)({selector:"ark-dt-mode"})],o);var c},kZql:function(e,t,r){"use strict";var n=r("EM12");r.d(t,"a",function(){return i});var i={production:!0,demo:!1,demoDate:null,configJsOverride:null,configJsDefault:n.a.configJs,apiBaseUrl:"//:/api",signalrBaseUrl:"//:/signalr"}},lCrv:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("ATz5")),a=r("lHWG"),o=r("kZql"),c=r("vwbq"),l=r("PJh5");r.n(l);r.d(t,"a",function(){return p});var d=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,r){this.dataService=e,this.httpService=t,this.zone=r,this._structures=new i.BehaviorSubject(void 0),this.keysGetter=Object.keys,this.ownerSortField="locations",this.ownerSortFunctions={locations:function(e,t){return e.AreaCount>t.AreaCount?-1:e.AreaCountt.StructureCount?-1:e.StructureCountt.StructureCount?-1:e.StructureCountt.LastActiveTime||void 0==t.LastActiveTime?1:0}},this.width=1024,this.height=1024,this.zoom=c.a().scaleExtent([1,8])}return Object.defineProperty(e.prototype,"structures",{get:function(){return this._structures.getValue()},set:function(e){this._structures.next(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._structuresSubscription=this._structures.subscribe(function(t){return e.update(t)});var t=this.mapContainer.nativeElement;this.map={},this.map.canvas=c.b(t).append("canvas").attr("width",1024).attr("height",1024).node().getContext("2d"),this.map.svg=c.b(t).append("svg").attr("viewBox","0 0 1024 1024").attr("preserveAspectRatio","xMidYMid").append("g").on("contextmenu",function(e,t){c.c.preventDefault()}),this.map.svg.append("rect").attr("class","overlay").attr("width",1024).attr("height",1024),this.map.x=c.d().domain([0,1024]).range([0,1024]),this.map.y=c.d().domain([0,1024]).range([0,1024]),c.b(t).call(this.zoom.on("zoom",function(){e.hideContextMenu(),e.redraw()})).on("wheel.zoom",null),this.structures&&this.updateMap()},e.prototype.ngOnDestroy=function(){this._structuresSubscription.unsubscribe()},e.prototype.zoomIn=function(){this.zoom.scaleBy(c.b(this.mapContainer.nativeElement),1.2)},e.prototype.zoomOut=function(){this.zoom.scaleBy(c.b(this.mapContainer.nativeElement),.8)},e.prototype.updateSelection=function(){var e=this;this.map.svg.circle.attr("display",function(t){var r=e.structures.Owners[t.OwnerId];return t.Removed||r.Removed||e.selectedOwner&&(!e.selectedOwner||e.selectedOwner.Id!=t.OwnerId)?"none":"block"}),this.redraw()},e.prototype.update=function(e){this.sortOwners(e),this.map&&this.updateMap()},e.prototype.sortOwners=function(e){var t=this.ownerSortFunctions[this.ownerSortField];if(e){var r=e.Owners.slice();r.sort(t),this.ownersSorted=r}else this.ownersSorted=void 0},e.prototype.updateMap=function(){var e=this;this.map.svg.nodes=this.structures.Areas,this.map.svg.draw=function(){e.map.svg.circle=e.map.svg.selectAll("circle").data(e.map.svg.nodes).enter().append("circle").attr("r",function(e){return e.RadiusPx<2?2:e.RadiusPx}).attr("fill","transparent").attr("stroke",function(t){var r=e.structures.Owners[t.OwnerId];return!!r.LastActiveTime&&l(new Date(r.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(t.StructureCount>=100||t.TrashQuota<.5&&t.StructureCount>=10)?"magenta":"red"}).attr("stroke-width",function(t){var r=e.structures.Owners[t.OwnerId];return!!r.LastActiveTime&&l(new Date(r.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(t.StructureCount>=100||t.TrashQuota<.5&&t.StructureCount>=10)?3:2}).attr("transform",e.map.svg.transform),e.map.svg.circle.on("click",function(t){c.c.preventDefault();var r={};r.x=c.c.pageX,r.y=c.c.pageY,e.showAreaModal(t,r)}),e.map.svg.circle.append("svg:title").text(function(t){var r=e.structures.Owners[t.OwnerId],n=r.LastActiveTime?l(new Date(r.LastActiveTime)).fromNow():null;return r.Name+": "+t.StructureCount+" structures\nCoords: "+t.Latitude+", "+t.Longitude+"\n"+(n?"Last active: "+n+"\n":"")+"---\n"+t.Structures.map(function(t){var r=e.structures.Types[t.t];return t.c+": "+(r?r.Name:t.t)}).join("\n")})},this.map.svg.draw(),this.map.svg.transform=function(t){return"translate("+e.map.x(t.TopoMapX)+","+e.map.y(t.TopoMapY)+")"},this.map.svg.circle.attr("transform",this.map.svg.transform)},e.prototype.imageLoaded=function(e){var t=this;this.img=e,this.width=e?e.naturalWidth:1024,this.height=e?e.naturalHeight:1024,window.setTimeout(function(){t.resize(),t.redraw()},100)},e.prototype.resize=function(){},e.prototype.redraw=function(){var e=this,t=c.e(this.mapContainer.nativeElement);this.map.svg.attr("transform","translate("+t.x+","+t.y+") scale("+t.k+")"),t.k!=this.prevTransformK&&this.map.svg.circle.attr("stroke-width",function(r){var n=e.structures.Owners[r.OwnerId];return(!!n.LastActiveTime&&l(new Date(n.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(r.StructureCount>=100||r.TrashQuota<.5&&r.StructureCount>=10)?3:2)/t.k});var r=this.map.canvas;r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,1024,1024),r.translate(t.x,t.y),r.scale(t.k,t.k),this.img&&r.drawImage(this.img,0,0),this.prevTransformK=t.k},e.prototype.ngOnChanges=function(e){var t=this;if(null!=this.mapName){var r=new Image;r.onload=function(){return t.imageLoaded(r)},r.onerror=function(){return t.imageLoaded(void 0)},r.src=o.a.demo?"assets/demo/Ragnarok.jpg":this.getApiBaseUrl()+"/map/"+this.mapName,r.complete&&(r.onload=null,r.onerror=null,this.imageLoaded(r))}},e.prototype.getApiBaseUrl=function(){return o.a.apiBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e.prototype.reset=function(){this.selectedOwner=void 0,this.updateSelection()},e.prototype.setSelectedOwner=function(e){this.selectedOwner=e,this.updateSelection()},e.prototype.setOwnerSort=function(e){this.ownerSortField=e,this.sortOwners(this.structures)},e.prototype.showAreaModal=function(e,t){this.currentArea=e,this.currentOwner=this.structures.Owners[e.OwnerId],c.b(this.contextMenu.nativeElement).style("display","block"),c.c&&c.c.stopPropagation()},e.prototype.showOwnerModal=function(e,t){this.currentOwner=t,c.b(this.contextMenu.nativeElement).style("display","block"),e.stopPropagation()},e.prototype.showInfoModal=function(e,t){var r={};r.Header=e,r.Message=t,this.modalInfo=r,c.b(this.contextMenu.nativeElement).style("display","block"),c.c&&c.c.stopPropagation()},e.prototype.hideContextMenu=function(){c.b(this.contextMenu.nativeElement).style("display","none"),this.currentArea=void 0,this.currentOwner=void 0,this.modalInfo=void 0},e.prototype.destroyCurrentArea=function(e){var t=this;this.httpService.adminDestroyStructuresForTeamIdAtPosition(this.serverKey,this.currentOwner.OwnerId,this.currentArea.X,this.currentArea.Y,+this.currentArea.RadiusUu+1e3,1).then(function(e){t.currentArea.Removed=!0,t.currentOwner.AreaCount-=1,t.currentOwner.StructureCount-=t.currentArea.StructureCount,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyAllStructuresForTeam=function(e){var t=this;this.httpService.adminDestroyAllStructuresForTeamId(this.serverKey,this.currentOwner.OwnerId).then(function(e){t.currentOwner.Removed=!0,t.currentOwner.AreaCount=0,t.currentOwner.StructureCount=0,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyDinosForTeam=function(e){var t=this;this.httpService.adminDestroyDinosForTeamId(this.serverKey,this.currentOwner.OwnerId).then(function(e){t.currentOwner.CreatureCount=0,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.saveWorld=function(e){var t=this;this.httpService.adminSaveWorld(this.serverKey).then(function(e){t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e}();d([r.i(n.Input)(),u("design:type",Object),u("design:paramtypes",[Object])],p.prototype,"structures",null),d([r.i(n.Input)(),u("design:type",String)],p.prototype,"serverKey",void 0),d([r.i(n.Input)(),u("design:type",String)],p.prototype,"mapName",void 0),d([r.i(n.ViewChild)("map"),u("design:type","function"==typeof(h=void 0!==n.ElementRef&&n.ElementRef)&&h||Object)],p.prototype,"mapContainer",void 0),d([r.i(n.ViewChild)("contextMenu"),u("design:type","function"==typeof(m=void 0!==n.ElementRef&&n.ElementRef)&&m||Object)],p.prototype,"contextMenu",void 0),p=d([r.i(n.Component)({selector:"arkmap-structures",template:r("QMiF"),styles:[r("fT+k")],encapsulation:n.ViewEncapsulation.None}),u("design:paramtypes",["function"==typeof(f=void 0!==s.a&&s.a)&&f||Object,"function"==typeof(v=void 0!==a.a&&a.a)&&v||Object,"function"==typeof(g=void 0!==n.NgZone&&n.NgZone)&&g||Object])],p);var h,m,f,v,g},lHWG:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Fzro"),s=r("eErF"),a=(r.n(s),r("kZql"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e){this.http=e,this.headers=new i.c({"Content-Type":"application/json"}),this.serversUrl="/servers",this.serverUrl="/server",this.wildCreaturesUrl="/wildcreatures",this.structuresUrl="/structures",this.adminServerUrl="/adminserver",this.administerUrl="/administer",this.playerUrl="/player"}return e.prototype.getOptions=function(){var e="true"==localStorage.getItem("demoMode"),t=new i.d({withCredentials:!0});return e&&(t.headers||(t.headers=new i.c),t.headers.append("demoMode","true")),t},e.prototype.getServers=function(){return this.http.get(""+this.getApiBaseUrl()+this.serversUrl+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getServer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.serverUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getWildCreatures=function(e){return this.http.get(""+this.getApiBaseUrl()+this.wildCreaturesUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getStructures=function(e){return this.http.get(""+this.getApiBaseUrl()+this.structuresUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getPlayer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.playerUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getAdminServer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.adminServerUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyAllStructuresForTeamId=function(e,t){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyAllStructuresForTeamId/"+e+"?teamId="+t+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyStructuresForTeamIdAtPosition=function(e,t,r,n,i,s){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyStructuresForTeamIdAtPosition/"+e+"?teamId="+t+"&x="+r+"&y="+n+"&radius="+i+"&rafts="+s+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyDinosForTeamId=function(e,t){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyDinosForTeamId/"+e+"?teamId="+t+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminSaveWorld=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/SaveWorld/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminListFertilizedEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DroppedEggsList/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyAllEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyAllEggs/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroySpoiledEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroySpoiledEggs/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getApiBaseUrl=function(){return a.a.apiBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e.prototype.handleError=function(e){return Promise.reject(e.message||e)},e}();l=o([r.i(n.Injectable)(),c("design:paramtypes",["function"==typeof(d=void 0!==i.b&&i.b)&&d||Object])],l);var d},lRu1:function(e,t){e.exports='
\n
\n

Connection error

\n

The application was unable to connect to the Web API. This could be due to a configuration error...

\n
\n
'},m8aW:function(e,t){e.exports=''},mf93:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},ne8d:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},oLRk:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},okgc:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},qn86:function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("PJh5")),o=(r.n(a),r("ATz5")),c=r("+Lwu"),l=r("lHWG"),d=r("+rAa");r.d(t,"a",function(){return h});var u=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},p=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},h=function(){function e(e,t,n,i,s,a,o){this.route=e,this.router=t,this.httpService=n,this.dataService=i,this.messageService=s,this.notificationsService=a,this.ref=o,this.menuOption=void 0,this.loaded=!1,this.creaturesLoaded=!1,this.keysGetter=Object.keys,this.showMap=!1,this.creaturesMode="status",this.creaturesSortField="base_level",this.creaturesAltSortFields="base_level,gender",this.creaturesSortFunctions={gender:function(e,t,n){return r.i(d.b)(e.Gender,t.Gender,n)},base_level:function(e,t,n){return r.i(d.c)(e.BaseLevel,t.BaseLevel,!n)},tameable:function(e,t,n){return r.i(d.c)(e.IsTameable,t.IsTameable,!n)},latitude:function(e,t,n){return r.i(d.d)(e.Latitude,t.Latitude,n,1)},longitude:function(e,t,n){return r.i(d.d)(e.Longitude,t.Longitude,n,1)},x:function(e,t,n){return r.i(d.d)(e.X,t.X,n,0)},y:function(e,t,n){return r.i(d.d)(e.Y,t.Y,n,0)},z:function(e,t,n){return r.i(d.d)(e.Z,t.Z,n,0)},stat_health:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Health:null,void 0!=t.BaseStats?t.BaseStats.Health:null,!n)},stat_stamina:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Stamina:null,void 0!=t.BaseStats?t.BaseStats.Stamina:null,!n)},stat_oxygen:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Oxygen:null,void 0!=t.BaseStats?t.BaseStats.Oxygen:null,!n)},stat_food:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Food:null,void 0!=t.BaseStats?t.BaseStats.Food:null,!n)},stat_weight:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Weight:null,void 0!=t.BaseStats?t.BaseStats.Weight:null,!n)},stat_melee:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Melee:null,void 0!=t.BaseStats?t.BaseStats.Melee:null,!n)},stat_speed:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.MovementSpeed:null,void 0!=t.BaseStats?t.BaseStats.MovementSpeed:null,!n)},id1:function(e,t,n){return r.i(d.c)(e.Id1,t.Id1,n)},id2:function(e,t,n){return r.i(d.c)(e.Id1,t.Id1,n)}},this.playerSortFunctions={character_name:function(e,t,n){return r.i(d.b)(e.CharacterName,t.CharacterName,n)},tribe_name:function(e,t,n){return r.i(d.b)(e.TribeName,t.TribeName,n)},last_active:function(e,t,n){return r.i(d.c)(e.LastActiveTime,t.LastActiveTime,!n)}},this.tribeSortFunctions={tribe_name:function(e,t,n){return r.i(d.b)(e.Name,t.Name,n)},last_active:function(e,t,n){return r.i(d.c)(e.LastActiveTime,t.LastActiveTime,!n)}},this.wildStatisticsSortFunctions={species:function(e,t,n){return r.i(d.b)(e.Name,t.Name,n)},class_name:function(e,t,n){return r.i(d.b)(e.ClassName,t.ClassName,n)},count:function(e,t,n){return r.i(d.c)(e.Count,t.Count,!n)},fraction:function(e,t,n){return r.i(d.d)(e.Fraction,t.Fraction,!n,4)}}}return e.prototype.getServer=function(){var e=this;this.httpService.getServer(this.serverKey).then(function(t){e.server=t,e.filter(),e.loaded=!0}).catch(function(t){e.server=null,e.filteredPlayers=null,e.filteredTribes=null,e.loaded=!0})},e.prototype.getWildCreatures=function(){var e=this;this.httpService.getWildCreatures(this.serverKey).then(function(t){e.wild=t,e.species=Object.keys(e.wild.Species).sort(function(t,n){return r.i(d.b)(e.wild.Species[t].Name||t,e.wild.Species[n].Name||n,!0)}),e.selectedSpecies&&void 0!=e.species.find(function(t){return t==e.selectedSpecies})||(e.selectedSpecies=e.species.length>0?e.species[0]:null),e.filterAndSortWild(),e.creaturesLoaded=!0,e.ref.detectChanges()}).catch(function(t){e.wild=null,e.species=null,e.filteredCreatures=null,e.creaturesLoaded=!0})},e.prototype.ngOnInit=function(){var e=this;this.accessControl_pages_player=this.dataService.hasFeatureAccessObservable("pages","player"),this.serverKey=this.route.snapshot.params.id,this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){e.menuOption=t,0!=e.creaturesLoaded||"wildcreatures"!=e.menuOption&&"wildcreatures-statistics"!=e.menuOption||e.getWildCreatures()}),this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){e.serverKey==t&&(e.updateServer(),e.showServerUpdateNotification(t))}),this.getServer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.filter=function(){var e=this.dataService.getCurrentDate(),t=e.subtract(90,"day");this.filteredPlayers=this.server.Players.filter(function(e){return a(new Date(e.LastActiveTime)).isSameOrAfter(t)}),this.filteredTribes=this.server.Tribes.filter(function(e){return a(new Date(e.LastActiveTime)).isSameOrAfter(t)})},e.prototype.sortWild=function(){var e=this,t="-"!=this.creaturesSortField[0],r=this.creaturesSortFunctions[this.creaturesSortField.replace(/^\-/,"")],n=this.creaturesAltSortFields.split(",").map(function(t){var r={};return r.asc="-"!=t[0],r.sortFunc=e.creaturesSortFunctions[t.replace(/^\-/,"")],r});void 0!=this.filteredCreatures&&this.filteredCreatures.sort(function(e,i){var s=r(e,i,t);if(0==s)for(var a=0,o=n;a=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},u=function(){function e(e,t){this.doc=e,this.eventManager=t,this.hotkeys=new Map,this.defaults={element:this.doc}}return e.prototype.add=function(e){var t=this,r=o({},this.defaults,e),n="keydown."+r.keys;return r.description&&this.hotkeys.set(r.keys,r.description),new s.Observable(function(e){var i=function(t){t.preventDefault(),e.next(t)},s=t.eventManager.addEventListener(r.element,n,i);return function(){s(),t.hotkeys.delete(r.keys)}})},e}();u=c([r.i(n.Injectable)(),d(0,r.i(n.Inject)(a.DOCUMENT)),l("design:paramtypes",[Object,"function"==typeof(p=void 0!==i.EventManager&&i.EventManager)&&p||Object])],u);var p},rHbN:function(e,t){e.exports='\r\n \r\n \r\n'},rZY4:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"tr th.orderBy{cursor:pointer}a.w3-button.disabled{color:#a9a9a9}a.w3-button.disabled:hover{color:#a9a9a9!important;background-color:transparent!important;opacity:1!important;cursor:default}",""]),e.exports=e.exports.toString()},uslO:function(e,t,r){function n(e){return r(i(e))}function i(e){var t=s[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}var s={"./af":"3CJN","./af.js":"3CJN","./ar":"3MVc","./ar-dz":"tkWw","./ar-dz.js":"tkWw","./ar-kw":"j8cJ","./ar-kw.js":"j8cJ","./ar-ly":"wPpW","./ar-ly.js":"wPpW","./ar-ma":"dURR","./ar-ma.js":"dURR","./ar-sa":"7OnE","./ar-sa.js":"7OnE","./ar-tn":"BEem","./ar-tn.js":"BEem","./ar.js":"3MVc","./az":"eHwN","./az.js":"eHwN","./be":"3hfc","./be.js":"3hfc","./bg":"lOED","./bg.js":"lOED","./bm":"hng5","./bm.js":"hng5","./bn":"aM0x","./bn.js":"aM0x","./bo":"w2Hs","./bo.js":"w2Hs","./br":"OSsP","./br.js":"OSsP","./bs":"aqvp","./bs.js":"aqvp","./ca":"wIgY","./ca.js":"wIgY","./cs":"ssxj","./cs.js":"ssxj","./cv":"N3vo","./cv.js":"N3vo","./cy":"ZFGz","./cy.js":"ZFGz","./da":"YBA/","./da.js":"YBA/","./de":"DOkx","./de-at":"8v14","./de-at.js":"8v14","./de-ch":"Frex","./de-ch.js":"Frex","./de.js":"DOkx","./dv":"rIuo","./dv.js":"rIuo","./el":"CFqe","./el.js":"CFqe","./en-SG":"oYA3","./en-SG.js":"oYA3","./en-au":"Sjoy","./en-au.js":"Sjoy","./en-ca":"Tqun","./en-ca.js":"Tqun","./en-gb":"hPuz","./en-gb.js":"hPuz","./en-ie":"ALEw","./en-ie.js":"ALEw","./en-il":"QZk1","./en-il.js":"QZk1","./en-nz":"dyB6","./en-nz.js":"dyB6","./eo":"Nd3h","./eo.js":"Nd3h","./es":"LT9G","./es-do":"7MHZ","./es-do.js":"7MHZ","./es-us":"INcR","./es-us.js":"INcR","./es.js":"LT9G","./et":"XlWM","./et.js":"XlWM","./eu":"sqLM","./eu.js":"sqLM","./fa":"2pmY","./fa.js":"2pmY","./fi":"nS2h","./fi.js":"nS2h","./fo":"OVPi","./fo.js":"OVPi","./fr":"tzHd","./fr-ca":"bXQP","./fr-ca.js":"bXQP","./fr-ch":"VK9h","./fr-ch.js":"VK9h","./fr.js":"tzHd","./fy":"g7KF","./fy.js":"g7KF","./ga":"U5Iz","./ga.js":"U5Iz","./gd":"nLOz","./gd.js":"nLOz","./gl":"FuaP","./gl.js":"FuaP","./gom-latn":"+27R","./gom-latn.js":"+27R","./gu":"rtsW","./gu.js":"rtsW","./he":"Nzt2","./he.js":"Nzt2","./hi":"ETHv","./hi.js":"ETHv","./hr":"V4qH","./hr.js":"V4qH","./hu":"xne+","./hu.js":"xne+","./hy-am":"GrS7","./hy-am.js":"GrS7","./id":"yRTJ","./id.js":"yRTJ","./is":"upln","./is.js":"upln","./it":"FKXc","./it-ch":"/E8D","./it-ch.js":"/E8D","./it.js":"FKXc","./ja":"ORgI","./ja.js":"ORgI","./jv":"JwiF","./jv.js":"JwiF","./ka":"RnJI","./ka.js":"RnJI","./kk":"j+vx","./kk.js":"j+vx","./km":"5j66","./km.js":"5j66","./kn":"gEQe","./kn.js":"gEQe","./ko":"eBB/","./ko.js":"eBB/","./ku":"kI9l","./ku.js":"kI9l","./ky":"6cf8","./ky.js":"6cf8","./lb":"z3hR","./lb.js":"z3hR","./lo":"nE8X","./lo.js":"nE8X","./lt":"/6P1","./lt.js":"/6P1","./lv":"jxEH","./lv.js":"jxEH","./me":"svD2","./me.js":"svD2","./mi":"gEU3","./mi.js":"gEU3","./mk":"Ab7C","./mk.js":"Ab7C","./ml":"oo1B","./ml.js":"oo1B","./mn":"CqHt","./mn.js":"CqHt","./mr":"5vPg","./mr.js":"5vPg","./ms":"ooba","./ms-my":"G++c","./ms-my.js":"G++c","./ms.js":"ooba","./mt":"oCzW","./mt.js":"oCzW","./my":"F+2e","./my.js":"F+2e","./nb":"FlzV","./nb.js":"FlzV","./ne":"/mhn","./ne.js":"/mhn","./nl":"3K28","./nl-be":"Bp2f","./nl-be.js":"Bp2f","./nl.js":"3K28","./nn":"C7av","./nn.js":"C7av","./pa-in":"pfs9","./pa-in.js":"pfs9","./pl":"7LV+","./pl.js":"7LV+","./pt":"ZoSI","./pt-br":"AoDM","./pt-br.js":"AoDM","./pt.js":"ZoSI","./ro":"wT5f","./ro.js":"wT5f","./ru":"ulq9","./ru.js":"ulq9","./sd":"fW1y","./sd.js":"fW1y","./se":"5Omq","./se.js":"5Omq","./si":"Lgqo","./si.js":"Lgqo","./sk":"OUMt","./sk.js":"OUMt","./sl":"2s1U","./sl.js":"2s1U","./sq":"V0td","./sq.js":"V0td","./sr":"f4W3","./sr-cyrl":"c1x4","./sr-cyrl.js":"c1x4","./sr.js":"f4W3","./ss":"7Q8x","./ss.js":"7Q8x","./sv":"Fpqq","./sv.js":"Fpqq","./sw":"DSXN","./sw.js":"DSXN","./ta":"+7/x","./ta.js":"+7/x","./te":"Nlnz","./te.js":"Nlnz","./tet":"gUgh","./tet.js":"gUgh","./tg":"5SNd","./tg.js":"5SNd","./th":"XzD+","./th.js":"XzD+","./tl-ph":"3LKG","./tl-ph.js":"3LKG","./tlh":"m7yE","./tlh.js":"m7yE","./tr":"k+5o","./tr.js":"k+5o","./tzl":"iNtv","./tzl.js":"iNtv","./tzm":"FRPF","./tzm-latn":"krPU","./tzm-latn.js":"krPU","./tzm.js":"FRPF","./ug-cn":"To0v","./ug-cn.js":"To0v","./uk":"ntHu","./uk.js":"ntHu","./ur":"uSe8","./ur.js":"uSe8","./uz":"XU1s","./uz-latn":"/bsm","./uz-latn.js":"/bsm","./uz.js":"XU1s","./vi":"0X8Q","./vi.js":"0X8Q","./x-pseudo":"e/KL","./x-pseudo.js":"e/KL","./yo":"YXlc","./yo.js":"YXlc","./zh-cn":"Vz2w","./zh-cn.js":"Vz2w","./zh-hk":"ZUyn","./zh-hk.js":"ZUyn","./zh-tw":"BbgG","./zh-tw.js":"BbgG"};n.keys=function(){return Object.keys(s)},n.resolve=i,e.exports=n,n.id="uslO"},vMp4:function(e,t,r){"use strict";var n=r("3j3K"),i=r("3MNG"),s=(r.n(i),r("2Je8")),a=r("+rAa");r.d(t,"a",function(){return d});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},d=function(){function e(e,t){this.doc=e,this.notificationsService=t,this._show=!1,this._hoverHide=!1,this._isInitialized=!1,this.customTheme=[],this.customThemeGroups=[{key:"dark",name:"Dark Theme",theme:[]},{key:"light",name:"Light Theme",theme:[]}],this.currentCustomThemeGroup=this.customThemeGroups[0]}return e.prototype.toHexColor=function(e){var t=this.doc.createElement("div");t.style.display="none",t.style.color=e;var r=window.getComputedStyle(this.doc.body.appendChild(t)).color.match(/\d+/g).map(function(e){return parseInt(e,10)});return this.doc.body.removeChild(t),r.length<3?(console.log("Could not convert color '"+e+"' to hex"),e):"#"+((1<<24)+(r[0]<<16)+(r[1]<<8)+r[2]).toString(16).substr(1)},e.prototype.show=function(){this._isInitialized||this.init(),this._show=!0},e.prototype.init=function(){this._isInitialized=!0;for(var e=[],t=0,r=this.customThemeGroups;t\r\n
\r\n

Loading...

\r\n
\r\n\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given server key.

\r\n
\r\n
\r\n
\r\n

Players

\r\n \r\n \r\n \r\n \r\n Character Name\r\n \r\n \r\n {{player.CharacterName}}{{player.CharacterName}}\r\n \r\n \r\n \r\n \r\n Tribe Name\r\n \r\n \r\n {{player.TribeName}}\r\n \r\n \r\n \r\n \r\n Last Active\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n

Tribes

\r\n \r\n \r\n \r\n \r\n Tribe Name\r\n \r\n \r\n {{tribe.Name}}\r\n \r\n \r\n \r\n \r\n Members\r\n \r\n \r\n {{getTribeMember(member)?.CharacterName || member}}{{getTribeMember(member)?.CharacterName || member}}, \r\n \r\n \r\n \r\n \r\n Last Active\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n

Wild Statistics {{(wild.Statistics.Species?.length || 0) | number}}

\r\n \r\n \r\n \r\n \r\n Species\r\n \r\n \r\n {{species.Name}}\r\n \r\n \r\n \r\n \r\n Class Name\r\n \r\n \r\n {{species.ClassName}}\r\n \r\n \r\n \r\n \r\n Aliases\r\n \r\n \r\n {{species.Aliases.length > 0 ? species.Aliases.join(\', \') : \'\'}}\r\n \r\n \r\n \r\n \r\n Count\r\n \r\n \r\n {{species.Count | number}}\r\n \r\n \r\n \r\n \r\n Fraction\r\n \r\n \r\n {{species.Fraction | percent:\'1.0-4\'}}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n

Wild Creatures {{(filteredCreatures?.length || 0) | number}} / {{(wild?.Statistics?.CreatureCount || 0) | number}}

\r\n
\r\n
\r\n
There are no creatures...
\r\n \r\n \r\n \x3c!--
\r\n close\r\n \r\n
--\x3e\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
GenderBase LevelTameableXYZLatLngHPSTOXFOWEMESPID1ID2
No matching creatures...
{{creature.Gender}}{{creature.BaseLevel}}{{(wild.Species[selectedSpecies].IsTameable && creature.IsTameable == true ? "Yes" : "No")}}{{creature.X}}{{creature.Y}}{{creature.Z}}{{creature.Latitude | number:\'1.1-1\'}}{{creature.Longitude | number:\'1.1-1\'}}{{creature.BaseStats?.Health}}{{creature.BaseStats?.Stamina}}{{creature.BaseStats?.Oxygen}}{{creature.BaseStats?.Food}}{{creature.BaseStats?.Weight}}{{creature.BaseStats?.Melee}}{{creature.BaseStats?.MovementSpeed}}content_copy{{creature.Id1}}{{creature.Id2}}
\r\n
\r\n
\r\n
\r\n'}},[0]); \ No newline at end of file diff --git a/ArkBot/WebApp/dist/main.b400f5999df29a53e3cc.bundle.js b/ArkBot/WebApp/dist/main.b400f5999df29a53e3cc.bundle.js deleted file mode 100644 index 5cbf900..0000000 --- a/ArkBot/WebApp/dist/main.b400f5999df29a53e3cc.bundle.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([1,5],{"+Lwu":function(e,t,r){"use strict";var n=r("3j3K"),i=r("kZql");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this.zone=e,this.serverUpdated$=new n.EventEmitter}return e.prototype.connect=function(){var e=this;this.connection=$.hubConnection(this.getSignalRBaseUrl()),this.proxy=this.connection.createHubProxy("ServerUpdateHub"),this.proxy.on("serverUpdateNotification",function(t){e.zone.run(function(){e.serverUpdated$.emit(t)})}),this.connection.start().done(function(){return console.log("Now connected, connection ID="+e.connection.id)}).fail(function(){return console.log("Could not connect")})},e.prototype.getSignalRBaseUrl=function(){return i.a.signalrBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e}();o=s([r.i(n.Injectable)(),a("design:paramtypes",["function"==typeof(c=void 0!==n.NgZone&&n.NgZone)&&c||Object])],o);var c},"+qYp":function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e}();l=o([r.i(n.Component)({selector:"app-access-denied",template:r("1DTO"),styles:[r("aijx")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},"+rAa":function(e,t,r){"use strict";function n(e,t,r,n){var i=a(e,t,r);if(void 0!=i)return i;var s=Math.pow(10,n),o=void 0!=n?Math.round(e*s)/s:e,c=void 0!=n?Math.round(t*s)/s:t;return o>c?r?1:-1:ot?r?1:-1:e=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t){this.dataService=e,this.router=t}return e.prototype.canActivate=function(e,t){var r=this;return s.Observable.fromPromise(this.dataService.getServers().then(function(t){if(t){var n=e.params.playerid;return r.dataService.hasFeatureAccess("pages",e.data.name,n)?"access":"noaccess"}return"connectionerror"}).catch(function(){return"connectionerror"})).map(function(e){return"noaccess"==e?r.router.navigateByUrl("/accessdenied",{skipLocationChange:!0}):"connectionerror"==e&&r.router.navigateByUrl("/connectionerror",{skipLocationChange:!0}),"access"==e})},e}();l=o([r.i(n.Injectable)(),c("design:paramtypes",["function"==typeof(d=void 0!==a.a&&a.a)&&d||Object,"function"==typeof(u=void 0!==i.b&&i.b)&&u||Object])],l);var d,u},"/Wuq":function(e,t){e.exports='
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given server key.

\r\n
\r\n
\r\n
\r\n

Players

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam IdCharacter IdSteam NameCharacter NameTribe NameTribe IdStructuresCreaturesLast Active
{{player.FakeSteamId || player.SteamId}}{{player.Id}}{{player.SteamName}}{{player.CharacterName}}{{player.CharacterName}}{{player.TribeName}}{{player.TribeId}}{{player.StructureCount}}{{player.CreatureCount}}{{dataService.toRelativeDate(player.LastActiveTime)}}
\r\n
\r\n
\r\n
\r\n

Tribes

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
IdNameMembersStructuresCreaturesLast Active
{{tribe.Id}}{{tribe.Name}}{{getTribeMember(member)?.CharacterName || member}}{{getTribeMember(member)?.CharacterName || member}}, {{tribe.StructureCount}}{{tribe.CreatureCount}}{{dataService.toRelativeDate(tribe.LastActiveTime)}}
\r\n
\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n\r\n
\r\n
\r\n

Egg Summary

\r\n
Save World
\r\n
\r\n\r\n
\r\n
\r\n

Summary

\r\n
\r\n
\r\n

Total Eggs: {{totalEggCount}}

\r\n

Fertilized Eggs: {{fertilizedEggsCount}}

\r\n

Spoiled Eggs: {{spoiledEggsCount}}

\r\n
\r\n
\r\n

There are no fertilized eggs on the map

\r\n
\r\n
\r\n\r\n
\r\n

Fertilized Eggs

\r\n
Destroy All Eggs
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CreatureEgg LevelSpoil Time
{{egg.Dino}}{{egg.EggLevel}}{{egg.SpoilTime}}
\r\n
\r\n\r\n
\r\n

Spoiled Eggs

\r\n
Destroy Spoiled Eggs
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CreatureEgg LevelDropped By
{{egg.Dino}}{{egg.EggLevel}}{{egg.DroppedBy}}{{egg.DroppedBy}}
\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{modalInfo.Header}}

\r\n
\r\n
\r\n
\r\n {{modalInfo.Message}}\r\n
\r\n
\r\n
\r\n
\r\n
'},0:function(e,t,r){e.exports=r("x35b")},"08Wm":function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.dataService.hasFeatureAccess("admin-server","structures")?this.menu.activate("structures"):this.dataService.hasFeatureAccess("admin-server","players")?this.menu.activate("players"):this.dataService.hasFeatureAccess("admin-server","tribes")?this.menu.activate("tribes"):this.dataService.hasFeatureAccess("admin-server","eggs")&&this.menu.activate("eggs")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-admin-server-menu",host:{"[class]":"menu.className"},template:r("bl1B"),styles:[r("9kk6")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},"0Hpj":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Fzro"),s=r("eErF"),a=(r.n(s),r("lHWG"));r.d(t,"a",function(){return d});var o=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.getServers=function(){return this.http.get("assets/demo/servers.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getServer=function(e){return this.http.get("assets/demo/server.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getWildCreatures=function(e){return this.http.get("assets/demo/wildcreatures.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getStructures=function(e){return this.http.get("assets/demo/structures.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getPlayer=function(e){return this.http.get("assets/demo/player.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getAdminServer=function(e){return this.http.get("assets/demo/adminserver.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.adminDestroyAllStructuresForTeamId=function(e,t){return Promise.resolve(null)},t.prototype.adminDestroyStructuresForTeamIdAtPosition=function(e,t,r,n,i,s){return Promise.resolve(null)},t.prototype.adminDestroyDinosForTeamId=function(e,t){return Promise.resolve(null)},t.prototype.adminSaveWorld=function(e){return Promise.resolve(null)},t}(a.a);d=c([r.i(n.Injectable)(),l("design:paramtypes",["function"==typeof(u=void 0!==i.b&&i.b)&&u||Object])],d);var u},"0jRk":function(e,t,r){"use strict";var n=r("3j3K"),i=r("jWPz"),s=r("joX7"),a=r("Gvdl"),o=(r.n(a),r("XlOA")),c=(r.n(o),r("1APj")),l=(r.n(c),r("6Yye")),d=(r.n(l),r("uCY4")),u=(r.n(d),r("wUn1")),p=(r.n(u),r("/lY3"));r.n(p);r.d(t,"a",function(){return m});var h=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},f=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},m=function(){function e(e){this.ref=e,this._modeEnabledSubscriptions=[],this._rows$=a.Observable.of([]),this._orderByColumnKey=new a.BehaviorSubject(void 0),this._filter=new a.BehaviorSubject(void 0),this._sort=new a.Subject,this._fromRow=0,this._numRows=25,this._totalRows=0,this._enabledColumnsForMode={},this._viewOptions=[{value:25,text:"25"},{value:50,text:"50"},{value:100,text:"100"},{value:250,text:"250"},{value:500,text:"500"},{value:1e3,text:"1000"},{value:1e6,text:"All"}],this._prevColumnKey=void 0,this._prevFilter=void 0,this._prevSortedRows=void 0,this._prevFilteredRows=void 0,this._prevSortedRowsKey=void 0,this._prevFilteredRowsKey=void 0}return e.prototype.ngOnInit=function(){var e=this;this._rows$=a.Observable.combineLatest(this._orderByColumnKey,this._filter.debounceTime(250),function(e,t){return{key:e,filter:t}}).skip(1).startWith({key:this._orderByColumnKey.getValue(),filter:this._filter.getValue()}).switchMap(function(t){return a.Observable.of(e.filterAndSortData(t.key,t.filter))}).catch(function(t){return console.log("Error in component ... "+t),a.Observable.of(e._rows)})},Object.defineProperty(e.prototype,"modeTemplates",{set:function(e){if(e){var t=e.toArray();if(t.length){for(var r=[],n=0,i=t;n0&&(this._currentMode=this._modes[0].key)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnTemplates",{set:function(e){if(e){var t=e.toArray();if(t.length){for(var r=[],n=0,i=t;n=this._totalRows&&(t=this._totalRows-1),this._fromRow=parseInt(""+t),this.ref.markForCheck()},e.prototype.setViewOffsetRelative=function(e){this.setViewOffset(this._fromRow+e)},e.prototype.setFirstPage=function(){this.isFirstPage()||this.setViewOffset(0)},e.prototype.setPrevPage=function(){this.isFirstPage()||this.setViewOffsetRelative(-this._numRows)},e.prototype.setNextPage=function(){this.isLastPage()||this.setViewOffsetRelative(this._numRows)},e.prototype.setLastPage=function(){this.isLastPage()||this.setViewOffset(this._totalRows-this._numRows)},e.prototype.isFirstPage=function(){return this._fromRow<=0},e.prototype.isLastPage=function(){return this._fromRow>=this._totalRows-this._numRows},e.prototype.setViewLimit=function(e){this._numRows=parseInt(""+(e>0?e:1e6)),this.ref.markForCheck()},e.prototype.getLastRowOffset=function(){var e=this._fromRow+this._numRows;return e>this._totalRows?this._totalRows:e},e}();h([r.i(n.ContentChildren)(s.a),f("design:type","function"==typeof(v=void 0!==n.QueryList&&n.QueryList)&&v||Object),f("design:paramtypes",["function"==typeof(g=void 0!==n.QueryList&&n.QueryList)&&g||Object])],m.prototype,"modeTemplates",null),h([r.i(n.ContentChildren)(i.a),f("design:type","function"==typeof(y=void 0!==n.QueryList&&n.QueryList)&&y||Object),f("design:paramtypes",["function"==typeof(b=void 0!==n.QueryList&&n.QueryList)&&b||Object])],m.prototype,"columnTemplates",null),h([r.i(n.Input)(),f("design:type",Object),f("design:paramtypes",[Object])],m.prototype,"rows",null),h([r.i(n.Input)(),f("design:type",String),f("design:paramtypes",[String])],m.prototype,"trackByProp",null),h([r.i(n.Input)(),f("design:type",String),f("design:paramtypes",[String])],m.prototype,"filter",null),h([r.i(n.Input)(),f("design:type",Object)],m.prototype,"filterFunction",void 0),h([r.i(n.Input)(),f("design:type",Object)],m.prototype,"sortFunctions",void 0),h([r.i(n.Input)(),f("design:type",String)],m.prototype,"orderByColumn",void 0),m=h([r.i(n.Component)({selector:"ark-data-table",template:r("jkBB"),styles:[r("rZY4")],changeDetection:n.ChangeDetectionStrategy.OnPush,encapsulation:n.ViewEncapsulation.None}),f("design:paramtypes",["function"==typeof(w=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&w||Object])],m);var v,g,y,b,w},"0onv":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("PJh5"));r.n(s);r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.ref=e,this._time=new i.BehaviorSubject(void 0)}return Object.defineProperty(e.prototype,"time",{get:function(){return this._time.getValue()},set:function(e){this._time.next(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._timeSubscription=this._time.subscribe(function(t){e.update()}),this._counter=i.Observable.interval(1e3).map(function(e){return e}),this._counterSubscription=this._counter.subscribe(function(t){return e.update()})},e.prototype.ngOnDestroy=function(){this._timeSubscription.unsubscribe(),this._counterSubscription.unsubscribe()},e.prototype.update=function(){var e=this.toRelativeDate(this.time);e!=this._str&&(this._str=e,this.ref.markForCheck())},e.prototype.toRelativeDate=function(e){return s(new Date(e)).fromNow()},e}();a([r.i(n.Input)(),o("design:type",Object),o("design:paramtypes",[Object])],c.prototype,"time",null),c=a([r.i(n.Component)({selector:"relative-time",template:"{{_str}}",styles:[r("HOjl")],changeDetection:n.ChangeDetectionStrategy.OnPush}),o("design:paramtypes",["function"==typeof(l=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&l||Object])],c);var l},"1DTO":function(e,t){e.exports='
\n
\n

Access Denied

\n

You do not have access to view this page...

\n
\n
'},"38q8":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Qbdm");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this._sanitizer=e}return e.prototype.transform=function(e){return this._sanitizer.bypassSecurityTrustStyle(e)},e}();o=s([r.i(n.Pipe)({name:"sanitizeStyle"}),a("design:paramtypes",["function"==typeof(c=void 0!==i.DomSanitizer&&i.DomSanitizer)&&c||Object])],o);var c},5305:function(e,t,r){"use strict";var n=r("3j3K"),i=r("kZql"),s=r("vwbq");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(){this.width=1024,this.height=1024,this.zoom=s.a().scaleExtent([1,10])}return e.prototype.imageLoaded=function(e){var t=this;this.img=e,this.width=e.naturalWidth,this.height=e.naturalHeight,window.setTimeout(function(){t.resize(),t.redraw()},100)},e.prototype.resize=function(){},e.prototype.zoomed=function(){var e=s.e(this.canvasRef.nativeElement),t=this.canvasRef.nativeElement.getContext("2d");t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,this.width,this.height),t.translate(e.x,e.y),t.scale(e.k,e.k),this.redraw()},e.prototype.redraw=function(){var e=this.canvasRef.nativeElement.getContext("2d");if(e.drawImage(this.img,0,0),null!=this.points)for(var t=0,r=this.points;t/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e}();a([r.i(n.Input)(),o("design:type",String)],c.prototype,"mapName",void 0),a([r.i(n.Input)(),o("design:type",Array)],c.prototype,"points",void 0),a([r.i(n.ViewChild)("myCanvas"),o("design:type","function"==typeof(l=void 0!==n.ElementRef&&n.ElementRef)&&l||Object)],c.prototype,"canvasRef",void 0),c=a([r.i(n.Component)({selector:"arkmap",template:''}),o("design:paramtypes",[])],c);var l},"5xMp":function(e,t){e.exports='\r\n\r\n
\r\n
\r\n \r\n
Logged in as {{dataService.Servers.User.Name}} | Logout | Login | Theme: Light | Dark
\r\n
\r\n \r\n
\r\n'},"6fYc":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".serverdetails th{white-space:nowrap}.serverdetails td{width:99%}",""]),e.exports=e.exports.toString()},"78nn":function(e,t){e.exports="\r\n

Player

\r\n
\r\n
Profile
\r\n
Creatures
\r\n
Creatures (Cloud)
\r\n
Breeding
\r\n
Crops
\r\n
Electrical Generators
\r\n
Kibbles and Eggs
\r\n
Tribe Log
\r\n
\r\n
"},"7T2B":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){this.callback=new n.EventEmitter,this.confirming=!1}return e.prototype.ngOnInit=function(){},e.prototype.onClick=function(e){var t=this;this.confirming?e.detail>=3&&(window.clearTimeout(this.resetTimeout),this.confirming=!1,this.callback.emit()):(this.confirming=!0,this.resetTimeout=window.setTimeout(function(){t.confirming=!1},5e3))},e}();i([r.i(n.Output)(),s("design:type","function"==typeof(o=void 0!==n.EventEmitter&&n.EventEmitter)&&o||Object)],a.prototype,"callback",void 0),i([r.i(n.Input)(),s("design:type",Number)],a.prototype,"width",void 0),i([r.i(n.ViewChild)("confirmButton"),s("design:type","function"==typeof(c=void 0!==n.ElementRef&&n.ElementRef)&&c||Object)],a.prototype,"confirmButton",void 0),a=i([r.i(n.Component)({selector:"confirm-button",template:r("QaTd"),styles:[r("8Zim")]}),s("design:paramtypes",[])],a);var o,c},"7arz":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"7fuz":function(e,t){e.exports='
\n \n
'},"7uO+":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"7xIs":function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.dataService.hasFeatureAccess("server","players")?this.menu.activate("players"):this.dataService.hasFeatureAccess("server","tribes")?this.menu.activate("tribes"):this.dataService.hasFeatureAccess("server","wildcreatures-statistics")?this.menu.activate("wildcreatures-statistics"):this.dataService.hasFeatureAccess("server","wildcreatures")&&this.menu.activate("wildcreatures")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-server-menu",host:{"[class]":"menu.className"},template:r("MjD/"),styles:[r("oLRk")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},"8Zim":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"8kYA":function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this.dataService=e,this.menuOption=void 0,this.menuVisible=!1,this.className="menucontainer"}return e.prototype.ngOnInit=function(){var e=this;this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe()},e.prototype.activate=function(e){this.dataService.SetMenuOption(e)},e.prototype.active=function(e){return this.menuOption==e},e.prototype.toggleMenu=function(){this.menuVisible=!this.menuVisible},e}();o=s([r.i(n.Component)({selector:"app-menu",template:r("m8aW"),styles:[r("ne8d")]}),a("design:paramtypes",["function"==typeof(c=void 0!==i.a&&i.a)&&c||Object])],o);var c},"8zLQ":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(e){this._elementRef=e,this.clickOutside=new n.EventEmitter}return e.prototype.onClick=function(e,t){if(t){this._elementRef.nativeElement.contains(t)||this.clickOutside.emit(e)}},e}();i([r.i(n.Output)(),s("design:type",Object)],a.prototype,"clickOutside",void 0),i([r.i(n.HostListener)("document:click",["$event","$event.target"]),s("design:type",Function),s("design:paramtypes",[Object,Object]),s("design:returntype",void 0)],a.prototype,"onClick",null),a=i([r.i(n.Directive)({selector:"[clickOutside]"}),s("design:paramtypes",["function"==typeof(o=void 0!==n.ElementRef&&n.ElementRef)&&o||Object])],a);var o},"9kk6":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},ATz5:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("lHWG")),a=r("+Lwu"),o=r("kZql"),c=r("PJh5");r.n(c);r.d(t,"a",function(){return u});var l=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},d=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(){function e(e,t){var r=this;this.httpService=e,this.messageService=t,this._servers=new i.BehaviorSubject(void 0),this.menuOption=new i.BehaviorSubject(void 0),this.theme=new i.BehaviorSubject(void 0),this.ServersUpdated$=new n.EventEmitter,t.serverUpdated$.subscribe(function(e){return r.updateServer(e)})}return Object.defineProperty(e.prototype,"Theme",{get:function(){return this.theme.asObservable()},enumerable:!0,configurable:!0}),e.prototype.SetTheme=function(e){this.theme.next(e)},Object.defineProperty(e.prototype,"MenuOption",{get:function(){return this.menuOption.asObservable()},enumerable:!0,configurable:!0}),e.prototype.SetMenuOption=function(e){this.menuOption.next(e)},e.prototype.getServers=function(){var e=this;return this.httpService.getServers().then(function(t){e.Servers=t;var r=t?t.User:void 0;return e.UserSteamId=r&&r.SteamId?r.SteamId:void 0,e._servers.next(t),e.ServersUpdated$.emit(t),!0}).catch(function(t){return e.Servers=null,e.UserSteamId=void 0,e._servers.next(null),e.ServersUpdated$.emit(null),!1})},e.prototype.updateServer=function(e){this.getServers()},e.prototype.hasFeatureAccess=function(e,t,r){var n=this.Servers?this.Servers.AccessControl:void 0;if(!n)return!1;var i=n[e];if(!i)return!1;var s=i[t];if(!s)return!1;var a=this.Servers?this.Servers.User:void 0,o=a&&a.Roles?a.Roles.slice(0):[];a&&a.SteamId&&a.SteamId==r&&o.push("self");for(var c=function(e){if(s.find(function(t){return e.toLowerCase()===t.toLowerCase()}))return{value:!0}},l=0,d=o;l=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e,t){this.dataService=e,this.router=t}return e.prototype.resolve=function(e,t){var r=this;return this.dataService.getServers().then(function(e){return r.dataService}).catch(function(e){return r.dataService})},e}();c=a([r.i(n.Injectable)(),o("design:paramtypes",["function"==typeof(l=void 0!==s.a&&s.a)&&l||Object,"function"==typeof(d=void 0!==i.b&&i.b)&&d||Object])],c);var l,d},CzL3:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("kZql")),a=r("PJh5");r.n(a);r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(){this._ready=!1,this._wasExpired=!1,this._notificationSent=!1,this._time=new i.BehaviorSubject(void 0),this._notification=new i.BehaviorSubject(void 0),this._loadedAt=a()}return Object.defineProperty(e.prototype,"time",{get:function(){return this._time.getValue()},set:function(e){this._time.next(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"notification",{get:function(){return this._notification.getValue()},set:function(e){this._notification.next(e)},enumerable:!0,configurable:!0}),e.prototype.updateDiff=function(e){e&&(s.a.demo?this._wasExpired=a(new Date(e)).diff(a(new Date(s.a.demoDate)))-a().diff(this._loadedAt)<=0:this._wasExpired=a(new Date(e)).diff(a())<=0,this._notificationSent=!1,this._str=void 0,this._ready=this._wasExpired,this._wasExpired||1!=this.state._completed||(this.state._completed=!1)),s.a.demo?this._diff=e||this.time?a.duration(a(new Date(e||this.time)).diff(a(new Date(s.a.demoDate)))-a().diff(this._loadedAt)):void 0:this._diff=e||this.time?a.duration(a(new Date(e||this.time)).diff(a())):void 0},e.prototype.update=function(){if(!this._diff)return"";if(this._diff.asMilliseconds()<=0){if(!this._notificationSent){if(this.notification&&this.state.imprintNotifications&&!this._wasExpired){new Audio("assets/Alarm01.mp3").play()}this._ready=!0}return this._notificationSent=!0,void(this._str=void 0)}var e=this._diff.seconds(),t=this._diff.minutes(),r=this._diff.hours(),n=Math.floor(this._diff.asDays()),i=[];n>0&&i.push(n+"d"),(n>0||r>0)&&i.push(r+"h"),(n>0||r>0||t>0)&&i.push(t+"m"),i.push(e+"s"),this._str=i.join(" "),this._ready=!1,this.state._completed=!1},e.prototype.ngOnInit=function(){var e=this;this._timeSubscription=this._time.subscribe(function(t){e.updateDiff(t),e.update()}),this._notificationSubscription=this._notification.subscribe(function(e){}),this._counter=i.Observable.interval(1e3).map(function(t){return e.updateDiff(void 0),t}),this._counterSubscription=this._counter.subscribe(function(t){return e.update()})},e.prototype.ngOnDestroy=function(){this._timeSubscription.unsubscribe(),this._notificationSubscription.unsubscribe(),this._counterSubscription.unsubscribe()},e}();o([r.i(n.Input)(),c("design:type",Object)],l.prototype,"state",void 0),o([r.i(n.Input)(),c("design:type",Object),c("design:paramtypes",[Object])],l.prototype,"time",null),o([r.i(n.Input)(),c("design:type",Object),c("design:paramtypes",[Object])],l.prototype,"notification",null),l=o([r.i(n.Component)({selector:"timer",template:'{{_str}}',styles:[r("cPj0")]}),c("design:paramtypes",[])],l)},EEDX:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},EM12:function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n={configJs:'var config = {"webapi":{"port":60001},"webapp":{"defaultTheme":"Dark"}};'}},Fnlp:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0,this.demoMode=!1}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.demoMode="true"==localStorage.getItem("demoMode")},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.toggleDemoMode=function(){var e="true"!=localStorage.getItem("demoMode");this.demoMode=e,localStorage.setItem("demoMode",e+"")},e}();l=o([r.i(n.Component)({selector:"app-developer",template:r("7fuz"),styles:[r("EEDX")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},FxpQ:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e}();l=o([r.i(n.Component)({selector:"app-connection-error",template:r("lRu1"),styles:[r("mf93")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},HOjl:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},Iksp:function(e,t,r){"use strict";var n=r("Qbdm"),i=r("KN8t"),s=r("3j3K"),a=r("NVOs"),o=r("5oXY"),c=r("Fzro"),l=r("3MNG"),d=(r.n(l),r("hHgl")),u=r("YWx4"),p=r("KZxv"),h=r("RiXa"),f=r("qn86"),m=r("JLFQ"),v=r("e/mT"),g=r("5305"),y=r("lHWG"),b=r("0Hpj"),w=r("+Lwu"),S=r("ATz5"),C=r("AcJ7"),O=r("+w0e"),j=r("38q8"),_=r("ilmp"),k=r("8zLQ"),I=r("JKTH"),x=r("8kYA"),A=r("7xIs"),F=r("08Wm"),M=r("lCrv"),R=r("CzL3"),T=r("0onv"),L=r("7T2B"),N=r("+qYp"),P=r("FxpQ"),D=r("Fnlp"),B=r("J8nT"),E=r("kZql");r.d(t,"a",function(){return z});var K=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},U=[{path:"player/:playerid",canActivate:[O.a],data:{name:"player"},children:[{path:"",component:p.a},{path:"",component:h.a,outlet:"menu"}]},{path:"server/:id",canActivate:[O.a],data:{name:"server"},children:[{path:"",component:f.a},{path:"",component:A.a,outlet:"menu"}]},{path:"admin/:id",canActivate:[O.a],data:{name:"admin-server"},children:[{path:"",component:v.a},{path:"",component:F.a,outlet:"menu"}]},{path:"servers",canActivate:[O.a],data:{name:"home"},children:[{path:"",component:m.a},{path:"",component:I.a,outlet:"menu"}]},{path:"developer",component:D.a},{path:"accessdenied",component:N.a},{path:"connectionerror",component:P.a},{path:"",redirectTo:"/servers",pathMatch:"full"}],z=function(){function e(){}return e}();z=K([r.i(s.NgModule)({declarations:[u.a,m.a,g.a,j.a,_.a,k.a,p.a,h.a,f.a,v.a,I.a,x.a,A.a,F.a,M.a,R.a,T.a,L.a,N.a,P.a,D.a],imports:[o.a.forRoot(U),d.a.forRoot(),n.BrowserModule,a.a,c.a,i.a,l.SimpleNotificationsModule.forRoot(),B.a],providers:[[{provide:y.a,useClass:E.a.demo?b.a:y.a}],w.a,S.a,C.a,O.a,{provide:s.LOCALE_ID,useValue:"en-US"}],bootstrap:[u.a]})],z)},J8nT:function(e,t,r){"use strict";var n=r("3j3K"),i=r("2Je8"),s=r("NVOs"),a=r("0jRk"),o=r("jWPz"),c=r("joX7");r.d(t,"a",function(){return d});var l=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},d=function(){function e(){}return e}();d=l([r.i(n.NgModule)({imports:[i.CommonModule,s.a],providers:[],declarations:[a.a,o.a,o.b,o.c,c.a],exports:[a.a,o.a,o.b,o.c,c.a]})],d)},JKTH:function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.menu.activate("overview")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-server-list-menu",host:{"[class]":"menu.className"},template:r("rHbN"),styles:[r("P+hD")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},JLFQ:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0,this.serverCount=0,this.onlinePlayerCount=0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.serversUpdatedSubscription=this.dataService.ServersUpdated$.subscribe(function(t){e.updateData(t)}),this.serverUpdateInterval=window.setInterval(function(){e.dataService.updateServer(null)},6e4),this.updateData(this.dataService.Servers)},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe(),this.serversUpdatedSubscription.unsubscribe(),window.clearInterval(this.serverUpdateInterval)},e.prototype.updateData=function(e){var t=0,r=0;if(e&&e.Servers){t=e.Servers.length;for(var n=0,i=e.Servers;n=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,n,i,s,a,o){this.route=e,this.router=t,this.httpService=n,this.dataService=i,this.messageService=s,this.notificationsService=a,this.ref=o,this.menuOption=void 0,this.theme=void 0,this.imprintNotifications=!1,this.keysGetter=Object.keys,this.loaded=!1,this.showMap=!1,this.creaturesMode="status",this.creatureStates={},this.creaturesSortField="food",this.creaturesAltSortFields="name",this.creaturesSortFunctions={food:function(e,t,n){return r.i(l.c)(e.FoodStatus,t.FoodStatus,n,2)},name:function(e,t,n){return r.i(l.a)(e.Name,t.Name,n)},species:function(e,t,n){return r.i(l.a)(e.Species,t.Species,n)},gender:function(e,t,n){return r.i(l.a)(e.Gender,t.Gender,n)},base_level:function(e,t,n){return r.i(l.b)(e.BaseLevel,t.BaseLevel,!n)},level:function(e,t,n){return r.i(l.b)(e.Level==e.BaseLevel?null:e.Level,t.Level==t.BaseLevel?null:t.Level,!n)},imprint:function(e,t,n){return r.i(l.c)(e.Imprint,t.Imprint,!n,2)},latitude:function(e,t,n){return r.i(l.c)(e.Latitude,t.Latitude,n,1)},longitude:function(e,t,n){return r.i(l.c)(e.Longitude,t.Longitude,n,1)},owner:function(e,t,n){return r.i(l.a)(e.OwnerType,t.OwnerType,n)},stat_health:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.Health:null,void 0!=t.BaseStats?t.BaseStats.Health:null,!n)},stat_stamina:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.Stamina:null,void 0!=t.BaseStats?t.BaseStats.Stamina:null,!n)},stat_oxygen:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.Oxygen:null,void 0!=t.BaseStats?t.BaseStats.Oxygen:null,!n)},stat_food:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.Food:null,void 0!=t.BaseStats?t.BaseStats.Food:null,!n)},stat_weight:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.Weight:null,void 0!=t.BaseStats?t.BaseStats.Weight:null,!n)},stat_melee:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.Melee:null,void 0!=t.BaseStats?t.BaseStats.Melee:null,!n)},stat_speed:function(e,t,n){return r.i(l.b)(void 0!=e.BaseStats?e.BaseStats.MovementSpeed:null,void 0!=t.BaseStats?t.BaseStats.MovementSpeed:null,!n)},id1:function(e,t,n){return r.i(l.b)(e.Id1,t.Id1,n)},id2:function(e,t,n){return r.i(l.b)(e.Id1,t.Id1,n)}},this.tribeLogFilterFunction=function(e,t){return null==t||null!=e.Message&&e.Message.toLowerCase().indexOf(t)>=0}}return e.prototype.getPlayer=function(){var e=this;this.httpService.getPlayer(this.steamId).then(function(t){var r=Object.keys(t.Servers);e.serverKey&&void 0!=r.find(function(t){return t==e.serverKey})||(e.serverKey=r.length>0?r[0]:null);var n=Object.keys(t.Clusters);e.clusterKey&&void 0!=n.find(function(t){return t==e.clusterKey})||(e.clusterKey=n.length>0?n[0]:null),e.player=t,e.filterAndSort(),e.sortCluster(),e.filterCluster(),e.loaded=!0,e.ref.detectChanges()}).catch(function(t){e.player=null,e.filteredCreatures=null,e.imprintCreatures=null,e.filteredClusterCreatures=null,e.loaded=!0})},e.prototype.ngOnInit=function(){var e=this;this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.theme$=this.dataService.Theme,this.themeSubscription=this.theme$.subscribe(function(t){e.theme=t}),this.steamId=this.route.snapshot.params.playerid,this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.updateServer(t)}),this.getPlayer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.themeSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.haveMatingCooldown=function(e){return null!=e.NextMating&&new Date(e.NextMating)>new Date},e.prototype.active=function(e){return this.serverKey==e},e.prototype.activate=function(e){this.serverKey=e,this.filterAndSort()},e.prototype.serverWidth=function(){return 100/Object.keys(this.player.Servers).length},e.prototype.activeCluster=function(e){return this.clusterKey==e},e.prototype.activateCluster=function(e){this.clusterKey=e,this.sortCluster(),this.filterCluster()},e.prototype.clusterWidth=function(){return 100/Object.keys(this.player.Clusters).length},e.prototype.sort=function(){var e=this,t="-"!=this.creaturesSortField[0],r=this.creaturesSortFunctions[this.creaturesSortField.replace(/^\-/,"")],n=this.creaturesAltSortFields.split(",").map(function(t){var r={};return r.asc="-"!=t[0],r.sortFunc=e.creaturesSortFunctions[t.replace(/^\-/,"")],r});this.filteredCreatures.sort(function(e,i){var s=r(e,i,t);if(0==s)for(var a=0,o=n;a=0||null!=t.Name&&t.Name.toLowerCase().indexOf(e)>=0})}var t=this.player.Servers[this.serverKey].Creatures.filter(function(e){return null!=e.BabyAge});t.sort(function(e,t){return new Date(e.BabyNextCuddle)new Date(t.BabyNextCuddle)?1:0}),this.imprintCreatures=t;for(var r=[],n=0,i=this.filteredCreatures;nt.Level?-1:e.Level=0||null!=t.Name&&t.Name.toLowerCase().indexOf(e)>=0})}},e.prototype.run=function(){if(null==this.steamId||""==this.steamId)return this.player=null,this.filteredCreatures=null,void(this.imprintCreatures=null);this.getPlayer()},e.prototype.openMap=function(e){this.showMap=!0,e.stopPropagation()},e.prototype.closeMap=function(e){this.showMap=!1},e.prototype.updateServer=function(e){this.getPlayer(),this.showServerUpdateNotification(e)},e.prototype.haveCluster=function(){return null!=this.player&&Object.keys(this.player.Clusters).length>0},e.prototype.sumKibbleAndEggs=function(){return void 0!=this.player.Servers[this.serverKey].KibblesAndEggs?this.player.Servers[this.serverKey].KibblesAndEggs.reduce(function(e,t){return e+t.KibbleCount+t.EggCount},0):0},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.getStateForCreature=function(e){if(e){var t=this.creatureStates[e.Id1+"_"+e.Id2];return t||(t={imprintNotifications:!0},this.creatureStates[e.Id1+"_"+e.Id2]=t),t}},e.prototype.toggleImprintNotificationForCreature=function(e){var t=this.getStateForCreature(e);t.imprintNotifications=!t.imprintNotifications},e.prototype.activeCreaturesMode=function(e){return e==this.creaturesMode},e.prototype.activateCreaturesMode=function(e){this.creaturesMode=e},e.prototype.setCreaturesSort=function(e){var t=this.creaturesSortField==e;this.creaturesSortField=t?"-"+e:e,this.creaturesAltSortFields="latitude"==e?t?"-longitude,name":"longitude,name":"longitude"==e?t?"-latitude,name":"latitude,name":"name",this.sort()},e.prototype.copyCreature=function(e){},e.prototype.getCurrentServer=function(){var e=this;if(this.dataService&&this.dataService.Servers&&this.dataService.Servers.Servers){return this.dataService.Servers.Servers.find(function(t){return t.Key==e.serverKey})}},e.prototype.numCreatureTabs=function(){var e=1;return this.dataService.hasFeatureAccess("player","creatures-basestats",this.steamId)&&(e+=1),this.dataService.hasFeatureAccess("player","creatures-ids",this.steamId)&&(e+=1),e},e.prototype.isTheme=function(e){return this.theme==e},e}();p=d([r.i(n.Component)({selector:"app-player",template:r("jFLX"),styles:[r("S6EL")]}),u("design:paramtypes",["function"==typeof(h=void 0!==i.g&&i.g)&&h||Object,"function"==typeof(f=void 0!==i.b&&i.b)&&f||Object,"function"==typeof(m=void 0!==c.a&&c.a)&&m||Object,"function"==typeof(v=void 0!==a.a&&a.a)&&v||Object,"function"==typeof(g=void 0!==o.a&&o.a)&&g||Object,"function"==typeof(y=void 0!==s.NotificationsService&&s.NotificationsService)&&y||Object,"function"==typeof(b=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&b||Object])],p);var h,f,m,v,g,y,b},MOVZ:function(e,t){function r(e){throw new Error("Cannot find module '"+e+"'.")}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id="MOVZ"},"MjD/":function(e,t){e.exports="\r\n

Server

\r\n
\r\n
Players
\r\n
Tribes
\r\n
Wild Statistics
\r\n
Wild Creatures
\r\n
\r\n
"},"P+hD":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},QMiF:function(e,t){e.exports='\x3c!--
\r\n \r\n

{{currentOwner.Name}}

\r\n
Coords: {{currentArea.Latitude | number:\'1.0-1\'}}, {{currentArea.Longitude | number:\'1.0-1\'}}
\r\n
Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n
{{currentArea.StructureCount | number}} structures
\r\n \r\n
\r\n
--\x3e\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{currentOwner.Name}}

\r\n
\r\n
\r\n
\r\n Coords: {{currentArea.Latitude | number:\'1.0-1\'}}, {{currentArea.Longitude | number:\'1.0-1\'}}
\r\n Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n {{currentArea.StructureCount | number}} structures\r\n
\r\n
\r\n
Destroy this area
\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{currentOwner.Name}}

\r\n
\r\n
\r\n
\r\n Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n {{currentOwner.AreaCount | number}} areas
\r\n {{currentOwner.StructureCount | number}} structures
\r\n {{currentOwner.CreatureCount | number}} creatures\r\n
\r\n
\r\n
Destroy all structures
\r\n
Destroy all creatures
\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{modalInfo.Header}}

\r\n
\r\n
\r\n
\r\n {{modalInfo.Message}}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n

Structures

\r\n
Save World
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n
\r\n

Player/Tribe Locations

\r\n
\r\n
\r\n \x3c!--\r\n --\x3e\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameTypeA#S#C#Last Active
{{owner.Name}}{{owner.Type}}{{owner.AreaCount}}{{owner.StructureCount}}{{owner.CreatureCount}}{{dataService.toRelativeDate(owner.LastActiveTime)}}
\r\n
\r\n
'},QaTd:function(e,t){e.exports=''},RiXa:function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("5oXY"),a=r("ATz5");r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t){this.route=e,this.dataService=t}return e.prototype.ngOnInit=function(){this.steamId=this.route.snapshot.params.playerid,this.dataService.hasFeatureAccess("player","profile",this.steamId)?this.menu.activate("profile"):this.dataService.hasFeatureAccess("player","creatures",this.steamId)?this.menu.activate("creatures"):this.dataService.hasFeatureAccess("player","creatures-cloud",this.steamId)?this.menu.activate("creatures_cloud"):this.dataService.hasFeatureAccess("player","breeding",this.steamId)?this.menu.activate("breeding"):this.dataService.hasFeatureAccess("player","crops",this.steamId)?this.menu.activate("crop_plots"):this.dataService.hasFeatureAccess("player","generators",this.steamId)?this.menu.activate("electrical_generators"):this.dataService.hasFeatureAccess("player","kibbles-eggs",this.steamId)?this.menu.activate("kibbles_and_eggs"):this.dataService.hasFeatureAccess("player","tribelog",this.steamId)&&this.menu.activate("tribelog")},e}();o([r.i(n.ViewChild)("menu"),c("design:type","function"==typeof(d=void 0!==i.a&&i.a)&&d||Object)],l.prototype,"menu",void 0),l=o([r.i(n.Component)({selector:"app-player-menu",host:{"[class]":"menu.className"},template:r("78nn"),styles:[r("7uO+")]}),c("design:paramtypes",["function"==typeof(u=void 0!==s.g&&s.g)&&u||Object,"function"==typeof(p=void 0!==a.a&&a.a)&&p||Object])],l);var d,u,p},S6EL:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},SH1B:function(e,t){e.exports='
\r\n

My Profile

\r\n
\r\n
\r\n

Hello, {{dataService.Servers.User.Name}}

\r\n
\r\n
\r\n

\r\n Find your tames, view base stats and keep track of their food status. Get notified of pending imprints, the amount of fertilizer and gasoline remaining in your crops and generators. This and much more is available in your profile.\r\n

\r\n

View my profile ❯

\r\n
\r\n
\r\n
\r\n
\r\n

Servers

\r\n
\r\n
\r\n

{{server.MapName}} - {{server.Key}}{{server.MapName}} - {{server.Key}}

\r\n
\r\n
\r\n

\r\n Last Update {{server.LastUpdate}}, Next Update {{server.NextUpdate || \'-\'}}\r\n

\r\n

View server ❯

\r\n

Admin ❯

\r\n
\r\n
\r\n
\r\n
\r\n

Online {{onlinePlayerCount}}

\r\n
There are no players online...
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam NameCharacter NameTribe NameDiscord TagServerTime Online
{{player.SteamName}}{{player.CharacterName}}{{player.TribeName}}{{player.DiscordName}}{{server.Key}}{{player.TimeOnline}}
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n

{{server.Name}}{{server.Name}}

\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Address{{server.Address}}
Version{{server.Version}}
Player Slots{{server.OnlinePlayerMax}}
Map{{server.MapName}}
In-Game Day{{server.InGameTime}}
Tamed Creatures{{server.TamedCreatureCount | number}}
Cloud Creatures{{server.CloudCreatureCount | number}}
Wild Creatures{{server.WildCreatureCount | number}}
Structures{{server.StructureCount | number}}
Players{{server.PlayerCount | number}}
Tribes{{server.TribeCount | number}}
Last Update{{server.LastUpdate}}
Next Update{{server.NextUpdate}}
Uptime{{server.ServerStarted ? dataService.toRelativeDate(server.ServerStarted) : \'-\'}}
\r\n
\r\n
\r\n\r\n \x3c!--

{{server.Name}}{{server.Name}}

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Address{{server.Address}}
Version{{server.Version}}
Player Slots{{server.OnlinePlayerMax}}
Map{{server.MapName}}
In-Game Time{{server.InGameTime}}
Tamed Creatures{{server.TamedCreatureCount | number}}
Cloud Creatures{{server.CloudCreatureCount | number}}
Wild Creatures{{server.WildCreatureCount | number}}
Structures{{server.StructureCount | number}}
Players{{server.PlayerCount | number}}
Tribes{{server.TribeCount | number}}
Last Update{{server.LastUpdate}}
Next Update{{server.NextUpdate}}
Uptime{{server.ServerStarted ? dataService.toRelativeDate(server.ServerStarted) : \'-\'}}
\r\n
--\x3e\r\n \r\n

Online {{server.OnlinePlayerCount}}

\r\n
There are no players online...
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam NameCharacter NameTribe NameDiscord TagTime Online
{{player.SteamName}}{{player.CharacterName}}{{player.TribeName}}{{player.DiscordName}}{{player.TimeOnline}}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

External Resources

\r\n
\r\n
\r\n

Wiki

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Taming Calculators

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Creature Library and Breeding Suggestions

\r\n
\r\n \r\n
\r\n
'},YWx4:function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("hHgl")),o=r("+Lwu"),c=r("ATz5"),l=r("lHWG"),d=r("kZql"),u=r("2Je8");r.d(t,"a",function(){return m});var p=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},h=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},m=function(){function e(e,t,r,n,i,s,a){this.doc=e,this.messageService=t,this.dataService=r,this.httpService=n,this.breadcrumbService=i,this.notificationsService=s,this.router=a,this.notificationOptions={position:["top","right"],timeOut:1e3,lastOnBottom:!1},this.showLogin=!1,this.currentUrl="/",this.serversUpdatedBefore=!1,this.loading=!0;var o=this.doc.getElementById("configjs"),c=null;if(null!=d.a.configJsOverride?c=d.a.configJsOverride:"/*[[config]]*/"==o.text&&(c=d.a.configJsDefault),null!=c){var l=this.doc.createElement("script");l.type="text/javascript",l.id="configjs",l.text=c,o.parentNode.replaceChild(l,o)}i.addFriendlyNameForRoute("/accessdenied","Access Denied"),i.addFriendlyNameForRoute("/connectionerror","Connection error"),i.hideRoute("/player"),i.hideRoute("/servers"),i.hideRoute("/server"),i.hideRoute("/admin"),i.addCallbackForRouteRegex("^/player/.+$",this.getNameForPlayer),d.a.demo||t.connect()}return e.prototype.ngOnInit=function(){var e=this;this.dataService.SetTheme(this.getTheme()),this.routerEventsSubscription=this.router.events.subscribe(function(t){e.navigationInterceptor(t)}),this.currentUrl=window.location.href||"/",this.serversUpdatedSubscription=this.dataService.ServersUpdated$.subscribe(function(t){e.serversUpdatedBefore||!t||t.User&&t.User.SteamId||(e.showLogin=!0),e.serversUpdatedBefore=!0})},e.prototype.ngOnDestroy=function(){this.routerEventsSubscription.unsubscribe(),this.serversUpdatedSubscription.unsubscribe()},e.prototype.navigationInterceptor=function(e){e instanceof i.d?this.loading=!0:e instanceof i.c?this.loading=!1:e instanceof i.e?this.loading=!1:e instanceof i.f&&(this.loading=!1)},e.prototype.getNameForPlayer=function(e){return"Player"},e.prototype.getBodyClasses=function(){var e=this.getTheme();return"undefined"!=typeof config&&"undefined"!==config.webapp&&!0===config.webapp.topMenu&&(e+=" topmenu"),e},e.prototype.getDefaultTheme=function(){var e="undefined"!=typeof config&&"undefined"!==config.webapp&&"string"==typeof config.webapp.defaultTheme?config.webapp.defaultTheme.toLowerCase():void 0;return"light"!=e&&"dark"!=e?"dark":e},e.prototype.getTheme=function(){return localStorage.getItem("theme")||this.getDefaultTheme()},e.prototype.setTheme=function(e){return this.dataService.SetTheme(e),localStorage.setItem("theme",e),!1},e.prototype.openLogin=function(e){this.showLogin=!0,e.stopPropagation(),e.preventDefault()},e.prototype.closeLogin=function(e){this.showLogin=!1},e.prototype.getLoginUrl=function(){return d.a.demo?"":this.httpService.getApiBaseUrl()+"/authentication/login"},e.prototype.getLogoutUrl=function(){return d.a.demo?"":this.httpService.getApiBaseUrl()+"/authentication/logout?returnUrl="+this.currentUrl},e}();m=p([r.i(n.Component)({selector:"body",host:{"[class]":"getBodyClasses()"},template:r("5xMp"),styles:[r("okgc")]}),f(0,r.i(n.Inject)(u.DOCUMENT)),h("design:paramtypes",[Object,"function"==typeof(v=void 0!==o.a&&o.a)&&v||Object,"function"==typeof(g=void 0!==c.a&&c.a)&&g||Object,"function"==typeof(y=void 0!==l.a&&l.a)&&y||Object,"function"==typeof(b=void 0!==a.b&&a.b)&&b||Object,"function"==typeof(w=void 0!==s.NotificationsService&&s.NotificationsService)&&w||Object,"function"==typeof(S=void 0!==i.b&&i.b)&&S||Object])],m);var v,g,y,b,w,S},aijx:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},bKAj:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},bl1B:function(e,t){e.exports="\r\n

Admin|Server

\r\n
\r\n
Structures
\r\n
Players
\r\n
Tribes
\r\n
Fertilized Eggs
\r\n
\r\n
"},cPj0:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"e/mT":function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("ATz5")),o=r("+Lwu"),c=r("lHWG"),l=r("vwbq");r.d(t,"a",function(){return p});var d=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,r,n,i,s){this.route=e,this.router=t,this.httpService=r,this.dataService=n,this.messageService=i,this.notificationsService=s,this.menuOption=void 0,this.loaded=!1,this.loadedStructures=!1,this.loadedFertilizedEggs=!1}return e.prototype.getServer=function(){var e=this;this.httpService.getAdminServer(this.serverKey).then(function(t){e.server=t,e.loaded=!0}).catch(function(t){e.server=null,e.loaded=!0})},e.prototype.getStructures=function(){var e=this;this.httpService.getStructures(this.serverKey).then(function(t){e.structures=t,e.loadedStructures=!0}).catch(function(t){e.structures=void 0,e.loadedStructures=!0})},e.prototype.getListFertilizedEggs=function(){var e=this;this.httpService.adminListFertilizedEggs(this.serverKey).then(function(t){e.spoiledEggsList=t.SpoiledEggList,e.fertilizedEggsList=t.FertilizedEggList,e.fertilizedEggsCount=void 0===t.FertilizedEggsCount?0:t.FertilizedEggsCount,e.spoiledEggsCount=void 0===t.SpoiledEggsCount?0:t.SpoiledEggsCount,e.totalEggCount=e.spoiledEggsCount+e.fertilizedEggsCount,e.loadedFertilizedEggs=!0}).catch(function(t){e.fertilizedEggsList=void 0,e.loadedFertilizedEggs=!0})},e.prototype.ngOnInit=function(){var e=this;this.serverKey=this.route.snapshot.params.id,this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){e.menuOption=t,"structures"==e.menuOption?e.getStructures():"fertilized-eggs"==e.menuOption&&e.getListFertilizedEggs()}),this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){e.serverKey==t&&(e.updateServer(),e.showServerUpdateNotification(t))}),this.getServer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.getTribeMember=function(e){return this.server.Players.find(function(t){return t.SteamId==e})},e.prototype.updateServer=function(){this.getServer()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.showInfoModal=function(e,t){var r={};r.Header=e,r.Message=t,this.modalInfo=r,l.b(this.contextMenu.nativeElement).style("display","block"),l.c&&l.c.stopPropagation()},e.prototype.hideContextMenu=function(){l.b(this.contextMenu.nativeElement).style("display","none"),this.modalInfo=void 0},e.prototype.saveWorld=function(e){var t=this;this.httpService.adminSaveWorld(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyAllEggs=function(e){var t=this;this.httpService.adminDestroyAllEggs(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroySpoiledEggs=function(e){var t=this;this.httpService.adminDestroySpoiledEggs(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e}();d([r.i(n.ViewChild)("contextMenu"),u("design:type","function"==typeof(h=void 0!==n.ElementRef&&n.ElementRef)&&h||Object)],p.prototype,"contextMenu",void 0),p=d([r.i(n.Component)({selector:"app-admin-server",template:r("/Wuq"),styles:[r("7arz")]}),u("design:paramtypes",["function"==typeof(f=void 0!==i.g&&i.g)&&f||Object,"function"==typeof(m=void 0!==i.b&&i.b)&&m||Object,"function"==typeof(v=void 0!==c.a&&c.a)&&v||Object,"function"==typeof(g=void 0!==a.a&&a.a)&&g||Object,"function"==typeof(y=void 0!==o.a&&o.a)&&y||Object,"function"==typeof(b=void 0!==s.NotificationsService&&s.NotificationsService)&&b||Object])],p);var h,f,m,v,g,y,b},"fT+k":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,'.map canvas,.map svg{position:absolute;top:0;left:0;width:100%}rect.overlay{fill:transparent}.wrapper{position:relative}.wrapper:after{padding-top:100%;display:block;content:""}.wrapper .buttons{position:absolute;left:5px;top:5px;opacity:.75;z-index:2}',""]),e.exports=e.exports.toString()},ilmp:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Qbdm");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this._sanitizer=e}return e.prototype.transform=function(e){return this._sanitizer.bypassSecurityTrustHtml(e)},e}();o=s([r.i(n.Pipe)({name:"sanitizeHtml"}),a("design:paramtypes",["function"==typeof(c=void 0!==i.DomSanitizer&&i.DomSanitizer)&&c||Object])],o);var c},jFLX:function(e,t){e.exports='
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given steam id.

\r\n
\r\n
\r\n
\r\n

Servers

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Player

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Character NameGenderTribe NameSteam IdTribe IdLevelEngram PointsLatLngSaved At
{{player?.Servers[serverKey]?.CharacterName}}{{player?.Servers[serverKey]?.Gender}}{{player?.Servers[serverKey]?.TribeName}}{{player?.Servers[serverKey]?.FakeSteamId || player?.Servers[serverKey]?.SteamId}}{{player?.Servers[serverKey]?.TribeId}}{{player?.Servers[serverKey]?.Level}}{{player?.Servers[serverKey]?.EngramPoints | number}}{{player?.Servers[serverKey]?.Latitude | number:\'1.1-1\'}}{{player?.Servers[serverKey]?.Longitude | number:\'1.1-1\'}}{{dataService.toDate(player?.Servers[serverKey]?.SavedAt)}}
\r\n
\r\n
\r\n
\r\n
\r\n

Creatures {{filteredCreatures.length}}

\r\n
\r\n
\r\n
There are no creatures...
\r\n \r\n
\r\n close\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameClassNameSpeciesAliasesGenderBase LevelLevelImprintFoodLatLngStatusOwnerHPSTOXFOWEMESPID1ID2
No matching creatures...
{{creature.Name}}{{creature.ClassName}}{{creature.Species}}{{creature.Aliases}}{{creature.Gender}}{{creature.BaseLevel}}{{creature.Level}}{{creature.Imprint | percent:\'1.0-0\'}}\r\n
\r\n
{{creature.FoodStatus | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{creature.Latitude | number:\'1.1-1\'}}{{creature.Longitude | number:\'1.1-1\'}}\r\n Next mating {{dataService.toRelativeDate(creature.NextMating)}}\r\n
\r\n
\r\n
Baby
\r\n
\r\n
\r\n
{{creature.BabyAge | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
\r\n
cuddle {{dataService.toRelativeDate(creature.BabyNextCuddle)}}
\r\n
\r\n
\r\n
{{creature.OwnerType}}{{creature.BaseStats?.Health}}{{creature.BaseStats?.Stamina}}{{creature.BaseStats?.Oxygen}}{{creature.BaseStats?.Food}}{{creature.BaseStats?.Weight}}{{creature.BaseStats?.Melee}}{{creature.BaseStats?.MovementSpeed}}content_copy{{creature.Id1}}{{creature.Id2}}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Breeding {{imprintCreatures.length}}

\r\n
\r\n
\r\n
There are no baby creatures...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameSpeciesGenderBase LevelImprintProgressFully Grown AtNext Imprint
{{creature.Name}}{{creature.Species}}{{creature.Gender}}{{creature.BaseLevel}}{{creature.Imprint | percent:\'1.0-0\'}}\r\n
\r\n
{{creature.BabyAge | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{dataService.toDate(creature.BabyFullyGrown)}}
\r\n
\r\n \x3c!--

\r\n Last Update {{getCurrentServer().LastUpdate}}, Next Update {{getCurrentServer().NextUpdate || \'-\'}}\r\n

--\x3e\r\n
\r\n
\r\n
\r\n

Kibbles and Eggs {{sumKibbleAndEggs() | number:0.0-0}}

\r\n
\r\n
There are no kibbles or eggs...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameKibblesEggsTotal
{{ke.Name}}{{ke.KibbleCount}}{{ke.EggCount}}{{ke.KibbleCount + ke.EggCount}}
\r\n
\r\n
\r\n
\r\n

Clusters

\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n

Creatures

\r\n
\r\n
There are no creatures in the cloud...
\r\n
\r\n
\r\n
\r\n

Creatures {{filteredClusterCreatures.length}}

\r\n
\r\n
There are no creatures in the cloud...
\r\n
\r\n close\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameSpeciesLevel
No matching creatures...
{{creature.Name}}{{creature.Species}}{{creature.Level}}
\r\n
\r\n
\r\n
\r\n
\r\n

Crops

\r\n
\r\n
There are no crops...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CropSizeFertilizer %Fertilizer UnitsWaterLatLng
{{(cp.PlantedCropName || cp.PlantedCropClassName)}}{{cp.Size}}\r\n
\r\n
{{(cp.FertilizerQuantity / cp.FertilizerMax) | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{cp.FertilizerQuantity | number}}{{cp.WaterAmount | number:\'1.0-0\'}}{{cp.Latitude | number:\'1.1-1\'}}{{cp.Longitude | number:\'1.1-1\'}}
\r\n
\r\n
\r\n
\r\n
\r\n

Electrical Generators

\r\n
\r\n
There are no electrical generators...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Gasoline %Gasoline QuantityActivatedLatLng
\r\n
\r\n
{{(eg.GasolineQuantity / 800.0) | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{eg.GasolineQuantity | number}}{{(eg.Activated == true ? "Yes" : "No")}}{{eg.Latitude | number:\'1.1-1\'}}{{eg.Longitude | number:\'1.1-1\'}}
\r\n
\r\n
\r\n
\r\n
\r\n

Tribe Log

\r\n
\r\n
There are no tribe logs...
\r\n \r\n
\r\n close\r\n \r\n
\r\n \r\n \r\n \r\n \r\n Day\r\n \r\n \r\n {{log.Day}}\r\n \r\n \r\n \r\n \r\n Time\r\n \r\n \r\n {{log.Time}}\r\n \r\n \r\n \r\n \r\n Message\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n'},jWPz:function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"c",function(){return a}),r.d(t,"b",function(){return o}),r.d(t,"a",function(){return c});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(e){this.template=e}return e}();a=i([r.i(n.Directive)({selector:"[ark-dt-cell]"}),s("design:paramtypes",["function"==typeof(l=void 0!==n.TemplateRef&&n.TemplateRef)&&l||Object])],a);var o=function(){function e(e){this.template=e}return e}();o=i([r.i(n.Directive)({selector:"[ark-dt-header]"}),s("design:paramtypes",["function"==typeof(d=void 0!==n.TemplateRef&&n.TemplateRef)&&d||Object])],o);var c=function(){function e(){}return e}();i([r.i(n.Input)(),r.i(n.ContentChild)(a,{read:n.TemplateRef}),s("design:type","function"==typeof(u=void 0!==n.TemplateRef&&n.TemplateRef)&&u||Object)],c.prototype,"cellTemplate",void 0),i([r.i(n.Input)(),r.i(n.ContentChild)(o,{read:n.TemplateRef}),s("design:type","function"==typeof(p=void 0!==n.TemplateRef&&n.TemplateRef)&&p||Object)],c.prototype,"headerTemplate",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"mode",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"key",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"thenSort",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"title",void 0),i([r.i(n.Input)(),s("design:type",Boolean)],c.prototype,"orderBy",void 0),c=i([r.i(n.Directive)({selector:"ark-dt-column"})],c);var l,d,u,p},jkBB:function(e,t){e.exports='
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n
No matching entries...
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n «\r\n \r\n \r\n  {{_fromRow}} - {{getLastRowOffset()}} of {{_totalRows}} \r\n »\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
'},joX7:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl");r.n(i);r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(){this.enabled=i.Observable.of(!0)}return Object.defineProperty(e.prototype,"columnKeys",{set:function(e){this._columnKeys=e,this.ColumnKeys=this._columnKeys.split(",")},enumerable:!0,configurable:!0}),e}();s([r.i(n.Input)(),a("design:type",String)],o.prototype,"key",void 0),s([r.i(n.Input)(),a("design:type",String)],o.prototype,"name",void 0),s([r.i(n.Input)(),a("design:type","function"==typeof(c=void 0!==i.Observable&&i.Observable)&&c||Object)],o.prototype,"enabled",void 0),s([r.i(n.Input)(),a("design:type",String),a("design:paramtypes",[String])],o.prototype,"columnKeys",null),o=s([r.i(n.Directive)({selector:"ark-dt-mode"})],o);var c},kZql:function(e,t,r){"use strict";var n=r("EM12");r.d(t,"a",function(){return i});var i={production:!0,demo:!1,demoDate:null,configJsOverride:null,configJsDefault:n.a.configJs,apiBaseUrl:"//:/api",signalrBaseUrl:"//:/signalr"}},lCrv:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("ATz5")),a=r("lHWG"),o=r("kZql"),c=r("vwbq"),l=r("PJh5");r.n(l);r.d(t,"a",function(){return p});var d=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,r){this.dataService=e,this.httpService=t,this.zone=r,this._structures=new i.BehaviorSubject(void 0),this.keysGetter=Object.keys,this.ownerSortField="locations",this.ownerSortFunctions={locations:function(e,t){return e.AreaCount>t.AreaCount?-1:e.AreaCountt.StructureCount?-1:e.StructureCountt.StructureCount?-1:e.StructureCountt.LastActiveTime||void 0==t.LastActiveTime?1:0}},this.width=1024,this.height=1024,this.zoom=c.a().scaleExtent([1,8])}return Object.defineProperty(e.prototype,"structures",{get:function(){return this._structures.getValue()},set:function(e){this._structures.next(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._structuresSubscription=this._structures.subscribe(function(t){return e.update(t)});var t=this.mapContainer.nativeElement;this.map={},this.map.canvas=c.b(t).append("canvas").attr("width",1024).attr("height",1024).node().getContext("2d"),this.map.svg=c.b(t).append("svg").attr("viewBox","0 0 1024 1024").attr("preserveAspectRatio","xMidYMid").append("g").on("contextmenu",function(e,t){c.c.preventDefault()}),this.map.svg.append("rect").attr("class","overlay").attr("width",1024).attr("height",1024),this.map.x=c.d().domain([0,1024]).range([0,1024]),this.map.y=c.d().domain([0,1024]).range([0,1024]),c.b(t).call(this.zoom.on("zoom",function(){e.hideContextMenu(),e.redraw()})).on("wheel.zoom",null),this.structures&&this.updateMap()},e.prototype.ngOnDestroy=function(){this._structuresSubscription.unsubscribe()},e.prototype.zoomIn=function(){this.zoom.scaleBy(c.b(this.mapContainer.nativeElement),1.2)},e.prototype.zoomOut=function(){this.zoom.scaleBy(c.b(this.mapContainer.nativeElement),.8)},e.prototype.updateSelection=function(){var e=this;this.map.svg.circle.attr("display",function(t){var r=e.structures.Owners[t.OwnerId];return t.Removed||r.Removed||e.selectedOwner&&(!e.selectedOwner||e.selectedOwner.Id!=t.OwnerId)?"none":"block"}),this.redraw()},e.prototype.update=function(e){this.sortOwners(e),this.map&&this.updateMap()},e.prototype.sortOwners=function(e){var t=this.ownerSortFunctions[this.ownerSortField];if(e){var r=e.Owners.slice();r.sort(t),this.ownersSorted=r}else this.ownersSorted=void 0},e.prototype.updateMap=function(){var e=this;this.map.svg.nodes=this.structures.Areas,this.map.svg.draw=function(){e.map.svg.circle=e.map.svg.selectAll("circle").data(e.map.svg.nodes).enter().append("circle").attr("r",function(e){return e.RadiusPx<2?2:e.RadiusPx}).attr("fill","transparent").attr("stroke",function(t){var r=e.structures.Owners[t.OwnerId];return!!r.LastActiveTime&&l(new Date(r.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(t.StructureCount>=100||t.TrashQuota<.5&&t.StructureCount>=10)?"magenta":"red"}).attr("stroke-width",function(t){var r=e.structures.Owners[t.OwnerId];return!!r.LastActiveTime&&l(new Date(r.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(t.StructureCount>=100||t.TrashQuota<.5&&t.StructureCount>=10)?3:2}).attr("transform",e.map.svg.transform),e.map.svg.circle.on("click",function(t){c.c.preventDefault();var r={};r.x=c.c.pageX,r.y=c.c.pageY,e.showAreaModal(t,r)}),e.map.svg.circle.append("svg:title").text(function(t){var r=e.structures.Owners[t.OwnerId],n=r.LastActiveTime?l(new Date(r.LastActiveTime)).fromNow():null;return r.Name+": "+t.StructureCount+" structures\nCoords: "+t.Latitude+", "+t.Longitude+"\n"+(n?"Last active: "+n+"\n":"")+"---\n"+t.Structures.map(function(t){var r=e.structures.Types[t.t];return t.c+": "+(r?r.Name:t.t)}).join("\n")})},this.map.svg.draw(),this.map.svg.transform=function(t){return"translate("+e.map.x(t.TopoMapX)+","+e.map.y(t.TopoMapY)+")"},this.map.svg.circle.attr("transform",this.map.svg.transform)},e.prototype.imageLoaded=function(e){var t=this;this.img=e,this.width=e?e.naturalWidth:1024,this.height=e?e.naturalHeight:1024,window.setTimeout(function(){t.resize(),t.redraw()},100)},e.prototype.resize=function(){},e.prototype.redraw=function(){var e=this,t=c.e(this.mapContainer.nativeElement);this.map.svg.attr("transform","translate("+t.x+","+t.y+") scale("+t.k+")"),t.k!=this.prevTransformK&&this.map.svg.circle.attr("stroke-width",function(r){var n=e.structures.Owners[r.OwnerId];return(!!n.LastActiveTime&&l(new Date(n.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(r.StructureCount>=100||r.TrashQuota<.5&&r.StructureCount>=10)?3:2)/t.k});var r=this.map.canvas;r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,1024,1024),r.translate(t.x,t.y),r.scale(t.k,t.k),this.img&&r.drawImage(this.img,0,0),this.prevTransformK=t.k},e.prototype.ngOnChanges=function(e){var t=this;if(null!=this.mapName){var r=new Image;r.onload=function(){return t.imageLoaded(r)},r.onerror=function(){return t.imageLoaded(void 0)},r.src=o.a.demo?"assets/demo/Ragnarok.jpg":this.getApiBaseUrl()+"/map/"+this.mapName,r.complete&&(r.onload=null,r.onerror=null,this.imageLoaded(r))}},e.prototype.getApiBaseUrl=function(){return o.a.apiBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e.prototype.reset=function(){this.selectedOwner=void 0,this.updateSelection()},e.prototype.setSelectedOwner=function(e){this.selectedOwner=e,this.updateSelection()},e.prototype.setOwnerSort=function(e){this.ownerSortField=e,this.sortOwners(this.structures)},e.prototype.showAreaModal=function(e,t){this.currentArea=e,this.currentOwner=this.structures.Owners[e.OwnerId],c.b(this.contextMenu.nativeElement).style("display","block"),c.c&&c.c.stopPropagation()},e.prototype.showOwnerModal=function(e,t){this.currentOwner=t,c.b(this.contextMenu.nativeElement).style("display","block"),e.stopPropagation()},e.prototype.showInfoModal=function(e,t){var r={};r.Header=e,r.Message=t,this.modalInfo=r,c.b(this.contextMenu.nativeElement).style("display","block"),c.c&&c.c.stopPropagation()},e.prototype.hideContextMenu=function(){c.b(this.contextMenu.nativeElement).style("display","none"),this.currentArea=void 0,this.currentOwner=void 0,this.modalInfo=void 0},e.prototype.destroyCurrentArea=function(e){var t=this;this.httpService.adminDestroyStructuresForTeamIdAtPosition(this.serverKey,this.currentOwner.OwnerId,this.currentArea.X,this.currentArea.Y,+this.currentArea.RadiusUu+1e3,1).then(function(e){t.currentArea.Removed=!0,t.currentOwner.AreaCount-=1,t.currentOwner.StructureCount-=t.currentArea.StructureCount,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyAllStructuresForTeam=function(e){var t=this;this.httpService.adminDestroyAllStructuresForTeamId(this.serverKey,this.currentOwner.OwnerId).then(function(e){t.currentOwner.Removed=!0,t.currentOwner.AreaCount=0,t.currentOwner.StructureCount=0,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyDinosForTeam=function(e){var t=this;this.httpService.adminDestroyDinosForTeamId(this.serverKey,this.currentOwner.OwnerId).then(function(e){t.currentOwner.CreatureCount=0,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.saveWorld=function(e){var t=this;this.httpService.adminSaveWorld(this.serverKey).then(function(e){t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e}();d([r.i(n.Input)(),u("design:type",Object),u("design:paramtypes",[Object])],p.prototype,"structures",null),d([r.i(n.Input)(),u("design:type",String)],p.prototype,"serverKey",void 0),d([r.i(n.Input)(),u("design:type",String)],p.prototype,"mapName",void 0),d([r.i(n.ViewChild)("map"),u("design:type","function"==typeof(h=void 0!==n.ElementRef&&n.ElementRef)&&h||Object)],p.prototype,"mapContainer",void 0),d([r.i(n.ViewChild)("contextMenu"),u("design:type","function"==typeof(f=void 0!==n.ElementRef&&n.ElementRef)&&f||Object)],p.prototype,"contextMenu",void 0),p=d([r.i(n.Component)({selector:"arkmap-structures",template:r("QMiF"),styles:[r("fT+k")],encapsulation:n.ViewEncapsulation.None}),u("design:paramtypes",["function"==typeof(m=void 0!==s.a&&s.a)&&m||Object,"function"==typeof(v=void 0!==a.a&&a.a)&&v||Object,"function"==typeof(g=void 0!==n.NgZone&&n.NgZone)&&g||Object])],p);var h,f,m,v,g},lHWG:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Fzro"),s=r("eErF"),a=(r.n(s),r("kZql"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e){this.http=e,this.headers=new i.c({"Content-Type":"application/json"}),this.serversUrl="/servers",this.serverUrl="/server",this.wildCreaturesUrl="/wildcreatures",this.structuresUrl="/structures",this.adminServerUrl="/adminserver",this.administerUrl="/administer",this.playerUrl="/player"}return e.prototype.getOptions=function(){var e="true"==localStorage.getItem("demoMode"),t=new i.d({withCredentials:!0});return e&&(t.headers||(t.headers=new i.c),t.headers.append("demoMode","true")),t},e.prototype.getServers=function(){return this.http.get(""+this.getApiBaseUrl()+this.serversUrl+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getServer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.serverUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getWildCreatures=function(e){return this.http.get(""+this.getApiBaseUrl()+this.wildCreaturesUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getStructures=function(e){return this.http.get(""+this.getApiBaseUrl()+this.structuresUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getPlayer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.playerUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getAdminServer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.adminServerUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyAllStructuresForTeamId=function(e,t){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyAllStructuresForTeamId/"+e+"?teamId="+t+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyStructuresForTeamIdAtPosition=function(e,t,r,n,i,s){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyStructuresForTeamIdAtPosition/"+e+"?teamId="+t+"&x="+r+"&y="+n+"&radius="+i+"&rafts="+s+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyDinosForTeamId=function(e,t){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyDinosForTeamId/"+e+"?teamId="+t+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminSaveWorld=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/SaveWorld/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminListFertilizedEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DroppedEggsList/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyAllEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyAllEggs/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroySpoiledEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroySpoiledEggs/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getApiBaseUrl=function(){return a.a.apiBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e.prototype.handleError=function(e){return Promise.reject(e.message||e)},e}();l=o([r.i(n.Injectable)(),c("design:paramtypes",["function"==typeof(d=void 0!==i.b&&i.b)&&d||Object])],l);var d},lRu1:function(e,t){e.exports='
\n
\n

Connection error

\n

The application was unable to connect to the Web API. This could be due to a configuration error...

\n
\n
'},m8aW:function(e,t){e.exports=''},mf93:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},ne8d:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},oLRk:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},okgc:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},qn86:function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("PJh5")),o=(r.n(a),r("ATz5")),c=r("+Lwu"),l=r("lHWG"),d=r("+rAa");r.d(t,"a",function(){return h});var u=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},p=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},h=function(){function e(e,t,n,i,s,a,o){this.route=e,this.router=t,this.httpService=n,this.dataService=i,this.messageService=s,this.notificationsService=a,this.ref=o,this.menuOption=void 0,this.loaded=!1,this.creaturesLoaded=!1,this.keysGetter=Object.keys,this.showMap=!1,this.creaturesMode="status",this.creaturesSortField="base_level",this.creaturesAltSortFields="base_level,gender",this.creaturesSortFunctions={gender:function(e,t,n){return r.i(d.a)(e.Gender,t.Gender,n)},base_level:function(e,t,n){return r.i(d.b)(e.BaseLevel,t.BaseLevel,!n)},tameable:function(e,t,n){return r.i(d.b)(e.IsTameable,t.IsTameable,!n)},latitude:function(e,t,n){return r.i(d.c)(e.Latitude,t.Latitude,n,1)},longitude:function(e,t,n){return r.i(d.c)(e.Longitude,t.Longitude,n,1)},x:function(e,t,n){return r.i(d.c)(e.X,t.X,n,0)},y:function(e,t,n){return r.i(d.c)(e.Y,t.Y,n,0)},z:function(e,t,n){return r.i(d.c)(e.Z,t.Z,n,0)},stat_health:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.Health:null,void 0!=t.BaseStats?t.BaseStats.Health:null,!n)},stat_stamina:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.Stamina:null,void 0!=t.BaseStats?t.BaseStats.Stamina:null,!n)},stat_oxygen:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.Oxygen:null,void 0!=t.BaseStats?t.BaseStats.Oxygen:null,!n)},stat_food:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.Food:null,void 0!=t.BaseStats?t.BaseStats.Food:null,!n)},stat_weight:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.Weight:null,void 0!=t.BaseStats?t.BaseStats.Weight:null,!n)},stat_melee:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.Melee:null,void 0!=t.BaseStats?t.BaseStats.Melee:null,!n)},stat_speed:function(e,t,n){return r.i(d.b)(void 0!=e.BaseStats?e.BaseStats.MovementSpeed:null,void 0!=t.BaseStats?t.BaseStats.MovementSpeed:null,!n)},id1:function(e,t,n){return r.i(d.b)(e.Id1,t.Id1,n)},id2:function(e,t,n){return r.i(d.b)(e.Id1,t.Id1,n)}},this.playerSortFunctions={character_name:function(e,t,n){return r.i(d.a)(e.CharacterName,t.CharacterName,n)},tribe_name:function(e,t,n){return r.i(d.a)(e.TribeName,t.TribeName,n)},last_active:function(e,t,n){return r.i(d.b)(e.LastActiveTime,t.LastActiveTime,!n)}},this.tribeSortFunctions={tribe_name:function(e,t,n){return r.i(d.a)(e.Name,t.Name,n)},last_active:function(e,t,n){return r.i(d.b)(e.LastActiveTime,t.LastActiveTime,!n)}},this.wildStatisticsSortFunctions={species:function(e,t,n){return r.i(d.a)(e.Name,t.Name,n)},class_name:function(e,t,n){return r.i(d.a)(e.ClassName,t.ClassName,n)},count:function(e,t,n){return r.i(d.b)(e.Count,t.Count,!n)},fraction:function(e,t,n){return r.i(d.c)(e.Fraction,t.Fraction,!n,4)}}}return e.prototype.getServer=function(){var e=this;this.httpService.getServer(this.serverKey).then(function(t){e.server=t,e.filter(),e.loaded=!0}).catch(function(t){e.server=null,e.filteredPlayers=null,e.filteredTribes=null,e.loaded=!0})},e.prototype.getWildCreatures=function(){var e=this;this.httpService.getWildCreatures(this.serverKey).then(function(t){e.wild=t,e.species=Object.keys(e.wild.Species).sort(function(t,n){return r.i(d.a)(e.wild.Species[t].Name||t,e.wild.Species[n].Name||n,!0)}),e.selectedSpecies&&void 0!=e.species.find(function(t){return t==e.selectedSpecies})||(e.selectedSpecies=e.species.length>0?e.species[0]:null),e.filterAndSortWild(),e.creaturesLoaded=!0,e.ref.detectChanges()}).catch(function(t){e.wild=null,e.species=null,e.filteredCreatures=null,e.creaturesLoaded=!0})},e.prototype.ngOnInit=function(){var e=this;this.accessControl_pages_player=this.dataService.hasFeatureAccessObservable("pages","player"),this.serverKey=this.route.snapshot.params.id,this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){e.menuOption=t,0!=e.creaturesLoaded||"wildcreatures"!=e.menuOption&&"wildcreatures-statistics"!=e.menuOption||e.getWildCreatures()}),this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){e.serverKey==t&&(e.updateServer(),e.showServerUpdateNotification(t))}),this.getServer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.filter=function(){var e=this.dataService.getCurrentDate(),t=e.subtract(90,"day");this.filteredPlayers=this.server.Players.filter(function(e){return a(new Date(e.LastActiveTime)).isSameOrAfter(t)}),this.filteredTribes=this.server.Tribes.filter(function(e){return a(new Date(e.LastActiveTime)).isSameOrAfter(t)})},e.prototype.sortWild=function(){var e=this,t="-"!=this.creaturesSortField[0],r=this.creaturesSortFunctions[this.creaturesSortField.replace(/^\-/,"")],n=this.creaturesAltSortFields.split(",").map(function(t){var r={};return r.asc="-"!=t[0],r.sortFunc=e.creaturesSortFunctions[t.replace(/^\-/,"")],r});void 0!=this.filteredCreatures&&this.filteredCreatures.sort(function(e,i){var s=r(e,i,t);if(0==s)for(var a=0,o=n;aOverview\r\n \r\n
{{server.Key}}
\r\n
\r\n \r\n'},rZY4:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"tr th.orderBy{cursor:pointer}a.w3-button.disabled{color:#a9a9a9}a.w3-button.disabled:hover{color:#a9a9a9!important;background-color:transparent!important;opacity:1!important;cursor:default}",""]),e.exports=e.exports.toString()},uslO:function(e,t,r){function n(e){return r(i(e))}function i(e){var t=s[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}var s={"./af":"3CJN","./af.js":"3CJN","./ar":"3MVc","./ar-dz":"tkWw","./ar-dz.js":"tkWw","./ar-kw":"j8cJ","./ar-kw.js":"j8cJ","./ar-ly":"wPpW","./ar-ly.js":"wPpW","./ar-ma":"dURR","./ar-ma.js":"dURR","./ar-sa":"7OnE","./ar-sa.js":"7OnE","./ar-tn":"BEem","./ar-tn.js":"BEem","./ar.js":"3MVc","./az":"eHwN","./az.js":"eHwN","./be":"3hfc","./be.js":"3hfc","./bg":"lOED","./bg.js":"lOED","./bm":"hng5","./bm.js":"hng5","./bn":"aM0x","./bn.js":"aM0x","./bo":"w2Hs","./bo.js":"w2Hs","./br":"OSsP","./br.js":"OSsP","./bs":"aqvp","./bs.js":"aqvp","./ca":"wIgY","./ca.js":"wIgY","./cs":"ssxj","./cs.js":"ssxj","./cv":"N3vo","./cv.js":"N3vo","./cy":"ZFGz","./cy.js":"ZFGz","./da":"YBA/","./da.js":"YBA/","./de":"DOkx","./de-at":"8v14","./de-at.js":"8v14","./de-ch":"Frex","./de-ch.js":"Frex","./de.js":"DOkx","./dv":"rIuo","./dv.js":"rIuo","./el":"CFqe","./el.js":"CFqe","./en-SG":"oYA3","./en-SG.js":"oYA3","./en-au":"Sjoy","./en-au.js":"Sjoy","./en-ca":"Tqun","./en-ca.js":"Tqun","./en-gb":"hPuz","./en-gb.js":"hPuz","./en-ie":"ALEw","./en-ie.js":"ALEw","./en-il":"QZk1","./en-il.js":"QZk1","./en-nz":"dyB6","./en-nz.js":"dyB6","./eo":"Nd3h","./eo.js":"Nd3h","./es":"LT9G","./es-do":"7MHZ","./es-do.js":"7MHZ","./es-us":"INcR","./es-us.js":"INcR","./es.js":"LT9G","./et":"XlWM","./et.js":"XlWM","./eu":"sqLM","./eu.js":"sqLM","./fa":"2pmY","./fa.js":"2pmY","./fi":"nS2h","./fi.js":"nS2h","./fo":"OVPi","./fo.js":"OVPi","./fr":"tzHd","./fr-ca":"bXQP","./fr-ca.js":"bXQP","./fr-ch":"VK9h","./fr-ch.js":"VK9h","./fr.js":"tzHd","./fy":"g7KF","./fy.js":"g7KF","./ga":"U5Iz","./ga.js":"U5Iz","./gd":"nLOz","./gd.js":"nLOz","./gl":"FuaP","./gl.js":"FuaP","./gom-latn":"+27R","./gom-latn.js":"+27R","./gu":"rtsW","./gu.js":"rtsW","./he":"Nzt2","./he.js":"Nzt2","./hi":"ETHv","./hi.js":"ETHv","./hr":"V4qH","./hr.js":"V4qH","./hu":"xne+","./hu.js":"xne+","./hy-am":"GrS7","./hy-am.js":"GrS7","./id":"yRTJ","./id.js":"yRTJ","./is":"upln","./is.js":"upln","./it":"FKXc","./it-ch":"/E8D","./it-ch.js":"/E8D","./it.js":"FKXc","./ja":"ORgI","./ja.js":"ORgI","./jv":"JwiF","./jv.js":"JwiF","./ka":"RnJI","./ka.js":"RnJI","./kk":"j+vx","./kk.js":"j+vx","./km":"5j66","./km.js":"5j66","./kn":"gEQe","./kn.js":"gEQe","./ko":"eBB/","./ko.js":"eBB/","./ku":"kI9l","./ku.js":"kI9l","./ky":"6cf8","./ky.js":"6cf8","./lb":"z3hR","./lb.js":"z3hR","./lo":"nE8X","./lo.js":"nE8X","./lt":"/6P1","./lt.js":"/6P1","./lv":"jxEH","./lv.js":"jxEH","./me":"svD2","./me.js":"svD2","./mi":"gEU3","./mi.js":"gEU3","./mk":"Ab7C","./mk.js":"Ab7C","./ml":"oo1B","./ml.js":"oo1B","./mn":"CqHt","./mn.js":"CqHt","./mr":"5vPg","./mr.js":"5vPg","./ms":"ooba","./ms-my":"G++c","./ms-my.js":"G++c","./ms.js":"ooba","./mt":"oCzW","./mt.js":"oCzW","./my":"F+2e","./my.js":"F+2e","./nb":"FlzV","./nb.js":"FlzV","./ne":"/mhn","./ne.js":"/mhn","./nl":"3K28","./nl-be":"Bp2f","./nl-be.js":"Bp2f","./nl.js":"3K28","./nn":"C7av","./nn.js":"C7av","./pa-in":"pfs9","./pa-in.js":"pfs9","./pl":"7LV+","./pl.js":"7LV+","./pt":"ZoSI","./pt-br":"AoDM","./pt-br.js":"AoDM","./pt.js":"ZoSI","./ro":"wT5f","./ro.js":"wT5f","./ru":"ulq9","./ru.js":"ulq9","./sd":"fW1y","./sd.js":"fW1y","./se":"5Omq","./se.js":"5Omq","./si":"Lgqo","./si.js":"Lgqo","./sk":"OUMt","./sk.js":"OUMt","./sl":"2s1U","./sl.js":"2s1U","./sq":"V0td","./sq.js":"V0td","./sr":"f4W3","./sr-cyrl":"c1x4","./sr-cyrl.js":"c1x4","./sr.js":"f4W3","./ss":"7Q8x","./ss.js":"7Q8x","./sv":"Fpqq","./sv.js":"Fpqq","./sw":"DSXN","./sw.js":"DSXN","./ta":"+7/x","./ta.js":"+7/x","./te":"Nlnz","./te.js":"Nlnz","./tet":"gUgh","./tet.js":"gUgh","./tg":"5SNd","./tg.js":"5SNd","./th":"XzD+","./th.js":"XzD+","./tl-ph":"3LKG","./tl-ph.js":"3LKG","./tlh":"m7yE","./tlh.js":"m7yE","./tr":"k+5o","./tr.js":"k+5o","./tzl":"iNtv","./tzl.js":"iNtv","./tzm":"FRPF","./tzm-latn":"krPU","./tzm-latn.js":"krPU","./tzm.js":"FRPF","./ug-cn":"To0v","./ug-cn.js":"To0v","./uk":"ntHu","./uk.js":"ntHu","./ur":"uSe8","./ur.js":"uSe8","./uz":"XU1s","./uz-latn":"/bsm","./uz-latn.js":"/bsm","./uz.js":"XU1s","./vi":"0X8Q","./vi.js":"0X8Q","./x-pseudo":"e/KL","./x-pseudo.js":"e/KL","./yo":"YXlc","./yo.js":"YXlc","./zh-cn":"Vz2w","./zh-cn.js":"Vz2w","./zh-hk":"ZUyn","./zh-hk.js":"ZUyn","./zh-tw":"BbgG","./zh-tw.js":"BbgG"};n.keys=function(){return Object.keys(s)},n.resolve=i,e.exports=n,n.id="uslO"},x35b:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("3j3K"),i=r("O61y"),s=r("Iksp");r("kZql").a.production&&r.i(n.enableProdMode)(),r.i(i.a)().bootstrapModule(s.a)},xEL3:function(e,t){e.exports='
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given server key.

\r\n
\r\n
\r\n
\r\n

Players

\r\n \r\n \r\n \r\n \r\n Character Name\r\n \r\n \r\n {{player.CharacterName}}{{player.CharacterName}}\r\n \r\n \r\n \r\n \r\n Tribe Name\r\n \r\n \r\n {{player.TribeName}}\r\n \r\n \r\n \r\n \r\n Last Active\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n

Tribes

\r\n \r\n \r\n \r\n \r\n Tribe Name\r\n \r\n \r\n {{tribe.Name}}\r\n \r\n \r\n \r\n \r\n Members\r\n \r\n \r\n {{getTribeMember(member)?.CharacterName || member}}{{getTribeMember(member)?.CharacterName || member}}, \r\n \r\n \r\n \r\n \r\n Last Active\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n

Wild Statistics {{(wild.Statistics.Species?.length || 0) | number}}

\r\n \r\n \r\n \r\n \r\n Species\r\n \r\n \r\n {{species.Name}}\r\n \r\n \r\n \r\n \r\n Class Name\r\n \r\n \r\n {{species.ClassName}}\r\n \r\n \r\n \r\n \r\n Aliases\r\n \r\n \r\n {{species.Aliases.length > 0 ? species.Aliases.join(\', \') : \'\'}}\r\n \r\n \r\n \r\n \r\n Count\r\n \r\n \r\n {{species.Count | number}}\r\n \r\n \r\n \r\n \r\n Fraction\r\n \r\n \r\n {{species.Fraction | percent:\'1.0-4\'}}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n

Wild Creatures {{(filteredCreatures?.length || 0) | number}} / {{(wild?.Statistics?.CreatureCount || 0) | number}}

\r\n
\r\n
\r\n
There are no creatures...
\r\n \r\n \r\n \x3c!--
\r\n close\r\n \r\n
--\x3e\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
GenderBase LevelTameableXYZLatLngHPSTOXFOWEMESPID1ID2
No matching creatures...
{{creature.Gender}}{{creature.BaseLevel}}{{(wild.Species[selectedSpecies].IsTameable && creature.IsTameable == true ? "Yes" : "No")}}{{creature.X}}{{creature.Y}}{{creature.Z}}{{creature.Latitude | number:\'1.1-1\'}}{{creature.Longitude | number:\'1.1-1\'}}{{creature.BaseStats?.Health}}{{creature.BaseStats?.Stamina}}{{creature.BaseStats?.Oxygen}}{{creature.BaseStats?.Food}}{{creature.BaseStats?.Weight}}{{creature.BaseStats?.Melee}}{{creature.BaseStats?.MovementSpeed}}content_copy{{creature.Id1}}{{creature.Id2}}
\r\n
\r\n
\r\n
\r\n'}},[0]); \ No newline at end of file diff --git a/ArkBot/WebApp/dist/styles.aa9c14f786b2ded43f69.bundle.css b/ArkBot/WebApp/dist/styles.aa9c14f786b2ded43f69.bundle.css new file mode 100644 index 0000000..c9c010b --- /dev/null +++ b/ArkBot/WebApp/dist/styles.aa9c14f786b2ded43f69.bundle.css @@ -0,0 +1 @@ +:root{--light-theme-bg:#fff;--light-theme:#000;--light-theme-l1-bg:#fff;--light-theme-l1:#000;--light-theme-l2-bg:#f1f1f1;--light-theme-l2:#000;--light-theme-d1-bg:#2196f3;--light-theme-d1:#fff;--light-theme-c1-bg:#4caf50;--light-theme-c1:#fff;--light-theme-e1-bg:#f44336;--light-theme-e1:#fff;--light-theme-l2-even-bg:#f5f5f5;--light-theme-l2-even:#000;--light-theme-lighter-c1-bg:#ceedce;--light-theme-l1-hover-bg:#ccc;--light-theme-l1-hover:#000;--light-theme-l2-hover-bg:#ccc;--light-theme-l2-hover:#000;--light-theme-text-l1-light:#a9a9a9;--light-theme-text-d1:#2196f3;--light-theme-text-c1:#4caf50;--light-border-theme:#ddd;--light-divider-theme:silver;--dark-theme-bg:#141519;--dark-theme:#fff;--dark-theme-l1-bg:#141519;--dark-theme-l1:#fff;--dark-theme-l2-bg:#2a2c36;--dark-theme-l2:#fff;--dark-theme-d1-bg:#114f7f;--dark-theme-d1:#fff;--dark-theme-c1-bg:#114f7f;--dark-theme-c1:#fff;--dark-theme-e1-bg:#f44336;--dark-theme-e1:#fff;--dark-theme-l2-even-bg:#22232b;--dark-theme-l2-even:#fff;--dark-theme-lighter-c1-bg:#58a6dd;--dark-theme-l1-hover-bg:#ccc;--dark-theme-l1-hover:#fff;--dark-theme-l2-hover-bg:#ccc;--dark-theme-l2-hover:#fff;--dark-theme-text-l1-light:#a9a9a9;--dark-theme-text-d1:#fff;--dark-theme-text-c1:#114f7f;--dark-border-theme:#2b2d33;--dark-divider-theme:silver}body.light{background-color:var(--light-theme-bg)!important;color:var(--light-theme)}.light .theme-l1{color:var(--light-theme-l1)!important;background-color:var(--light-theme-l1-bg)!important}.light .theme-l2{color:var(--light-theme-l2)!important;background-color:var(--light-theme-l2-bg)!important}.light .theme-d1{color:var(--light-theme-d1)!important;background-color:var(--light-theme-d1-bg)!important}.light .theme-c1{color:var(--light-theme-c1)!important;background-color:var(--light-theme-c1-bg)!important}.light .theme-e1{color:var(--light-theme-e1)!important;background-color:var(--light-theme-e1-bg)!important}.light .even .theme-l2{color:var(--light-theme-l1)!important;background-color:var(--light-theme-l1-bg)!important}.light .theme-lighter-c1-bg{background-color:var(--light-theme-lighter-c1-bg)!important}.light .theme-l1.theme-hover:hover{color:var(--light-theme-l1-hover)!important;background-color:var(--light-theme-l1-hover-bg)!important}.light .theme-l2.theme-hover:hover{color:var(--light-theme-l2-hover)!important;background-color:var(--light-theme-l2-hover-bg)!important}.light .theme-text-l1-light{color:var(--light-theme-text-l1-light)!important}.light .theme-text-d1{color:var(--light-theme-text-d1)!important}.light .theme-text-c1{color:var(--light-theme-text-c1)!important}.light .border-theme{border-color:var(--light-border-theme)!important}.light a:hover{color:var(--light-theme-text-d1)}.light .theme-c1 a:hover,.light .theme-d1 a:hover{color:var(--light-theme-d1)}.light .breadcrumb ul li a{color:var(--light-theme-text-d1)!important}.light .breadcrumb ul li{color:var(--light-theme-text-l1-light)}.light .breadcrumb ul li+li:before{color:var(--light-divider-theme)}.light .w3-bordered tr,.light .w3-table-all tr{border-bottom:1px solid var(--light-border-theme)}.light .w3-striped tbody tr:nth-child(2n),.light .w3-table-all tr:nth-child(2n){background-color:var(--light-theme-l2-even-bg);color:var(--light-theme-l2-even)}.light .w3-striped tbody tr:nth-child(odd),.light .w3-table-all tr:nth-child(odd){background-color:var(--light-theme-l1-bg);color:var(--light-theme-l1)}.light .w3-ul li{border-bottom:1px solid var(--light-border-theme)}body.dark{background-color:var(--dark-theme-bg)!important;color:var(--dark-theme)}.dark .theme-l1{color:var(--dark-theme-l1)!important;background-color:var(--dark-theme-l1-bg)!important}.dark .theme-l2{color:var(--dark-theme-l2)!important;background-color:var(--dark-theme-l2-bg)!important}.dark .theme-d1{color:var(--dark-theme-d1)!important;background-color:var(--dark-theme-d1-bg)!important}.dark .theme-c1{color:var(--dark-theme-c1)!important;background-color:var(--dark-theme-c1-bg)!important}.dark .theme-e1{color:var(--dark-theme-e1)!important;background-color:var(--dark-theme-e1-bg)!important}.dark .even .theme-l2{color:var(--dark-theme-l1)!important;background-color:var(--dark-theme-l1-bg)!important}.dark .theme-lighter-c1-bg{background-color:var(--dark-theme-lighter-c1-bg)!important}.dark .theme-l1.theme-hover:hover{color:var(--dark-theme-l1-hover)!important;background-color:var(--dark-theme-l1-hover-bg)!important}.dark .theme-l2.theme-hover:hover{color:var(--dark-theme-l2-hover)!important;background-color:var(--dark-theme-l2-hover-bg)!important}.dark .theme-text-l1-light{color:var(--dark-theme-text-l1-light)!important}.dark .theme-text-d1{color:var(--dark-theme-text-d1)!important}.dark .theme-text-c1{color:var(--dark-theme-text-c1)!important}.dark .border-theme{border-color:var(--dark-border-theme)!important}.dark a:hover{color:var(--dark-theme-text-d1)}.dark .theme-c1 a:hover,.dark .theme-d1 a:hover{color:var(--dark-theme-d1)}.dark .breadcrumb ul li a{color:var(--dark-theme-text-d1)!important}.dark .breadcrumb ul li{color:var(--dark-theme-text-l1-light)}.dark .breadcrumb ul li+li:before{color:var(--dark-divider-theme)}.dark .w3-bordered tr,.dark .w3-table-all tr{border-bottom:1px solid var(--dark-border-theme)}.dark .w3-striped tbody tr:nth-child(2n),.dark .w3-table-all tr:nth-child(2n){background-color:var(--dark-theme-l2-even-bg);color:var(--dark-theme-l2-even)}.dark .w3-striped tbody tr:nth-child(odd),.dark .w3-table-all tr:nth-child(odd){background-color:var(--dark-theme-l1-bg);color:var(--dark-theme-l1)}.dark .w3-ul li{border-bottom:1px solid var(--dark-border-theme)}.dark .w3-ul li:last-child{border-bottom:none}.dark .w3-card-4{box-shadow:none}a:hover{opacity:.6}body{margin-bottom:2em}.inner-addon{position:relative}.inner-addon .material-icons{position:absolute;padding:10px}.left-addon .material-icons{left:0}.right-addon .material-icons{right:0}.left-addon input{padding-left:30px}.right-addon input{padding-right:30px}.breadcrumb ul{list-style:none;padding:0;margin:0}.breadcrumb ul li{display:inline}.breadcrumb ul li+li:before{padding:8px;content:"/\A0"}.breadcrumb ul li a{text-decoration:none;cursor:pointer}h2.logo{display:block;margin-left:auto;margin-right:auto;margin-top:5px;margin-bottom:10px;height:200px;width:200px;text-indent:-99999em;overflow:hidden;background-size:contain!important}.dark h2.logo{background:url(/assets/logodark.png) 0 0 no-repeat}.light h2.logo{background:url(/assets/logolight.png) 0 0 no-repeat}.menucontainer+#page{margin-left:220px}#menu.w3-sidebar{width:220px;padding-bottom:10px}#menu .w3-cell{display:inline-block;width:100%;text-align:left}#menucontent.hide{display:block}#menu .menu-header,#menubtn{display:none}#menu .menu-items{margin-top:20px}.device-medium-show,.device-small-show,.device-tiny-show{display:none}body.dark ::-webkit-scrollbar{width:auto}body.dark *{scrollbar-width:auto;scrollbar-color:var(--dark-theme-l2-bg) var(--dark-theme-bg)}body.dark ::-webkit-scrollbar-track{background:var(--dark-theme-bg)}body.dark ::-webkit-scrollbar-thumb{background-color:var(--dark-theme-l2-bg);border-radius:10px;border:3px solid var(--dark-theme-bg)}@media screen and (min-width:601px){.topmenu.dark h2.logo{background:url(/assets/logodark_small.png) 0 0 no-repeat}.topmenu.light h2.logo{background:url(/assets/logolight_small.png) 0 0 no-repeat}.topmenu.dark #menu h2.logo,.topmenu.light #menu h2.logo{height:46px;width:46px;margin-top:3px;margin-left:14px;margin-right:0;margin-bottom:-7px}.topmenu .menucontainer+#page{margin-left:0}.topmenu #menu.w3-sidebar{position:relative!important;width:auto}.topmenu #menucontent{display:block!important;position:absolute;right:0;top:0;width:100%;padding-left:75px}.topmenu #menucontent .menu-items{width:auto;display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;margin-top:7px}.topmenu #menubtn{display:none!important}.topmenu #menu .w3-cell{display:table-cell;width:auto;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}@media screen and (max-width:767px){.dark h2.logo{background:url(/assets/logodark_small.png) 0 0 no-repeat}.light h2.logo{background:url(/assets/logolight_small.png) 0 0 no-repeat}.dark #menu h2.logo,.light #menu h2.logo{height:46px;width:46px;margin-top:3px;margin-left:14px;margin-right:0;margin-bottom:-7px}.menucontainer+#page{margin-left:0}#menu.w3-sidebar{position:relative!important;width:auto}#menu .w3-cell{display:table-cell;width:auto;text-align:center}#menubtn{display:block}#menucontent.hide,.device-medium-hide{display:none}.device-medium-show{display:unset}}@media screen and (max-width:600px){#menu .w3-cell{display:block}#menucontent.hide,.device-medium-hide,.device-small-hide{display:none}.device-medium-show,.device-small-show{display:unset}}@media screen and (max-width:400px){.device-medium-hide,.device-small-hide,.device-tiny-hide{display:none}.device-medium-show,.device-small-show,.device-tiny-show{display:unset}} \ No newline at end of file diff --git a/ArkBot/WebApp/dist/styles.dd9c2abfa63318e82a56.bundle.css b/ArkBot/WebApp/dist/styles.dd9c2abfa63318e82a56.bundle.css deleted file mode 100644 index 67a81b2..0000000 --- a/ArkBot/WebApp/dist/styles.dd9c2abfa63318e82a56.bundle.css +++ /dev/null @@ -1 +0,0 @@ -.light .theme-l1{color:#000!important;background-color:#fff!important}.light .theme-l2{color:#000!important;background-color:#f1f1f1!important}.light .theme-d1{color:#fff!important;background-color:#2196f3!important}.light .theme-c1{color:#fff!important;background-color:#4caf50!important}.light .theme-e1{color:#fff!important;background-color:#f44336!important}.light .odd .theme-l2{color:#000!important;background-color:#f5f5f5!important}.light .theme-l1.theme-hover:hover,.light .theme-l2.theme-hover:hover{color:#000!important;background-color:#ccc!important}.light .theme-text-l1-light{color:#a9a9a9!important}.light .theme-text-d1{color:#2196f3!important}.light .theme-text-c1{color:#4caf50!important}.light .border-theme{border-color:#ddd!important}body.dark{color:#fff}.dark .theme-l1,body.dark{background-color:#141519!important}.dark .theme-l1,.dark .theme-l2{color:#fff!important}.dark .theme-l2{background-color:#2a2c36!important}.dark .theme-c1,.dark .theme-d1{color:#fff!important;background-color:#114f7f!important}.dark .theme-e1{color:#fff!important;background-color:#f44336!important}.dark .theme-l1.theme-hover:hover,.dark .theme-l2.theme-hover:hover{color:#fff!important;background-color:#ccc!important}.dark .theme-text-l1-light{color:#a9a9a9!important}.dark .theme-text-d1{color:#fff!important}.dark .theme-text-c1{color:#114f7f!important}.dark .border-theme{border-color:#2b2d33!important}.dark .w3-bordered tr,.dark .w3-table-all tr{border-bottom:1px solid #2b2d33}.dark .w3-striped tbody tr:nth-child(2n){background-color:#22232b;color:#fff}.dark .w3-table-all tr:nth-child(odd){background-color:#141519;color:#fff}.dark .w3-table-all tr:nth-child(2n){background-color:#22232b;color:#fff}.dark .w3-ul li{border-bottom:1px solid #2b2d33}.dark .w3-ul li:last-child{border-bottom:none}.dark .w3-card-4{box-shadow:none}.dark .breadcrumb ul li a{color:#fff!important}.app-hover-green-light:hover,.dark .app-green-light{background-color:#58a6dd!important}.app-green-light,.app-hover-green-light:hover{background-color:#ceedce!important}.light .theme-c1 a:hover,.light .theme-d1 a:hover{color:#fff}.light a:hover{color:#2196f3}a:hover{opacity:.6}body{margin-bottom:2em}.inner-addon{position:relative}.inner-addon .material-icons{position:absolute;padding:10px}.left-addon .material-icons{left:0}.right-addon .material-icons{right:0}.left-addon input{padding-left:30px}.right-addon input{padding-right:30px}.navigation a:not(.w3-green){background-color:#ceedce!important}.breadcrumb ul{list-style:none;padding:0;margin:0}.breadcrumb ul li{display:inline;color:#a9a9a9}.breadcrumb ul li+li:before{padding:8px;color:silver;content:"/\A0"}.breadcrumb ul li a{text-decoration:none;cursor:pointer;color:#2196f3}h2.logo{display:block;margin-left:auto;margin-right:auto;margin-top:5px;margin-bottom:10px;height:200px;width:200px;text-indent:-99999em;overflow:hidden;background-size:contain!important}.dark h2.logo{background:url(/assets/logodark.png) 0 0 no-repeat}.light h2.logo{background:url(/assets/logolight.png) 0 0 no-repeat}.menucontainer+#page{margin-left:220px}#menu.w3-sidebar{width:220px;padding-bottom:10px}#menu .w3-cell{display:inline-block;width:100%;text-align:left}#menucontent.hide{display:block}#menu .menu-header,#menubtn{display:none}#menu .menu-items{margin-top:20px}.device-medium-show,.device-small-show,.device-tiny-show{display:none}body.dark *{--scrollbarBG:#141519;--thumbBG:#2a2c36}body.dark ::-webkit-scrollbar{width:auto}body.dark *{scrollbar-width:auto;scrollbar-color:var(--thumbBG) var(--scrollbarBG)}body.dark ::-webkit-scrollbar-track{background:var(--scrollbarBG)}body.dark ::-webkit-scrollbar-thumb{background-color:var(--thumbBG);border-radius:10px;border:3px solid var(--scrollbarBG)}@media screen and (min-width:601px){.topmenu.dark h2.logo{background:url(/assets/logodark_small.png) 0 0 no-repeat}.topmenu.light h2.logo{background:url(/assets/logolight_small.png) 0 0 no-repeat}.topmenu.dark #menu h2.logo,.topmenu.light #menu h2.logo{height:46px;width:46px;margin-top:3px;margin-left:14px;margin-right:0;margin-bottom:-7px}.topmenu .menucontainer+#page{margin-left:0}.topmenu #menu.w3-sidebar{position:relative!important;width:auto}.topmenu #menucontent{display:block!important;position:absolute;right:0;top:0;width:100%;padding-left:75px}.topmenu #menucontent .menu-items{width:auto;display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;margin-top:7px}.topmenu #menubtn{display:none!important}.topmenu #menu .w3-cell{display:table-cell;width:auto;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}@media screen and (max-width:767px){.dark h2.logo{background:url(/assets/logodark_small.png) 0 0 no-repeat}.light h2.logo{background:url(/assets/logolight_small.png) 0 0 no-repeat}.dark #menu h2.logo,.light #menu h2.logo{height:46px;width:46px;margin-top:3px;margin-left:14px;margin-right:0;margin-bottom:-7px}.menucontainer+#page{margin-left:0}#menu.w3-sidebar{position:relative!important;width:auto}#menu .w3-cell{display:table-cell;width:auto;text-align:center}#menubtn{display:block}#menucontent.hide,.device-medium-hide{display:none}.device-medium-show{display:unset}}@media screen and (max-width:600px){#menu .w3-cell{display:block}#menucontent.hide,.device-medium-hide,.device-small-hide{display:none}.device-medium-show,.device-small-show{display:unset}}@media screen and (max-width:400px){.device-medium-hide,.device-small-hide,.device-tiny-hide{display:none}.device-medium-show,.device-small-show,.device-tiny-show{display:unset}} \ No newline at end of file diff --git a/ArkBot/WebApp/dist/vendor.f8d4a57af80469b13c5c.bundle.js b/ArkBot/WebApp/dist/vendor.f57cda56526e5fdd5036.bundle.js similarity index 100% rename from ArkBot/WebApp/dist/vendor.f8d4a57af80469b13c5c.bundle.js rename to ArkBot/WebApp/dist/vendor.f57cda56526e5fdd5036.bundle.js diff --git a/ArkBot/WebApp/src/app/app.component.html b/ArkBot/WebApp/src/app/app.component.html index 45320f5..ea635a6 100644 --- a/ArkBot/WebApp/src/app/app.component.html +++ b/ArkBot/WebApp/src/app/app.component.html @@ -22,4 +22,16 @@

Log In

- \ No newline at end of file + + + \ No newline at end of file diff --git a/ArkBot/WebApp/src/app/app.component.ts b/ArkBot/WebApp/src/app/app.component.ts index e54b43d..f415971 100644 --- a/ArkBot/WebApp/src/app/app.component.ts +++ b/ArkBot/WebApp/src/app/app.component.ts @@ -5,6 +5,7 @@ import { BreadcrumbService } from 'ng2-breadcrumb/ng2-breadcrumb'; import { MessageService } from './message.service'; import { DataService } from './data.service'; import { HttpService } from './http.service'; +import { HotkeysService } from './hotkeys.service'; import { environment } from '../environments/environment'; import { DOCUMENT } from '@angular/common'; @@ -23,10 +24,12 @@ export class AppComponent implements OnInit, OnDestroy { lastOnBottom: false }; public showLogin: boolean = false; + public showAdmin: boolean = false; public currentUrl: string = "/"; private serversUpdatedSubscription: any; private serversUpdatedBefore: boolean = false; private routerEventsSubscription: any; + private adminOptionsHotkeySubscription: any; private loading: boolean = true; constructor( @@ -34,6 +37,7 @@ export class AppComponent implements OnInit, OnDestroy { public messageService: MessageService, public dataService: DataService, private httpService: HttpService, + private hotkeysService: HotkeysService, private breadcrumbService: BreadcrumbService, private notificationsService: NotificationsService, private router: Router) { @@ -50,6 +54,13 @@ export class AppComponent implements OnInit, OnDestroy { script_configjs.parentNode.replaceChild(s, script_configjs); } + if (typeof config !== 'undefined' && config.webapp !== 'undefined' && config.webapp.useCustomCssFile === true) { + const l = this.doc.createElement('link'); + l.rel = 'stylesheet'; + l.href = '/custom.css'; + this.doc.getElementsByTagName("head")[0].appendChild(l); + } + breadcrumbService.addFriendlyNameForRoute('/accessdenied', 'Access Denied'); breadcrumbService.addFriendlyNameForRoute('/connectionerror', 'Connection error'); breadcrumbService.hideRoute('/player'); @@ -76,11 +87,16 @@ export class AppComponent implements OnInit, OnDestroy { } this.serversUpdatedBefore = true; }); + + this.adminOptionsHotkeySubscription = this.hotkeysService.add({ keys: 'control.shift.a' }).subscribe(() => { + if (this.dataService.hasFeatureAccess('pages', 'admin-server')) this.showAdmin = true; + }); } ngOnDestroy(): void { this.routerEventsSubscription.unsubscribe(); this.serversUpdatedSubscription.unsubscribe(); + this.adminOptionsHotkeySubscription.unsubscribe(); } navigationInterceptor(event: RouterEvent): void { @@ -126,6 +142,14 @@ export class AppComponent implements OnInit, OnDestroy { this.showLogin = false; } + openCustomTheme(event: any, customTheme: any): void { + event.stopPropagation(); + event.preventDefault(); + + this.showAdmin = false; + customTheme.show(); + } + getLoginUrl(): string { return !environment.demo ? this.httpService.getApiBaseUrl() + '/authentication/login' : ''; } diff --git a/ArkBot/WebApp/src/app/app.module.ts b/ArkBot/WebApp/src/app/app.module.ts index 66fe4a2..fa4c688 100644 --- a/ArkBot/WebApp/src/app/app.module.ts +++ b/ArkBot/WebApp/src/app/app.module.ts @@ -20,6 +20,7 @@ import { DemoHttpService } from './demo.http.service'; import { MessageService } from './message.service'; import { DataService } from './data.service'; import { DataServiceResolver } from './data-resolver.service'; +import { HotkeysService } from './hotkeys.service'; import { AccessControlRouteGuardService } from './access-control-route-guard.service'; import { SanitizeStylePipe } from './sanitize-style.pipe'; import { SanitizeHtmlPipe } from './sanitize-html.pipe'; @@ -35,6 +36,7 @@ import { ConfirmButtonComponent } from './confirm-button/confirm-button.componen import { AccessDeniedComponent } from './access-denied/access-denied.component'; import { ConnectionErrorComponent } from './connection-error/connection-error.component'; import { DeveloperComponent } from './developer/developer.component'; +import { CustomThemeComponent } from './custom-theme/custom-theme.component'; import { DataTableModule } from './data-table/data-table.module'; import { environment } from '../environments/environment'; @@ -148,7 +150,8 @@ const appRoutes: Routes = [ ConfirmButtonComponent, AccessDeniedComponent, ConnectionErrorComponent, - DeveloperComponent + DeveloperComponent, + CustomThemeComponent ], imports: [ RouterModule.forRoot(appRoutes), @@ -165,6 +168,7 @@ const appRoutes: Routes = [ MessageService, DataService, DataServiceResolver, + HotkeysService, AccessControlRouteGuardService, { provide: LOCALE_ID, useValue: "en-US" }], bootstrap: [AppComponent] diff --git a/ArkBot/WebApp/src/app/custom-theme/custom-theme.component.css b/ArkBot/WebApp/src/app/custom-theme/custom-theme.component.css new file mode 100644 index 0000000..8dc79e0 --- /dev/null +++ b/ArkBot/WebApp/src/app/custom-theme/custom-theme.component.css @@ -0,0 +1,46 @@ +.customThemeContainer { + display: flex; + flex-wrap: wrap; + align-content: space-between; +} + +.customThemeItem { + width: 50%; + padding: 2px; + cursor: pointer; +} + +.customThemeColorPreview { + width: 28px; + height: 28px; + display: inline-block; + vertical-align: middle; + margin-right: 5px; + border: 2px solid black; + box-sizing: border-box; +} + +.customThemeColorPreview > div { + width: 24px; + height: 24px; + display: inline-block; + border: 2px solid white; + box-sizing: border-box; +} + +.customThemeColor { + height: 20px; + display: inline-block; + vertical-align: middle; + font-family: monospace; + padding: 1px 3px; + width: 55px; + border-radius: 8px; + margin-right: 10px; +} + +.customThemeName { + height: 20px; + display: inline-block; + vertical-align: middle; +} \ No newline at end of file diff --git a/ArkBot/WebApp/src/app/custom-theme/custom-theme.component.html b/ArkBot/WebApp/src/app/custom-theme/custom-theme.component.html new file mode 100644 index 0000000..456790f --- /dev/null +++ b/ArkBot/WebApp/src/app/custom-theme/custom-theme.component.html @@ -0,0 +1,24 @@ + \ No newline at end of file diff --git a/ArkBot/WebApp/src/app/custom-theme/custom-theme.component.ts b/ArkBot/WebApp/src/app/custom-theme/custom-theme.component.ts new file mode 100644 index 0000000..119dd91 --- /dev/null +++ b/ArkBot/WebApp/src/app/custom-theme/custom-theme.component.ts @@ -0,0 +1,136 @@ +import { Component, Inject, ViewChild } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { NotificationsService } from 'angular2-notifications'; +import { DOCUMENT } from '@angular/common'; +import { copyToClipboard } from '../utils' + +type CustomTheme = { + name: string; + title: string; + default: string; + value: string; +} + +type CustomThemeGroup = { + name: string; + key: string; + theme: Partial[]; +} + +@Component({ + selector: 'custom-theme', + templateUrl: './custom-theme.component.html', + styleUrls: ['./custom-theme.component.css'] +}) +export class CustomThemeComponent { + @ViewChild('colorPicker') colorPicker:any; + + private _show: boolean = false; + private _hoverHide: boolean = false; + private _isInitialized: boolean = false; + + public current: Partial; + public customTheme: Partial[] = []; + public customThemeGroups: CustomThemeGroup[] = [ + { key: 'dark', name: 'Dark Theme', theme: [] }, + { key: 'light', name: 'Light Theme', theme: [] } + ]; + public currentCustomThemeGroup: CustomThemeGroup = this.customThemeGroups[0]; + + constructor(@Inject(DOCUMENT) private doc: any, + private notificationsService: NotificationsService) {} + + private toHexColor(colorStr: string): string { + let a = this.doc.createElement('div'); + a.style.display = "none"; + a.style.color = colorStr; + let colors = window.getComputedStyle(this.doc.body.appendChild(a)).color.match(/\d+/g).map(function(a){ return parseInt(a, 10); }); + this.doc.body.removeChild(a); + + if (colors.length < 3) { + console.log(`Could not convert color '${colorStr}' to hex`); + return colorStr; + } + + return '#' + (((1 << 24) + (colors[0] << 16) + (colors[1] << 8) + colors[2]).toString(16).substr(1)); + } + + show(): void { + if (!this._isInitialized) this.init(); + + this._show = true; + } + + private init(): void { + this._isInitialized = true; + + let result = []; + for (let t of this.customThemeGroups) { + t.theme = [ + { name: `--${t.key}-theme-bg`, title: "Background" }, + { name: `--${t.key}-theme`, title: "Foreground" }, + { name: `--${t.key}-theme-l1-bg`, title: "Low Contrast #1 (background)" }, + { name: `--${t.key}-theme-l1`, title: "Low Contrast #1 (text)" }, + { name: `--${t.key}-theme-l2-bg`, title: "Low Contrast #2 (background)" }, + { name: `--${t.key}-theme-l2`, title: "Low Contrast #2 (text)" }, + { name: `--${t.key}-theme-text-d1`, title: "High Contrast (text)" }, + { name: `--${t.key}-theme-text-c1`, title: "Colored (text)" }, + { name: `--${t.key}-theme-d1-bg`, title: "High Contrast (background)" }, + { name: `--${t.key}-theme-d1`, title: "High Contrast (text)" }, + { name: `--${t.key}-theme-c1-bg`, title: "Colored (background)" }, + { name: `--${t.key}-theme-c1`, title: "Colored (text)" }, + { name: `--${t.key}-theme-e1-bg`, title: "Error (background)" }, + { name: `--${t.key}-theme-e1`, title: "Error (text)" }, + { name: `--${t.key}-theme-l2-even-bg`, title: "Low Contrast #2 (background) [even-rows]" }, + { name: `--${t.key}-theme-l2-even`, title: "Low Contrast #2 (text) [even-rows]" }, + { name: `--${t.key}-theme-l1-hover-bg`, title: "Low Contrast #1 (background) [hover]" }, + { name: `--${t.key}-theme-l1-hover`, title: "Low Contrast #1 (text) [hover]" }, + { name: `--${t.key}-theme-l2-hover-bg`, title: "Low Contrast #2 (background) [hover]" }, + { name: `--${t.key}-theme-l2-hover`, title: "Low Contrast #2 (text) [hover]" }, + { name: `--${t.key}-theme-lighter-c1-bg`, title: "High Contrast (background) [lighter]" }, + { name: `--${t.key}-theme-text-l1-light`, title: "Low Contrast #1 (text) [inactive]" }, + { name: `--${t.key}-border-theme`, title: "Border" }, + { name: `--${t.key}-divider-theme`, title: "Divider" }, + ]; + + result = result.concat(t.theme); + } + this.customTheme = result; + + let styles = getComputedStyle(this.doc.documentElement); + for (let ct of this.customTheme) ct.default = ct.value = this.toHexColor(styles.getPropertyValue(ct.name).toString().trim()); + + this.current = this.customTheme[0]; + } + + setCurrent(item: Partial): void { + this.current = item; + this.colorPicker.nativeElement.dispatchEvent(new MouseEvent('click')); + } + + update(val: any): void { + this.current.value = val; + + const root = this.doc.querySelector(':root') + root.style.setProperty(this.current.name, this.current.value) + } + + copyStyles(): void { + let str = ":root {\r\n"; + for (let ct of this.customTheme) { + if (ct.value !== ct.default) str += ` ${ct.name}: ${ct.value};\r\n`; + } + str += "}"; + + copyToClipboard(this.doc, str); + + this.notificationsService.info( + 'Create Custom Theme', + `Custom theme styles have been copied to the clipboard.`, + { + pauseOnHover: true, + clickToClose: true + } + ); + } +} \ No newline at end of file diff --git a/ArkBot/WebApp/src/app/hotkeys.service.ts b/ArkBot/WebApp/src/app/hotkeys.service.ts new file mode 100644 index 0000000..89d606a --- /dev/null +++ b/ArkBot/WebApp/src/app/hotkeys.service.ts @@ -0,0 +1,41 @@ +import { Injectable, Inject } from '@angular/core'; +import { EventManager } from '@angular/platform-browser'; +import { Observable } from 'rxjs/Observable'; +import { DOCUMENT } from "@angular/common"; + +type Options = { + element: any; + description: string | undefined; + keys: string; +} + +@Injectable() +export class HotkeysService { + private hotkeys = new Map(); + private defaults: Partial = { element: this.doc } + + constructor( + @Inject(DOCUMENT) private doc: Document, + private eventManager: EventManager) {} + + add(options: Partial): Observable { + const merged = { ...this.defaults, ...options }; + const event = `keydown.${merged.keys}`; + + merged.description && this.hotkeys.set(merged.keys, merged.description); + + return new Observable(observer => { + const handler = (e) => { + e.preventDefault() + observer.next(e); + }; + + const dispose = this.eventManager.addEventListener(merged.element, event, handler); + + return () => { + dispose(); + this.hotkeys.delete(merged.keys); + }; + }) + } +} \ No newline at end of file diff --git a/ArkBot/WebApp/src/app/player/player.component.html b/ArkBot/WebApp/src/app/player/player.component.html index dc5e296..a4cbe0a 100644 --- a/ArkBot/WebApp/src/app/player/player.component.html +++ b/ArkBot/WebApp/src/app/player/player.component.html @@ -114,7 +114,7 @@

Servers

{{creature.Level}} {{creature.Imprint | percent:'1.0-0'}} -
+
{{creature.FoodStatus | percent:'1.0-0'}}
 
@@ -127,7 +127,7 @@

Servers

Baby
-
+
{{creature.BabyAge | percent:'1.0-0'}}
 
@@ -180,14 +180,14 @@

Servers

- + {{creature.Name}} {{creature.Species}} {{creature.Gender}} {{creature.BaseLevel}} {{creature.Imprint | percent:'1.0-0'}} -
+
{{creature.BabyAge | percent:'1.0-0'}}
 
@@ -293,7 +293,7 @@

Clusters

{{(cp.PlantedCropName || cp.PlantedCropClassName)}} {{cp.Size}} -
+
{{(cp.FertilizerQuantity / cp.FertilizerMax) | percent:'1.0-0'}}
 
@@ -326,7 +326,7 @@

Clusters

-
+
{{(eg.GasolineQuantity / 800.0) | percent:'1.0-0'}}
 
diff --git a/ArkBot/WebApp/src/app/utils.ts b/ArkBot/WebApp/src/app/utils.ts index 872a95b..9e238ee 100644 --- a/ArkBot/WebApp/src/app/utils.ts +++ b/ArkBot/WebApp/src/app/utils.ts @@ -37,4 +37,17 @@ export function nullCompare(v1: any, v2: any, asc: boolean): number { // ---------------------------------------------------- // Assorted functions -// ---------------------------------------------------- \ No newline at end of file +// ---------------------------------------------------- +export function copyToClipboard(doc: any, str: string): void { + const copy = doc.createElement('textarea'); + copy.style.position = 'fixed'; + copy.style.left = '0'; + copy.style.top = '0'; + copy.style.opacity = '0'; + copy.value = str; + doc.body.appendChild(copy); + copy.focus(); + copy.select(); + doc.execCommand('copy'); + doc.body.removeChild(copy); +} \ No newline at end of file diff --git a/ArkBot/WebApp/src/styles.css b/ArkBot/WebApp/src/styles.css index 40fe081..d11dadd 100644 --- a/ArkBot/WebApp/src/styles.css +++ b/ArkBot/WebApp/src/styles.css @@ -1,60 +1,115 @@ -.light .theme-l1 {color:#000 !important; background-color:#fff !important} -.light .theme-l2 {color:#000 !important; background-color:#f1f1f1 !important} -.light .theme-d1 {color:#fff !important; background-color:#2196F3 !important} -.light .theme-c1 {color:#fff !important; background-color:#4CAF50 !important} -.light .theme-e1 {color:#fff !important; background-color:#f44336 !important} -.light .odd .theme-l2 {color:#000 !important; background-color:#f5f5f5 !important} - -.light .theme-l1.theme-hover:hover {color:#000 !important; background-color:#ccc !important} -.light .theme-l2.theme-hover:hover {color:#000 !important; background-color:#ccc !important} - -.light .theme-text-l1-light {color:darkgray !important} -.light .theme-text-d1 {color:#2196F3 !important} -.light .theme-text-c1 {color:#4CAF50 !important} - -.light .border-theme {border-color:#ddd !important} - - -body.dark { background-color: #141519 !important; color: #fff; } - -/*.dark .w3-btn:hover, .dark .w3-button:hover {box-shadow:none; background-opacity: #3F4251 !important;}*/ - -.dark .theme-l1 {color:#fff !important; background-color:#141519 !important} -.dark .theme-l2 {color:#fff !important; background-color:#2A2C36 !important} -.dark .theme-d1 {color:#fff !important; background-color:#114F7F !important} -.dark .theme-c1 {color:#fff !important; background-color:#114F7F !important} -.dark .theme-e1 {color:#fff !important; background-color:#f44336 !important} - -.dark .theme-l1.theme-hover:hover {color:#fff !important; background-color:#ccc !important} -.dark .theme-l2.theme-hover:hover {color:#fff !important; background-color:#ccc !important} - -.dark .theme-text-l1-light {color:darkgray !important} -.dark .theme-text-d1 {color:#fff !important} -.dark .theme-text-c1 {color:#114F7F !important} - -.dark .border-theme {border-color:#2B2D33 !important} +:root { + --light-theme-bg: #fff; + --light-theme: #000; + + --light-theme-l1-bg: #fff; + --light-theme-l1: #000; + --light-theme-l2-bg: #f1f1f1; + --light-theme-l2: #000; + --light-theme-d1-bg: #2196F3; + --light-theme-d1: #fff; + --light-theme-c1-bg: #4CAF50; + --light-theme-c1: #fff; + --light-theme-e1-bg: #f44336; + --light-theme-e1: #fff; + + --light-theme-l2-even-bg: #f5f5f5; + --light-theme-l2-even: #000; + --light-theme-lighter-c1-bg: #CEEDCE; + --light-theme-l1-hover-bg: #ccc; + --light-theme-l1-hover: #000; + --light-theme-l2-hover-bg: #ccc; + --light-theme-l2-hover: #000; + + --light-theme-text-l1-light: darkgray; + --light-theme-text-d1: #2196F3; + --light-theme-text-c1: #4CAF50; + + --light-border-theme: #ddd; + --light-divider-theme: silver; + + + --dark-theme-bg: #141519; + --dark-theme: #fff; + + --dark-theme-l1-bg: #141519; + --dark-theme-l1: #fff; + --dark-theme-l2-bg: #2A2C36; + --dark-theme-l2: #fff; + --dark-theme-d1-bg: #114F7F; + --dark-theme-d1: #fff; + --dark-theme-c1-bg: #114F7F; + --dark-theme-c1: #fff; + --dark-theme-e1-bg: #f44336; + --dark-theme-e1: #fff; + + --dark-theme-l2-even-bg: #22232B; + --dark-theme-l2-even: #fff; + --dark-theme-lighter-c1-bg: #58A6DD; + --dark-theme-l1-hover-bg: #ccc; + --dark-theme-l1-hover: #fff; + --dark-theme-l2-hover-bg: #ccc; + --dark-theme-l2-hover: #fff; + + --dark-theme-text-l1-light: darkgray; + --dark-theme-text-d1: #fff; + --dark-theme-text-c1: #114F7F; + + --dark-border-theme: #2B2D33; + --dark-divider-theme: silver; +} -.dark .w3-bordered tr,.dark .w3-table-all tr{border-bottom:1px solid #2B2D33} -.dark .w3-striped tbody tr:nth-child(even){background-color:#22232B; color: #fff} -.dark .w3-table-all tr:nth-child(odd){background-color:#141519; color: #fff} -.dark .w3-table-all tr:nth-child(even){background-color:#22232B; color: #fff} +body.light { background-color: var(--light-theme-bg) !important; color: var(--light-theme); } +.light .theme-l1 {color:var(--light-theme-l1) !important; background-color:var(--light-theme-l1-bg) !important} +.light .theme-l2 {color:var(--light-theme-l2) !important; background-color:var(--light-theme-l2-bg) !important} +.light .theme-d1 {color:var(--light-theme-d1) !important; background-color:var(--light-theme-d1-bg) !important} +.light .theme-c1 {color:var(--light-theme-c1) !important; background-color:var(--light-theme-c1-bg) !important} +.light .theme-e1 {color:var(--light-theme-e1) !important; background-color:var(--light-theme-e1-bg) !important} +.light .even .theme-l2 {color:var(--light-theme-l1) !important; background-color:var(--light-theme-l1-bg) !important} +.light .theme-lighter-c1-bg {background-color:var(--light-theme-lighter-c1-bg) !important} +.light .theme-l1.theme-hover:hover {color:var(--light-theme-l1-hover) !important; background-color:var(--light-theme-l1-hover-bg) !important} +.light .theme-l2.theme-hover:hover {color:var(--light-theme-l2-hover) !important; background-color:var(--light-theme-l2-hover-bg) !important} +.light .theme-text-l1-light {color:var(--light-theme-text-l1-light) !important} +.light .theme-text-d1 {color:var(--light-theme-text-d1) !important} +.light .theme-text-c1 {color:var(--light-theme-text-c1) !important} +.light .border-theme {border-color:var(--light-border-theme) !important} +.light a:hover { color:var(--light-theme-text-d1); } +.light .theme-d1 a:hover, .light .theme-c1 a:hover { color:var(--light-theme-d1); } +.light .breadcrumb ul li a { color: var(--light-theme-text-d1) !important} +.light .breadcrumb ul li { color: var(--light-theme-text-l1-light); } +.light .breadcrumb ul li+li:before { color: var(--light-divider-theme); } +.light .w3-bordered tr, .light .w3-table-all tr { border-bottom:1px solid var(--light-border-theme); } +.light .w3-striped tbody tr:nth-child(even), .light .w3-table-all tr:nth-child(even) { background-color:var(--light-theme-l2-even-bg); color: var(--light-theme-l2-even); } +.light .w3-striped tbody tr:nth-child(odd), .light .w3-table-all tr:nth-child(odd) { background-color:var(--light-theme-l1-bg); color: var(--light-theme-l1); } +.light .w3-ul li {border-bottom:1px solid var(--light-border-theme)} + +body.dark { background-color: var(--dark-theme-bg) !important; color: var(--dark-theme); } +.dark .theme-l1 {color:var(--dark-theme-l1) !important; background-color:var(--dark-theme-l1-bg) !important} +.dark .theme-l2 {color:var(--dark-theme-l2) !important; background-color:var(--dark-theme-l2-bg) !important} +.dark .theme-d1 {color:var(--dark-theme-d1) !important; background-color:var(--dark-theme-d1-bg) !important} +.dark .theme-c1 {color:var(--dark-theme-c1) !important; background-color:var(--dark-theme-c1-bg) !important} +.dark .theme-e1 {color:var(--dark-theme-e1) !important; background-color:var(--dark-theme-e1-bg) !important} +.dark .even .theme-l2 {color:var(--dark-theme-l1) !important; background-color:var(--dark-theme-l1-bg) !important} +.dark .theme-lighter-c1-bg {background-color:var(--dark-theme-lighter-c1-bg) !important} +.dark .theme-l1.theme-hover:hover {color:var(--dark-theme-l1-hover) !important; background-color:var(--dark-theme-l1-hover-bg) !important} +.dark .theme-l2.theme-hover:hover {color:var(--dark-theme-l2-hover) !important; background-color:var(--dark-theme-l2-hover-bg) !important} +.dark .theme-text-l1-light {color:var(--dark-theme-text-l1-light) !important} +.dark .theme-text-d1 {color:var(--dark-theme-text-d1) !important} +.dark .theme-text-c1 {color:var(--dark-theme-text-c1) !important} +.dark .border-theme {border-color:var(--dark-border-theme) !important} +.dark a:hover { color:var(--dark-theme-text-d1); } +.dark .theme-d1 a:hover, .dark .theme-c1 a:hover { color:var(--dark-theme-d1); } +.dark .breadcrumb ul li a { color: var(--dark-theme-text-d1) !important} +.dark .breadcrumb ul li { color: var(--dark-theme-text-l1-light); } +.dark .breadcrumb ul li+li:before { color: var(--dark-divider-theme); } +.dark .w3-bordered tr, .dark .w3-table-all tr { border-bottom:1px solid var(--dark-border-theme); } +.dark .w3-striped tbody tr:nth-child(even), .dark .w3-table-all tr:nth-child(even) { background-color:var(--dark-theme-l2-even-bg); color: var(--dark-theme-l2-even); } +.dark .w3-striped tbody tr:nth-child(odd), .dark .w3-table-all tr:nth-child(odd) { background-color:var(--dark-theme-l1-bg); color: var(--dark-theme-l1); } +.dark .w3-ul li {border-bottom:1px solid var(--dark-border-theme)} -.dark .w3-ul li{border-bottom:1px solid #2B2D33} .dark .w3-ul li:last-child{border-bottom: none;} - .dark .w3-card-4 {box-shadow:none;} -.dark .breadcrumb ul li a { color: #fff !important} -/*.w3-card,.w3-card-2{box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12)} -.w3-card-4,.w3-hover-shadow:hover{box-shadow:0 4px 10px 0 rgba(0,0,0,0.2),0 4px 20px 0 rgba(0,0,0,0.19)}*/ - -.dark .app-green-light,.app-hover-green-light:hover{background-color:#58A6DD!important} - -/* You can add global styles to this file, and also import other style files */ -.app-green-light,.app-hover-green-light:hover{background-color:#CEEDCE!important} - -.light .theme-d1 a:hover, .light .theme-c1 a:hover { color:#fff; } -.light a:hover { color:#2196F3; } a:hover { opacity: 0.60; } body { margin-bottom: 2em;} @@ -77,10 +132,6 @@ body { margin-bottom: 2em;} .left-addon input { padding-left: 30px; } .right-addon input { padding-right: 30px; } -.navigation a:not(.w3-green) { - background-color:#CEEDCE!important -} - /* Style the list */ .breadcrumb ul { list-style: none; @@ -91,13 +142,11 @@ body { margin-bottom: 2em;} /* Display list items side by side */ .breadcrumb ul li { display: inline; - color: darkgray; } /* Add a slash symbol (/) before/behind each list item */ .breadcrumb ul li+li:before { padding: 8px; - color: silver; content: "/\00a0"; } @@ -105,7 +154,6 @@ body { margin-bottom: 2em;} .breadcrumb ul li a { text-decoration: none; cursor: pointer; - color: #2196f3; } h2.logo { @@ -136,20 +184,16 @@ h2.logo { .device-tiny-show, .device-small-show, .device-medium-show { display: none; } -body.dark * { - --scrollbarBG: #141519; - --thumbBG: #2A2C36; -} body.dark *::-webkit-scrollbar { width: auto; } body.dark * { scrollbar-width: auto; - scrollbar-color: var(--thumbBG) var(--scrollbarBG); + scrollbar-color: var(--dark-theme-l2-bg) var(--dark-theme-bg); } -body.dark *::-webkit-scrollbar-track { background: var(--scrollbarBG); } +body.dark *::-webkit-scrollbar-track { background: var(--dark-theme-bg); } body.dark *::-webkit-scrollbar-thumb { - background-color: var(--thumbBG) ; + background-color: var(--dark-theme-l2-bg) ; border-radius: 10px; - border: 3px solid var(--scrollbarBG); + border: 3px solid var(--dark-theme-bg); } @media screen and (min-width: 601px) { diff --git a/ArkBot/defaultconfig.json b/ArkBot/defaultconfig.json index 04b757d..798510f 100644 --- a/ArkBot/defaultconfig.json +++ b/ArkBot/defaultconfig.json @@ -8,7 +8,8 @@ "defaultTheme": "Dark", "topMenu": false, "tribeLogLimit": 100, - "tribeLogColors": false + "tribeLogColors": false, + "customCssFilePath": null }, "discord": { "discordBotEnabled": true, From ba67ce16b903b06350508bc19582c0c8c81a1c40 Mon Sep 17 00:00:00 2001 From: mxtsdev Date: Mon, 13 Jan 2020 12:03:14 +0100 Subject: [PATCH 4/7] Bugfixes - Tribe log did not change when switching active server. - Problem with setting discord->enabledChannels and ssl->ports from the application configuration editor. Changes - Hid the fertilized eggs view from the admin page until it is verified to be working. - Added more user friendly config.js validation error reporting when starting the application. --- .../Model/DiscordConfigSection.cs | 2 +- .../Configuration/Model/SslConfigSection.cs | 2 +- ArkBot/Controls/About.xaml.cs | 7 ++++- ArkBot/Discord/ArkDiscordBot.cs | 2 +- ArkBot/Helpers/ValidationHelper.cs | 12 +++++--- ArkBot/Resources/about.html | 30 +++++++++++++++++++ ArkBot/ViewModel/AboutViewModel.cs | 4 +++ ArkBot/ViewModel/Workspace.cs | 17 +++++++---- ArkBot/WebApp/dist/index.html | 2 +- .../inline.1ccc4762072d68a34d50.bundle.js | 1 - .../inline.9e5f573f17601dcc9e1a.bundle.js | 1 + .../dist/main.2915f341c3f7c98f54f6.bundle.js | 1 - .../dist/main.5c285ad7e37cab7baf69.bundle.js | 1 + ... => vendor.f8d4a57af80469b13c5c.bundle.js} | 0 .../admin-server-menu.component.html | 2 +- .../admin-server/admin-server.component.html | 2 +- ArkBot/WebApp/src/app/app.component.html | 2 +- .../app/data-table/data-table.component.ts | 12 ++++++-- 18 files changed, 78 insertions(+), 22 deletions(-) delete mode 100644 ArkBot/WebApp/dist/inline.1ccc4762072d68a34d50.bundle.js create mode 100644 ArkBot/WebApp/dist/inline.9e5f573f17601dcc9e1a.bundle.js delete mode 100644 ArkBot/WebApp/dist/main.2915f341c3f7c98f54f6.bundle.js create mode 100644 ArkBot/WebApp/dist/main.5c285ad7e37cab7baf69.bundle.js rename ArkBot/WebApp/dist/{vendor.f57cda56526e5fdd5036.bundle.js => vendor.f8d4a57af80469b13c5c.bundle.js} (100%) diff --git a/ArkBot/Configuration/Model/DiscordConfigSection.cs b/ArkBot/Configuration/Model/DiscordConfigSection.cs index f70ed74..42c2d30 100644 --- a/ArkBot/Configuration/Model/DiscordConfigSection.cs +++ b/ArkBot/Configuration/Model/DiscordConfigSection.cs @@ -38,7 +38,7 @@ public DiscordConfigSection() [JsonProperty(PropertyName = "enabledChannels")] [Display(Name = "Enabled Channels", Description = "A list of channels where the bot will listen to and answer commands")] - public string[] EnabledChannels { get; set; } + public List EnabledChannels { get; set; } [JsonProperty(PropertyName = "infoTopicChannel")] [Display(Name = "Info Topic Channel", Description = "Channel where topic is set to display information about last update, next update and how to use bot commands")] diff --git a/ArkBot/Configuration/Model/SslConfigSection.cs b/ArkBot/Configuration/Model/SslConfigSection.cs index 1478142..f610066 100644 --- a/ArkBot/Configuration/Model/SslConfigSection.cs +++ b/ArkBot/Configuration/Model/SslConfigSection.cs @@ -55,7 +55,7 @@ public SslConfigSection() [JsonProperty(PropertyName = "ports")] [Display(Name = "Ports", Description = "Ports to bind the ssl certificate to")] - public int[] Ports { get; set; } + public List Ports { get; set; } [JsonProperty(PropertyName = "useCompatibilityNonSNIBindings")] [Display(Name = "Use Compatibility non-SNI Bindings", Description = "Use non SNI SSL bindings for previous Windows OS (before Windows 8/2012)")] diff --git a/ArkBot/Controls/About.xaml.cs b/ArkBot/Controls/About.xaml.cs index e46f5dd..c83331b 100644 --- a/ArkBot/Controls/About.xaml.cs +++ b/ArkBot/Controls/About.xaml.cs @@ -76,7 +76,12 @@ private async void AboutBrowser_IsBrowserInitializedChanged(object sender, Depen if ((bool) e.NewValue) { // Note: For these to work, make sure Address is not set in Browser Control - string html = await Model.RunCompileTemplate(new AboutViewModel.AboutTemplateViewModel { hasConfig = Model.HasValidConfig }); + string html = await Model.RunCompileTemplate(new AboutViewModel.AboutTemplateViewModel + { + hasConfig = Model.HasValidConfig, + validationError = Model.ValidationError, + configError = Model.ConfigError + }); AboutBrowser.LoadHtml(html, "http://tmp/"); } } diff --git a/ArkBot/Discord/ArkDiscordBot.cs b/ArkBot/Discord/ArkDiscordBot.cs index 560f126..72743a7 100644 --- a/ArkBot/Discord/ArkDiscordBot.cs +++ b/ArkBot/Discord/ArkDiscordBot.cs @@ -131,7 +131,7 @@ private async Task HandleCommandAsync(SocketMessage messageParam) //check if command is allowed in this channel if(!(context.Channel is ISocketPrivateChannel) - && _config.Discord.EnabledChannels?.Length > 0 + && _config.Discord.EnabledChannels?.Count > 0 && !_config.Discord.EnabledChannels.Contains(context.Channel.Name, StringComparer.OrdinalIgnoreCase)) { return; diff --git a/ArkBot/Helpers/ValidationHelper.cs b/ArkBot/Helpers/ValidationHelper.cs index f14f64e..74e516b 100644 --- a/ArkBot/Helpers/ValidationHelper.cs +++ b/ArkBot/Helpers/ValidationHelper.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.ComponentModel; +using System.ComponentModel.DataAnnotations; using System.Linq; using System.Linq.Expressions; using System.Reflection; @@ -13,13 +14,16 @@ public static class ValidationHelper { public static string GetDescriptionForMember(T obj, string memberName, BindingFlags flags = BindingFlags.Public | BindingFlags.Instance) { - var member = obj.GetType().GetMember(memberName, flags)?.FirstOrDefault(); + var member = (obj != null ? obj.GetType() : typeof(T)).GetMember(memberName, flags)?.FirstOrDefault(); if (member == null) return null; var attr = member.GetCustomAttribute(false); - if (attr == null) return null; - - return attr.Description; + if (attr != null) return attr.Description; + + var attr2 = member.GetCustomAttribute(false); + if (attr2 != null) return attr2.Description; + + return null; } } } diff --git a/ArkBot/Resources/about.html b/ArkBot/Resources/about.html index 9d8f711..01b8077 100644 --- a/ArkBot/Resources/about.html +++ b/ArkBot/Resources/about.html @@ -14,6 +14,7 @@ h1 { font-size: 30px; color: green; margin: 7px 0px; } h2, h3, h4 { color: green; margin: 15px 0px 7px 0px } h1.name { margin-top: 0px; } + .validation h3.title { color:#a94442 } .btn { padding: 5px 10px; display: inline-block; @@ -32,9 +33,38 @@ background-color: #e1e4e8; border: 0 } + .validation { + color: #a94442; + background-color: #f2dede; + padding: 15px; + border: 1px solid #ebccd1; + border-radius: 5px; + margin-bottom: 24px; + } + .validation .error { font-weight: bold; } + .btn.btn-error { + background-color: #a94442; + } + @if (!string.IsNullOrEmpty(Model.validationError)) + { +
+

Config Validation Error

+
@Raw(Model.validationError)
+

Please validate your config if you are not able to find the error. The most common problem is incorrect escaping of quotes (").

+

Validate JSON Online

+
+ } + @if (!string.IsNullOrEmpty(Model.configError)) + { +
+

Config Error

+

@Raw(Model.configError)

+
+ } + @if(Model.hasConfig != true) {

Welcome to ARK Bot!

diff --git a/ArkBot/ViewModel/AboutViewModel.cs b/ArkBot/ViewModel/AboutViewModel.cs index afe5afc..3968ca3 100644 --- a/ArkBot/ViewModel/AboutViewModel.cs +++ b/ArkBot/ViewModel/AboutViewModel.cs @@ -26,9 +26,13 @@ public sealed class AboutViewModel : TabViewModel, IDisposable public class AboutTemplateViewModel { public bool hasConfig { get; set; } + public string validationError { get; set; } + public string configError { get; set; } } public bool HasValidConfig { get; set; } + public string ValidationError { get; set; } + public string ConfigError { get; set; } private Lazy _razorEngineService = new Lazy(() => { diff --git a/ArkBot/ViewModel/Workspace.cs b/ArkBot/ViewModel/Workspace.cs index c75fbca..a0d8036 100644 --- a/ArkBot/ViewModel/Workspace.cs +++ b/ArkBot/ViewModel/Workspace.cs @@ -273,18 +273,23 @@ internal async Task Init() } _config = null; - string exceptionMessage = null; + string validationMessage = null; + string errorMessage = null; if (File.Exists(Constants.ConfigFilePath)) { try { _config = JsonConvert.DeserializeObject(File.ReadAllText(Constants.ConfigFilePath)); - if (_config.Discord == null) _config.Discord = new DiscordConfigSection(); - _config.SetupDefaults(); + if (_config != null) + { + if (_config.Discord == null) _config.Discord = new DiscordConfigSection(); + _config.SetupDefaults(); + } + else errorMessage = "Config.json is empty. Please delete it and restart the application."; } catch (Exception ex) { - exceptionMessage = ex.Message; + validationMessage = ex.Message; } } var hasValidConfig = _config != null; @@ -307,11 +312,13 @@ internal async Task Init() WriteAndWaitForKey( $@"The file config.json is empty or contains errors. Skipping automatic startup...", - exceptionMessage); + validationMessage); } Configuration.Config = _config as Config; About.HasValidConfig = hasValidConfig; + About.ValidationError = validationMessage; + About.ConfigError = errorMessage; if (!hasValidConfig) { diff --git a/ArkBot/WebApp/dist/index.html b/ArkBot/WebApp/dist/index.html index 84e8e81..8297243 100644 --- a/ArkBot/WebApp/dist/index.html +++ b/ArkBot/WebApp/dist/index.html @@ -19,5 +19,5 @@

Loading...

- + diff --git a/ArkBot/WebApp/dist/inline.1ccc4762072d68a34d50.bundle.js b/ArkBot/WebApp/dist/inline.1ccc4762072d68a34d50.bundle.js deleted file mode 100644 index 2441428..0000000 --- a/ArkBot/WebApp/dist/inline.1ccc4762072d68a34d50.bundle.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,c,a){for(var u,f,i,l=0,s=[];l=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this.zone=e,this.serverUpdated$=new n.EventEmitter}return e.prototype.connect=function(){var e=this;this.connection=$.hubConnection(this.getSignalRBaseUrl()),this.proxy=this.connection.createHubProxy("ServerUpdateHub"),this.proxy.on("serverUpdateNotification",function(t){e.zone.run(function(){e.serverUpdated$.emit(t)})}),this.connection.start().done(function(){return console.log("Now connected, connection ID="+e.connection.id)}).fail(function(){return console.log("Could not connect")})},e.prototype.getSignalRBaseUrl=function(){return i.a.signalrBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e}();o=s([r.i(n.Injectable)(),a("design:paramtypes",["function"==typeof(c=void 0!==n.NgZone&&n.NgZone)&&c||Object])],o);var c},"+qYp":function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e}();l=o([r.i(n.Component)({selector:"app-access-denied",template:r("1DTO"),styles:[r("aijx")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},"+rAa":function(e,t,r){"use strict";function n(e,t,r,n){var i=a(e,t,r);if(void 0!=i)return i;var s=Math.pow(10,n),o=void 0!=n?Math.round(e*s)/s:e,c=void 0!=n?Math.round(t*s)/s:t;return o>c?r?1:-1:ot?r?1:-1:e=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t){this.dataService=e,this.router=t}return e.prototype.canActivate=function(e,t){var r=this;return s.Observable.fromPromise(this.dataService.getServers().then(function(t){if(t){var n=e.params.playerid;return r.dataService.hasFeatureAccess("pages",e.data.name,n)?"access":"noaccess"}return"connectionerror"}).catch(function(){return"connectionerror"})).map(function(e){return"noaccess"==e?r.router.navigateByUrl("/accessdenied",{skipLocationChange:!0}):"connectionerror"==e&&r.router.navigateByUrl("/connectionerror",{skipLocationChange:!0}),"access"==e})},e}();l=o([r.i(n.Injectable)(),c("design:paramtypes",["function"==typeof(d=void 0!==a.a&&a.a)&&d||Object,"function"==typeof(u=void 0!==i.b&&i.b)&&u||Object])],l);var d,u},"/Wuq":function(e,t){e.exports='
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given server key.

\r\n
\r\n
\r\n
\r\n

Players

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam IdCharacter IdSteam NameCharacter NameTribe NameTribe IdStructuresCreaturesLast Active
{{player.FakeSteamId || player.SteamId}}{{player.Id}}{{player.SteamName}}{{player.CharacterName}}{{player.CharacterName}}{{player.TribeName}}{{player.TribeId}}{{player.StructureCount}}{{player.CreatureCount}}{{dataService.toRelativeDate(player.LastActiveTime)}}
\r\n
\r\n
\r\n
\r\n

Tribes

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
IdNameMembersStructuresCreaturesLast Active
{{tribe.Id}}{{tribe.Name}}{{getTribeMember(member)?.CharacterName || member}}{{getTribeMember(member)?.CharacterName || member}}, {{tribe.StructureCount}}{{tribe.CreatureCount}}{{dataService.toRelativeDate(tribe.LastActiveTime)}}
\r\n
\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n\r\n
\r\n
\r\n

Egg Summary

\r\n
Save World
\r\n
\r\n\r\n
\r\n
\r\n

Summary

\r\n
\r\n
\r\n

Total Eggs: {{totalEggCount}}

\r\n

Fertilized Eggs: {{fertilizedEggsCount}}

\r\n

Spoiled Eggs: {{spoiledEggsCount}}

\r\n
\r\n
\r\n

There are no fertilized eggs on the map

\r\n
\r\n
\r\n\r\n
\r\n

Fertilized Eggs

\r\n
Destroy All Eggs
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CreatureEgg LevelSpoil Time
{{egg.Dino}}{{egg.EggLevel}}{{egg.SpoilTime}}
\r\n
\r\n\r\n
\r\n

Spoiled Eggs

\r\n
Destroy Spoiled Eggs
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CreatureEgg LevelDropped By
{{egg.Dino}}{{egg.EggLevel}}{{egg.DroppedBy}}{{egg.DroppedBy}}
\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{modalInfo.Header}}

\r\n
\r\n
\r\n
\r\n {{modalInfo.Message}}\r\n
\r\n
\r\n
\r\n
\r\n
'},0:function(e,t,r){e.exports=r("x35b")},"08Wm":function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.dataService.hasFeatureAccess("admin-server","structures")?this.menu.activate("structures"):this.dataService.hasFeatureAccess("admin-server","players")?this.menu.activate("players"):this.dataService.hasFeatureAccess("admin-server","tribes")?this.menu.activate("tribes"):this.dataService.hasFeatureAccess("admin-server","eggs")&&this.menu.activate("eggs")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-admin-server-menu",host:{"[class]":"menu.className"},template:r("bl1B"),styles:[r("9kk6")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},"0Hpj":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Fzro"),s=r("eErF"),a=(r.n(s),r("lHWG"));r.d(t,"a",function(){return d});var o=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.getServers=function(){return this.http.get("assets/demo/servers.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getServer=function(e){return this.http.get("assets/demo/server.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getWildCreatures=function(e){return this.http.get("assets/demo/wildcreatures.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getStructures=function(e){return this.http.get("assets/demo/structures.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getPlayer=function(e){return this.http.get("assets/demo/player.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getAdminServer=function(e){return this.http.get("assets/demo/adminserver.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.adminDestroyAllStructuresForTeamId=function(e,t){return Promise.resolve(null)},t.prototype.adminDestroyStructuresForTeamIdAtPosition=function(e,t,r,n,i,s){return Promise.resolve(null)},t.prototype.adminDestroyDinosForTeamId=function(e,t){return Promise.resolve(null)},t.prototype.adminSaveWorld=function(e){return Promise.resolve(null)},t}(a.a);d=c([r.i(n.Injectable)(),l("design:paramtypes",["function"==typeof(u=void 0!==i.b&&i.b)&&u||Object])],d);var u},"0jRk":function(e,t,r){"use strict";var n=r("3j3K"),i=r("jWPz"),s=r("joX7"),a=r("Gvdl"),o=(r.n(a),r("XlOA")),c=(r.n(o),r("1APj")),l=(r.n(c),r("6Yye")),d=(r.n(l),r("uCY4")),u=(r.n(d),r("wUn1")),p=(r.n(u),r("/lY3"));r.n(p);r.d(t,"a",function(){return f});var h=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},m=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(){function e(e){this.ref=e,this._modeEnabledSubscriptions=[],this._rows$=a.Observable.of([]),this._orderByColumnKey=new a.BehaviorSubject(void 0),this._filter=new a.BehaviorSubject(void 0),this._sort=new a.Subject,this._fromRow=0,this._numRows=25,this._totalRows=0,this._enabledColumnsForMode={},this._viewOptions=[{value:25,text:"25"},{value:50,text:"50"},{value:100,text:"100"},{value:250,text:"250"},{value:500,text:"500"},{value:1e3,text:"1000"},{value:1e6,text:"All"}],this._prevColumnKey=void 0,this._prevFilter=void 0,this._prevSortedRows=void 0,this._prevFilteredRows=void 0,this._prevSortedRowsKey=void 0,this._prevFilteredRowsKey=void 0}return e.prototype.ngOnInit=function(){var e=this;this._rows$=a.Observable.combineLatest(this._orderByColumnKey,this._filter.debounceTime(250),function(e,t){return{key:e,filter:t}}).skip(1).startWith({key:this._orderByColumnKey.getValue(),filter:this._filter.getValue()}).switchMap(function(t){return a.Observable.of(e.filterAndSortData(t.key,t.filter))}).catch(function(t){return console.log("Error in component ... "+t),a.Observable.of(e._rows)})},Object.defineProperty(e.prototype,"modeTemplates",{set:function(e){if(e){var t=e.toArray();if(t.length){for(var r=[],n=0,i=t;n0&&(this._currentMode=this._modes[0].key)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnTemplates",{set:function(e){if(e){var t=e.toArray();if(t.length){for(var r=[],n=0,i=t;n=this._totalRows&&(t=this._totalRows-1),this._fromRow=parseInt(""+t),this.ref.markForCheck()},e.prototype.setViewOffsetRelative=function(e){this.setViewOffset(this._fromRow+e)},e.prototype.setFirstPage=function(){this.isFirstPage()||this.setViewOffset(0)},e.prototype.setPrevPage=function(){this.isFirstPage()||this.setViewOffsetRelative(-this._numRows)},e.prototype.setNextPage=function(){this.isLastPage()||this.setViewOffsetRelative(this._numRows)},e.prototype.setLastPage=function(){this.isLastPage()||this.setViewOffset(this._totalRows-this._numRows)},e.prototype.isFirstPage=function(){return this._fromRow<=0},e.prototype.isLastPage=function(){return this._fromRow>=this._totalRows-this._numRows},e.prototype.setViewLimit=function(e){this._numRows=parseInt(""+(e>0?e:1e6)),this.ref.markForCheck()},e.prototype.getLastRowOffset=function(){var e=this._fromRow+this._numRows;return e>this._totalRows?this._totalRows:e},e}();h([r.i(n.ContentChildren)(s.a),m("design:type","function"==typeof(v=void 0!==n.QueryList&&n.QueryList)&&v||Object),m("design:paramtypes",["function"==typeof(g=void 0!==n.QueryList&&n.QueryList)&&g||Object])],f.prototype,"modeTemplates",null),h([r.i(n.ContentChildren)(i.a),m("design:type","function"==typeof(y=void 0!==n.QueryList&&n.QueryList)&&y||Object),m("design:paramtypes",["function"==typeof(b=void 0!==n.QueryList&&n.QueryList)&&b||Object])],f.prototype,"columnTemplates",null),h([r.i(n.Input)(),m("design:type",Object),m("design:paramtypes",[Object])],f.prototype,"rows",null),h([r.i(n.Input)(),m("design:type",String),m("design:paramtypes",[String])],f.prototype,"trackByProp",null),h([r.i(n.Input)(),m("design:type",String),m("design:paramtypes",[String])],f.prototype,"filter",null),h([r.i(n.Input)(),m("design:type",Object)],f.prototype,"filterFunction",void 0),h([r.i(n.Input)(),m("design:type",Object)],f.prototype,"sortFunctions",void 0),h([r.i(n.Input)(),m("design:type",String)],f.prototype,"orderByColumn",void 0),f=h([r.i(n.Component)({selector:"ark-data-table",template:r("jkBB"),styles:[r("rZY4")],changeDetection:n.ChangeDetectionStrategy.OnPush,encapsulation:n.ViewEncapsulation.None}),m("design:paramtypes",["function"==typeof(w=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&w||Object])],f);var v,g,y,b,w},"0onv":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("PJh5"));r.n(s);r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.ref=e,this._time=new i.BehaviorSubject(void 0)}return Object.defineProperty(e.prototype,"time",{get:function(){return this._time.getValue()},set:function(e){this._time.next(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._timeSubscription=this._time.subscribe(function(t){e.update()}),this._counter=i.Observable.interval(1e3).map(function(e){return e}),this._counterSubscription=this._counter.subscribe(function(t){return e.update()})},e.prototype.ngOnDestroy=function(){this._timeSubscription.unsubscribe(),this._counterSubscription.unsubscribe()},e.prototype.update=function(){var e=this.toRelativeDate(this.time);e!=this._str&&(this._str=e,this.ref.markForCheck())},e.prototype.toRelativeDate=function(e){return s(new Date(e)).fromNow()},e}();a([r.i(n.Input)(),o("design:type",Object),o("design:paramtypes",[Object])],c.prototype,"time",null),c=a([r.i(n.Component)({selector:"relative-time",template:"{{_str}}",styles:[r("HOjl")],changeDetection:n.ChangeDetectionStrategy.OnPush}),o("design:paramtypes",["function"==typeof(l=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&l||Object])],c);var l},"1DTO":function(e,t){e.exports='
\n
\n

Access Denied

\n

You do not have access to view this page...

\n
\n
'},"38q8":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Qbdm");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this._sanitizer=e}return e.prototype.transform=function(e){return this._sanitizer.bypassSecurityTrustStyle(e)},e}();o=s([r.i(n.Pipe)({name:"sanitizeStyle"}),a("design:paramtypes",["function"==typeof(c=void 0!==i.DomSanitizer&&i.DomSanitizer)&&c||Object])],o);var c},5305:function(e,t,r){"use strict";var n=r("3j3K"),i=r("kZql"),s=r("vwbq");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(){this.width=1024,this.height=1024,this.zoom=s.a().scaleExtent([1,10])}return e.prototype.imageLoaded=function(e){var t=this;this.img=e,this.width=e.naturalWidth,this.height=e.naturalHeight,window.setTimeout(function(){t.resize(),t.redraw()},100)},e.prototype.resize=function(){},e.prototype.zoomed=function(){var e=s.e(this.canvasRef.nativeElement),t=this.canvasRef.nativeElement.getContext("2d");t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,this.width,this.height),t.translate(e.x,e.y),t.scale(e.k,e.k),this.redraw()},e.prototype.redraw=function(){var e=this.canvasRef.nativeElement.getContext("2d");if(e.drawImage(this.img,0,0),null!=this.points)for(var t=0,r=this.points;t/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e}();a([r.i(n.Input)(),o("design:type",String)],c.prototype,"mapName",void 0),a([r.i(n.Input)(),o("design:type",Array)],c.prototype,"points",void 0),a([r.i(n.ViewChild)("myCanvas"),o("design:type","function"==typeof(l=void 0!==n.ElementRef&&n.ElementRef)&&l||Object)],c.prototype,"canvasRef",void 0),c=a([r.i(n.Component)({selector:"arkmap",template:''}),o("design:paramtypes",[])],c);var l},"5xMp":function(e,t){e.exports='\r\n\r\n
\r\n
\r\n \r\n
Logged in as {{dataService.Servers.User.Name}} | Logout | Login | Theme: Light | Dark
\r\n
\r\n \r\n
\r\n\r\n\r\n'},"6fYc":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".serverdetails th{white-space:nowrap}.serverdetails td{width:99%}",""]),e.exports=e.exports.toString()},"78nn":function(e,t){e.exports="\r\n

Player

\r\n
\r\n
Profile
\r\n
Creatures
\r\n
Creatures (Cloud)
\r\n
Breeding
\r\n
Crops
\r\n
Electrical Generators
\r\n
Kibbles and Eggs
\r\n
Tribe Log
\r\n
\r\n
"},"7T2B":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){this.callback=new n.EventEmitter,this.confirming=!1}return e.prototype.ngOnInit=function(){},e.prototype.onClick=function(e){var t=this;this.confirming?e.detail>=3&&(window.clearTimeout(this.resetTimeout),this.confirming=!1,this.callback.emit()):(this.confirming=!0,this.resetTimeout=window.setTimeout(function(){t.confirming=!1},5e3))},e}();i([r.i(n.Output)(),s("design:type","function"==typeof(o=void 0!==n.EventEmitter&&n.EventEmitter)&&o||Object)],a.prototype,"callback",void 0),i([r.i(n.Input)(),s("design:type",Number)],a.prototype,"width",void 0),i([r.i(n.ViewChild)("confirmButton"),s("design:type","function"==typeof(c=void 0!==n.ElementRef&&n.ElementRef)&&c||Object)],a.prototype,"confirmButton",void 0),a=i([r.i(n.Component)({selector:"confirm-button",template:r("QaTd"),styles:[r("8Zim")]}),s("design:paramtypes",[])],a);var o,c},"7arz":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"7fuz":function(e,t){e.exports='
\n \n
'},"7uO+":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"7xIs":function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.dataService.hasFeatureAccess("server","players")?this.menu.activate("players"):this.dataService.hasFeatureAccess("server","tribes")?this.menu.activate("tribes"):this.dataService.hasFeatureAccess("server","wildcreatures-statistics")?this.menu.activate("wildcreatures-statistics"):this.dataService.hasFeatureAccess("server","wildcreatures")&&this.menu.activate("wildcreatures")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-server-menu",host:{"[class]":"menu.className"},template:r("MjD/"),styles:[r("oLRk")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},"8Zim":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"8kYA":function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this.dataService=e,this.menuOption=void 0,this.menuVisible=!1,this.className="menucontainer"}return e.prototype.ngOnInit=function(){var e=this;this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe()},e.prototype.activate=function(e){this.dataService.SetMenuOption(e)},e.prototype.active=function(e){return this.menuOption==e},e.prototype.toggleMenu=function(){this.menuVisible=!this.menuVisible},e}();o=s([r.i(n.Component)({selector:"app-menu",template:r("m8aW"),styles:[r("ne8d")]}),a("design:paramtypes",["function"==typeof(c=void 0!==i.a&&i.a)&&c||Object])],o);var c},"8zLQ":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(e){this._elementRef=e,this.clickOutside=new n.EventEmitter}return e.prototype.onClick=function(e,t){if(t){this._elementRef.nativeElement.contains(t)||this.clickOutside.emit(e)}},e}();i([r.i(n.Output)(),s("design:type",Object)],a.prototype,"clickOutside",void 0),i([r.i(n.HostListener)("document:click",["$event","$event.target"]),s("design:type",Function),s("design:paramtypes",[Object,Object]),s("design:returntype",void 0)],a.prototype,"onClick",null),a=i([r.i(n.Directive)({selector:"[clickOutside]"}),s("design:paramtypes",["function"==typeof(o=void 0!==n.ElementRef&&n.ElementRef)&&o||Object])],a);var o},"9kk6":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"A+2f":function(e,t){e.exports=''},ATz5:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("lHWG")),a=r("+Lwu"),o=r("kZql"),c=r("PJh5");r.n(c);r.d(t,"a",function(){return u});var l=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},d=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(){function e(e,t){var r=this;this.httpService=e,this.messageService=t,this._servers=new i.BehaviorSubject(void 0),this.menuOption=new i.BehaviorSubject(void 0),this.theme=new i.BehaviorSubject(void 0),this.ServersUpdated$=new n.EventEmitter,t.serverUpdated$.subscribe(function(e){return r.updateServer(e)})}return Object.defineProperty(e.prototype,"Theme",{get:function(){return this.theme.asObservable()},enumerable:!0,configurable:!0}),e.prototype.SetTheme=function(e){this.theme.next(e)},Object.defineProperty(e.prototype,"MenuOption",{get:function(){return this.menuOption.asObservable()},enumerable:!0,configurable:!0}),e.prototype.SetMenuOption=function(e){this.menuOption.next(e)},e.prototype.getServers=function(){var e=this;return this.httpService.getServers().then(function(t){e.Servers=t;var r=t?t.User:void 0;return e.UserSteamId=r&&r.SteamId?r.SteamId:void 0,e._servers.next(t),e.ServersUpdated$.emit(t),!0}).catch(function(t){return e.Servers=null,e.UserSteamId=void 0,e._servers.next(null),e.ServersUpdated$.emit(null),!1})},e.prototype.updateServer=function(e){this.getServers()},e.prototype.hasFeatureAccess=function(e,t,r){var n=this.Servers?this.Servers.AccessControl:void 0;if(!n)return!1;var i=n[e];if(!i)return!1;var s=i[t];if(!s)return!1;var a=this.Servers?this.Servers.User:void 0,o=a&&a.Roles?a.Roles.slice(0):[];a&&a.SteamId&&a.SteamId==r&&o.push("self");for(var c=function(e){if(s.find(function(t){return e.toLowerCase()===t.toLowerCase()}))return{value:!0}},l=0,d=o;l=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e,t){this.dataService=e,this.router=t}return e.prototype.resolve=function(e,t){var r=this;return this.dataService.getServers().then(function(e){return r.dataService}).catch(function(e){return r.dataService})},e}();c=a([r.i(n.Injectable)(),o("design:paramtypes",["function"==typeof(l=void 0!==s.a&&s.a)&&l||Object,"function"==typeof(d=void 0!==i.b&&i.b)&&d||Object])],c);var l,d},CzL3:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("kZql")),a=r("PJh5");r.n(a);r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(){this._ready=!1,this._wasExpired=!1,this._notificationSent=!1,this._time=new i.BehaviorSubject(void 0),this._notification=new i.BehaviorSubject(void 0),this._loadedAt=a()}return Object.defineProperty(e.prototype,"time",{get:function(){return this._time.getValue()},set:function(e){this._time.next(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"notification",{get:function(){return this._notification.getValue()},set:function(e){this._notification.next(e)},enumerable:!0,configurable:!0}),e.prototype.updateDiff=function(e){e&&(s.a.demo?this._wasExpired=a(new Date(e)).diff(a(new Date(s.a.demoDate)))-a().diff(this._loadedAt)<=0:this._wasExpired=a(new Date(e)).diff(a())<=0,this._notificationSent=!1,this._str=void 0,this._ready=this._wasExpired,this._wasExpired||1!=this.state._completed||(this.state._completed=!1)),s.a.demo?this._diff=e||this.time?a.duration(a(new Date(e||this.time)).diff(a(new Date(s.a.demoDate)))-a().diff(this._loadedAt)):void 0:this._diff=e||this.time?a.duration(a(new Date(e||this.time)).diff(a())):void 0},e.prototype.update=function(){if(!this._diff)return"";if(this._diff.asMilliseconds()<=0){if(!this._notificationSent){if(this.notification&&this.state.imprintNotifications&&!this._wasExpired){new Audio("assets/Alarm01.mp3").play()}this._ready=!0}return this._notificationSent=!0,void(this._str=void 0)}var e=this._diff.seconds(),t=this._diff.minutes(),r=this._diff.hours(),n=Math.floor(this._diff.asDays()),i=[];n>0&&i.push(n+"d"),(n>0||r>0)&&i.push(r+"h"),(n>0||r>0||t>0)&&i.push(t+"m"),i.push(e+"s"),this._str=i.join(" "),this._ready=!1,this.state._completed=!1},e.prototype.ngOnInit=function(){var e=this;this._timeSubscription=this._time.subscribe(function(t){e.updateDiff(t),e.update()}),this._notificationSubscription=this._notification.subscribe(function(e){}),this._counter=i.Observable.interval(1e3).map(function(t){return e.updateDiff(void 0),t}),this._counterSubscription=this._counter.subscribe(function(t){return e.update()})},e.prototype.ngOnDestroy=function(){this._timeSubscription.unsubscribe(),this._notificationSubscription.unsubscribe(),this._counterSubscription.unsubscribe()},e}();o([r.i(n.Input)(),c("design:type",Object)],l.prototype,"state",void 0),o([r.i(n.Input)(),c("design:type",Object),c("design:paramtypes",[Object])],l.prototype,"time",null),o([r.i(n.Input)(),c("design:type",Object),c("design:paramtypes",[Object])],l.prototype,"notification",null),l=o([r.i(n.Component)({selector:"timer",template:'{{_str}}',styles:[r("cPj0")]}),c("design:paramtypes",[])],l)},EEDX:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},EM12:function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n={configJs:'var config = {"webapi":{"port":60001},"webapp":{"defaultTheme":"Dark"}};'}},Fnlp:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0,this.demoMode=!1}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.demoMode="true"==localStorage.getItem("demoMode")},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.toggleDemoMode=function(){var e="true"!=localStorage.getItem("demoMode");this.demoMode=e,localStorage.setItem("demoMode",e+"")},e}();l=o([r.i(n.Component)({selector:"app-developer",template:r("7fuz"),styles:[r("EEDX")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},FxpQ:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e}();l=o([r.i(n.Component)({selector:"app-connection-error",template:r("lRu1"),styles:[r("mf93")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},HOjl:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},Iksp:function(e,t,r){"use strict";var n=r("Qbdm"),i=r("KN8t"),s=r("3j3K"),a=r("NVOs"),o=r("5oXY"),c=r("Fzro"),l=r("3MNG"),d=(r.n(l),r("hHgl")),u=r("YWx4"),p=r("KZxv"),h=r("RiXa"),m=r("qn86"),f=r("JLFQ"),v=r("e/mT"),g=r("5305"),y=r("lHWG"),b=r("0Hpj"),w=r("+Lwu"),S=r("ATz5"),C=r("AcJ7"),O=r("r5VE"),k=r("+w0e"),j=r("38q8"),_=r("ilmp"),x=r("8zLQ"),I=r("JKTH"),A=r("8kYA"),F=r("7xIs"),M=r("08Wm"),R=r("lCrv"),T=r("CzL3"),L=r("0onv"),P=r("7T2B"),N=r("+qYp"),D=r("FxpQ"),B=r("Fnlp"),E=r("vMp4"),K=r("J8nT"),z=r("kZql");r.d(t,"a",function(){return G});var U=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},W=[{path:"player/:playerid",canActivate:[k.a],data:{name:"player"},children:[{path:"",component:p.a},{path:"",component:h.a,outlet:"menu"}]},{path:"server/:id",canActivate:[k.a],data:{name:"server"},children:[{path:"",component:m.a},{path:"",component:F.a,outlet:"menu"}]},{path:"admin/:id",canActivate:[k.a],data:{name:"admin-server"},children:[{path:"",component:v.a},{path:"",component:M.a,outlet:"menu"}]},{path:"servers",canActivate:[k.a],data:{name:"home"},children:[{path:"",component:f.a},{path:"",component:I.a,outlet:"menu"}]},{path:"developer",component:B.a},{path:"accessdenied",component:N.a},{path:"connectionerror",component:D.a},{path:"",redirectTo:"/servers",pathMatch:"full"}],G=function(){function e(){}return e}();G=U([r.i(s.NgModule)({declarations:[u.a,f.a,g.a,j.a,_.a,x.a,p.a,h.a,m.a,v.a,I.a,A.a,F.a,M.a,R.a,T.a,L.a,P.a,N.a,D.a,B.a,E.a],imports:[o.a.forRoot(W),d.a.forRoot(),n.BrowserModule,a.a,c.a,i.a,l.SimpleNotificationsModule.forRoot(),K.a],providers:[[{provide:y.a,useClass:z.a.demo?b.a:y.a}],w.a,S.a,C.a,O.a,k.a,{provide:s.LOCALE_ID,useValue:"en-US"}],bootstrap:[u.a]})],G)},J8nT:function(e,t,r){"use strict";var n=r("3j3K"),i=r("2Je8"),s=r("NVOs"),a=r("0jRk"),o=r("jWPz"),c=r("joX7");r.d(t,"a",function(){return d});var l=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},d=function(){function e(){}return e}();d=l([r.i(n.NgModule)({imports:[i.CommonModule,s.a],providers:[],declarations:[a.a,o.a,o.b,o.c,c.a],exports:[a.a,o.a,o.b,o.c,c.a]})],d)},JKTH:function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.menu.activate("overview")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-server-list-menu",host:{"[class]":"menu.className"},template:r("rHbN"),styles:[r("P+hD")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},JLFQ:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0,this.serverCount=0,this.onlinePlayerCount=0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.serversUpdatedSubscription=this.dataService.ServersUpdated$.subscribe(function(t){e.updateData(t)}),this.serverUpdateInterval=window.setInterval(function(){e.dataService.updateServer(null)},6e4),this.updateData(this.dataService.Servers)},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe(),this.serversUpdatedSubscription.unsubscribe(),window.clearInterval(this.serverUpdateInterval)},e.prototype.updateData=function(e){var t=0,r=0;if(e&&e.Servers){t=e.Servers.length;for(var n=0,i=e.Servers;n=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,n,i,s,a,o){this.route=e,this.router=t,this.httpService=n,this.dataService=i,this.messageService=s,this.notificationsService=a,this.ref=o,this.menuOption=void 0,this.theme=void 0,this.imprintNotifications=!1,this.keysGetter=Object.keys,this.loaded=!1,this.showMap=!1,this.creaturesMode="status",this.creatureStates={},this.creaturesSortField="food",this.creaturesAltSortFields="name",this.creaturesSortFunctions={food:function(e,t,n){return r.i(l.d)(e.FoodStatus,t.FoodStatus,n,2)},name:function(e,t,n){return r.i(l.b)(e.Name,t.Name,n)},species:function(e,t,n){return r.i(l.b)(e.Species,t.Species,n)},gender:function(e,t,n){return r.i(l.b)(e.Gender,t.Gender,n)},base_level:function(e,t,n){return r.i(l.c)(e.BaseLevel,t.BaseLevel,!n)},level:function(e,t,n){return r.i(l.c)(e.Level==e.BaseLevel?null:e.Level,t.Level==t.BaseLevel?null:t.Level,!n)},imprint:function(e,t,n){return r.i(l.d)(e.Imprint,t.Imprint,!n,2)},latitude:function(e,t,n){return r.i(l.d)(e.Latitude,t.Latitude,n,1)},longitude:function(e,t,n){return r.i(l.d)(e.Longitude,t.Longitude,n,1)},owner:function(e,t,n){return r.i(l.b)(e.OwnerType,t.OwnerType,n)},stat_health:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Health:null,void 0!=t.BaseStats?t.BaseStats.Health:null,!n)},stat_stamina:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Stamina:null,void 0!=t.BaseStats?t.BaseStats.Stamina:null,!n)},stat_oxygen:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Oxygen:null,void 0!=t.BaseStats?t.BaseStats.Oxygen:null,!n)},stat_food:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Food:null,void 0!=t.BaseStats?t.BaseStats.Food:null,!n)},stat_weight:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Weight:null,void 0!=t.BaseStats?t.BaseStats.Weight:null,!n)},stat_melee:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Melee:null,void 0!=t.BaseStats?t.BaseStats.Melee:null,!n)},stat_speed:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.MovementSpeed:null,void 0!=t.BaseStats?t.BaseStats.MovementSpeed:null,!n)},id1:function(e,t,n){return r.i(l.c)(e.Id1,t.Id1,n)},id2:function(e,t,n){return r.i(l.c)(e.Id1,t.Id1,n)}},this.tribeLogFilterFunction=function(e,t){return null==t||null!=e.Message&&e.Message.toLowerCase().indexOf(t)>=0}}return e.prototype.getPlayer=function(){var e=this;this.httpService.getPlayer(this.steamId).then(function(t){var r=Object.keys(t.Servers);e.serverKey&&void 0!=r.find(function(t){return t==e.serverKey})||(e.serverKey=r.length>0?r[0]:null);var n=Object.keys(t.Clusters);e.clusterKey&&void 0!=n.find(function(t){return t==e.clusterKey})||(e.clusterKey=n.length>0?n[0]:null),e.player=t,e.filterAndSort(),e.sortCluster(),e.filterCluster(),e.loaded=!0,e.ref.detectChanges()}).catch(function(t){e.player=null,e.filteredCreatures=null,e.imprintCreatures=null,e.filteredClusterCreatures=null,e.loaded=!0})},e.prototype.ngOnInit=function(){var e=this;this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.theme$=this.dataService.Theme,this.themeSubscription=this.theme$.subscribe(function(t){e.theme=t}),this.steamId=this.route.snapshot.params.playerid,this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.updateServer(t)}),this.getPlayer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.themeSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.haveMatingCooldown=function(e){return null!=e.NextMating&&new Date(e.NextMating)>new Date},e.prototype.active=function(e){return this.serverKey==e},e.prototype.activate=function(e){this.serverKey=e,this.filterAndSort()},e.prototype.serverWidth=function(){return 100/Object.keys(this.player.Servers).length},e.prototype.activeCluster=function(e){return this.clusterKey==e},e.prototype.activateCluster=function(e){this.clusterKey=e,this.sortCluster(),this.filterCluster()},e.prototype.clusterWidth=function(){return 100/Object.keys(this.player.Clusters).length},e.prototype.sort=function(){var e=this,t="-"!=this.creaturesSortField[0],r=this.creaturesSortFunctions[this.creaturesSortField.replace(/^\-/,"")],n=this.creaturesAltSortFields.split(",").map(function(t){var r={};return r.asc="-"!=t[0],r.sortFunc=e.creaturesSortFunctions[t.replace(/^\-/,"")],r});this.filteredCreatures.sort(function(e,i){var s=r(e,i,t);if(0==s)for(var a=0,o=n;a=0||null!=t.Name&&t.Name.toLowerCase().indexOf(e)>=0})}var t=this.player.Servers[this.serverKey].Creatures.filter(function(e){return null!=e.BabyAge});t.sort(function(e,t){return new Date(e.BabyNextCuddle)new Date(t.BabyNextCuddle)?1:0}),this.imprintCreatures=t;for(var r=[],n=0,i=this.filteredCreatures;nt.Level?-1:e.Level=0||null!=t.Name&&t.Name.toLowerCase().indexOf(e)>=0})}},e.prototype.run=function(){if(null==this.steamId||""==this.steamId)return this.player=null,this.filteredCreatures=null,void(this.imprintCreatures=null);this.getPlayer()},e.prototype.openMap=function(e){this.showMap=!0,e.stopPropagation()},e.prototype.closeMap=function(e){this.showMap=!1},e.prototype.updateServer=function(e){this.getPlayer(),this.showServerUpdateNotification(e)},e.prototype.haveCluster=function(){return null!=this.player&&Object.keys(this.player.Clusters).length>0},e.prototype.sumKibbleAndEggs=function(){return void 0!=this.player.Servers[this.serverKey].KibblesAndEggs?this.player.Servers[this.serverKey].KibblesAndEggs.reduce(function(e,t){return e+t.KibbleCount+t.EggCount},0):0},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.getStateForCreature=function(e){if(e){var t=this.creatureStates[e.Id1+"_"+e.Id2];return t||(t={imprintNotifications:!0},this.creatureStates[e.Id1+"_"+e.Id2]=t),t}},e.prototype.toggleImprintNotificationForCreature=function(e){var t=this.getStateForCreature(e);t.imprintNotifications=!t.imprintNotifications},e.prototype.activeCreaturesMode=function(e){return e==this.creaturesMode},e.prototype.activateCreaturesMode=function(e){this.creaturesMode=e},e.prototype.setCreaturesSort=function(e){var t=this.creaturesSortField==e;this.creaturesSortField=t?"-"+e:e,this.creaturesAltSortFields="latitude"==e?t?"-longitude,name":"longitude,name":"longitude"==e?t?"-latitude,name":"latitude,name":"name",this.sort()},e.prototype.copyCreature=function(e){},e.prototype.getCurrentServer=function(){var e=this;if(this.dataService&&this.dataService.Servers&&this.dataService.Servers.Servers){return this.dataService.Servers.Servers.find(function(t){return t.Key==e.serverKey})}},e.prototype.numCreatureTabs=function(){var e=1;return this.dataService.hasFeatureAccess("player","creatures-basestats",this.steamId)&&(e+=1),this.dataService.hasFeatureAccess("player","creatures-ids",this.steamId)&&(e+=1),e},e.prototype.isTheme=function(e){return this.theme==e},e}();p=d([r.i(n.Component)({selector:"app-player",template:r("jFLX"),styles:[r("S6EL")]}),u("design:paramtypes",["function"==typeof(h=void 0!==i.g&&i.g)&&h||Object,"function"==typeof(m=void 0!==i.b&&i.b)&&m||Object,"function"==typeof(f=void 0!==c.a&&c.a)&&f||Object,"function"==typeof(v=void 0!==a.a&&a.a)&&v||Object,"function"==typeof(g=void 0!==o.a&&o.a)&&g||Object,"function"==typeof(y=void 0!==s.NotificationsService&&s.NotificationsService)&&y||Object,"function"==typeof(b=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&b||Object])],p);var h,m,f,v,g,y,b},MOVZ:function(e,t){function r(e){throw new Error("Cannot find module '"+e+"'.")}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id="MOVZ"},"MjD/":function(e,t){e.exports="\r\n

Server

\r\n
\r\n
Players
\r\n
Tribes
\r\n
Wild Statistics
\r\n
Wild Creatures
\r\n
\r\n
"},"P+hD":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},QMiF:function(e,t){e.exports='\x3c!--
\r\n \r\n

{{currentOwner.Name}}

\r\n
Coords: {{currentArea.Latitude | number:\'1.0-1\'}}, {{currentArea.Longitude | number:\'1.0-1\'}}
\r\n
Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n
{{currentArea.StructureCount | number}} structures
\r\n \r\n
\r\n
--\x3e\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{currentOwner.Name}}

\r\n
\r\n
\r\n
\r\n Coords: {{currentArea.Latitude | number:\'1.0-1\'}}, {{currentArea.Longitude | number:\'1.0-1\'}}
\r\n Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n {{currentArea.StructureCount | number}} structures\r\n
\r\n
\r\n
Destroy this area
\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{currentOwner.Name}}

\r\n
\r\n
\r\n
\r\n Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n {{currentOwner.AreaCount | number}} areas
\r\n {{currentOwner.StructureCount | number}} structures
\r\n {{currentOwner.CreatureCount | number}} creatures\r\n
\r\n
\r\n
Destroy all structures
\r\n
Destroy all creatures
\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{modalInfo.Header}}

\r\n
\r\n
\r\n
\r\n {{modalInfo.Message}}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n

Structures

\r\n
Save World
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n
\r\n

Player/Tribe Locations

\r\n
\r\n
\r\n \x3c!--\r\n --\x3e\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameTypeA#S#C#Last Active
{{owner.Name}}{{owner.Type}}{{owner.AreaCount}}{{owner.StructureCount}}{{owner.CreatureCount}}{{dataService.toRelativeDate(owner.LastActiveTime)}}
\r\n
\r\n
'},QaTd:function(e,t){e.exports=''},RiXa:function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("5oXY"),a=r("ATz5");r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t){this.route=e,this.dataService=t}return e.prototype.ngOnInit=function(){this.steamId=this.route.snapshot.params.playerid,this.dataService.hasFeatureAccess("player","profile",this.steamId)?this.menu.activate("profile"):this.dataService.hasFeatureAccess("player","creatures",this.steamId)?this.menu.activate("creatures"):this.dataService.hasFeatureAccess("player","creatures-cloud",this.steamId)?this.menu.activate("creatures_cloud"):this.dataService.hasFeatureAccess("player","breeding",this.steamId)?this.menu.activate("breeding"):this.dataService.hasFeatureAccess("player","crops",this.steamId)?this.menu.activate("crop_plots"):this.dataService.hasFeatureAccess("player","generators",this.steamId)?this.menu.activate("electrical_generators"):this.dataService.hasFeatureAccess("player","kibbles-eggs",this.steamId)?this.menu.activate("kibbles_and_eggs"):this.dataService.hasFeatureAccess("player","tribelog",this.steamId)&&this.menu.activate("tribelog")},e}();o([r.i(n.ViewChild)("menu"),c("design:type","function"==typeof(d=void 0!==i.a&&i.a)&&d||Object)],l.prototype,"menu",void 0),l=o([r.i(n.Component)({selector:"app-player-menu",host:{"[class]":"menu.className"},template:r("78nn"),styles:[r("7uO+")]}),c("design:paramtypes",["function"==typeof(u=void 0!==s.g&&s.g)&&u||Object,"function"==typeof(p=void 0!==a.a&&a.a)&&p||Object])],l);var d,u,p},S6EL:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},SH1B:function(e,t){e.exports='
\r\n

My Profile

\r\n
\r\n
\r\n

Hello, {{dataService.Servers.User.Name}}

\r\n
\r\n
\r\n

\r\n Find your tames, view base stats and keep track of their food status. Get notified of pending imprints, the amount of fertilizer and gasoline remaining in your crops and generators. This and much more is available in your profile.\r\n

\r\n

View my profile ❯

\r\n
\r\n
\r\n
\r\n
\r\n

Servers

\r\n
\r\n
\r\n

{{server.MapName}} - {{server.Key}}{{server.MapName}} - {{server.Key}}

\r\n
\r\n
\r\n

\r\n Last Update {{server.LastUpdate}}, Next Update {{server.NextUpdate || \'-\'}}\r\n

\r\n

View server ❯

\r\n

Admin ❯

\r\n
\r\n
\r\n
\r\n
\r\n

Online {{onlinePlayerCount}}

\r\n
There are no players online...
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam NameCharacter NameTribe NameDiscord TagServerTime Online
{{player.SteamName}}{{player.CharacterName}}{{player.TribeName}}{{player.DiscordName}}{{server.Key}}{{player.TimeOnline}}
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n

{{server.Name}}{{server.Name}}

\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Address{{server.Address}}
Version{{server.Version}}
Player Slots{{server.OnlinePlayerMax}}
Map{{server.MapName}}
In-Game Day{{server.InGameTime}}
Tamed Creatures{{server.TamedCreatureCount | number}}
Cloud Creatures{{server.CloudCreatureCount | number}}
Wild Creatures{{server.WildCreatureCount | number}}
Structures{{server.StructureCount | number}}
Players{{server.PlayerCount | number}}
Tribes{{server.TribeCount | number}}
Last Update{{server.LastUpdate}}
Next Update{{server.NextUpdate}}
Uptime{{server.ServerStarted ? dataService.toRelativeDate(server.ServerStarted) : \'-\'}}
\r\n
\r\n
\r\n\r\n \x3c!--

{{server.Name}}{{server.Name}}

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Address{{server.Address}}
Version{{server.Version}}
Player Slots{{server.OnlinePlayerMax}}
Map{{server.MapName}}
In-Game Time{{server.InGameTime}}
Tamed Creatures{{server.TamedCreatureCount | number}}
Cloud Creatures{{server.CloudCreatureCount | number}}
Wild Creatures{{server.WildCreatureCount | number}}
Structures{{server.StructureCount | number}}
Players{{server.PlayerCount | number}}
Tribes{{server.TribeCount | number}}
Last Update{{server.LastUpdate}}
Next Update{{server.NextUpdate}}
Uptime{{server.ServerStarted ? dataService.toRelativeDate(server.ServerStarted) : \'-\'}}
\r\n
--\x3e\r\n \r\n

Online {{server.OnlinePlayerCount}}

\r\n
There are no players online...
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam NameCharacter NameTribe NameDiscord TagTime Online
{{player.SteamName}}{{player.CharacterName}}{{player.TribeName}}{{player.DiscordName}}{{player.TimeOnline}}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

External Resources

\r\n
\r\n
\r\n

Wiki

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Taming Calculators

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Creature Library and Breeding Suggestions

\r\n
\r\n \r\n
\r\n
'},YWx4:function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("hHgl")),o=r("+Lwu"),c=r("ATz5"),l=r("lHWG"),d=r("r5VE"),u=r("kZql"),p=r("2Je8");r.d(t,"a",function(){return v});var h=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},m=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},v=function(){function e(e,t,r,n,i,s,a,o){this.doc=e,this.messageService=t,this.dataService=r,this.httpService=n,this.hotkeysService=i,this.breadcrumbService=s,this.notificationsService=a,this.router=o,this.notificationOptions={position:["top","right"],timeOut:1e3,lastOnBottom:!1},this.showLogin=!1,this.showAdmin=!1,this.currentUrl="/",this.serversUpdatedBefore=!1,this.loading=!0;var c=this.doc.getElementById("configjs"),l=null;if(null!=u.a.configJsOverride?l=u.a.configJsOverride:"/*[[config]]*/"==c.text&&(l=u.a.configJsDefault),null!=l){var d=this.doc.createElement("script");d.type="text/javascript",d.id="configjs",d.text=l,c.parentNode.replaceChild(d,c)}if("undefined"!=typeof config&&"undefined"!==config.webapp&&!0===config.webapp.useCustomCssFile){var p=this.doc.createElement("link");p.rel="stylesheet",p.href="/custom.css",this.doc.getElementsByTagName("head")[0].appendChild(p)}s.addFriendlyNameForRoute("/accessdenied","Access Denied"),s.addFriendlyNameForRoute("/connectionerror","Connection error"),s.hideRoute("/player"),s.hideRoute("/servers"),s.hideRoute("/server"),s.hideRoute("/admin"),s.addCallbackForRouteRegex("^/player/.+$",this.getNameForPlayer),u.a.demo||t.connect()}return e.prototype.ngOnInit=function(){var e=this;this.dataService.SetTheme(this.getTheme()),this.routerEventsSubscription=this.router.events.subscribe(function(t){e.navigationInterceptor(t)}),this.currentUrl=window.location.href||"/",this.serversUpdatedSubscription=this.dataService.ServersUpdated$.subscribe(function(t){e.serversUpdatedBefore||!t||t.User&&t.User.SteamId||(e.showLogin=!0),e.serversUpdatedBefore=!0}),this.adminOptionsHotkeySubscription=this.hotkeysService.add({keys:"control.shift.a"}).subscribe(function(){e.dataService.hasFeatureAccess("pages","admin-server")&&(e.showAdmin=!0)})},e.prototype.ngOnDestroy=function(){this.routerEventsSubscription.unsubscribe(),this.serversUpdatedSubscription.unsubscribe(),this.adminOptionsHotkeySubscription.unsubscribe()},e.prototype.navigationInterceptor=function(e){e instanceof i.d?this.loading=!0:e instanceof i.c?this.loading=!1:e instanceof i.e?this.loading=!1:e instanceof i.f&&(this.loading=!1)},e.prototype.getNameForPlayer=function(e){return"Player"},e.prototype.getBodyClasses=function(){var e=this.getTheme();return"undefined"!=typeof config&&"undefined"!==config.webapp&&!0===config.webapp.topMenu&&(e+=" topmenu"),e},e.prototype.getDefaultTheme=function(){var e="undefined"!=typeof config&&"undefined"!==config.webapp&&"string"==typeof config.webapp.defaultTheme?config.webapp.defaultTheme.toLowerCase():void 0;return"light"!=e&&"dark"!=e?"dark":e},e.prototype.getTheme=function(){return localStorage.getItem("theme")||this.getDefaultTheme()},e.prototype.setTheme=function(e){return this.dataService.SetTheme(e),localStorage.setItem("theme",e),!1},e.prototype.openLogin=function(e){this.showLogin=!0,e.stopPropagation(),e.preventDefault()},e.prototype.closeLogin=function(e){this.showLogin=!1},e.prototype.openCustomTheme=function(e,t){e.stopPropagation(),e.preventDefault(),this.showAdmin=!1,t.show()},e.prototype.getLoginUrl=function(){return u.a.demo?"":this.httpService.getApiBaseUrl()+"/authentication/login"},e.prototype.getLogoutUrl=function(){return u.a.demo?"":this.httpService.getApiBaseUrl()+"/authentication/logout?returnUrl="+this.currentUrl},e}();v=h([r.i(n.Component)({selector:"body",host:{"[class]":"getBodyClasses()"},template:r("5xMp"),styles:[r("okgc")]}),f(0,r.i(n.Inject)(p.DOCUMENT)),m("design:paramtypes",[Object,"function"==typeof(g=void 0!==o.a&&o.a)&&g||Object,"function"==typeof(y=void 0!==c.a&&c.a)&&y||Object,"function"==typeof(b=void 0!==l.a&&l.a)&&b||Object,"function"==typeof(w=void 0!==d.a&&d.a)&&w||Object,"function"==typeof(S=void 0!==a.b&&a.b)&&S||Object,"function"==typeof(C=void 0!==s.NotificationsService&&s.NotificationsService)&&C||Object,"function"==typeof(O=void 0!==i.b&&i.b)&&O||Object])],v);var g,y,b,w,S,C,O},aijx:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},bKAj:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},bl1B:function(e,t){e.exports="\r\n

Admin|Server

\r\n
\r\n
Structures
\r\n
Players
\r\n
Tribes
\r\n
Fertilized Eggs
\r\n
\r\n
"},cPj0:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"e/mT":function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("ATz5")),o=r("+Lwu"),c=r("lHWG"),l=r("vwbq");r.d(t,"a",function(){return p});var d=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,r,n,i,s){this.route=e,this.router=t,this.httpService=r,this.dataService=n,this.messageService=i,this.notificationsService=s,this.menuOption=void 0,this.loaded=!1,this.loadedStructures=!1,this.loadedFertilizedEggs=!1}return e.prototype.getServer=function(){var e=this;this.httpService.getAdminServer(this.serverKey).then(function(t){e.server=t,e.loaded=!0}).catch(function(t){e.server=null,e.loaded=!0})},e.prototype.getStructures=function(){var e=this;this.httpService.getStructures(this.serverKey).then(function(t){e.structures=t,e.loadedStructures=!0}).catch(function(t){e.structures=void 0,e.loadedStructures=!0})},e.prototype.getListFertilizedEggs=function(){var e=this;this.httpService.adminListFertilizedEggs(this.serverKey).then(function(t){e.spoiledEggsList=t.SpoiledEggList,e.fertilizedEggsList=t.FertilizedEggList,e.fertilizedEggsCount=void 0===t.FertilizedEggsCount?0:t.FertilizedEggsCount,e.spoiledEggsCount=void 0===t.SpoiledEggsCount?0:t.SpoiledEggsCount,e.totalEggCount=e.spoiledEggsCount+e.fertilizedEggsCount,e.loadedFertilizedEggs=!0}).catch(function(t){e.fertilizedEggsList=void 0,e.loadedFertilizedEggs=!0})},e.prototype.ngOnInit=function(){var e=this;this.serverKey=this.route.snapshot.params.id,this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){e.menuOption=t,"structures"==e.menuOption?e.getStructures():"fertilized-eggs"==e.menuOption&&e.getListFertilizedEggs()}),this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){e.serverKey==t&&(e.updateServer(),e.showServerUpdateNotification(t))}),this.getServer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.getTribeMember=function(e){return this.server.Players.find(function(t){return t.SteamId==e})},e.prototype.updateServer=function(){this.getServer()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.showInfoModal=function(e,t){var r={};r.Header=e,r.Message=t,this.modalInfo=r,l.b(this.contextMenu.nativeElement).style("display","block"),l.c&&l.c.stopPropagation()},e.prototype.hideContextMenu=function(){l.b(this.contextMenu.nativeElement).style("display","none"),this.modalInfo=void 0},e.prototype.saveWorld=function(e){var t=this;this.httpService.adminSaveWorld(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyAllEggs=function(e){var t=this;this.httpService.adminDestroyAllEggs(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroySpoiledEggs=function(e){var t=this;this.httpService.adminDestroySpoiledEggs(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e}();d([r.i(n.ViewChild)("contextMenu"),u("design:type","function"==typeof(h=void 0!==n.ElementRef&&n.ElementRef)&&h||Object)],p.prototype,"contextMenu",void 0),p=d([r.i(n.Component)({selector:"app-admin-server",template:r("/Wuq"),styles:[r("7arz")]}),u("design:paramtypes",["function"==typeof(m=void 0!==i.g&&i.g)&&m||Object,"function"==typeof(f=void 0!==i.b&&i.b)&&f||Object,"function"==typeof(v=void 0!==c.a&&c.a)&&v||Object,"function"==typeof(g=void 0!==a.a&&a.a)&&g||Object,"function"==typeof(y=void 0!==o.a&&o.a)&&y||Object,"function"==typeof(b=void 0!==s.NotificationsService&&s.NotificationsService)&&b||Object])],p);var h,m,f,v,g,y,b},eqcJ:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".customThemeContainer{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-line-pack:justify;align-content:space-between}.customThemeItem{width:50%;padding:2px;cursor:pointer}.customThemeColorPreview{width:28px;height:28px;display:inline-block;vertical-align:middle;margin-right:5px;border:2px solid #000;box-sizing:border-box}.customThemeColorPreview>div{width:24px;height:24px;display:inline-block;border:2px solid #fff;box-sizing:border-box}.customThemeColor{font-family:monospace;padding:1px 3px;width:55px;border-radius:8px;margin-right:10px}.customThemeColor,.customThemeName{height:20px;display:inline-block;vertical-align:middle}",""]),e.exports=e.exports.toString()},"fT+k":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,'.map canvas,.map svg{position:absolute;top:0;left:0;width:100%}rect.overlay{fill:transparent}.wrapper{position:relative}.wrapper:after{padding-top:100%;display:block;content:""}.wrapper .buttons{position:absolute;left:5px;top:5px;opacity:.75;z-index:2}',""]),e.exports=e.exports.toString()},ilmp:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Qbdm");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this._sanitizer=e}return e.prototype.transform=function(e){return this._sanitizer.bypassSecurityTrustHtml(e)},e}();o=s([r.i(n.Pipe)({name:"sanitizeHtml"}),a("design:paramtypes",["function"==typeof(c=void 0!==i.DomSanitizer&&i.DomSanitizer)&&c||Object])],o);var c},jFLX:function(e,t){e.exports='
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given steam id.

\r\n
\r\n
\r\n
\r\n

Servers

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Player

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Character NameGenderTribe NameSteam IdTribe IdLevelEngram PointsLatLngSaved At
{{player?.Servers[serverKey]?.CharacterName}}{{player?.Servers[serverKey]?.Gender}}{{player?.Servers[serverKey]?.TribeName}}{{player?.Servers[serverKey]?.FakeSteamId || player?.Servers[serverKey]?.SteamId}}{{player?.Servers[serverKey]?.TribeId}}{{player?.Servers[serverKey]?.Level}}{{player?.Servers[serverKey]?.EngramPoints | number}}{{player?.Servers[serverKey]?.Latitude | number:\'1.1-1\'}}{{player?.Servers[serverKey]?.Longitude | number:\'1.1-1\'}}{{dataService.toDate(player?.Servers[serverKey]?.SavedAt)}}
\r\n
\r\n
\r\n
\r\n
\r\n

Creatures {{filteredCreatures.length}}

\r\n
\r\n
\r\n
There are no creatures...
\r\n \r\n
\r\n close\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameClassNameSpeciesAliasesGenderBase LevelLevelImprintFoodLatLngStatusOwnerHPSTOXFOWEMESPID1ID2
No matching creatures...
{{creature.Name}}{{creature.ClassName}}{{creature.Species}}{{creature.Aliases}}{{creature.Gender}}{{creature.BaseLevel}}{{creature.Level}}{{creature.Imprint | percent:\'1.0-0\'}}\r\n
\r\n
{{creature.FoodStatus | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{creature.Latitude | number:\'1.1-1\'}}{{creature.Longitude | number:\'1.1-1\'}}\r\n Next mating {{dataService.toRelativeDate(creature.NextMating)}}\r\n
\r\n
\r\n
Baby
\r\n
\r\n
\r\n
{{creature.BabyAge | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
\r\n
cuddle {{dataService.toRelativeDate(creature.BabyNextCuddle)}}
\r\n
\r\n
\r\n
{{creature.OwnerType}}{{creature.BaseStats?.Health}}{{creature.BaseStats?.Stamina}}{{creature.BaseStats?.Oxygen}}{{creature.BaseStats?.Food}}{{creature.BaseStats?.Weight}}{{creature.BaseStats?.Melee}}{{creature.BaseStats?.MovementSpeed}}content_copy{{creature.Id1}}{{creature.Id2}}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Breeding {{imprintCreatures.length}}

\r\n
\r\n
\r\n
There are no baby creatures...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameSpeciesGenderBase LevelImprintProgressFully Grown AtNext Imprint
{{creature.Name}}{{creature.Species}}{{creature.Gender}}{{creature.BaseLevel}}{{creature.Imprint | percent:\'1.0-0\'}}\r\n
\r\n
{{creature.BabyAge | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{dataService.toDate(creature.BabyFullyGrown)}}
\r\n
\r\n \x3c!--

\r\n Last Update {{getCurrentServer().LastUpdate}}, Next Update {{getCurrentServer().NextUpdate || \'-\'}}\r\n

--\x3e\r\n
\r\n
\r\n
\r\n

Kibbles and Eggs {{sumKibbleAndEggs() | number:0.0-0}}

\r\n
\r\n
There are no kibbles or eggs...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameKibblesEggsTotal
{{ke.Name}}{{ke.KibbleCount}}{{ke.EggCount}}{{ke.KibbleCount + ke.EggCount}}
\r\n
\r\n
\r\n
\r\n

Clusters

\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n

Creatures

\r\n
\r\n
There are no creatures in the cloud...
\r\n
\r\n
\r\n
\r\n

Creatures {{filteredClusterCreatures.length}}

\r\n
\r\n
There are no creatures in the cloud...
\r\n
\r\n close\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameSpeciesLevel
No matching creatures...
{{creature.Name}}{{creature.Species}}{{creature.Level}}
\r\n
\r\n
\r\n
\r\n
\r\n

Crops

\r\n
\r\n
There are no crops...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CropSizeFertilizer %Fertilizer UnitsWaterLatLng
{{(cp.PlantedCropName || cp.PlantedCropClassName)}}{{cp.Size}}\r\n
\r\n
{{(cp.FertilizerQuantity / cp.FertilizerMax) | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{cp.FertilizerQuantity | number}}{{cp.WaterAmount | number:\'1.0-0\'}}{{cp.Latitude | number:\'1.1-1\'}}{{cp.Longitude | number:\'1.1-1\'}}
\r\n
\r\n
\r\n
\r\n
\r\n

Electrical Generators

\r\n
\r\n
There are no electrical generators...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Gasoline %Gasoline QuantityActivatedLatLng
\r\n
\r\n
{{(eg.GasolineQuantity / 800.0) | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{eg.GasolineQuantity | number}}{{(eg.Activated == true ? "Yes" : "No")}}{{eg.Latitude | number:\'1.1-1\'}}{{eg.Longitude | number:\'1.1-1\'}}
\r\n
\r\n
\r\n
\r\n
\r\n

Tribe Log

\r\n
\r\n
There are no tribe logs...
\r\n \r\n
\r\n close\r\n \r\n
\r\n \r\n \r\n \r\n \r\n Day\r\n \r\n \r\n {{log.Day}}\r\n \r\n \r\n \r\n \r\n Time\r\n \r\n \r\n {{log.Time}}\r\n \r\n \r\n \r\n \r\n Message\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n'},jWPz:function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"c",function(){return a}),r.d(t,"b",function(){return o}),r.d(t,"a",function(){return c});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(e){this.template=e}return e}();a=i([r.i(n.Directive)({selector:"[ark-dt-cell]"}),s("design:paramtypes",["function"==typeof(l=void 0!==n.TemplateRef&&n.TemplateRef)&&l||Object])],a);var o=function(){function e(e){this.template=e}return e}();o=i([r.i(n.Directive)({selector:"[ark-dt-header]"}),s("design:paramtypes",["function"==typeof(d=void 0!==n.TemplateRef&&n.TemplateRef)&&d||Object])],o);var c=function(){function e(){}return e}();i([r.i(n.Input)(),r.i(n.ContentChild)(a,{read:n.TemplateRef}),s("design:type","function"==typeof(u=void 0!==n.TemplateRef&&n.TemplateRef)&&u||Object)],c.prototype,"cellTemplate",void 0),i([r.i(n.Input)(),r.i(n.ContentChild)(o,{read:n.TemplateRef}),s("design:type","function"==typeof(p=void 0!==n.TemplateRef&&n.TemplateRef)&&p||Object)],c.prototype,"headerTemplate",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"mode",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"key",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"thenSort",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"title",void 0),i([r.i(n.Input)(),s("design:type",Boolean)],c.prototype,"orderBy",void 0),c=i([r.i(n.Directive)({selector:"ark-dt-column"})],c);var l,d,u,p},jkBB:function(e,t){e.exports='
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n
No matching entries...
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n «\r\n \r\n \r\n  {{_fromRow}} - {{getLastRowOffset()}} of {{_totalRows}} \r\n »\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
'},joX7:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl");r.n(i);r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(){this.enabled=i.Observable.of(!0)}return Object.defineProperty(e.prototype,"columnKeys",{set:function(e){this._columnKeys=e,this.ColumnKeys=this._columnKeys.split(",")},enumerable:!0,configurable:!0}),e}();s([r.i(n.Input)(),a("design:type",String)],o.prototype,"key",void 0),s([r.i(n.Input)(),a("design:type",String)],o.prototype,"name",void 0),s([r.i(n.Input)(),a("design:type","function"==typeof(c=void 0!==i.Observable&&i.Observable)&&c||Object)],o.prototype,"enabled",void 0),s([r.i(n.Input)(),a("design:type",String),a("design:paramtypes",[String])],o.prototype,"columnKeys",null),o=s([r.i(n.Directive)({selector:"ark-dt-mode"})],o);var c},kZql:function(e,t,r){"use strict";var n=r("EM12");r.d(t,"a",function(){return i});var i={production:!0,demo:!1,demoDate:null,configJsOverride:null,configJsDefault:n.a.configJs,apiBaseUrl:"//:/api",signalrBaseUrl:"//:/signalr"}},lCrv:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("ATz5")),a=r("lHWG"),o=r("kZql"),c=r("vwbq"),l=r("PJh5");r.n(l);r.d(t,"a",function(){return p});var d=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,r){this.dataService=e,this.httpService=t,this.zone=r,this._structures=new i.BehaviorSubject(void 0),this.keysGetter=Object.keys,this.ownerSortField="locations",this.ownerSortFunctions={locations:function(e,t){return e.AreaCount>t.AreaCount?-1:e.AreaCountt.StructureCount?-1:e.StructureCountt.StructureCount?-1:e.StructureCountt.LastActiveTime||void 0==t.LastActiveTime?1:0}},this.width=1024,this.height=1024,this.zoom=c.a().scaleExtent([1,8])}return Object.defineProperty(e.prototype,"structures",{get:function(){return this._structures.getValue()},set:function(e){this._structures.next(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._structuresSubscription=this._structures.subscribe(function(t){return e.update(t)});var t=this.mapContainer.nativeElement;this.map={},this.map.canvas=c.b(t).append("canvas").attr("width",1024).attr("height",1024).node().getContext("2d"),this.map.svg=c.b(t).append("svg").attr("viewBox","0 0 1024 1024").attr("preserveAspectRatio","xMidYMid").append("g").on("contextmenu",function(e,t){c.c.preventDefault()}),this.map.svg.append("rect").attr("class","overlay").attr("width",1024).attr("height",1024),this.map.x=c.d().domain([0,1024]).range([0,1024]),this.map.y=c.d().domain([0,1024]).range([0,1024]),c.b(t).call(this.zoom.on("zoom",function(){e.hideContextMenu(),e.redraw()})).on("wheel.zoom",null),this.structures&&this.updateMap()},e.prototype.ngOnDestroy=function(){this._structuresSubscription.unsubscribe()},e.prototype.zoomIn=function(){this.zoom.scaleBy(c.b(this.mapContainer.nativeElement),1.2)},e.prototype.zoomOut=function(){this.zoom.scaleBy(c.b(this.mapContainer.nativeElement),.8)},e.prototype.updateSelection=function(){var e=this;this.map.svg.circle.attr("display",function(t){var r=e.structures.Owners[t.OwnerId];return t.Removed||r.Removed||e.selectedOwner&&(!e.selectedOwner||e.selectedOwner.Id!=t.OwnerId)?"none":"block"}),this.redraw()},e.prototype.update=function(e){this.sortOwners(e),this.map&&this.updateMap()},e.prototype.sortOwners=function(e){var t=this.ownerSortFunctions[this.ownerSortField];if(e){var r=e.Owners.slice();r.sort(t),this.ownersSorted=r}else this.ownersSorted=void 0},e.prototype.updateMap=function(){var e=this;this.map.svg.nodes=this.structures.Areas,this.map.svg.draw=function(){e.map.svg.circle=e.map.svg.selectAll("circle").data(e.map.svg.nodes).enter().append("circle").attr("r",function(e){return e.RadiusPx<2?2:e.RadiusPx}).attr("fill","transparent").attr("stroke",function(t){var r=e.structures.Owners[t.OwnerId];return!!r.LastActiveTime&&l(new Date(r.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(t.StructureCount>=100||t.TrashQuota<.5&&t.StructureCount>=10)?"magenta":"red"}).attr("stroke-width",function(t){var r=e.structures.Owners[t.OwnerId];return!!r.LastActiveTime&&l(new Date(r.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(t.StructureCount>=100||t.TrashQuota<.5&&t.StructureCount>=10)?3:2}).attr("transform",e.map.svg.transform),e.map.svg.circle.on("click",function(t){c.c.preventDefault();var r={};r.x=c.c.pageX,r.y=c.c.pageY,e.showAreaModal(t,r)}),e.map.svg.circle.append("svg:title").text(function(t){var r=e.structures.Owners[t.OwnerId],n=r.LastActiveTime?l(new Date(r.LastActiveTime)).fromNow():null;return r.Name+": "+t.StructureCount+" structures\nCoords: "+t.Latitude+", "+t.Longitude+"\n"+(n?"Last active: "+n+"\n":"")+"---\n"+t.Structures.map(function(t){var r=e.structures.Types[t.t];return t.c+": "+(r?r.Name:t.t)}).join("\n")})},this.map.svg.draw(),this.map.svg.transform=function(t){return"translate("+e.map.x(t.TopoMapX)+","+e.map.y(t.TopoMapY)+")"},this.map.svg.circle.attr("transform",this.map.svg.transform)},e.prototype.imageLoaded=function(e){var t=this;this.img=e,this.width=e?e.naturalWidth:1024,this.height=e?e.naturalHeight:1024,window.setTimeout(function(){t.resize(),t.redraw()},100)},e.prototype.resize=function(){},e.prototype.redraw=function(){var e=this,t=c.e(this.mapContainer.nativeElement);this.map.svg.attr("transform","translate("+t.x+","+t.y+") scale("+t.k+")"),t.k!=this.prevTransformK&&this.map.svg.circle.attr("stroke-width",function(r){var n=e.structures.Owners[r.OwnerId];return(!!n.LastActiveTime&&l(new Date(n.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(r.StructureCount>=100||r.TrashQuota<.5&&r.StructureCount>=10)?3:2)/t.k});var r=this.map.canvas;r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,1024,1024),r.translate(t.x,t.y),r.scale(t.k,t.k),this.img&&r.drawImage(this.img,0,0),this.prevTransformK=t.k},e.prototype.ngOnChanges=function(e){var t=this;if(null!=this.mapName){var r=new Image;r.onload=function(){return t.imageLoaded(r)},r.onerror=function(){return t.imageLoaded(void 0)},r.src=o.a.demo?"assets/demo/Ragnarok.jpg":this.getApiBaseUrl()+"/map/"+this.mapName,r.complete&&(r.onload=null,r.onerror=null,this.imageLoaded(r))}},e.prototype.getApiBaseUrl=function(){return o.a.apiBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e.prototype.reset=function(){this.selectedOwner=void 0,this.updateSelection()},e.prototype.setSelectedOwner=function(e){this.selectedOwner=e,this.updateSelection()},e.prototype.setOwnerSort=function(e){this.ownerSortField=e,this.sortOwners(this.structures)},e.prototype.showAreaModal=function(e,t){this.currentArea=e,this.currentOwner=this.structures.Owners[e.OwnerId],c.b(this.contextMenu.nativeElement).style("display","block"),c.c&&c.c.stopPropagation()},e.prototype.showOwnerModal=function(e,t){this.currentOwner=t,c.b(this.contextMenu.nativeElement).style("display","block"),e.stopPropagation()},e.prototype.showInfoModal=function(e,t){var r={};r.Header=e,r.Message=t,this.modalInfo=r,c.b(this.contextMenu.nativeElement).style("display","block"),c.c&&c.c.stopPropagation()},e.prototype.hideContextMenu=function(){c.b(this.contextMenu.nativeElement).style("display","none"),this.currentArea=void 0,this.currentOwner=void 0,this.modalInfo=void 0},e.prototype.destroyCurrentArea=function(e){var t=this;this.httpService.adminDestroyStructuresForTeamIdAtPosition(this.serverKey,this.currentOwner.OwnerId,this.currentArea.X,this.currentArea.Y,+this.currentArea.RadiusUu+1e3,1).then(function(e){t.currentArea.Removed=!0,t.currentOwner.AreaCount-=1,t.currentOwner.StructureCount-=t.currentArea.StructureCount,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyAllStructuresForTeam=function(e){var t=this;this.httpService.adminDestroyAllStructuresForTeamId(this.serverKey,this.currentOwner.OwnerId).then(function(e){t.currentOwner.Removed=!0,t.currentOwner.AreaCount=0,t.currentOwner.StructureCount=0,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyDinosForTeam=function(e){var t=this;this.httpService.adminDestroyDinosForTeamId(this.serverKey,this.currentOwner.OwnerId).then(function(e){t.currentOwner.CreatureCount=0,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.saveWorld=function(e){var t=this;this.httpService.adminSaveWorld(this.serverKey).then(function(e){t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e}();d([r.i(n.Input)(),u("design:type",Object),u("design:paramtypes",[Object])],p.prototype,"structures",null),d([r.i(n.Input)(),u("design:type",String)],p.prototype,"serverKey",void 0),d([r.i(n.Input)(),u("design:type",String)],p.prototype,"mapName",void 0),d([r.i(n.ViewChild)("map"),u("design:type","function"==typeof(h=void 0!==n.ElementRef&&n.ElementRef)&&h||Object)],p.prototype,"mapContainer",void 0),d([r.i(n.ViewChild)("contextMenu"),u("design:type","function"==typeof(m=void 0!==n.ElementRef&&n.ElementRef)&&m||Object)],p.prototype,"contextMenu",void 0),p=d([r.i(n.Component)({selector:"arkmap-structures",template:r("QMiF"),styles:[r("fT+k")],encapsulation:n.ViewEncapsulation.None}),u("design:paramtypes",["function"==typeof(f=void 0!==s.a&&s.a)&&f||Object,"function"==typeof(v=void 0!==a.a&&a.a)&&v||Object,"function"==typeof(g=void 0!==n.NgZone&&n.NgZone)&&g||Object])],p);var h,m,f,v,g},lHWG:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Fzro"),s=r("eErF"),a=(r.n(s),r("kZql"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e){this.http=e,this.headers=new i.c({"Content-Type":"application/json"}),this.serversUrl="/servers",this.serverUrl="/server",this.wildCreaturesUrl="/wildcreatures",this.structuresUrl="/structures",this.adminServerUrl="/adminserver",this.administerUrl="/administer",this.playerUrl="/player"}return e.prototype.getOptions=function(){var e="true"==localStorage.getItem("demoMode"),t=new i.d({withCredentials:!0});return e&&(t.headers||(t.headers=new i.c),t.headers.append("demoMode","true")),t},e.prototype.getServers=function(){return this.http.get(""+this.getApiBaseUrl()+this.serversUrl+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getServer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.serverUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getWildCreatures=function(e){return this.http.get(""+this.getApiBaseUrl()+this.wildCreaturesUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getStructures=function(e){return this.http.get(""+this.getApiBaseUrl()+this.structuresUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getPlayer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.playerUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getAdminServer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.adminServerUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyAllStructuresForTeamId=function(e,t){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyAllStructuresForTeamId/"+e+"?teamId="+t+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyStructuresForTeamIdAtPosition=function(e,t,r,n,i,s){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyStructuresForTeamIdAtPosition/"+e+"?teamId="+t+"&x="+r+"&y="+n+"&radius="+i+"&rafts="+s+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyDinosForTeamId=function(e,t){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyDinosForTeamId/"+e+"?teamId="+t+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminSaveWorld=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/SaveWorld/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminListFertilizedEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DroppedEggsList/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyAllEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyAllEggs/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroySpoiledEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroySpoiledEggs/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getApiBaseUrl=function(){return a.a.apiBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e.prototype.handleError=function(e){return Promise.reject(e.message||e)},e}();l=o([r.i(n.Injectable)(),c("design:paramtypes",["function"==typeof(d=void 0!==i.b&&i.b)&&d||Object])],l);var d},lRu1:function(e,t){e.exports='
\n
\n

Connection error

\n

The application was unable to connect to the Web API. This could be due to a configuration error...

\n
\n
'},m8aW:function(e,t){e.exports=''},mf93:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},ne8d:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},oLRk:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},okgc:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},qn86:function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("PJh5")),o=(r.n(a),r("ATz5")),c=r("+Lwu"),l=r("lHWG"),d=r("+rAa");r.d(t,"a",function(){return h});var u=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},p=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},h=function(){function e(e,t,n,i,s,a,o){this.route=e,this.router=t,this.httpService=n,this.dataService=i,this.messageService=s,this.notificationsService=a,this.ref=o,this.menuOption=void 0,this.loaded=!1,this.creaturesLoaded=!1,this.keysGetter=Object.keys,this.showMap=!1,this.creaturesMode="status",this.creaturesSortField="base_level",this.creaturesAltSortFields="base_level,gender",this.creaturesSortFunctions={gender:function(e,t,n){return r.i(d.b)(e.Gender,t.Gender,n)},base_level:function(e,t,n){return r.i(d.c)(e.BaseLevel,t.BaseLevel,!n)},tameable:function(e,t,n){return r.i(d.c)(e.IsTameable,t.IsTameable,!n)},latitude:function(e,t,n){return r.i(d.d)(e.Latitude,t.Latitude,n,1)},longitude:function(e,t,n){return r.i(d.d)(e.Longitude,t.Longitude,n,1)},x:function(e,t,n){return r.i(d.d)(e.X,t.X,n,0)},y:function(e,t,n){return r.i(d.d)(e.Y,t.Y,n,0)},z:function(e,t,n){return r.i(d.d)(e.Z,t.Z,n,0)},stat_health:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Health:null,void 0!=t.BaseStats?t.BaseStats.Health:null,!n)},stat_stamina:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Stamina:null,void 0!=t.BaseStats?t.BaseStats.Stamina:null,!n)},stat_oxygen:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Oxygen:null,void 0!=t.BaseStats?t.BaseStats.Oxygen:null,!n)},stat_food:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Food:null,void 0!=t.BaseStats?t.BaseStats.Food:null,!n)},stat_weight:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Weight:null,void 0!=t.BaseStats?t.BaseStats.Weight:null,!n)},stat_melee:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Melee:null,void 0!=t.BaseStats?t.BaseStats.Melee:null,!n)},stat_speed:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.MovementSpeed:null,void 0!=t.BaseStats?t.BaseStats.MovementSpeed:null,!n)},id1:function(e,t,n){return r.i(d.c)(e.Id1,t.Id1,n)},id2:function(e,t,n){return r.i(d.c)(e.Id1,t.Id1,n)}},this.playerSortFunctions={character_name:function(e,t,n){return r.i(d.b)(e.CharacterName,t.CharacterName,n)},tribe_name:function(e,t,n){return r.i(d.b)(e.TribeName,t.TribeName,n)},last_active:function(e,t,n){return r.i(d.c)(e.LastActiveTime,t.LastActiveTime,!n)}},this.tribeSortFunctions={tribe_name:function(e,t,n){return r.i(d.b)(e.Name,t.Name,n)},last_active:function(e,t,n){return r.i(d.c)(e.LastActiveTime,t.LastActiveTime,!n)}},this.wildStatisticsSortFunctions={species:function(e,t,n){return r.i(d.b)(e.Name,t.Name,n)},class_name:function(e,t,n){return r.i(d.b)(e.ClassName,t.ClassName,n)},count:function(e,t,n){return r.i(d.c)(e.Count,t.Count,!n)},fraction:function(e,t,n){return r.i(d.d)(e.Fraction,t.Fraction,!n,4)}}}return e.prototype.getServer=function(){var e=this;this.httpService.getServer(this.serverKey).then(function(t){e.server=t,e.filter(),e.loaded=!0}).catch(function(t){e.server=null,e.filteredPlayers=null,e.filteredTribes=null,e.loaded=!0})},e.prototype.getWildCreatures=function(){var e=this;this.httpService.getWildCreatures(this.serverKey).then(function(t){e.wild=t,e.species=Object.keys(e.wild.Species).sort(function(t,n){return r.i(d.b)(e.wild.Species[t].Name||t,e.wild.Species[n].Name||n,!0)}),e.selectedSpecies&&void 0!=e.species.find(function(t){return t==e.selectedSpecies})||(e.selectedSpecies=e.species.length>0?e.species[0]:null),e.filterAndSortWild(),e.creaturesLoaded=!0,e.ref.detectChanges()}).catch(function(t){e.wild=null,e.species=null,e.filteredCreatures=null,e.creaturesLoaded=!0})},e.prototype.ngOnInit=function(){var e=this;this.accessControl_pages_player=this.dataService.hasFeatureAccessObservable("pages","player"),this.serverKey=this.route.snapshot.params.id,this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){e.menuOption=t,0!=e.creaturesLoaded||"wildcreatures"!=e.menuOption&&"wildcreatures-statistics"!=e.menuOption||e.getWildCreatures()}),this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){e.serverKey==t&&(e.updateServer(),e.showServerUpdateNotification(t))}),this.getServer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.filter=function(){var e=this.dataService.getCurrentDate(),t=e.subtract(90,"day");this.filteredPlayers=this.server.Players.filter(function(e){return a(new Date(e.LastActiveTime)).isSameOrAfter(t)}),this.filteredTribes=this.server.Tribes.filter(function(e){return a(new Date(e.LastActiveTime)).isSameOrAfter(t)})},e.prototype.sortWild=function(){var e=this,t="-"!=this.creaturesSortField[0],r=this.creaturesSortFunctions[this.creaturesSortField.replace(/^\-/,"")],n=this.creaturesAltSortFields.split(",").map(function(t){var r={};return r.asc="-"!=t[0],r.sortFunc=e.creaturesSortFunctions[t.replace(/^\-/,"")],r});void 0!=this.filteredCreatures&&this.filteredCreatures.sort(function(e,i){var s=r(e,i,t);if(0==s)for(var a=0,o=n;a=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},u=function(){function e(e,t){this.doc=e,this.eventManager=t,this.hotkeys=new Map,this.defaults={element:this.doc}}return e.prototype.add=function(e){var t=this,r=o({},this.defaults,e),n="keydown."+r.keys;return r.description&&this.hotkeys.set(r.keys,r.description),new s.Observable(function(e){var i=function(t){t.preventDefault(),e.next(t)},s=t.eventManager.addEventListener(r.element,n,i);return function(){s(),t.hotkeys.delete(r.keys)}})},e}();u=c([r.i(n.Injectable)(),d(0,r.i(n.Inject)(a.DOCUMENT)),l("design:paramtypes",[Object,"function"==typeof(p=void 0!==i.EventManager&&i.EventManager)&&p||Object])],u);var p},rHbN:function(e,t){e.exports='\r\n \r\n \r\n'},rZY4:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"tr th.orderBy{cursor:pointer}a.w3-button.disabled{color:#a9a9a9}a.w3-button.disabled:hover{color:#a9a9a9!important;background-color:transparent!important;opacity:1!important;cursor:default}",""]),e.exports=e.exports.toString()},uslO:function(e,t,r){function n(e){return r(i(e))}function i(e){var t=s[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}var s={"./af":"3CJN","./af.js":"3CJN","./ar":"3MVc","./ar-dz":"tkWw","./ar-dz.js":"tkWw","./ar-kw":"j8cJ","./ar-kw.js":"j8cJ","./ar-ly":"wPpW","./ar-ly.js":"wPpW","./ar-ma":"dURR","./ar-ma.js":"dURR","./ar-sa":"7OnE","./ar-sa.js":"7OnE","./ar-tn":"BEem","./ar-tn.js":"BEem","./ar.js":"3MVc","./az":"eHwN","./az.js":"eHwN","./be":"3hfc","./be.js":"3hfc","./bg":"lOED","./bg.js":"lOED","./bm":"hng5","./bm.js":"hng5","./bn":"aM0x","./bn.js":"aM0x","./bo":"w2Hs","./bo.js":"w2Hs","./br":"OSsP","./br.js":"OSsP","./bs":"aqvp","./bs.js":"aqvp","./ca":"wIgY","./ca.js":"wIgY","./cs":"ssxj","./cs.js":"ssxj","./cv":"N3vo","./cv.js":"N3vo","./cy":"ZFGz","./cy.js":"ZFGz","./da":"YBA/","./da.js":"YBA/","./de":"DOkx","./de-at":"8v14","./de-at.js":"8v14","./de-ch":"Frex","./de-ch.js":"Frex","./de.js":"DOkx","./dv":"rIuo","./dv.js":"rIuo","./el":"CFqe","./el.js":"CFqe","./en-SG":"oYA3","./en-SG.js":"oYA3","./en-au":"Sjoy","./en-au.js":"Sjoy","./en-ca":"Tqun","./en-ca.js":"Tqun","./en-gb":"hPuz","./en-gb.js":"hPuz","./en-ie":"ALEw","./en-ie.js":"ALEw","./en-il":"QZk1","./en-il.js":"QZk1","./en-nz":"dyB6","./en-nz.js":"dyB6","./eo":"Nd3h","./eo.js":"Nd3h","./es":"LT9G","./es-do":"7MHZ","./es-do.js":"7MHZ","./es-us":"INcR","./es-us.js":"INcR","./es.js":"LT9G","./et":"XlWM","./et.js":"XlWM","./eu":"sqLM","./eu.js":"sqLM","./fa":"2pmY","./fa.js":"2pmY","./fi":"nS2h","./fi.js":"nS2h","./fo":"OVPi","./fo.js":"OVPi","./fr":"tzHd","./fr-ca":"bXQP","./fr-ca.js":"bXQP","./fr-ch":"VK9h","./fr-ch.js":"VK9h","./fr.js":"tzHd","./fy":"g7KF","./fy.js":"g7KF","./ga":"U5Iz","./ga.js":"U5Iz","./gd":"nLOz","./gd.js":"nLOz","./gl":"FuaP","./gl.js":"FuaP","./gom-latn":"+27R","./gom-latn.js":"+27R","./gu":"rtsW","./gu.js":"rtsW","./he":"Nzt2","./he.js":"Nzt2","./hi":"ETHv","./hi.js":"ETHv","./hr":"V4qH","./hr.js":"V4qH","./hu":"xne+","./hu.js":"xne+","./hy-am":"GrS7","./hy-am.js":"GrS7","./id":"yRTJ","./id.js":"yRTJ","./is":"upln","./is.js":"upln","./it":"FKXc","./it-ch":"/E8D","./it-ch.js":"/E8D","./it.js":"FKXc","./ja":"ORgI","./ja.js":"ORgI","./jv":"JwiF","./jv.js":"JwiF","./ka":"RnJI","./ka.js":"RnJI","./kk":"j+vx","./kk.js":"j+vx","./km":"5j66","./km.js":"5j66","./kn":"gEQe","./kn.js":"gEQe","./ko":"eBB/","./ko.js":"eBB/","./ku":"kI9l","./ku.js":"kI9l","./ky":"6cf8","./ky.js":"6cf8","./lb":"z3hR","./lb.js":"z3hR","./lo":"nE8X","./lo.js":"nE8X","./lt":"/6P1","./lt.js":"/6P1","./lv":"jxEH","./lv.js":"jxEH","./me":"svD2","./me.js":"svD2","./mi":"gEU3","./mi.js":"gEU3","./mk":"Ab7C","./mk.js":"Ab7C","./ml":"oo1B","./ml.js":"oo1B","./mn":"CqHt","./mn.js":"CqHt","./mr":"5vPg","./mr.js":"5vPg","./ms":"ooba","./ms-my":"G++c","./ms-my.js":"G++c","./ms.js":"ooba","./mt":"oCzW","./mt.js":"oCzW","./my":"F+2e","./my.js":"F+2e","./nb":"FlzV","./nb.js":"FlzV","./ne":"/mhn","./ne.js":"/mhn","./nl":"3K28","./nl-be":"Bp2f","./nl-be.js":"Bp2f","./nl.js":"3K28","./nn":"C7av","./nn.js":"C7av","./pa-in":"pfs9","./pa-in.js":"pfs9","./pl":"7LV+","./pl.js":"7LV+","./pt":"ZoSI","./pt-br":"AoDM","./pt-br.js":"AoDM","./pt.js":"ZoSI","./ro":"wT5f","./ro.js":"wT5f","./ru":"ulq9","./ru.js":"ulq9","./sd":"fW1y","./sd.js":"fW1y","./se":"5Omq","./se.js":"5Omq","./si":"Lgqo","./si.js":"Lgqo","./sk":"OUMt","./sk.js":"OUMt","./sl":"2s1U","./sl.js":"2s1U","./sq":"V0td","./sq.js":"V0td","./sr":"f4W3","./sr-cyrl":"c1x4","./sr-cyrl.js":"c1x4","./sr.js":"f4W3","./ss":"7Q8x","./ss.js":"7Q8x","./sv":"Fpqq","./sv.js":"Fpqq","./sw":"DSXN","./sw.js":"DSXN","./ta":"+7/x","./ta.js":"+7/x","./te":"Nlnz","./te.js":"Nlnz","./tet":"gUgh","./tet.js":"gUgh","./tg":"5SNd","./tg.js":"5SNd","./th":"XzD+","./th.js":"XzD+","./tl-ph":"3LKG","./tl-ph.js":"3LKG","./tlh":"m7yE","./tlh.js":"m7yE","./tr":"k+5o","./tr.js":"k+5o","./tzl":"iNtv","./tzl.js":"iNtv","./tzm":"FRPF","./tzm-latn":"krPU","./tzm-latn.js":"krPU","./tzm.js":"FRPF","./ug-cn":"To0v","./ug-cn.js":"To0v","./uk":"ntHu","./uk.js":"ntHu","./ur":"uSe8","./ur.js":"uSe8","./uz":"XU1s","./uz-latn":"/bsm","./uz-latn.js":"/bsm","./uz.js":"XU1s","./vi":"0X8Q","./vi.js":"0X8Q","./x-pseudo":"e/KL","./x-pseudo.js":"e/KL","./yo":"YXlc","./yo.js":"YXlc","./zh-cn":"Vz2w","./zh-cn.js":"Vz2w","./zh-hk":"ZUyn","./zh-hk.js":"ZUyn","./zh-tw":"BbgG","./zh-tw.js":"BbgG"};n.keys=function(){return Object.keys(s)},n.resolve=i,e.exports=n,n.id="uslO"},vMp4:function(e,t,r){"use strict";var n=r("3j3K"),i=r("3MNG"),s=(r.n(i),r("2Je8")),a=r("+rAa");r.d(t,"a",function(){return d});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},d=function(){function e(e,t){this.doc=e,this.notificationsService=t,this._show=!1,this._hoverHide=!1,this._isInitialized=!1,this.customTheme=[],this.customThemeGroups=[{key:"dark",name:"Dark Theme",theme:[]},{key:"light",name:"Light Theme",theme:[]}],this.currentCustomThemeGroup=this.customThemeGroups[0]}return e.prototype.toHexColor=function(e){var t=this.doc.createElement("div");t.style.display="none",t.style.color=e;var r=window.getComputedStyle(this.doc.body.appendChild(t)).color.match(/\d+/g).map(function(e){return parseInt(e,10)});return this.doc.body.removeChild(t),r.length<3?(console.log("Could not convert color '"+e+"' to hex"),e):"#"+((1<<24)+(r[0]<<16)+(r[1]<<8)+r[2]).toString(16).substr(1)},e.prototype.show=function(){this._isInitialized||this.init(),this._show=!0},e.prototype.init=function(){this._isInitialized=!0;for(var e=[],t=0,r=this.customThemeGroups;t\r\n
\r\n

Loading...

\r\n
\r\n\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given server key.

\r\n
\r\n
\r\n
\r\n

Players

\r\n \r\n \r\n \r\n \r\n Character Name\r\n \r\n \r\n {{player.CharacterName}}{{player.CharacterName}}\r\n \r\n \r\n \r\n \r\n Tribe Name\r\n \r\n \r\n {{player.TribeName}}\r\n \r\n \r\n \r\n \r\n Last Active\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n

Tribes

\r\n \r\n \r\n \r\n \r\n Tribe Name\r\n \r\n \r\n {{tribe.Name}}\r\n \r\n \r\n \r\n \r\n Members\r\n \r\n \r\n {{getTribeMember(member)?.CharacterName || member}}{{getTribeMember(member)?.CharacterName || member}}, \r\n \r\n \r\n \r\n \r\n Last Active\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n

Wild Statistics {{(wild.Statistics.Species?.length || 0) | number}}

\r\n \r\n \r\n \r\n \r\n Species\r\n \r\n \r\n {{species.Name}}\r\n \r\n \r\n \r\n \r\n Class Name\r\n \r\n \r\n {{species.ClassName}}\r\n \r\n \r\n \r\n \r\n Aliases\r\n \r\n \r\n {{species.Aliases.length > 0 ? species.Aliases.join(\', \') : \'\'}}\r\n \r\n \r\n \r\n \r\n Count\r\n \r\n \r\n {{species.Count | number}}\r\n \r\n \r\n \r\n \r\n Fraction\r\n \r\n \r\n {{species.Fraction | percent:\'1.0-4\'}}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n

Wild Creatures {{(filteredCreatures?.length || 0) | number}} / {{(wild?.Statistics?.CreatureCount || 0) | number}}

\r\n
\r\n
\r\n
There are no creatures...
\r\n \r\n \r\n \x3c!--
\r\n close\r\n \r\n
--\x3e\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
GenderBase LevelTameableXYZLatLngHPSTOXFOWEMESPID1ID2
No matching creatures...
{{creature.Gender}}{{creature.BaseLevel}}{{(wild.Species[selectedSpecies].IsTameable && creature.IsTameable == true ? "Yes" : "No")}}{{creature.X}}{{creature.Y}}{{creature.Z}}{{creature.Latitude | number:\'1.1-1\'}}{{creature.Longitude | number:\'1.1-1\'}}{{creature.BaseStats?.Health}}{{creature.BaseStats?.Stamina}}{{creature.BaseStats?.Oxygen}}{{creature.BaseStats?.Food}}{{creature.BaseStats?.Weight}}{{creature.BaseStats?.Melee}}{{creature.BaseStats?.MovementSpeed}}content_copy{{creature.Id1}}{{creature.Id2}}
\r\n
\r\n
\r\n
\r\n'}},[0]); \ No newline at end of file diff --git a/ArkBot/WebApp/dist/main.5c285ad7e37cab7baf69.bundle.js b/ArkBot/WebApp/dist/main.5c285ad7e37cab7baf69.bundle.js new file mode 100644 index 0000000..50b363c --- /dev/null +++ b/ArkBot/WebApp/dist/main.5c285ad7e37cab7baf69.bundle.js @@ -0,0 +1 @@ +webpackJsonp([1,5],{"+Lwu":function(e,t,r){"use strict";var n=r("3j3K"),i=r("kZql");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this.zone=e,this.serverUpdated$=new n.EventEmitter}return e.prototype.connect=function(){var e=this;this.connection=$.hubConnection(this.getSignalRBaseUrl()),this.proxy=this.connection.createHubProxy("ServerUpdateHub"),this.proxy.on("serverUpdateNotification",function(t){e.zone.run(function(){e.serverUpdated$.emit(t)})}),this.connection.start().done(function(){return console.log("Now connected, connection ID="+e.connection.id)}).fail(function(){return console.log("Could not connect")})},e.prototype.getSignalRBaseUrl=function(){return i.a.signalrBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e}();o=s([r.i(n.Injectable)(),a("design:paramtypes",["function"==typeof(c=void 0!==n.NgZone&&n.NgZone)&&c||Object])],o);var c},"+qYp":function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e}();l=o([r.i(n.Component)({selector:"app-access-denied",template:r("1DTO"),styles:[r("aijx")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},"+rAa":function(e,t,r){"use strict";function n(e,t,r,n){var i=a(e,t,r);if(void 0!=i)return i;var s=Math.pow(10,n),o=void 0!=n?Math.round(e*s)/s:e,c=void 0!=n?Math.round(t*s)/s:t;return o>c?r?1:-1:ot?r?1:-1:e=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t){this.dataService=e,this.router=t}return e.prototype.canActivate=function(e,t){var r=this;return s.Observable.fromPromise(this.dataService.getServers().then(function(t){if(t){var n=e.params.playerid;return r.dataService.hasFeatureAccess("pages",e.data.name,n)?"access":"noaccess"}return"connectionerror"}).catch(function(){return"connectionerror"})).map(function(e){return"noaccess"==e?r.router.navigateByUrl("/accessdenied",{skipLocationChange:!0}):"connectionerror"==e&&r.router.navigateByUrl("/connectionerror",{skipLocationChange:!0}),"access"==e})},e}();l=o([r.i(n.Injectable)(),c("design:paramtypes",["function"==typeof(d=void 0!==a.a&&a.a)&&d||Object,"function"==typeof(u=void 0!==i.b&&i.b)&&u||Object])],l);var d,u},"/Wuq":function(e,t){e.exports='
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given server key.

\r\n
\r\n
\r\n
\r\n

Players

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam IdCharacter IdSteam NameCharacter NameTribe NameTribe IdStructuresCreaturesLast Active
{{player.FakeSteamId || player.SteamId}}{{player.Id}}{{player.SteamName}}{{player.CharacterName}}{{player.CharacterName}}{{player.TribeName}}{{player.TribeId}}{{player.StructureCount}}{{player.CreatureCount}}{{dataService.toRelativeDate(player.LastActiveTime)}}
\r\n
\r\n
\r\n
\r\n

Tribes

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
IdNameMembersStructuresCreaturesLast Active
{{tribe.Id}}{{tribe.Name}}{{getTribeMember(member)?.CharacterName || member}}{{getTribeMember(member)?.CharacterName || member}}, {{tribe.StructureCount}}{{tribe.CreatureCount}}{{dataService.toRelativeDate(tribe.LastActiveTime)}}
\r\n
\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n\r\n
\r\n
\r\n

Egg Summary

\r\n
Save World
\r\n
\r\n\r\n
\r\n
\r\n

Summary

\r\n
\r\n
\r\n

Total Eggs: {{totalEggCount}}

\r\n

Fertilized Eggs: {{fertilizedEggsCount}}

\r\n

Spoiled Eggs: {{spoiledEggsCount}}

\r\n
\r\n
\r\n

There are no fertilized eggs on the map

\r\n
\r\n
\r\n\r\n
\r\n

Fertilized Eggs

\r\n
Destroy All Eggs
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CreatureEgg LevelSpoil Time
{{egg.Dino}}{{egg.EggLevel}}{{egg.SpoilTime}}
\r\n
\r\n\r\n
\r\n

Spoiled Eggs

\r\n
Destroy Spoiled Eggs
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CreatureEgg LevelDropped By
{{egg.Dino}}{{egg.EggLevel}}{{egg.DroppedBy}}{{egg.DroppedBy}}
\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{modalInfo.Header}}

\r\n
\r\n
\r\n
\r\n {{modalInfo.Message}}\r\n
\r\n
\r\n
\r\n
\r\n
'},0:function(e,t,r){e.exports=r("x35b")},"08Wm":function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.dataService.hasFeatureAccess("admin-server","structures")?this.menu.activate("structures"):this.dataService.hasFeatureAccess("admin-server","players")?this.menu.activate("players"):this.dataService.hasFeatureAccess("admin-server","tribes")?this.menu.activate("tribes"):this.dataService.hasFeatureAccess("admin-server","eggs")&&this.menu.activate("eggs")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-admin-server-menu",host:{"[class]":"menu.className"},template:r("bl1B"),styles:[r("9kk6")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},"0Hpj":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Fzro"),s=r("eErF"),a=(r.n(s),r("lHWG"));r.d(t,"a",function(){return d});var o=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.getServers=function(){return this.http.get("assets/demo/servers.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getServer=function(e){return this.http.get("assets/demo/server.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getWildCreatures=function(e){return this.http.get("assets/demo/wildcreatures.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getStructures=function(e){return this.http.get("assets/demo/structures.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getPlayer=function(e){return this.http.get("assets/demo/player.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getAdminServer=function(e){return this.http.get("assets/demo/adminserver.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.adminDestroyAllStructuresForTeamId=function(e,t){return Promise.resolve(null)},t.prototype.adminDestroyStructuresForTeamIdAtPosition=function(e,t,r,n,i,s){return Promise.resolve(null)},t.prototype.adminDestroyDinosForTeamId=function(e,t){return Promise.resolve(null)},t.prototype.adminSaveWorld=function(e){return Promise.resolve(null)},t}(a.a);d=c([r.i(n.Injectable)(),l("design:paramtypes",["function"==typeof(u=void 0!==i.b&&i.b)&&u||Object])],d);var u},"0jRk":function(e,t,r){"use strict";var n=r("3j3K"),i=r("jWPz"),s=r("joX7"),a=r("Gvdl"),o=(r.n(a),r("XlOA")),c=(r.n(o),r("1APj")),l=(r.n(c),r("6Yye")),d=(r.n(l),r("uCY4")),u=(r.n(d),r("wUn1")),p=(r.n(u),r("/lY3"));r.n(p);r.d(t,"a",function(){return f});var h=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},m=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(){function e(e){this.ref=e,this._modeEnabledSubscriptions=[],this._rows$=a.Observable.of([]),this._orderByColumnKey=new a.BehaviorSubject(void 0),this._filter=new a.BehaviorSubject(void 0),this._updateTap=new a.BehaviorSubject(void 0),this._sort=new a.Subject,this._fromRow=0,this._numRows=25,this._totalRows=0,this._enabledColumnsForMode={},this._viewOptions=[{value:25,text:"25"},{value:50,text:"50"},{value:100,text:"100"},{value:250,text:"250"},{value:500,text:"500"},{value:1e3,text:"1000"},{value:1e6,text:"All"}],this._forceUpdate=!0,this._prevColumnKey=void 0,this._prevFilter=void 0,this._prevSortedRows=void 0,this._prevFilteredRows=void 0,this._prevSortedRowsKey=void 0,this._prevFilteredRowsKey=void 0}return e.prototype.ngOnInit=function(){var e=this;this._rows$=a.Observable.combineLatest(this._orderByColumnKey,this._filter.debounceTime(250),this._updateTap,function(e,t,r){return{key:e,filter:t}}).skip(1).startWith({key:this._orderByColumnKey.getValue(),filter:this._filter.getValue()}).switchMap(function(t){return a.Observable.of(e.filterAndSortData(t.key,t.filter))}).catch(function(t){return console.log("Error in component ... "+t),a.Observable.of(e._rows)})},Object.defineProperty(e.prototype,"modeTemplates",{set:function(e){if(e){var t=e.toArray();if(t.length){for(var r=[],n=0,i=t;n0&&(this._currentMode=this._modes[0].key)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnTemplates",{set:function(e){if(e){var t=e.toArray();if(t.length){for(var r=[],n=0,i=t;n=this._totalRows&&(t=this._totalRows-1),this._fromRow=parseInt(""+t),this.ref.markForCheck()},e.prototype.setViewOffsetRelative=function(e){this.setViewOffset(this._fromRow+e)},e.prototype.setFirstPage=function(){this.isFirstPage()||this.setViewOffset(0)},e.prototype.setPrevPage=function(){this.isFirstPage()||this.setViewOffsetRelative(-this._numRows)},e.prototype.setNextPage=function(){this.isLastPage()||this.setViewOffsetRelative(this._numRows)},e.prototype.setLastPage=function(){this.isLastPage()||this.setViewOffset(this._totalRows-this._numRows)},e.prototype.isFirstPage=function(){return this._fromRow<=0},e.prototype.isLastPage=function(){return this._fromRow>=this._totalRows-this._numRows},e.prototype.setViewLimit=function(e){this._numRows=parseInt(""+(e>0?e:1e6)),this.ref.markForCheck()},e.prototype.getLastRowOffset=function(){var e=this._fromRow+this._numRows;return e>this._totalRows?this._totalRows:e},e}();h([r.i(n.ContentChildren)(s.a),m("design:type","function"==typeof(v=void 0!==n.QueryList&&n.QueryList)&&v||Object),m("design:paramtypes",["function"==typeof(g=void 0!==n.QueryList&&n.QueryList)&&g||Object])],f.prototype,"modeTemplates",null),h([r.i(n.ContentChildren)(i.a),m("design:type","function"==typeof(y=void 0!==n.QueryList&&n.QueryList)&&y||Object),m("design:paramtypes",["function"==typeof(b=void 0!==n.QueryList&&n.QueryList)&&b||Object])],f.prototype,"columnTemplates",null),h([r.i(n.Input)(),m("design:type",Object),m("design:paramtypes",[Object])],f.prototype,"rows",null),h([r.i(n.Input)(),m("design:type",String),m("design:paramtypes",[String])],f.prototype,"trackByProp",null),h([r.i(n.Input)(),m("design:type",String),m("design:paramtypes",[String])],f.prototype,"filter",null),h([r.i(n.Input)(),m("design:type",Object)],f.prototype,"filterFunction",void 0),h([r.i(n.Input)(),m("design:type",Object)],f.prototype,"sortFunctions",void 0),h([r.i(n.Input)(),m("design:type",String)],f.prototype,"orderByColumn",void 0),f=h([r.i(n.Component)({selector:"ark-data-table",template:r("jkBB"),styles:[r("rZY4")],changeDetection:n.ChangeDetectionStrategy.OnPush,encapsulation:n.ViewEncapsulation.None}),m("design:paramtypes",["function"==typeof(w=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&w||Object])],f);var v,g,y,b,w},"0onv":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("PJh5"));r.n(s);r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.ref=e,this._time=new i.BehaviorSubject(void 0)}return Object.defineProperty(e.prototype,"time",{get:function(){return this._time.getValue()},set:function(e){this._time.next(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._timeSubscription=this._time.subscribe(function(t){e.update()}),this._counter=i.Observable.interval(1e3).map(function(e){return e}),this._counterSubscription=this._counter.subscribe(function(t){return e.update()})},e.prototype.ngOnDestroy=function(){this._timeSubscription.unsubscribe(),this._counterSubscription.unsubscribe()},e.prototype.update=function(){var e=this.toRelativeDate(this.time);e!=this._str&&(this._str=e,this.ref.markForCheck())},e.prototype.toRelativeDate=function(e){return s(new Date(e)).fromNow()},e}();a([r.i(n.Input)(),o("design:type",Object),o("design:paramtypes",[Object])],c.prototype,"time",null),c=a([r.i(n.Component)({selector:"relative-time",template:"{{_str}}",styles:[r("HOjl")],changeDetection:n.ChangeDetectionStrategy.OnPush}),o("design:paramtypes",["function"==typeof(l=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&l||Object])],c);var l},"1DTO":function(e,t){e.exports='
\n
\n

Access Denied

\n

You do not have access to view this page...

\n
\n
'},"38q8":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Qbdm");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this._sanitizer=e}return e.prototype.transform=function(e){return this._sanitizer.bypassSecurityTrustStyle(e)},e}();o=s([r.i(n.Pipe)({name:"sanitizeStyle"}),a("design:paramtypes",["function"==typeof(c=void 0!==i.DomSanitizer&&i.DomSanitizer)&&c||Object])],o);var c},5305:function(e,t,r){"use strict";var n=r("3j3K"),i=r("kZql"),s=r("vwbq");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(){this.width=1024,this.height=1024,this.zoom=s.a().scaleExtent([1,10])}return e.prototype.imageLoaded=function(e){var t=this;this.img=e,this.width=e.naturalWidth,this.height=e.naturalHeight,window.setTimeout(function(){t.resize(),t.redraw()},100)},e.prototype.resize=function(){},e.prototype.zoomed=function(){var e=s.e(this.canvasRef.nativeElement),t=this.canvasRef.nativeElement.getContext("2d");t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,this.width,this.height),t.translate(e.x,e.y),t.scale(e.k,e.k),this.redraw()},e.prototype.redraw=function(){var e=this.canvasRef.nativeElement.getContext("2d");if(e.drawImage(this.img,0,0),null!=this.points)for(var t=0,r=this.points;t/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e}();a([r.i(n.Input)(),o("design:type",String)],c.prototype,"mapName",void 0),a([r.i(n.Input)(),o("design:type",Array)],c.prototype,"points",void 0),a([r.i(n.ViewChild)("myCanvas"),o("design:type","function"==typeof(l=void 0!==n.ElementRef&&n.ElementRef)&&l||Object)],c.prototype,"canvasRef",void 0),c=a([r.i(n.Component)({selector:"arkmap",template:''}),o("design:paramtypes",[])],c);var l},"5xMp":function(e,t){e.exports='\r\n\r\n
\r\n
\r\n \r\n
Logged in as {{dataService.Servers.User.Name}} | Logout | Login | Theme: Light | Dark
\r\n
\r\n \r\n
\r\n\r\n\r\n'},"6fYc":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".serverdetails th{white-space:nowrap}.serverdetails td{width:99%}",""]),e.exports=e.exports.toString()},"78nn":function(e,t){e.exports="\r\n

Player

\r\n
\r\n
Profile
\r\n
Creatures
\r\n
Creatures (Cloud)
\r\n
Breeding
\r\n
Crops
\r\n
Electrical Generators
\r\n
Kibbles and Eggs
\r\n
Tribe Log
\r\n
\r\n
"},"7T2B":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){this.callback=new n.EventEmitter,this.confirming=!1}return e.prototype.ngOnInit=function(){},e.prototype.onClick=function(e){var t=this;this.confirming?e.detail>=3&&(window.clearTimeout(this.resetTimeout),this.confirming=!1,this.callback.emit()):(this.confirming=!0,this.resetTimeout=window.setTimeout(function(){t.confirming=!1},5e3))},e}();i([r.i(n.Output)(),s("design:type","function"==typeof(o=void 0!==n.EventEmitter&&n.EventEmitter)&&o||Object)],a.prototype,"callback",void 0),i([r.i(n.Input)(),s("design:type",Number)],a.prototype,"width",void 0),i([r.i(n.ViewChild)("confirmButton"),s("design:type","function"==typeof(c=void 0!==n.ElementRef&&n.ElementRef)&&c||Object)],a.prototype,"confirmButton",void 0),a=i([r.i(n.Component)({selector:"confirm-button",template:r("QaTd"),styles:[r("8Zim")]}),s("design:paramtypes",[])],a);var o,c},"7arz":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"7fuz":function(e,t){e.exports='
\n \n
'},"7uO+":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"7xIs":function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.dataService.hasFeatureAccess("server","players")?this.menu.activate("players"):this.dataService.hasFeatureAccess("server","tribes")?this.menu.activate("tribes"):this.dataService.hasFeatureAccess("server","wildcreatures-statistics")?this.menu.activate("wildcreatures-statistics"):this.dataService.hasFeatureAccess("server","wildcreatures")&&this.menu.activate("wildcreatures")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-server-menu",host:{"[class]":"menu.className"},template:r("MjD/"),styles:[r("oLRk")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},"8Zim":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"8kYA":function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this.dataService=e,this.menuOption=void 0,this.menuVisible=!1,this.className="menucontainer"}return e.prototype.ngOnInit=function(){var e=this;this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe()},e.prototype.activate=function(e){this.dataService.SetMenuOption(e)},e.prototype.active=function(e){return this.menuOption==e},e.prototype.toggleMenu=function(){this.menuVisible=!this.menuVisible},e}();o=s([r.i(n.Component)({selector:"app-menu",template:r("m8aW"),styles:[r("ne8d")]}),a("design:paramtypes",["function"==typeof(c=void 0!==i.a&&i.a)&&c||Object])],o);var c},"8zLQ":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(e){this._elementRef=e,this.clickOutside=new n.EventEmitter}return e.prototype.onClick=function(e,t){if(t){this._elementRef.nativeElement.contains(t)||this.clickOutside.emit(e)}},e}();i([r.i(n.Output)(),s("design:type",Object)],a.prototype,"clickOutside",void 0),i([r.i(n.HostListener)("document:click",["$event","$event.target"]),s("design:type",Function),s("design:paramtypes",[Object,Object]),s("design:returntype",void 0)],a.prototype,"onClick",null),a=i([r.i(n.Directive)({selector:"[clickOutside]"}),s("design:paramtypes",["function"==typeof(o=void 0!==n.ElementRef&&n.ElementRef)&&o||Object])],a);var o},"9kk6":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"A+2f":function(e,t){e.exports=''},ATz5:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("lHWG")),a=r("+Lwu"),o=r("kZql"),c=r("PJh5");r.n(c);r.d(t,"a",function(){return u});var l=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},d=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(){function e(e,t){var r=this;this.httpService=e,this.messageService=t,this._servers=new i.BehaviorSubject(void 0),this.menuOption=new i.BehaviorSubject(void 0),this.theme=new i.BehaviorSubject(void 0),this.ServersUpdated$=new n.EventEmitter,t.serverUpdated$.subscribe(function(e){return r.updateServer(e)})}return Object.defineProperty(e.prototype,"Theme",{get:function(){return this.theme.asObservable()},enumerable:!0,configurable:!0}),e.prototype.SetTheme=function(e){this.theme.next(e)},Object.defineProperty(e.prototype,"MenuOption",{get:function(){return this.menuOption.asObservable()},enumerable:!0,configurable:!0}),e.prototype.SetMenuOption=function(e){this.menuOption.next(e)},e.prototype.getServers=function(){var e=this;return this.httpService.getServers().then(function(t){e.Servers=t;var r=t?t.User:void 0;return e.UserSteamId=r&&r.SteamId?r.SteamId:void 0,e._servers.next(t),e.ServersUpdated$.emit(t),!0}).catch(function(t){return e.Servers=null,e.UserSteamId=void 0,e._servers.next(null),e.ServersUpdated$.emit(null),!1})},e.prototype.updateServer=function(e){this.getServers()},e.prototype.hasFeatureAccess=function(e,t,r){var n=this.Servers?this.Servers.AccessControl:void 0;if(!n)return!1;var i=n[e];if(!i)return!1;var s=i[t];if(!s)return!1;var a=this.Servers?this.Servers.User:void 0,o=a&&a.Roles?a.Roles.slice(0):[];a&&a.SteamId&&a.SteamId==r&&o.push("self");for(var c=function(e){if(s.find(function(t){return e.toLowerCase()===t.toLowerCase()}))return{value:!0}},l=0,d=o;l=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e,t){this.dataService=e,this.router=t}return e.prototype.resolve=function(e,t){var r=this;return this.dataService.getServers().then(function(e){return r.dataService}).catch(function(e){return r.dataService})},e}();c=a([r.i(n.Injectable)(),o("design:paramtypes",["function"==typeof(l=void 0!==s.a&&s.a)&&l||Object,"function"==typeof(d=void 0!==i.b&&i.b)&&d||Object])],c);var l,d},CzL3:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("kZql")),a=r("PJh5");r.n(a);r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(){this._ready=!1,this._wasExpired=!1,this._notificationSent=!1,this._time=new i.BehaviorSubject(void 0),this._notification=new i.BehaviorSubject(void 0),this._loadedAt=a()}return Object.defineProperty(e.prototype,"time",{get:function(){return this._time.getValue()},set:function(e){this._time.next(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"notification",{get:function(){return this._notification.getValue()},set:function(e){this._notification.next(e)},enumerable:!0,configurable:!0}),e.prototype.updateDiff=function(e){e&&(s.a.demo?this._wasExpired=a(new Date(e)).diff(a(new Date(s.a.demoDate)))-a().diff(this._loadedAt)<=0:this._wasExpired=a(new Date(e)).diff(a())<=0,this._notificationSent=!1,this._str=void 0,this._ready=this._wasExpired,this._wasExpired||1!=this.state._completed||(this.state._completed=!1)),s.a.demo?this._diff=e||this.time?a.duration(a(new Date(e||this.time)).diff(a(new Date(s.a.demoDate)))-a().diff(this._loadedAt)):void 0:this._diff=e||this.time?a.duration(a(new Date(e||this.time)).diff(a())):void 0},e.prototype.update=function(){if(!this._diff)return"";if(this._diff.asMilliseconds()<=0){if(!this._notificationSent){if(this.notification&&this.state.imprintNotifications&&!this._wasExpired){new Audio("assets/Alarm01.mp3").play()}this._ready=!0}return this._notificationSent=!0,void(this._str=void 0)}var e=this._diff.seconds(),t=this._diff.minutes(),r=this._diff.hours(),n=Math.floor(this._diff.asDays()),i=[];n>0&&i.push(n+"d"),(n>0||r>0)&&i.push(r+"h"),(n>0||r>0||t>0)&&i.push(t+"m"),i.push(e+"s"),this._str=i.join(" "),this._ready=!1,this.state._completed=!1},e.prototype.ngOnInit=function(){var e=this;this._timeSubscription=this._time.subscribe(function(t){e.updateDiff(t),e.update()}),this._notificationSubscription=this._notification.subscribe(function(e){}),this._counter=i.Observable.interval(1e3).map(function(t){return e.updateDiff(void 0),t}),this._counterSubscription=this._counter.subscribe(function(t){return e.update()})},e.prototype.ngOnDestroy=function(){this._timeSubscription.unsubscribe(),this._notificationSubscription.unsubscribe(),this._counterSubscription.unsubscribe()},e}();o([r.i(n.Input)(),c("design:type",Object)],l.prototype,"state",void 0),o([r.i(n.Input)(),c("design:type",Object),c("design:paramtypes",[Object])],l.prototype,"time",null),o([r.i(n.Input)(),c("design:type",Object),c("design:paramtypes",[Object])],l.prototype,"notification",null),l=o([r.i(n.Component)({selector:"timer",template:'{{_str}}',styles:[r("cPj0")]}),c("design:paramtypes",[])],l)},EEDX:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},EM12:function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n={configJs:'var config = {"webapi":{"port":60001},"webapp":{"defaultTheme":"Dark"}};'}},Fnlp:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0,this.demoMode=!1}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.demoMode="true"==localStorage.getItem("demoMode")},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.toggleDemoMode=function(){var e="true"!=localStorage.getItem("demoMode");this.demoMode=e,localStorage.setItem("demoMode",e+"")},e}();l=o([r.i(n.Component)({selector:"app-developer",template:r("7fuz"),styles:[r("EEDX")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},FxpQ:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e}();l=o([r.i(n.Component)({selector:"app-connection-error",template:r("lRu1"),styles:[r("mf93")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},HOjl:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},Iksp:function(e,t,r){"use strict";var n=r("Qbdm"),i=r("KN8t"),s=r("3j3K"),a=r("NVOs"),o=r("5oXY"),c=r("Fzro"),l=r("3MNG"),d=(r.n(l),r("hHgl")),u=r("YWx4"),p=r("KZxv"),h=r("RiXa"),m=r("qn86"),f=r("JLFQ"),v=r("e/mT"),g=r("5305"),y=r("lHWG"),b=r("0Hpj"),w=r("+Lwu"),S=r("ATz5"),C=r("AcJ7"),O=r("r5VE"),k=r("+w0e"),j=r("38q8"),_=r("ilmp"),x=r("8zLQ"),I=r("JKTH"),A=r("8kYA"),F=r("7xIs"),M=r("08Wm"),R=r("lCrv"),T=r("CzL3"),L=r("0onv"),P=r("7T2B"),N=r("+qYp"),D=r("FxpQ"),B=r("Fnlp"),E=r("vMp4"),K=r("J8nT"),U=r("kZql");r.d(t,"a",function(){return G});var z=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},W=[{path:"player/:playerid",canActivate:[k.a],data:{name:"player"},children:[{path:"",component:p.a},{path:"",component:h.a,outlet:"menu"}]},{path:"server/:id",canActivate:[k.a],data:{name:"server"},children:[{path:"",component:m.a},{path:"",component:F.a,outlet:"menu"}]},{path:"admin/:id",canActivate:[k.a],data:{name:"admin-server"},children:[{path:"",component:v.a},{path:"",component:M.a,outlet:"menu"}]},{path:"servers",canActivate:[k.a],data:{name:"home"},children:[{path:"",component:f.a},{path:"",component:I.a,outlet:"menu"}]},{path:"developer",component:B.a},{path:"accessdenied",component:N.a},{path:"connectionerror",component:D.a},{path:"",redirectTo:"/servers",pathMatch:"full"}],G=function(){function e(){}return e}();G=z([r.i(s.NgModule)({declarations:[u.a,f.a,g.a,j.a,_.a,x.a,p.a,h.a,m.a,v.a,I.a,A.a,F.a,M.a,R.a,T.a,L.a,P.a,N.a,D.a,B.a,E.a],imports:[o.a.forRoot(W),d.a.forRoot(),n.BrowserModule,a.a,c.a,i.a,l.SimpleNotificationsModule.forRoot(),K.a],providers:[[{provide:y.a,useClass:U.a.demo?b.a:y.a}],w.a,S.a,C.a,O.a,k.a,{provide:s.LOCALE_ID,useValue:"en-US"}],bootstrap:[u.a]})],G)},J8nT:function(e,t,r){"use strict";var n=r("3j3K"),i=r("2Je8"),s=r("NVOs"),a=r("0jRk"),o=r("jWPz"),c=r("joX7");r.d(t,"a",function(){return d});var l=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},d=function(){function e(){}return e}();d=l([r.i(n.NgModule)({imports:[i.CommonModule,s.a],providers:[],declarations:[a.a,o.a,o.b,o.c,c.a],exports:[a.a,o.a,o.b,o.c,c.a]})],d)},JKTH:function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.menu.activate("overview")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-server-list-menu",host:{"[class]":"menu.className"},template:r("rHbN"),styles:[r("P+hD")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},JLFQ:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0,this.serverCount=0,this.onlinePlayerCount=0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.serversUpdatedSubscription=this.dataService.ServersUpdated$.subscribe(function(t){e.updateData(t)}),this.serverUpdateInterval=window.setInterval(function(){e.dataService.updateServer(null)},6e4),this.updateData(this.dataService.Servers)},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe(),this.serversUpdatedSubscription.unsubscribe(),window.clearInterval(this.serverUpdateInterval)},e.prototype.updateData=function(e){var t=0,r=0;if(e&&e.Servers){t=e.Servers.length;for(var n=0,i=e.Servers;n=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,n,i,s,a,o){this.route=e,this.router=t,this.httpService=n,this.dataService=i,this.messageService=s,this.notificationsService=a,this.ref=o,this.menuOption=void 0,this.theme=void 0,this.imprintNotifications=!1,this.keysGetter=Object.keys,this.loaded=!1,this.showMap=!1,this.creaturesMode="status",this.creatureStates={},this.creaturesSortField="food",this.creaturesAltSortFields="name",this.creaturesSortFunctions={food:function(e,t,n){return r.i(l.d)(e.FoodStatus,t.FoodStatus,n,2)},name:function(e,t,n){return r.i(l.b)(e.Name,t.Name,n)},species:function(e,t,n){return r.i(l.b)(e.Species,t.Species,n)},gender:function(e,t,n){return r.i(l.b)(e.Gender,t.Gender,n)},base_level:function(e,t,n){return r.i(l.c)(e.BaseLevel,t.BaseLevel,!n)},level:function(e,t,n){return r.i(l.c)(e.Level==e.BaseLevel?null:e.Level,t.Level==t.BaseLevel?null:t.Level,!n)},imprint:function(e,t,n){return r.i(l.d)(e.Imprint,t.Imprint,!n,2)},latitude:function(e,t,n){return r.i(l.d)(e.Latitude,t.Latitude,n,1)},longitude:function(e,t,n){return r.i(l.d)(e.Longitude,t.Longitude,n,1)},owner:function(e,t,n){return r.i(l.b)(e.OwnerType,t.OwnerType,n)},stat_health:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Health:null,void 0!=t.BaseStats?t.BaseStats.Health:null,!n)},stat_stamina:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Stamina:null,void 0!=t.BaseStats?t.BaseStats.Stamina:null,!n)},stat_oxygen:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Oxygen:null,void 0!=t.BaseStats?t.BaseStats.Oxygen:null,!n)},stat_food:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Food:null,void 0!=t.BaseStats?t.BaseStats.Food:null,!n)},stat_weight:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Weight:null,void 0!=t.BaseStats?t.BaseStats.Weight:null,!n)},stat_melee:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Melee:null,void 0!=t.BaseStats?t.BaseStats.Melee:null,!n)},stat_speed:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.MovementSpeed:null,void 0!=t.BaseStats?t.BaseStats.MovementSpeed:null,!n)},id1:function(e,t,n){return r.i(l.c)(e.Id1,t.Id1,n)},id2:function(e,t,n){return r.i(l.c)(e.Id1,t.Id1,n)}},this.tribeLogFilterFunction=function(e,t){return null==t||null!=e.Message&&e.Message.toLowerCase().indexOf(t)>=0}}return e.prototype.getPlayer=function(){var e=this;this.httpService.getPlayer(this.steamId).then(function(t){var r=Object.keys(t.Servers);e.serverKey&&void 0!=r.find(function(t){return t==e.serverKey})||(e.serverKey=r.length>0?r[0]:null);var n=Object.keys(t.Clusters);e.clusterKey&&void 0!=n.find(function(t){return t==e.clusterKey})||(e.clusterKey=n.length>0?n[0]:null),e.player=t,e.filterAndSort(),e.sortCluster(),e.filterCluster(),e.loaded=!0,e.ref.detectChanges()}).catch(function(t){e.player=null,e.filteredCreatures=null,e.imprintCreatures=null,e.filteredClusterCreatures=null,e.loaded=!0})},e.prototype.ngOnInit=function(){var e=this;this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.theme$=this.dataService.Theme,this.themeSubscription=this.theme$.subscribe(function(t){e.theme=t}),this.steamId=this.route.snapshot.params.playerid,this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.updateServer(t)}),this.getPlayer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.themeSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.haveMatingCooldown=function(e){return null!=e.NextMating&&new Date(e.NextMating)>new Date},e.prototype.active=function(e){return this.serverKey==e},e.prototype.activate=function(e){this.serverKey=e,this.filterAndSort()},e.prototype.serverWidth=function(){return 100/Object.keys(this.player.Servers).length},e.prototype.activeCluster=function(e){return this.clusterKey==e},e.prototype.activateCluster=function(e){this.clusterKey=e,this.sortCluster(),this.filterCluster()},e.prototype.clusterWidth=function(){return 100/Object.keys(this.player.Clusters).length},e.prototype.sort=function(){var e=this,t="-"!=this.creaturesSortField[0],r=this.creaturesSortFunctions[this.creaturesSortField.replace(/^\-/,"")],n=this.creaturesAltSortFields.split(",").map(function(t){var r={};return r.asc="-"!=t[0],r.sortFunc=e.creaturesSortFunctions[t.replace(/^\-/,"")],r});this.filteredCreatures.sort(function(e,i){var s=r(e,i,t);if(0==s)for(var a=0,o=n;a=0||null!=t.Name&&t.Name.toLowerCase().indexOf(e)>=0})}var t=this.player.Servers[this.serverKey].Creatures.filter(function(e){return null!=e.BabyAge});t.sort(function(e,t){return new Date(e.BabyNextCuddle)new Date(t.BabyNextCuddle)?1:0}),this.imprintCreatures=t;for(var r=[],n=0,i=this.filteredCreatures;nt.Level?-1:e.Level=0||null!=t.Name&&t.Name.toLowerCase().indexOf(e)>=0})}},e.prototype.run=function(){if(null==this.steamId||""==this.steamId)return this.player=null,this.filteredCreatures=null,void(this.imprintCreatures=null);this.getPlayer()},e.prototype.openMap=function(e){this.showMap=!0,e.stopPropagation()},e.prototype.closeMap=function(e){this.showMap=!1},e.prototype.updateServer=function(e){this.getPlayer(),this.showServerUpdateNotification(e)},e.prototype.haveCluster=function(){return null!=this.player&&Object.keys(this.player.Clusters).length>0},e.prototype.sumKibbleAndEggs=function(){return void 0!=this.player.Servers[this.serverKey].KibblesAndEggs?this.player.Servers[this.serverKey].KibblesAndEggs.reduce(function(e,t){return e+t.KibbleCount+t.EggCount},0):0},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.getStateForCreature=function(e){if(e){var t=this.creatureStates[e.Id1+"_"+e.Id2];return t||(t={imprintNotifications:!0},this.creatureStates[e.Id1+"_"+e.Id2]=t),t}},e.prototype.toggleImprintNotificationForCreature=function(e){var t=this.getStateForCreature(e);t.imprintNotifications=!t.imprintNotifications},e.prototype.activeCreaturesMode=function(e){return e==this.creaturesMode},e.prototype.activateCreaturesMode=function(e){this.creaturesMode=e},e.prototype.setCreaturesSort=function(e){var t=this.creaturesSortField==e;this.creaturesSortField=t?"-"+e:e,this.creaturesAltSortFields="latitude"==e?t?"-longitude,name":"longitude,name":"longitude"==e?t?"-latitude,name":"latitude,name":"name",this.sort()},e.prototype.copyCreature=function(e){},e.prototype.getCurrentServer=function(){var e=this;if(this.dataService&&this.dataService.Servers&&this.dataService.Servers.Servers){return this.dataService.Servers.Servers.find(function(t){return t.Key==e.serverKey})}},e.prototype.numCreatureTabs=function(){var e=1;return this.dataService.hasFeatureAccess("player","creatures-basestats",this.steamId)&&(e+=1),this.dataService.hasFeatureAccess("player","creatures-ids",this.steamId)&&(e+=1),e},e.prototype.isTheme=function(e){return this.theme==e},e}();p=d([r.i(n.Component)({selector:"app-player",template:r("jFLX"),styles:[r("S6EL")]}),u("design:paramtypes",["function"==typeof(h=void 0!==i.g&&i.g)&&h||Object,"function"==typeof(m=void 0!==i.b&&i.b)&&m||Object,"function"==typeof(f=void 0!==c.a&&c.a)&&f||Object,"function"==typeof(v=void 0!==a.a&&a.a)&&v||Object,"function"==typeof(g=void 0!==o.a&&o.a)&&g||Object,"function"==typeof(y=void 0!==s.NotificationsService&&s.NotificationsService)&&y||Object,"function"==typeof(b=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&b||Object])],p);var h,m,f,v,g,y,b},MOVZ:function(e,t){function r(e){throw new Error("Cannot find module '"+e+"'.")}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id="MOVZ"},"MjD/":function(e,t){e.exports="\r\n

Server

\r\n
\r\n
Players
\r\n
Tribes
\r\n
Wild Statistics
\r\n
Wild Creatures
\r\n
\r\n
"},"P+hD":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},QMiF:function(e,t){e.exports='\x3c!--
\r\n \r\n

{{currentOwner.Name}}

\r\n
Coords: {{currentArea.Latitude | number:\'1.0-1\'}}, {{currentArea.Longitude | number:\'1.0-1\'}}
\r\n
Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n
{{currentArea.StructureCount | number}} structures
\r\n \r\n
\r\n
--\x3e\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{currentOwner.Name}}

\r\n
\r\n
\r\n
\r\n Coords: {{currentArea.Latitude | number:\'1.0-1\'}}, {{currentArea.Longitude | number:\'1.0-1\'}}
\r\n Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n {{currentArea.StructureCount | number}} structures\r\n
\r\n
\r\n
Destroy this area
\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{currentOwner.Name}}

\r\n
\r\n
\r\n
\r\n Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n {{currentOwner.AreaCount | number}} areas
\r\n {{currentOwner.StructureCount | number}} structures
\r\n {{currentOwner.CreatureCount | number}} creatures\r\n
\r\n
\r\n
Destroy all structures
\r\n
Destroy all creatures
\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{modalInfo.Header}}

\r\n
\r\n
\r\n
\r\n {{modalInfo.Message}}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n

Structures

\r\n
Save World
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n
\r\n

Player/Tribe Locations

\r\n
\r\n
\r\n \x3c!--\r\n --\x3e\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameTypeA#S#C#Last Active
{{owner.Name}}{{owner.Type}}{{owner.AreaCount}}{{owner.StructureCount}}{{owner.CreatureCount}}{{dataService.toRelativeDate(owner.LastActiveTime)}}
\r\n
\r\n
'},QaTd:function(e,t){e.exports=''},RiXa:function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("5oXY"),a=r("ATz5");r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t){this.route=e,this.dataService=t}return e.prototype.ngOnInit=function(){this.steamId=this.route.snapshot.params.playerid,this.dataService.hasFeatureAccess("player","profile",this.steamId)?this.menu.activate("profile"):this.dataService.hasFeatureAccess("player","creatures",this.steamId)?this.menu.activate("creatures"):this.dataService.hasFeatureAccess("player","creatures-cloud",this.steamId)?this.menu.activate("creatures_cloud"):this.dataService.hasFeatureAccess("player","breeding",this.steamId)?this.menu.activate("breeding"):this.dataService.hasFeatureAccess("player","crops",this.steamId)?this.menu.activate("crop_plots"):this.dataService.hasFeatureAccess("player","generators",this.steamId)?this.menu.activate("electrical_generators"):this.dataService.hasFeatureAccess("player","kibbles-eggs",this.steamId)?this.menu.activate("kibbles_and_eggs"):this.dataService.hasFeatureAccess("player","tribelog",this.steamId)&&this.menu.activate("tribelog")},e}();o([r.i(n.ViewChild)("menu"),c("design:type","function"==typeof(d=void 0!==i.a&&i.a)&&d||Object)],l.prototype,"menu",void 0),l=o([r.i(n.Component)({selector:"app-player-menu",host:{"[class]":"menu.className"},template:r("78nn"),styles:[r("7uO+")]}),c("design:paramtypes",["function"==typeof(u=void 0!==s.g&&s.g)&&u||Object,"function"==typeof(p=void 0!==a.a&&a.a)&&p||Object])],l);var d,u,p},S6EL:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},SH1B:function(e,t){e.exports='
\r\n

My Profile

\r\n
\r\n
\r\n

Hello, {{dataService.Servers.User.Name}}

\r\n
\r\n
\r\n

\r\n Find your tames, view base stats and keep track of their food status. Get notified of pending imprints, the amount of fertilizer and gasoline remaining in your crops and generators. This and much more is available in your profile.\r\n

\r\n

View my profile ❯

\r\n
\r\n
\r\n
\r\n
\r\n

Servers

\r\n
\r\n
\r\n

{{server.MapName}} - {{server.Key}}{{server.MapName}} - {{server.Key}}

\r\n
\r\n
\r\n

\r\n Last Update {{server.LastUpdate}}, Next Update {{server.NextUpdate || \'-\'}}\r\n

\r\n

View server ❯

\r\n

Admin ❯

\r\n
\r\n
\r\n
\r\n
\r\n

Online {{onlinePlayerCount}}

\r\n
There are no players online...
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam NameCharacter NameTribe NameDiscord TagServerTime Online
{{player.SteamName}}{{player.CharacterName}}{{player.TribeName}}{{player.DiscordName}}{{server.Key}}{{player.TimeOnline}}
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n

{{server.Name}}{{server.Name}}

\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Address{{server.Address}}
Version{{server.Version}}
Player Slots{{server.OnlinePlayerMax}}
Map{{server.MapName}}
In-Game Day{{server.InGameTime}}
Tamed Creatures{{server.TamedCreatureCount | number}}
Cloud Creatures{{server.CloudCreatureCount | number}}
Wild Creatures{{server.WildCreatureCount | number}}
Structures{{server.StructureCount | number}}
Players{{server.PlayerCount | number}}
Tribes{{server.TribeCount | number}}
Last Update{{server.LastUpdate}}
Next Update{{server.NextUpdate}}
Uptime{{server.ServerStarted ? dataService.toRelativeDate(server.ServerStarted) : \'-\'}}
\r\n
\r\n
\r\n\r\n \x3c!--

{{server.Name}}{{server.Name}}

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Address{{server.Address}}
Version{{server.Version}}
Player Slots{{server.OnlinePlayerMax}}
Map{{server.MapName}}
In-Game Time{{server.InGameTime}}
Tamed Creatures{{server.TamedCreatureCount | number}}
Cloud Creatures{{server.CloudCreatureCount | number}}
Wild Creatures{{server.WildCreatureCount | number}}
Structures{{server.StructureCount | number}}
Players{{server.PlayerCount | number}}
Tribes{{server.TribeCount | number}}
Last Update{{server.LastUpdate}}
Next Update{{server.NextUpdate}}
Uptime{{server.ServerStarted ? dataService.toRelativeDate(server.ServerStarted) : \'-\'}}
\r\n
--\x3e\r\n \r\n

Online {{server.OnlinePlayerCount}}

\r\n
There are no players online...
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam NameCharacter NameTribe NameDiscord TagTime Online
{{player.SteamName}}{{player.CharacterName}}{{player.TribeName}}{{player.DiscordName}}{{player.TimeOnline}}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

External Resources

\r\n
\r\n
\r\n

Wiki

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Taming Calculators

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Creature Library and Breeding Suggestions

\r\n
\r\n \r\n
\r\n
'},YWx4:function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("hHgl")),o=r("+Lwu"),c=r("ATz5"),l=r("lHWG"),d=r("r5VE"),u=r("kZql"),p=r("2Je8");r.d(t,"a",function(){return v});var h=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},m=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},v=function(){function e(e,t,r,n,i,s,a,o){this.doc=e,this.messageService=t,this.dataService=r,this.httpService=n,this.hotkeysService=i,this.breadcrumbService=s,this.notificationsService=a,this.router=o,this.notificationOptions={position:["top","right"],timeOut:1e3,lastOnBottom:!1},this.showLogin=!1,this.showAdmin=!1,this.currentUrl="/",this.serversUpdatedBefore=!1,this.loading=!0;var c=this.doc.getElementById("configjs"),l=null;if(null!=u.a.configJsOverride?l=u.a.configJsOverride:"/*[[config]]*/"==c.text&&(l=u.a.configJsDefault),null!=l){var d=this.doc.createElement("script");d.type="text/javascript",d.id="configjs",d.text=l,c.parentNode.replaceChild(d,c)}if("undefined"!=typeof config&&"undefined"!==config.webapp&&!0===config.webapp.useCustomCssFile){var p=this.doc.createElement("link");p.rel="stylesheet",p.href="/custom.css",this.doc.getElementsByTagName("head")[0].appendChild(p)}s.addFriendlyNameForRoute("/accessdenied","Access Denied"),s.addFriendlyNameForRoute("/connectionerror","Connection error"),s.hideRoute("/player"),s.hideRoute("/servers"),s.hideRoute("/server"),s.hideRoute("/admin"),s.addCallbackForRouteRegex("^/player/.+$",this.getNameForPlayer),u.a.demo||t.connect()}return e.prototype.ngOnInit=function(){var e=this;this.dataService.SetTheme(this.getTheme()),this.routerEventsSubscription=this.router.events.subscribe(function(t){e.navigationInterceptor(t)}),this.currentUrl=window.location.href||"/",this.serversUpdatedSubscription=this.dataService.ServersUpdated$.subscribe(function(t){e.serversUpdatedBefore||!t||t.User&&t.User.SteamId||(e.showLogin=!0),e.serversUpdatedBefore=!0}),this.adminOptionsHotkeySubscription=this.hotkeysService.add({keys:"control.shift.a"}).subscribe(function(){e.dataService.hasFeatureAccess("pages","admin-server")&&(e.showAdmin=!0)})},e.prototype.ngOnDestroy=function(){this.routerEventsSubscription.unsubscribe(),this.serversUpdatedSubscription.unsubscribe(),this.adminOptionsHotkeySubscription.unsubscribe()},e.prototype.navigationInterceptor=function(e){e instanceof i.d?this.loading=!0:e instanceof i.c?this.loading=!1:e instanceof i.e?this.loading=!1:e instanceof i.f&&(this.loading=!1)},e.prototype.getNameForPlayer=function(e){return"Player"},e.prototype.getBodyClasses=function(){var e=this.getTheme();return"undefined"!=typeof config&&"undefined"!==config.webapp&&!0===config.webapp.topMenu&&(e+=" topmenu"),e},e.prototype.getDefaultTheme=function(){var e="undefined"!=typeof config&&"undefined"!==config.webapp&&"string"==typeof config.webapp.defaultTheme?config.webapp.defaultTheme.toLowerCase():void 0;return"light"!=e&&"dark"!=e?"dark":e},e.prototype.getTheme=function(){return localStorage.getItem("theme")||this.getDefaultTheme()},e.prototype.setTheme=function(e){return this.dataService.SetTheme(e),localStorage.setItem("theme",e),!1},e.prototype.openLogin=function(e){this.showLogin=!0,e.stopPropagation(),e.preventDefault()},e.prototype.closeLogin=function(e){this.showLogin=!1},e.prototype.openCustomTheme=function(e,t){e.stopPropagation(),e.preventDefault(),this.showAdmin=!1,t.show()},e.prototype.getLoginUrl=function(){return u.a.demo?"":this.httpService.getApiBaseUrl()+"/authentication/login"},e.prototype.getLogoutUrl=function(){return u.a.demo?"":this.httpService.getApiBaseUrl()+"/authentication/logout?returnUrl="+this.currentUrl},e}();v=h([r.i(n.Component)({selector:"body",host:{"[class]":"getBodyClasses()"},template:r("5xMp"),styles:[r("okgc")]}),f(0,r.i(n.Inject)(p.DOCUMENT)),m("design:paramtypes",[Object,"function"==typeof(g=void 0!==o.a&&o.a)&&g||Object,"function"==typeof(y=void 0!==c.a&&c.a)&&y||Object,"function"==typeof(b=void 0!==l.a&&l.a)&&b||Object,"function"==typeof(w=void 0!==d.a&&d.a)&&w||Object,"function"==typeof(S=void 0!==a.b&&a.b)&&S||Object,"function"==typeof(C=void 0!==s.NotificationsService&&s.NotificationsService)&&C||Object,"function"==typeof(O=void 0!==i.b&&i.b)&&O||Object])],v);var g,y,b,w,S,C,O},aijx:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},bKAj:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},bl1B:function(e,t){e.exports="\r\n

Admin|Server

\r\n
\r\n
Structures
\r\n
Players
\r\n
Tribes
\r\n
Fertilized Eggs
\r\n
\r\n
"},cPj0:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"e/mT":function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("ATz5")),o=r("+Lwu"),c=r("lHWG"),l=r("vwbq");r.d(t,"a",function(){return p});var d=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,r,n,i,s){this.route=e,this.router=t,this.httpService=r,this.dataService=n,this.messageService=i,this.notificationsService=s,this.menuOption=void 0,this.loaded=!1,this.loadedStructures=!1,this.loadedFertilizedEggs=!1}return e.prototype.getServer=function(){var e=this;this.httpService.getAdminServer(this.serverKey).then(function(t){e.server=t,e.loaded=!0}).catch(function(t){e.server=null,e.loaded=!0})},e.prototype.getStructures=function(){var e=this;this.httpService.getStructures(this.serverKey).then(function(t){e.structures=t,e.loadedStructures=!0}).catch(function(t){e.structures=void 0,e.loadedStructures=!0})},e.prototype.getListFertilizedEggs=function(){var e=this;this.httpService.adminListFertilizedEggs(this.serverKey).then(function(t){e.spoiledEggsList=t.SpoiledEggList,e.fertilizedEggsList=t.FertilizedEggList,e.fertilizedEggsCount=void 0===t.FertilizedEggsCount?0:t.FertilizedEggsCount,e.spoiledEggsCount=void 0===t.SpoiledEggsCount?0:t.SpoiledEggsCount,e.totalEggCount=e.spoiledEggsCount+e.fertilizedEggsCount,e.loadedFertilizedEggs=!0}).catch(function(t){e.fertilizedEggsList=void 0,e.loadedFertilizedEggs=!0})},e.prototype.ngOnInit=function(){var e=this;this.serverKey=this.route.snapshot.params.id,this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){e.menuOption=t,"structures"==e.menuOption?e.getStructures():"fertilized-eggs"==e.menuOption&&e.getListFertilizedEggs()}),this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){e.serverKey==t&&(e.updateServer(),e.showServerUpdateNotification(t))}),this.getServer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.getTribeMember=function(e){return this.server.Players.find(function(t){return t.SteamId==e})},e.prototype.updateServer=function(){this.getServer()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.showInfoModal=function(e,t){var r={};r.Header=e,r.Message=t,this.modalInfo=r,l.b(this.contextMenu.nativeElement).style("display","block"),l.c&&l.c.stopPropagation()},e.prototype.hideContextMenu=function(){l.b(this.contextMenu.nativeElement).style("display","none"),this.modalInfo=void 0},e.prototype.saveWorld=function(e){var t=this;this.httpService.adminSaveWorld(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyAllEggs=function(e){var t=this;this.httpService.adminDestroyAllEggs(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroySpoiledEggs=function(e){var t=this;this.httpService.adminDestroySpoiledEggs(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e}();d([r.i(n.ViewChild)("contextMenu"),u("design:type","function"==typeof(h=void 0!==n.ElementRef&&n.ElementRef)&&h||Object)],p.prototype,"contextMenu",void 0),p=d([r.i(n.Component)({selector:"app-admin-server",template:r("/Wuq"),styles:[r("7arz")]}),u("design:paramtypes",["function"==typeof(m=void 0!==i.g&&i.g)&&m||Object,"function"==typeof(f=void 0!==i.b&&i.b)&&f||Object,"function"==typeof(v=void 0!==c.a&&c.a)&&v||Object,"function"==typeof(g=void 0!==a.a&&a.a)&&g||Object,"function"==typeof(y=void 0!==o.a&&o.a)&&y||Object,"function"==typeof(b=void 0!==s.NotificationsService&&s.NotificationsService)&&b||Object])],p);var h,m,f,v,g,y,b},eqcJ:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".customThemeContainer{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-line-pack:justify;align-content:space-between}.customThemeItem{width:50%;padding:2px;cursor:pointer}.customThemeColorPreview{width:28px;height:28px;display:inline-block;vertical-align:middle;margin-right:5px;border:2px solid #000;box-sizing:border-box}.customThemeColorPreview>div{width:24px;height:24px;display:inline-block;border:2px solid #fff;box-sizing:border-box}.customThemeColor{font-family:monospace;padding:1px 3px;width:55px;border-radius:8px;margin-right:10px}.customThemeColor,.customThemeName{height:20px;display:inline-block;vertical-align:middle}",""]),e.exports=e.exports.toString()},"fT+k":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,'.map canvas,.map svg{position:absolute;top:0;left:0;width:100%}rect.overlay{fill:transparent}.wrapper{position:relative}.wrapper:after{padding-top:100%;display:block;content:""}.wrapper .buttons{position:absolute;left:5px;top:5px;opacity:.75;z-index:2}',""]),e.exports=e.exports.toString()},ilmp:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Qbdm");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this._sanitizer=e}return e.prototype.transform=function(e){return this._sanitizer.bypassSecurityTrustHtml(e)},e}();o=s([r.i(n.Pipe)({name:"sanitizeHtml"}),a("design:paramtypes",["function"==typeof(c=void 0!==i.DomSanitizer&&i.DomSanitizer)&&c||Object])],o);var c},jFLX:function(e,t){e.exports='
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given steam id.

\r\n
\r\n
\r\n
\r\n

Servers

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Player

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Character NameGenderTribe NameSteam IdTribe IdLevelEngram PointsLatLngSaved At
{{player?.Servers[serverKey]?.CharacterName}}{{player?.Servers[serverKey]?.Gender}}{{player?.Servers[serverKey]?.TribeName}}{{player?.Servers[serverKey]?.FakeSteamId || player?.Servers[serverKey]?.SteamId}}{{player?.Servers[serverKey]?.TribeId}}{{player?.Servers[serverKey]?.Level}}{{player?.Servers[serverKey]?.EngramPoints | number}}{{player?.Servers[serverKey]?.Latitude | number:\'1.1-1\'}}{{player?.Servers[serverKey]?.Longitude | number:\'1.1-1\'}}{{dataService.toDate(player?.Servers[serverKey]?.SavedAt)}}
\r\n
\r\n
\r\n
\r\n
\r\n

Creatures {{filteredCreatures.length}}

\r\n
\r\n
\r\n
There are no creatures...
\r\n \r\n
\r\n close\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameClassNameSpeciesAliasesGenderBase LevelLevelImprintFoodLatLngStatusOwnerHPSTOXFOWEMESPID1ID2
No matching creatures...
{{creature.Name}}{{creature.ClassName}}{{creature.Species}}{{creature.Aliases}}{{creature.Gender}}{{creature.BaseLevel}}{{creature.Level}}{{creature.Imprint | percent:\'1.0-0\'}}\r\n
\r\n
{{creature.FoodStatus | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{creature.Latitude | number:\'1.1-1\'}}{{creature.Longitude | number:\'1.1-1\'}}\r\n Next mating {{dataService.toRelativeDate(creature.NextMating)}}\r\n
\r\n
\r\n
Baby
\r\n
\r\n
\r\n
{{creature.BabyAge | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
\r\n
cuddle {{dataService.toRelativeDate(creature.BabyNextCuddle)}}
\r\n
\r\n
\r\n
{{creature.OwnerType}}{{creature.BaseStats?.Health}}{{creature.BaseStats?.Stamina}}{{creature.BaseStats?.Oxygen}}{{creature.BaseStats?.Food}}{{creature.BaseStats?.Weight}}{{creature.BaseStats?.Melee}}{{creature.BaseStats?.MovementSpeed}}content_copy{{creature.Id1}}{{creature.Id2}}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Breeding {{imprintCreatures.length}}

\r\n
\r\n
\r\n
There are no baby creatures...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameSpeciesGenderBase LevelImprintProgressFully Grown AtNext Imprint
{{creature.Name}}{{creature.Species}}{{creature.Gender}}{{creature.BaseLevel}}{{creature.Imprint | percent:\'1.0-0\'}}\r\n
\r\n
{{creature.BabyAge | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{dataService.toDate(creature.BabyFullyGrown)}}
\r\n
\r\n \x3c!--

\r\n Last Update {{getCurrentServer().LastUpdate}}, Next Update {{getCurrentServer().NextUpdate || \'-\'}}\r\n

--\x3e\r\n
\r\n
\r\n
\r\n

Kibbles and Eggs {{sumKibbleAndEggs() | number:0.0-0}}

\r\n
\r\n
There are no kibbles or eggs...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameKibblesEggsTotal
{{ke.Name}}{{ke.KibbleCount}}{{ke.EggCount}}{{ke.KibbleCount + ke.EggCount}}
\r\n
\r\n
\r\n
\r\n

Clusters

\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n

Creatures

\r\n
\r\n
There are no creatures in the cloud...
\r\n
\r\n
\r\n
\r\n

Creatures {{filteredClusterCreatures.length}}

\r\n
\r\n
There are no creatures in the cloud...
\r\n
\r\n close\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameSpeciesLevel
No matching creatures...
{{creature.Name}}{{creature.Species}}{{creature.Level}}
\r\n
\r\n
\r\n
\r\n
\r\n

Crops

\r\n
\r\n
There are no crops...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CropSizeFertilizer %Fertilizer UnitsWaterLatLng
{{(cp.PlantedCropName || cp.PlantedCropClassName)}}{{cp.Size}}\r\n
\r\n
{{(cp.FertilizerQuantity / cp.FertilizerMax) | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{cp.FertilizerQuantity | number}}{{cp.WaterAmount | number:\'1.0-0\'}}{{cp.Latitude | number:\'1.1-1\'}}{{cp.Longitude | number:\'1.1-1\'}}
\r\n
\r\n
\r\n
\r\n
\r\n

Electrical Generators

\r\n
\r\n
There are no electrical generators...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Gasoline %Gasoline QuantityActivatedLatLng
\r\n
\r\n
{{(eg.GasolineQuantity / 800.0) | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{eg.GasolineQuantity | number}}{{(eg.Activated == true ? "Yes" : "No")}}{{eg.Latitude | number:\'1.1-1\'}}{{eg.Longitude | number:\'1.1-1\'}}
\r\n
\r\n
\r\n
\r\n
\r\n

Tribe Log

\r\n
\r\n
There are no tribe logs...
\r\n \r\n
\r\n close\r\n \r\n
\r\n \r\n \r\n \r\n \r\n Day\r\n \r\n \r\n {{log.Day}}\r\n \r\n \r\n \r\n \r\n Time\r\n \r\n \r\n {{log.Time}}\r\n \r\n \r\n \r\n \r\n Message\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n'},jWPz:function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"c",function(){return a}),r.d(t,"b",function(){return o}),r.d(t,"a",function(){return c});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(e){this.template=e}return e}();a=i([r.i(n.Directive)({selector:"[ark-dt-cell]"}),s("design:paramtypes",["function"==typeof(l=void 0!==n.TemplateRef&&n.TemplateRef)&&l||Object])],a);var o=function(){function e(e){this.template=e}return e}();o=i([r.i(n.Directive)({selector:"[ark-dt-header]"}),s("design:paramtypes",["function"==typeof(d=void 0!==n.TemplateRef&&n.TemplateRef)&&d||Object])],o);var c=function(){function e(){}return e}();i([r.i(n.Input)(),r.i(n.ContentChild)(a,{read:n.TemplateRef}),s("design:type","function"==typeof(u=void 0!==n.TemplateRef&&n.TemplateRef)&&u||Object)],c.prototype,"cellTemplate",void 0),i([r.i(n.Input)(),r.i(n.ContentChild)(o,{read:n.TemplateRef}),s("design:type","function"==typeof(p=void 0!==n.TemplateRef&&n.TemplateRef)&&p||Object)],c.prototype,"headerTemplate",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"mode",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"key",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"thenSort",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"title",void 0),i([r.i(n.Input)(),s("design:type",Boolean)],c.prototype,"orderBy",void 0),c=i([r.i(n.Directive)({selector:"ark-dt-column"})],c);var l,d,u,p},jkBB:function(e,t){e.exports='
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n
No matching entries...
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n «\r\n \r\n \r\n  {{_fromRow}} - {{getLastRowOffset()}} of {{_totalRows}} \r\n »\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
'},joX7:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl");r.n(i);r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(){this.enabled=i.Observable.of(!0)}return Object.defineProperty(e.prototype,"columnKeys",{set:function(e){this._columnKeys=e,this.ColumnKeys=this._columnKeys.split(",")},enumerable:!0,configurable:!0}),e}();s([r.i(n.Input)(),a("design:type",String)],o.prototype,"key",void 0),s([r.i(n.Input)(),a("design:type",String)],o.prototype,"name",void 0),s([r.i(n.Input)(),a("design:type","function"==typeof(c=void 0!==i.Observable&&i.Observable)&&c||Object)],o.prototype,"enabled",void 0),s([r.i(n.Input)(),a("design:type",String),a("design:paramtypes",[String])],o.prototype,"columnKeys",null),o=s([r.i(n.Directive)({selector:"ark-dt-mode"})],o);var c},kZql:function(e,t,r){"use strict";var n=r("EM12");r.d(t,"a",function(){return i});var i={production:!0,demo:!1,demoDate:null,configJsOverride:null,configJsDefault:n.a.configJs,apiBaseUrl:"//:/api",signalrBaseUrl:"//:/signalr"}},lCrv:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("ATz5")),a=r("lHWG"),o=r("kZql"),c=r("vwbq"),l=r("PJh5");r.n(l);r.d(t,"a",function(){return p});var d=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,r){this.dataService=e,this.httpService=t,this.zone=r,this._structures=new i.BehaviorSubject(void 0),this.keysGetter=Object.keys,this.ownerSortField="locations",this.ownerSortFunctions={locations:function(e,t){return e.AreaCount>t.AreaCount?-1:e.AreaCountt.StructureCount?-1:e.StructureCountt.StructureCount?-1:e.StructureCountt.LastActiveTime||void 0==t.LastActiveTime?1:0}},this.width=1024,this.height=1024,this.zoom=c.a().scaleExtent([1,8])}return Object.defineProperty(e.prototype,"structures",{get:function(){return this._structures.getValue()},set:function(e){this._structures.next(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._structuresSubscription=this._structures.subscribe(function(t){return e.update(t)});var t=this.mapContainer.nativeElement;this.map={},this.map.canvas=c.b(t).append("canvas").attr("width",1024).attr("height",1024).node().getContext("2d"),this.map.svg=c.b(t).append("svg").attr("viewBox","0 0 1024 1024").attr("preserveAspectRatio","xMidYMid").append("g").on("contextmenu",function(e,t){c.c.preventDefault()}),this.map.svg.append("rect").attr("class","overlay").attr("width",1024).attr("height",1024),this.map.x=c.d().domain([0,1024]).range([0,1024]),this.map.y=c.d().domain([0,1024]).range([0,1024]),c.b(t).call(this.zoom.on("zoom",function(){e.hideContextMenu(),e.redraw()})).on("wheel.zoom",null),this.structures&&this.updateMap()},e.prototype.ngOnDestroy=function(){this._structuresSubscription.unsubscribe()},e.prototype.zoomIn=function(){this.zoom.scaleBy(c.b(this.mapContainer.nativeElement),1.2)},e.prototype.zoomOut=function(){this.zoom.scaleBy(c.b(this.mapContainer.nativeElement),.8)},e.prototype.updateSelection=function(){var e=this;this.map.svg.circle.attr("display",function(t){var r=e.structures.Owners[t.OwnerId];return t.Removed||r.Removed||e.selectedOwner&&(!e.selectedOwner||e.selectedOwner.Id!=t.OwnerId)?"none":"block"}),this.redraw()},e.prototype.update=function(e){this.sortOwners(e),this.map&&this.updateMap()},e.prototype.sortOwners=function(e){var t=this.ownerSortFunctions[this.ownerSortField];if(e){var r=e.Owners.slice();r.sort(t),this.ownersSorted=r}else this.ownersSorted=void 0},e.prototype.updateMap=function(){var e=this;this.map.svg.nodes=this.structures.Areas,this.map.svg.draw=function(){e.map.svg.circle=e.map.svg.selectAll("circle").data(e.map.svg.nodes).enter().append("circle").attr("r",function(e){return e.RadiusPx<2?2:e.RadiusPx}).attr("fill","transparent").attr("stroke",function(t){var r=e.structures.Owners[t.OwnerId];return!!r.LastActiveTime&&l(new Date(r.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(t.StructureCount>=100||t.TrashQuota<.5&&t.StructureCount>=10)?"magenta":"red"}).attr("stroke-width",function(t){var r=e.structures.Owners[t.OwnerId];return!!r.LastActiveTime&&l(new Date(r.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(t.StructureCount>=100||t.TrashQuota<.5&&t.StructureCount>=10)?3:2}).attr("transform",e.map.svg.transform),e.map.svg.circle.on("click",function(t){c.c.preventDefault();var r={};r.x=c.c.pageX,r.y=c.c.pageY,e.showAreaModal(t,r)}),e.map.svg.circle.append("svg:title").text(function(t){var r=e.structures.Owners[t.OwnerId],n=r.LastActiveTime?l(new Date(r.LastActiveTime)).fromNow():null;return r.Name+": "+t.StructureCount+" structures\nCoords: "+t.Latitude+", "+t.Longitude+"\n"+(n?"Last active: "+n+"\n":"")+"---\n"+t.Structures.map(function(t){var r=e.structures.Types[t.t];return t.c+": "+(r?r.Name:t.t)}).join("\n")})},this.map.svg.draw(),this.map.svg.transform=function(t){return"translate("+e.map.x(t.TopoMapX)+","+e.map.y(t.TopoMapY)+")"},this.map.svg.circle.attr("transform",this.map.svg.transform)},e.prototype.imageLoaded=function(e){var t=this;this.img=e,this.width=e?e.naturalWidth:1024,this.height=e?e.naturalHeight:1024,window.setTimeout(function(){t.resize(),t.redraw()},100)},e.prototype.resize=function(){},e.prototype.redraw=function(){var e=this,t=c.e(this.mapContainer.nativeElement);this.map.svg.attr("transform","translate("+t.x+","+t.y+") scale("+t.k+")"),t.k!=this.prevTransformK&&this.map.svg.circle.attr("stroke-width",function(r){var n=e.structures.Owners[r.OwnerId];return(!!n.LastActiveTime&&l(new Date(n.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(r.StructureCount>=100||r.TrashQuota<.5&&r.StructureCount>=10)?3:2)/t.k});var r=this.map.canvas;r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,1024,1024),r.translate(t.x,t.y),r.scale(t.k,t.k),this.img&&r.drawImage(this.img,0,0),this.prevTransformK=t.k},e.prototype.ngOnChanges=function(e){var t=this;if(null!=this.mapName){var r=new Image;r.onload=function(){return t.imageLoaded(r)},r.onerror=function(){return t.imageLoaded(void 0)},r.src=o.a.demo?"assets/demo/Ragnarok.jpg":this.getApiBaseUrl()+"/map/"+this.mapName,r.complete&&(r.onload=null,r.onerror=null,this.imageLoaded(r))}},e.prototype.getApiBaseUrl=function(){return o.a.apiBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e.prototype.reset=function(){this.selectedOwner=void 0,this.updateSelection()},e.prototype.setSelectedOwner=function(e){this.selectedOwner=e,this.updateSelection()},e.prototype.setOwnerSort=function(e){this.ownerSortField=e,this.sortOwners(this.structures)},e.prototype.showAreaModal=function(e,t){this.currentArea=e,this.currentOwner=this.structures.Owners[e.OwnerId],c.b(this.contextMenu.nativeElement).style("display","block"),c.c&&c.c.stopPropagation()},e.prototype.showOwnerModal=function(e,t){this.currentOwner=t,c.b(this.contextMenu.nativeElement).style("display","block"),e.stopPropagation()},e.prototype.showInfoModal=function(e,t){var r={};r.Header=e,r.Message=t,this.modalInfo=r,c.b(this.contextMenu.nativeElement).style("display","block"),c.c&&c.c.stopPropagation()},e.prototype.hideContextMenu=function(){c.b(this.contextMenu.nativeElement).style("display","none"),this.currentArea=void 0,this.currentOwner=void 0,this.modalInfo=void 0},e.prototype.destroyCurrentArea=function(e){var t=this;this.httpService.adminDestroyStructuresForTeamIdAtPosition(this.serverKey,this.currentOwner.OwnerId,this.currentArea.X,this.currentArea.Y,+this.currentArea.RadiusUu+1e3,1).then(function(e){t.currentArea.Removed=!0,t.currentOwner.AreaCount-=1,t.currentOwner.StructureCount-=t.currentArea.StructureCount,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyAllStructuresForTeam=function(e){var t=this;this.httpService.adminDestroyAllStructuresForTeamId(this.serverKey,this.currentOwner.OwnerId).then(function(e){t.currentOwner.Removed=!0,t.currentOwner.AreaCount=0,t.currentOwner.StructureCount=0,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyDinosForTeam=function(e){var t=this;this.httpService.adminDestroyDinosForTeamId(this.serverKey,this.currentOwner.OwnerId).then(function(e){t.currentOwner.CreatureCount=0,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.saveWorld=function(e){var t=this;this.httpService.adminSaveWorld(this.serverKey).then(function(e){t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e}();d([r.i(n.Input)(),u("design:type",Object),u("design:paramtypes",[Object])],p.prototype,"structures",null),d([r.i(n.Input)(),u("design:type",String)],p.prototype,"serverKey",void 0),d([r.i(n.Input)(),u("design:type",String)],p.prototype,"mapName",void 0),d([r.i(n.ViewChild)("map"),u("design:type","function"==typeof(h=void 0!==n.ElementRef&&n.ElementRef)&&h||Object)],p.prototype,"mapContainer",void 0),d([r.i(n.ViewChild)("contextMenu"),u("design:type","function"==typeof(m=void 0!==n.ElementRef&&n.ElementRef)&&m||Object)],p.prototype,"contextMenu",void 0),p=d([r.i(n.Component)({selector:"arkmap-structures",template:r("QMiF"),styles:[r("fT+k")],encapsulation:n.ViewEncapsulation.None}),u("design:paramtypes",["function"==typeof(f=void 0!==s.a&&s.a)&&f||Object,"function"==typeof(v=void 0!==a.a&&a.a)&&v||Object,"function"==typeof(g=void 0!==n.NgZone&&n.NgZone)&&g||Object])],p);var h,m,f,v,g},lHWG:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Fzro"),s=r("eErF"),a=(r.n(s),r("kZql"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e){this.http=e,this.headers=new i.c({"Content-Type":"application/json"}),this.serversUrl="/servers",this.serverUrl="/server",this.wildCreaturesUrl="/wildcreatures",this.structuresUrl="/structures",this.adminServerUrl="/adminserver",this.administerUrl="/administer",this.playerUrl="/player"}return e.prototype.getOptions=function(){var e="true"==localStorage.getItem("demoMode"),t=new i.d({withCredentials:!0});return e&&(t.headers||(t.headers=new i.c),t.headers.append("demoMode","true")),t},e.prototype.getServers=function(){return this.http.get(""+this.getApiBaseUrl()+this.serversUrl+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getServer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.serverUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getWildCreatures=function(e){return this.http.get(""+this.getApiBaseUrl()+this.wildCreaturesUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getStructures=function(e){return this.http.get(""+this.getApiBaseUrl()+this.structuresUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getPlayer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.playerUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getAdminServer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.adminServerUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyAllStructuresForTeamId=function(e,t){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyAllStructuresForTeamId/"+e+"?teamId="+t+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyStructuresForTeamIdAtPosition=function(e,t,r,n,i,s){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyStructuresForTeamIdAtPosition/"+e+"?teamId="+t+"&x="+r+"&y="+n+"&radius="+i+"&rafts="+s+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyDinosForTeamId=function(e,t){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyDinosForTeamId/"+e+"?teamId="+t+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminSaveWorld=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/SaveWorld/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminListFertilizedEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DroppedEggsList/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyAllEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyAllEggs/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroySpoiledEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroySpoiledEggs/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getApiBaseUrl=function(){return a.a.apiBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e.prototype.handleError=function(e){return Promise.reject(e.message||e)},e}();l=o([r.i(n.Injectable)(),c("design:paramtypes",["function"==typeof(d=void 0!==i.b&&i.b)&&d||Object])],l);var d},lRu1:function(e,t){e.exports='
\n
\n

Connection error

\n

The application was unable to connect to the Web API. This could be due to a configuration error...

\n
\n
'},m8aW:function(e,t){e.exports=''},mf93:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},ne8d:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},oLRk:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},okgc:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},qn86:function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("PJh5")),o=(r.n(a),r("ATz5")),c=r("+Lwu"),l=r("lHWG"),d=r("+rAa");r.d(t,"a",function(){return h});var u=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},p=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},h=function(){function e(e,t,n,i,s,a,o){this.route=e,this.router=t,this.httpService=n,this.dataService=i,this.messageService=s,this.notificationsService=a,this.ref=o,this.menuOption=void 0,this.loaded=!1,this.creaturesLoaded=!1,this.keysGetter=Object.keys,this.showMap=!1,this.creaturesMode="status",this.creaturesSortField="base_level",this.creaturesAltSortFields="base_level,gender",this.creaturesSortFunctions={gender:function(e,t,n){return r.i(d.b)(e.Gender,t.Gender,n)},base_level:function(e,t,n){return r.i(d.c)(e.BaseLevel,t.BaseLevel,!n)},tameable:function(e,t,n){return r.i(d.c)(e.IsTameable,t.IsTameable,!n)},latitude:function(e,t,n){return r.i(d.d)(e.Latitude,t.Latitude,n,1)},longitude:function(e,t,n){return r.i(d.d)(e.Longitude,t.Longitude,n,1)},x:function(e,t,n){return r.i(d.d)(e.X,t.X,n,0)},y:function(e,t,n){return r.i(d.d)(e.Y,t.Y,n,0)},z:function(e,t,n){return r.i(d.d)(e.Z,t.Z,n,0)},stat_health:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Health:null,void 0!=t.BaseStats?t.BaseStats.Health:null,!n)},stat_stamina:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Stamina:null,void 0!=t.BaseStats?t.BaseStats.Stamina:null,!n)},stat_oxygen:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Oxygen:null,void 0!=t.BaseStats?t.BaseStats.Oxygen:null,!n)},stat_food:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Food:null,void 0!=t.BaseStats?t.BaseStats.Food:null,!n)},stat_weight:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Weight:null,void 0!=t.BaseStats?t.BaseStats.Weight:null,!n)},stat_melee:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Melee:null,void 0!=t.BaseStats?t.BaseStats.Melee:null,!n)},stat_speed:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.MovementSpeed:null,void 0!=t.BaseStats?t.BaseStats.MovementSpeed:null,!n)},id1:function(e,t,n){return r.i(d.c)(e.Id1,t.Id1,n)},id2:function(e,t,n){return r.i(d.c)(e.Id1,t.Id1,n)}},this.playerSortFunctions={character_name:function(e,t,n){return r.i(d.b)(e.CharacterName,t.CharacterName,n)},tribe_name:function(e,t,n){return r.i(d.b)(e.TribeName,t.TribeName,n)},last_active:function(e,t,n){return r.i(d.c)(e.LastActiveTime,t.LastActiveTime,!n)}},this.tribeSortFunctions={tribe_name:function(e,t,n){return r.i(d.b)(e.Name,t.Name,n)},last_active:function(e,t,n){return r.i(d.c)(e.LastActiveTime,t.LastActiveTime,!n)}},this.wildStatisticsSortFunctions={species:function(e,t,n){return r.i(d.b)(e.Name,t.Name,n)},class_name:function(e,t,n){return r.i(d.b)(e.ClassName,t.ClassName,n)},count:function(e,t,n){return r.i(d.c)(e.Count,t.Count,!n)},fraction:function(e,t,n){return r.i(d.d)(e.Fraction,t.Fraction,!n,4)}}}return e.prototype.getServer=function(){var e=this;this.httpService.getServer(this.serverKey).then(function(t){e.server=t,e.filter(),e.loaded=!0}).catch(function(t){e.server=null,e.filteredPlayers=null,e.filteredTribes=null,e.loaded=!0})},e.prototype.getWildCreatures=function(){var e=this;this.httpService.getWildCreatures(this.serverKey).then(function(t){e.wild=t,e.species=Object.keys(e.wild.Species).sort(function(t,n){return r.i(d.b)(e.wild.Species[t].Name||t,e.wild.Species[n].Name||n,!0)}),e.selectedSpecies&&void 0!=e.species.find(function(t){return t==e.selectedSpecies})||(e.selectedSpecies=e.species.length>0?e.species[0]:null),e.filterAndSortWild(),e.creaturesLoaded=!0,e.ref.detectChanges()}).catch(function(t){e.wild=null,e.species=null,e.filteredCreatures=null,e.creaturesLoaded=!0})},e.prototype.ngOnInit=function(){var e=this;this.accessControl_pages_player=this.dataService.hasFeatureAccessObservable("pages","player"),this.serverKey=this.route.snapshot.params.id,this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){e.menuOption=t,0!=e.creaturesLoaded||"wildcreatures"!=e.menuOption&&"wildcreatures-statistics"!=e.menuOption||e.getWildCreatures()}),this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){e.serverKey==t&&(e.updateServer(),e.showServerUpdateNotification(t))}),this.getServer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.filter=function(){var e=this.dataService.getCurrentDate(),t=e.subtract(90,"day");this.filteredPlayers=this.server.Players.filter(function(e){return a(new Date(e.LastActiveTime)).isSameOrAfter(t)}),this.filteredTribes=this.server.Tribes.filter(function(e){return a(new Date(e.LastActiveTime)).isSameOrAfter(t)})},e.prototype.sortWild=function(){var e=this,t="-"!=this.creaturesSortField[0],r=this.creaturesSortFunctions[this.creaturesSortField.replace(/^\-/,"")],n=this.creaturesAltSortFields.split(",").map(function(t){var r={};return r.asc="-"!=t[0],r.sortFunc=e.creaturesSortFunctions[t.replace(/^\-/,"")],r});void 0!=this.filteredCreatures&&this.filteredCreatures.sort(function(e,i){var s=r(e,i,t);if(0==s)for(var a=0,o=n;a=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},u=function(){function e(e,t){this.doc=e,this.eventManager=t,this.hotkeys=new Map,this.defaults={element:this.doc}}return e.prototype.add=function(e){var t=this,r=o({},this.defaults,e),n="keydown."+r.keys;return r.description&&this.hotkeys.set(r.keys,r.description),new s.Observable(function(e){var i=function(t){t.preventDefault(),e.next(t)},s=t.eventManager.addEventListener(r.element,n,i);return function(){s(),t.hotkeys.delete(r.keys)}})},e}();u=c([r.i(n.Injectable)(),d(0,r.i(n.Inject)(a.DOCUMENT)),l("design:paramtypes",[Object,"function"==typeof(p=void 0!==i.EventManager&&i.EventManager)&&p||Object])],u);var p},rHbN:function(e,t){e.exports='\r\n \r\n \r\n'},rZY4:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"tr th.orderBy{cursor:pointer}a.w3-button.disabled{color:#a9a9a9}a.w3-button.disabled:hover{color:#a9a9a9!important;background-color:transparent!important;opacity:1!important;cursor:default}",""]),e.exports=e.exports.toString()},uslO:function(e,t,r){function n(e){return r(i(e))}function i(e){var t=s[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}var s={"./af":"3CJN","./af.js":"3CJN","./ar":"3MVc","./ar-dz":"tkWw","./ar-dz.js":"tkWw","./ar-kw":"j8cJ","./ar-kw.js":"j8cJ","./ar-ly":"wPpW","./ar-ly.js":"wPpW","./ar-ma":"dURR","./ar-ma.js":"dURR","./ar-sa":"7OnE","./ar-sa.js":"7OnE","./ar-tn":"BEem","./ar-tn.js":"BEem","./ar.js":"3MVc","./az":"eHwN","./az.js":"eHwN","./be":"3hfc","./be.js":"3hfc","./bg":"lOED","./bg.js":"lOED","./bm":"hng5","./bm.js":"hng5","./bn":"aM0x","./bn.js":"aM0x","./bo":"w2Hs","./bo.js":"w2Hs","./br":"OSsP","./br.js":"OSsP","./bs":"aqvp","./bs.js":"aqvp","./ca":"wIgY","./ca.js":"wIgY","./cs":"ssxj","./cs.js":"ssxj","./cv":"N3vo","./cv.js":"N3vo","./cy":"ZFGz","./cy.js":"ZFGz","./da":"YBA/","./da.js":"YBA/","./de":"DOkx","./de-at":"8v14","./de-at.js":"8v14","./de-ch":"Frex","./de-ch.js":"Frex","./de.js":"DOkx","./dv":"rIuo","./dv.js":"rIuo","./el":"CFqe","./el.js":"CFqe","./en-SG":"oYA3","./en-SG.js":"oYA3","./en-au":"Sjoy","./en-au.js":"Sjoy","./en-ca":"Tqun","./en-ca.js":"Tqun","./en-gb":"hPuz","./en-gb.js":"hPuz","./en-ie":"ALEw","./en-ie.js":"ALEw","./en-il":"QZk1","./en-il.js":"QZk1","./en-nz":"dyB6","./en-nz.js":"dyB6","./eo":"Nd3h","./eo.js":"Nd3h","./es":"LT9G","./es-do":"7MHZ","./es-do.js":"7MHZ","./es-us":"INcR","./es-us.js":"INcR","./es.js":"LT9G","./et":"XlWM","./et.js":"XlWM","./eu":"sqLM","./eu.js":"sqLM","./fa":"2pmY","./fa.js":"2pmY","./fi":"nS2h","./fi.js":"nS2h","./fo":"OVPi","./fo.js":"OVPi","./fr":"tzHd","./fr-ca":"bXQP","./fr-ca.js":"bXQP","./fr-ch":"VK9h","./fr-ch.js":"VK9h","./fr.js":"tzHd","./fy":"g7KF","./fy.js":"g7KF","./ga":"U5Iz","./ga.js":"U5Iz","./gd":"nLOz","./gd.js":"nLOz","./gl":"FuaP","./gl.js":"FuaP","./gom-latn":"+27R","./gom-latn.js":"+27R","./gu":"rtsW","./gu.js":"rtsW","./he":"Nzt2","./he.js":"Nzt2","./hi":"ETHv","./hi.js":"ETHv","./hr":"V4qH","./hr.js":"V4qH","./hu":"xne+","./hu.js":"xne+","./hy-am":"GrS7","./hy-am.js":"GrS7","./id":"yRTJ","./id.js":"yRTJ","./is":"upln","./is.js":"upln","./it":"FKXc","./it-ch":"/E8D","./it-ch.js":"/E8D","./it.js":"FKXc","./ja":"ORgI","./ja.js":"ORgI","./jv":"JwiF","./jv.js":"JwiF","./ka":"RnJI","./ka.js":"RnJI","./kk":"j+vx","./kk.js":"j+vx","./km":"5j66","./km.js":"5j66","./kn":"gEQe","./kn.js":"gEQe","./ko":"eBB/","./ko.js":"eBB/","./ku":"kI9l","./ku.js":"kI9l","./ky":"6cf8","./ky.js":"6cf8","./lb":"z3hR","./lb.js":"z3hR","./lo":"nE8X","./lo.js":"nE8X","./lt":"/6P1","./lt.js":"/6P1","./lv":"jxEH","./lv.js":"jxEH","./me":"svD2","./me.js":"svD2","./mi":"gEU3","./mi.js":"gEU3","./mk":"Ab7C","./mk.js":"Ab7C","./ml":"oo1B","./ml.js":"oo1B","./mn":"CqHt","./mn.js":"CqHt","./mr":"5vPg","./mr.js":"5vPg","./ms":"ooba","./ms-my":"G++c","./ms-my.js":"G++c","./ms.js":"ooba","./mt":"oCzW","./mt.js":"oCzW","./my":"F+2e","./my.js":"F+2e","./nb":"FlzV","./nb.js":"FlzV","./ne":"/mhn","./ne.js":"/mhn","./nl":"3K28","./nl-be":"Bp2f","./nl-be.js":"Bp2f","./nl.js":"3K28","./nn":"C7av","./nn.js":"C7av","./pa-in":"pfs9","./pa-in.js":"pfs9","./pl":"7LV+","./pl.js":"7LV+","./pt":"ZoSI","./pt-br":"AoDM","./pt-br.js":"AoDM","./pt.js":"ZoSI","./ro":"wT5f","./ro.js":"wT5f","./ru":"ulq9","./ru.js":"ulq9","./sd":"fW1y","./sd.js":"fW1y","./se":"5Omq","./se.js":"5Omq","./si":"Lgqo","./si.js":"Lgqo","./sk":"OUMt","./sk.js":"OUMt","./sl":"2s1U","./sl.js":"2s1U","./sq":"V0td","./sq.js":"V0td","./sr":"f4W3","./sr-cyrl":"c1x4","./sr-cyrl.js":"c1x4","./sr.js":"f4W3","./ss":"7Q8x","./ss.js":"7Q8x","./sv":"Fpqq","./sv.js":"Fpqq","./sw":"DSXN","./sw.js":"DSXN","./ta":"+7/x","./ta.js":"+7/x","./te":"Nlnz","./te.js":"Nlnz","./tet":"gUgh","./tet.js":"gUgh","./tg":"5SNd","./tg.js":"5SNd","./th":"XzD+","./th.js":"XzD+","./tl-ph":"3LKG","./tl-ph.js":"3LKG","./tlh":"m7yE","./tlh.js":"m7yE","./tr":"k+5o","./tr.js":"k+5o","./tzl":"iNtv","./tzl.js":"iNtv","./tzm":"FRPF","./tzm-latn":"krPU","./tzm-latn.js":"krPU","./tzm.js":"FRPF","./ug-cn":"To0v","./ug-cn.js":"To0v","./uk":"ntHu","./uk.js":"ntHu","./ur":"uSe8","./ur.js":"uSe8","./uz":"XU1s","./uz-latn":"/bsm","./uz-latn.js":"/bsm","./uz.js":"XU1s","./vi":"0X8Q","./vi.js":"0X8Q","./x-pseudo":"e/KL","./x-pseudo.js":"e/KL","./yo":"YXlc","./yo.js":"YXlc","./zh-cn":"Vz2w","./zh-cn.js":"Vz2w","./zh-hk":"ZUyn","./zh-hk.js":"ZUyn","./zh-tw":"BbgG","./zh-tw.js":"BbgG"};n.keys=function(){return Object.keys(s)},n.resolve=i,e.exports=n,n.id="uslO"},vMp4:function(e,t,r){"use strict";var n=r("3j3K"),i=r("3MNG"),s=(r.n(i),r("2Je8")),a=r("+rAa");r.d(t,"a",function(){return d});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},d=function(){function e(e,t){this.doc=e,this.notificationsService=t,this._show=!1,this._hoverHide=!1,this._isInitialized=!1,this.customTheme=[],this.customThemeGroups=[{key:"dark",name:"Dark Theme",theme:[]},{key:"light",name:"Light Theme",theme:[]}],this.currentCustomThemeGroup=this.customThemeGroups[0]}return e.prototype.toHexColor=function(e){var t=this.doc.createElement("div");t.style.display="none",t.style.color=e;var r=window.getComputedStyle(this.doc.body.appendChild(t)).color.match(/\d+/g).map(function(e){return parseInt(e,10)});return this.doc.body.removeChild(t),r.length<3?(console.log("Could not convert color '"+e+"' to hex"),e):"#"+((1<<24)+(r[0]<<16)+(r[1]<<8)+r[2]).toString(16).substr(1)},e.prototype.show=function(){this._isInitialized||this.init(),this._show=!0},e.prototype.init=function(){this._isInitialized=!0;for(var e=[],t=0,r=this.customThemeGroups;t\r\n
\r\n

Loading...

\r\n
\r\n\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given server key.

\r\n
\r\n
\r\n
\r\n

Players

\r\n \r\n \r\n \r\n \r\n Character Name\r\n \r\n \r\n {{player.CharacterName}}{{player.CharacterName}}\r\n \r\n \r\n \r\n \r\n Tribe Name\r\n \r\n \r\n {{player.TribeName}}\r\n \r\n \r\n \r\n \r\n Last Active\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n

Tribes

\r\n \r\n \r\n \r\n \r\n Tribe Name\r\n \r\n \r\n {{tribe.Name}}\r\n \r\n \r\n \r\n \r\n Members\r\n \r\n \r\n {{getTribeMember(member)?.CharacterName || member}}{{getTribeMember(member)?.CharacterName || member}}, \r\n \r\n \r\n \r\n \r\n Last Active\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n

Wild Statistics {{(wild.Statistics.Species?.length || 0) | number}}

\r\n \r\n \r\n \r\n \r\n Species\r\n \r\n \r\n {{species.Name}}\r\n \r\n \r\n \r\n \r\n Class Name\r\n \r\n \r\n {{species.ClassName}}\r\n \r\n \r\n \r\n \r\n Aliases\r\n \r\n \r\n {{species.Aliases.length > 0 ? species.Aliases.join(\', \') : \'\'}}\r\n \r\n \r\n \r\n \r\n Count\r\n \r\n \r\n {{species.Count | number}}\r\n \r\n \r\n \r\n \r\n Fraction\r\n \r\n \r\n {{species.Fraction | percent:\'1.0-4\'}}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n

Wild Creatures {{(filteredCreatures?.length || 0) | number}} / {{(wild?.Statistics?.CreatureCount || 0) | number}}

\r\n
\r\n
\r\n
There are no creatures...
\r\n \r\n \r\n \x3c!--
\r\n close\r\n \r\n
--\x3e\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
GenderBase LevelTameableXYZLatLngHPSTOXFOWEMESPID1ID2
No matching creatures...
{{creature.Gender}}{{creature.BaseLevel}}{{(wild.Species[selectedSpecies].IsTameable && creature.IsTameable == true ? "Yes" : "No")}}{{creature.X}}{{creature.Y}}{{creature.Z}}{{creature.Latitude | number:\'1.1-1\'}}{{creature.Longitude | number:\'1.1-1\'}}{{creature.BaseStats?.Health}}{{creature.BaseStats?.Stamina}}{{creature.BaseStats?.Oxygen}}{{creature.BaseStats?.Food}}{{creature.BaseStats?.Weight}}{{creature.BaseStats?.Melee}}{{creature.BaseStats?.MovementSpeed}}content_copy{{creature.Id1}}{{creature.Id2}}
\r\n
\r\n
\r\n
\r\n'}},[0]); \ No newline at end of file diff --git a/ArkBot/WebApp/dist/vendor.f57cda56526e5fdd5036.bundle.js b/ArkBot/WebApp/dist/vendor.f8d4a57af80469b13c5c.bundle.js similarity index 100% rename from ArkBot/WebApp/dist/vendor.f57cda56526e5fdd5036.bundle.js rename to ArkBot/WebApp/dist/vendor.f8d4a57af80469b13c5c.bundle.js diff --git a/ArkBot/WebApp/src/app/admin-server-menu/admin-server-menu.component.html b/ArkBot/WebApp/src/app/admin-server-menu/admin-server-menu.component.html index 37559b0..c14a021 100644 --- a/ArkBot/WebApp/src/app/admin-server-menu/admin-server-menu.component.html +++ b/ArkBot/WebApp/src/app/admin-server-menu/admin-server-menu.component.html @@ -4,6 +4,6 @@
Structures
Players
Tribes
-
Fertilized Eggs
+
Fertilized Eggs
\ No newline at end of file diff --git a/ArkBot/WebApp/src/app/admin-server/admin-server.component.html b/ArkBot/WebApp/src/app/admin-server/admin-server.component.html index b612cc6..3f46939 100644 --- a/ArkBot/WebApp/src/app/admin-server/admin-server.component.html +++ b/ArkBot/WebApp/src/app/admin-server/admin-server.component.html @@ -122,7 +122,7 @@

Summary

-
+

Spoiled Eggs

Destroy Spoiled Eggs
diff --git a/ArkBot/WebApp/src/app/app.component.html b/ArkBot/WebApp/src/app/app.component.html index ea635a6..fb9465c 100644 --- a/ArkBot/WebApp/src/app/app.component.html +++ b/ArkBot/WebApp/src/app/app.component.html @@ -34,4 +34,4 @@

Admin Options

- \ No newline at end of file + \ No newline at end of file diff --git a/ArkBot/WebApp/src/app/data-table/data-table.component.ts b/ArkBot/WebApp/src/app/data-table/data-table.component.ts index 65e2b93..a89741c 100644 --- a/ArkBot/WebApp/src/app/data-table/data-table.component.ts +++ b/ArkBot/WebApp/src/app/data-table/data-table.component.ts @@ -25,6 +25,7 @@ export class DataTableComponent implements OnInit { _rows$: Observable = Observable.of([]); _orderByColumnKey: BehaviorSubject = new BehaviorSubject(undefined); _filter: BehaviorSubject = new BehaviorSubject(undefined); + _updateTap: BehaviorSubject = new BehaviorSubject(undefined); _sort: Subject = new Subject(); _trackByProp: string; _modes: any[]; @@ -45,6 +46,7 @@ export class DataTableComponent implements OnInit { { 'value': 1000000, 'text': 'All' } ]; + _forceUpdate: boolean = true; _prevColumnKey: string = undefined; _prevFilter: string = undefined; _prevSortedRows: any[] = undefined; @@ -55,7 +57,7 @@ export class DataTableComponent implements OnInit { constructor(private ref: ChangeDetectorRef) { } ngOnInit() { - this._rows$ = Observable.combineLatest(this._orderByColumnKey, this._filter.debounceTime(250), (key: string, filter: string) => ({ key, filter })) + this._rows$ = Observable.combineLatest(this._orderByColumnKey, this._filter.debounceTime(250), this._updateTap, (key: string, filter: string) => ({ key, filter })) // skip the first emitted value (default value = (undefined, undefined)) which gets delayed by debounce // instead use a startWith value that get's emitted right away .skip(1) @@ -132,6 +134,8 @@ export class DataTableComponent implements OnInit { @Input() set rows(val: any) { this._rows = val; + this._forceUpdate = true; + this._updateTap.next(undefined); } @Input() set trackByProp(val: string) { @@ -201,7 +205,7 @@ export class DataTableComponent implements OnInit { rows = this.filterData(this._prevSortedRows, filter); } else { //if (columnKey != this._prevColumnKey && filter == this._prevFilter) { - if (this._prevFilteredRowsKey != filter) { + if (this._forceUpdate || this._prevFilteredRowsKey != filter) { this._prevFilteredRowsKey = filter; this._prevFilteredRows = this.filterData(this._rows, filter); } @@ -212,13 +216,15 @@ export class DataTableComponent implements OnInit { } else rows = this.sortData(this._prevFilteredRows, columnKey); } - if (filter != this._prevFilter) this.setFirstPage(); + if (this._forceUpdate || filter != this._prevFilter) this.setFirstPage(); this._totalRows = rows.length; this._prevColumnKey = columnKey; this._prevFilter = filter; + this._forceUpdate = false; + return rows; } From 9f707b6dcca8447d39e6efd9022fbb13b5070107 Mon Sep 17 00:00:00 2001 From: mxtsdev Date: Tue, 4 Feb 2020 22:03:16 +0100 Subject: [PATCH 5/7] Fix for SSL-certificate issuing --- ArkBot/ArkBot.csproj | 13 ++-- ArkBot/ViewModel/Workspace.cs | 108 +++++++++++++++++++--------------- ArkBot/packages.config | 6 +- 3 files changed, 70 insertions(+), 57 deletions(-) diff --git a/ArkBot/ArkBot.csproj b/ArkBot/ArkBot.csproj index 0084ab2..fc9d5b2 100644 --- a/ArkBot/ArkBot.csproj +++ b/ArkBot/ArkBot.csproj @@ -117,12 +117,10 @@ True - ..\packages\Portable.BouncyCastle.1.8.1.2\lib\net4\BouncyCastle.Crypto.dll - True + ..\packages\Portable.BouncyCastle.1.8.1.4\lib\net40\BouncyCastle.Crypto.dll - - ..\packages\Certes.1.0.7\lib\net45\Certes.dll - True + + ..\packages\Certes.2.3.3\lib\net45\Certes.dll ..\packages\CoreRCON.NET-4.6.1.0.0-CI00004\lib\net46\CoreRCON.NET-4.6.dll @@ -455,9 +453,8 @@ True - - ..\packages\System.ValueTuple.4.3.1\lib\netstandard1.0\System.ValueTuple.dll - True + + ..\packages\System.ValueTuple.4.4.0\lib\net461\System.ValueTuple.dll ..\packages\Microsoft.AspNet.Cors.5.0.0\lib\net45\System.Web.Cors.dll diff --git a/ArkBot/ViewModel/Workspace.cs b/ArkBot/ViewModel/Workspace.cs index a0d8036..cdc3d9d 100644 --- a/ArkBot/ViewModel/Workspace.cs +++ b/ArkBot/ViewModel/Workspace.cs @@ -53,6 +53,7 @@ using Markdig; using PropertyChanged; using ArkBot.Configuration.Model; +using System.Globalization; namespace ArkBot.ViewModel { @@ -590,68 +591,83 @@ internal async Task Init() { var success = false; Console.AddLog(@"SSL Certificate request issued..."); + AcmeContext acme = null; try { - using (var client = new AcmeClient(WellKnownServers.LetsEncrypt)) + var pathAccountKey = $"{_config.Ssl.Name}-account.pem"; + //var pathPrivateKey = $"{_config.Ssl.Name}-privatekey.pem"; + if (File.Exists(pathAccountKey)) { - var account = await client.NewRegistraton($"mailto:{_config.Ssl.Email}"); - account.Data.Agreement = account.GetTermsOfServiceUri(); - account = await client.UpdateRegistration(account); + var accountKey = KeyFactory.FromPem(File.ReadAllText(pathAccountKey)); - var authz = await client.NewAuthorization(new AuthorizationIdentifier - { - Type = AuthorizationIdentifierTypes.Dns, - Value = _config.Ssl.Domains.First() - }); + acme = new AcmeContext(WellKnownServers.LetsEncryptV2, accountKey); + var account = await acme.Account(); + } + else + { + acme = new AcmeContext(WellKnownServers.LetsEncryptV2); + var account = await acme.NewAccount(_config.Ssl.Email, true); - var httpChallengeInfo = authz.Data.Challenges.Where(c => c.Type == ChallengeTypes.Http01).First(); - var keyAuthString = client.ComputeKeyAuthorization(httpChallengeInfo); + var pemKey = acme.AccountKey.ToPem(); + File.WriteAllText(pathAccountKey, pemKey); + } - using (var webapp = Microsoft.Owin.Hosting.WebApp.Start(_config.Ssl.ChallengeListenPrefix, (appBuilder) => + var order = await acme.NewOrder(_config.Ssl.Domains); + + var authz = (await order.Authorizations()).First(); + var httpChallenge = await authz.Http(); + var keyAuthz = httpChallenge.KeyAuthz; + using (var webapp = Microsoft.Owin.Hosting.WebApp.Start(_config.Ssl.ChallengeListenPrefix, (appBuilder) => + { + var challengePath = new PathString($"/.well-known/acme-challenge/{httpChallenge.Token}"); + appBuilder.Use(new Func((next) => { - var challengePath = new PathString("/.well-known/acme-challenge/"); - appBuilder.Use(new Func((next) => + AppFunc appFunc = async environment => { - AppFunc appFunc = async environment => - { - IOwinContext context = new OwinContext(environment); - if (!context.Request.Path.Equals(challengePath)) await next.Invoke(environment); - - context.Response.StatusCode = (int)System.Net.HttpStatusCode.OK; - context.Response.ContentType = "application/text"; - await context.Response.WriteAsync(keyAuthString); - }; - return appFunc; - })); - })) + IOwinContext context = new OwinContext(environment); + if (!context.Request.Path.Equals(challengePath)) await next.Invoke(environment); + + context.Response.StatusCode = (int)System.Net.HttpStatusCode.OK; + context.Response.ContentType = "application/text"; + await context.Response.WriteAsync(keyAuthz); + }; + return appFunc; + })); + })) + { + var result = await httpChallenge.Validate(); + while (result.Status == Certes.Acme.Resource.ChallengeStatus.Pending || result.Status == Certes.Acme.Resource.ChallengeStatus.Processing) { - var httpChallenge = await client.CompleteChallenge(httpChallengeInfo); + await Task.Delay(500); + result = await httpChallenge.Resource(); + } - authz = await client.GetAuthorization(httpChallenge.Location); - while (authz.Data.Status == EntityStatus.Pending) + if (result.Status == Certes.Acme.Resource.ChallengeStatus.Valid) + { + var privateKey = KeyFactory.NewKey(KeyAlgorithm.ES256); + var cert = await order.Generate(new CsrInfo { - await Task.Delay(500); - authz = await client.GetAuthorization(httpChallenge.Location); - } + CountryName = new RegionInfo(CultureInfo.CurrentCulture.Name).TwoLetterISORegionName, + Locality = "Web", + Organization = "ARK Bot", + }, privateKey); - if (authz.Data.Status == EntityStatus.Valid) + if (revoke) { - if (revoke) - { - //await client.RevokeCertificate(path); //todo: how to revoke a cert when we do not have the AcmeCertificate-object? - if (File.Exists(path)) File.Delete(path); - } + //await acme.RevokeCertificate( + // File.ReadAllBytes(path), + // Certes.Acme.Resource.RevocationReason.Superseded, + // KeyFactory.FromPem(File.ReadAllText(pathPrivateKey))); - var csr = new CertificationRequestBuilder(); - foreach (var domain in _config.Ssl.Domains) csr.AddName("CN", domain); - var cert = await client.NewCertificate(csr); + if (File.Exists(path)) File.Delete(path); + } - var pfxBuilder = cert.ToPfx(); - var pfx = pfxBuilder.Build(_config.Ssl.Name, _config.Ssl.Password); - File.WriteAllBytes(path, pfx); + //File.WriteAllText(pathPrivateKey, privateKey.ToPem()); + var pfxBuilder = cert.ToPfx(privateKey); + var pfx = pfxBuilder.Build(_config.Ssl.Name, _config.Ssl.Password); + File.WriteAllBytes(path, pfx); - success = true; - } + success = true; } } diff --git a/ArkBot/packages.config b/ArkBot/packages.config index d74c406..53fe84f 100644 --- a/ArkBot/packages.config +++ b/ArkBot/packages.config @@ -14,7 +14,7 @@ - + @@ -73,7 +73,7 @@ - + @@ -131,7 +131,7 @@ - + From 50b467cd785d57635acb3c302b16c6d7fe61e4d0 Mon Sep 17 00:00:00 2001 From: mxtsdev Date: Thu, 6 Feb 2020 15:22:10 +0100 Subject: [PATCH 6/7] Fixed bug that prevented custom theme creator from opening. Added Admin Options link for users with the admin role. Added option to preview different menu placements to Admin Options. --- ArkBot/WebApp/dist/index.html | 2 +- .../dist/inline.9e5f573f17601dcc9e1a.bundle.js | 1 - .../dist/inline.c034f60d1641851a325c.bundle.js | 1 + .../dist/main.530f7ebf959a6f5fc07c.bundle.js | 1 + .../dist/main.5c285ad7e37cab7baf69.bundle.js | 1 - ...js => polyfills.c2c650e443c940acda1b.bundle.js} | 0 ...e.js => scripts.01c3505ddbe0d20e9ed0.bundle.js} | 0 .../dist/vendor.f8d4a57af80469b13c5c.bundle.js | 6 +++--- ArkBot/WebApp/src/app/app.component.html | 12 ++++++++++-- ArkBot/WebApp/src/app/app.component.ts | 14 +++++++++++++- .../app/custom-theme/custom-theme.component.html | 2 +- .../src/app/custom-theme/custom-theme.component.ts | 4 +++- 12 files changed, 33 insertions(+), 11 deletions(-) delete mode 100644 ArkBot/WebApp/dist/inline.9e5f573f17601dcc9e1a.bundle.js create mode 100644 ArkBot/WebApp/dist/inline.c034f60d1641851a325c.bundle.js create mode 100644 ArkBot/WebApp/dist/main.530f7ebf959a6f5fc07c.bundle.js delete mode 100644 ArkBot/WebApp/dist/main.5c285ad7e37cab7baf69.bundle.js rename ArkBot/WebApp/dist/{polyfills.70a52f0b33460f37363a.bundle.js => polyfills.c2c650e443c940acda1b.bundle.js} (100%) rename ArkBot/WebApp/dist/{scripts.fbf4958174ba477fe15b.bundle.js => scripts.01c3505ddbe0d20e9ed0.bundle.js} (100%) diff --git a/ArkBot/WebApp/dist/index.html b/ArkBot/WebApp/dist/index.html index 8297243..01cd366 100644 --- a/ArkBot/WebApp/dist/index.html +++ b/ArkBot/WebApp/dist/index.html @@ -19,5 +19,5 @@

Loading...

- + diff --git a/ArkBot/WebApp/dist/inline.9e5f573f17601dcc9e1a.bundle.js b/ArkBot/WebApp/dist/inline.9e5f573f17601dcc9e1a.bundle.js deleted file mode 100644 index 2f2771f..0000000 --- a/ArkBot/WebApp/dist/inline.9e5f573f17601dcc9e1a.bundle.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,a,c){for(var u,i,f,l=0,s=[];l=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this.zone=e,this.serverUpdated$=new n.EventEmitter}return e.prototype.connect=function(){var e=this;this.connection=$.hubConnection(this.getSignalRBaseUrl()),this.proxy=this.connection.createHubProxy("ServerUpdateHub"),this.proxy.on("serverUpdateNotification",function(t){e.zone.run(function(){e.serverUpdated$.emit(t)})}),this.connection.start().done(function(){return console.log("Now connected, connection ID="+e.connection.id)}).fail(function(){return console.log("Could not connect")})},e.prototype.getSignalRBaseUrl=function(){return i.a.signalrBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e}();o=s([r.i(n.Injectable)(),a("design:paramtypes",["function"==typeof(c=void 0!==n.NgZone&&n.NgZone)&&c||Object])],o);var c},"+qYp":function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e}();l=o([r.i(n.Component)({selector:"app-access-denied",template:r("1DTO"),styles:[r("aijx")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},"+rAa":function(e,t,r){"use strict";function n(e,t,r,n){var i=a(e,t,r);if(void 0!=i)return i;var s=Math.pow(10,n),o=void 0!=n?Math.round(e*s)/s:e,c=void 0!=n?Math.round(t*s)/s:t;return o>c?r?1:-1:ot?r?1:-1:e=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t){this.dataService=e,this.router=t}return e.prototype.canActivate=function(e,t){var r=this;return s.Observable.fromPromise(this.dataService.getServers().then(function(t){if(t){var n=e.params.playerid;return r.dataService.hasFeatureAccess("pages",e.data.name,n)?"access":"noaccess"}return"connectionerror"}).catch(function(){return"connectionerror"})).map(function(e){return"noaccess"==e?r.router.navigateByUrl("/accessdenied",{skipLocationChange:!0}):"connectionerror"==e&&r.router.navigateByUrl("/connectionerror",{skipLocationChange:!0}),"access"==e})},e}();l=o([r.i(n.Injectable)(),c("design:paramtypes",["function"==typeof(d=void 0!==a.a&&a.a)&&d||Object,"function"==typeof(u=void 0!==i.b&&i.b)&&u||Object])],l);var d,u},"/Wuq":function(e,t){e.exports='
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given server key.

\r\n
\r\n
\r\n
\r\n

Players

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam IdCharacter IdSteam NameCharacter NameTribe NameTribe IdStructuresCreaturesLast Active
{{player.FakeSteamId || player.SteamId}}{{player.Id}}{{player.SteamName}}{{player.CharacterName}}{{player.CharacterName}}{{player.TribeName}}{{player.TribeId}}{{player.StructureCount}}{{player.CreatureCount}}{{dataService.toRelativeDate(player.LastActiveTime)}}
\r\n
\r\n
\r\n
\r\n

Tribes

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
IdNameMembersStructuresCreaturesLast Active
{{tribe.Id}}{{tribe.Name}}{{getTribeMember(member)?.CharacterName || member}}{{getTribeMember(member)?.CharacterName || member}}, {{tribe.StructureCount}}{{tribe.CreatureCount}}{{dataService.toRelativeDate(tribe.LastActiveTime)}}
\r\n
\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n\r\n
\r\n
\r\n

Egg Summary

\r\n
Save World
\r\n
\r\n\r\n
\r\n
\r\n

Summary

\r\n
\r\n
\r\n

Total Eggs: {{totalEggCount}}

\r\n

Fertilized Eggs: {{fertilizedEggsCount}}

\r\n

Spoiled Eggs: {{spoiledEggsCount}}

\r\n
\r\n
\r\n

There are no fertilized eggs on the map

\r\n
\r\n
\r\n\r\n
\r\n

Fertilized Eggs

\r\n
Destroy All Eggs
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CreatureEgg LevelSpoil Time
{{egg.Dino}}{{egg.EggLevel}}{{egg.SpoilTime}}
\r\n
\r\n\r\n
\r\n

Spoiled Eggs

\r\n
Destroy Spoiled Eggs
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CreatureEgg LevelDropped By
{{egg.Dino}}{{egg.EggLevel}}{{egg.DroppedBy}}{{egg.DroppedBy}}
\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{modalInfo.Header}}

\r\n
\r\n
\r\n
\r\n {{modalInfo.Message}}\r\n
\r\n
\r\n
\r\n
\r\n
'},0:function(e,t,r){e.exports=r("x35b")},"08Wm":function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.dataService.hasFeatureAccess("admin-server","structures")?this.menu.activate("structures"):this.dataService.hasFeatureAccess("admin-server","players")?this.menu.activate("players"):this.dataService.hasFeatureAccess("admin-server","tribes")?this.menu.activate("tribes"):this.dataService.hasFeatureAccess("admin-server","eggs")&&this.menu.activate("eggs")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-admin-server-menu",host:{"[class]":"menu.className"},template:r("bl1B"),styles:[r("9kk6")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},"0Hpj":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Fzro"),s=r("eErF"),a=(r.n(s),r("lHWG"));r.d(t,"a",function(){return d});var o=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.getServers=function(){return this.http.get("assets/demo/servers.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getServer=function(e){return this.http.get("assets/demo/server.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getWildCreatures=function(e){return this.http.get("assets/demo/wildcreatures.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getStructures=function(e){return this.http.get("assets/demo/structures.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getPlayer=function(e){return this.http.get("assets/demo/player.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getAdminServer=function(e){return this.http.get("assets/demo/adminserver.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.adminDestroyAllStructuresForTeamId=function(e,t){return Promise.resolve(null)},t.prototype.adminDestroyStructuresForTeamIdAtPosition=function(e,t,r,n,i,s){return Promise.resolve(null)},t.prototype.adminDestroyDinosForTeamId=function(e,t){return Promise.resolve(null)},t.prototype.adminSaveWorld=function(e){return Promise.resolve(null)},t}(a.a);d=c([r.i(n.Injectable)(),l("design:paramtypes",["function"==typeof(u=void 0!==i.b&&i.b)&&u||Object])],d);var u},"0jRk":function(e,t,r){"use strict";var n=r("3j3K"),i=r("jWPz"),s=r("joX7"),a=r("Gvdl"),o=(r.n(a),r("XlOA")),c=(r.n(o),r("1APj")),l=(r.n(c),r("6Yye")),d=(r.n(l),r("uCY4")),u=(r.n(d),r("wUn1")),p=(r.n(u),r("/lY3"));r.n(p);r.d(t,"a",function(){return f});var h=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},m=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(){function e(e){this.ref=e,this._modeEnabledSubscriptions=[],this._rows$=a.Observable.of([]),this._orderByColumnKey=new a.BehaviorSubject(void 0),this._filter=new a.BehaviorSubject(void 0),this._updateTap=new a.BehaviorSubject(void 0),this._sort=new a.Subject,this._fromRow=0,this._numRows=25,this._totalRows=0,this._enabledColumnsForMode={},this._viewOptions=[{value:25,text:"25"},{value:50,text:"50"},{value:100,text:"100"},{value:250,text:"250"},{value:500,text:"500"},{value:1e3,text:"1000"},{value:1e6,text:"All"}],this._forceUpdate=!0,this._prevColumnKey=void 0,this._prevFilter=void 0,this._prevSortedRows=void 0,this._prevFilteredRows=void 0,this._prevSortedRowsKey=void 0,this._prevFilteredRowsKey=void 0}return e.prototype.ngOnInit=function(){var e=this;this._rows$=a.Observable.combineLatest(this._orderByColumnKey,this._filter.debounceTime(250),this._updateTap,function(e,t){return{key:e,filter:t}}).skip(1).startWith({key:this._orderByColumnKey.getValue(),filter:this._filter.getValue()}).switchMap(function(t){return a.Observable.of(e.filterAndSortData(t.key,t.filter))}).catch(function(t){return console.log("Error in component ... "+t),a.Observable.of(e._rows)})},Object.defineProperty(e.prototype,"modeTemplates",{set:function(e){if(e){var t=e.toArray();if(t.length){for(var r=[],n=0,i=t;n0&&(this._currentMode=this._modes[0].key)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnTemplates",{set:function(e){if(e){var t=e.toArray();if(t.length){for(var r=[],n=0,i=t;n=this._totalRows&&(t=this._totalRows-1),this._fromRow=parseInt(""+t),this.ref.markForCheck()},e.prototype.setViewOffsetRelative=function(e){this.setViewOffset(this._fromRow+e)},e.prototype.setFirstPage=function(){this.isFirstPage()||this.setViewOffset(0)},e.prototype.setPrevPage=function(){this.isFirstPage()||this.setViewOffsetRelative(-this._numRows)},e.prototype.setNextPage=function(){this.isLastPage()||this.setViewOffsetRelative(this._numRows)},e.prototype.setLastPage=function(){this.isLastPage()||this.setViewOffset(this._totalRows-this._numRows)},e.prototype.isFirstPage=function(){return this._fromRow<=0},e.prototype.isLastPage=function(){return this._fromRow>=this._totalRows-this._numRows},e.prototype.setViewLimit=function(e){this._numRows=parseInt(""+(e>0?e:1e6)),this.ref.markForCheck()},e.prototype.getLastRowOffset=function(){var e=this._fromRow+this._numRows;return e>this._totalRows?this._totalRows:e},e}();h([r.i(n.ContentChildren)(s.a),m("design:type","function"==typeof(v=void 0!==n.QueryList&&n.QueryList)&&v||Object),m("design:paramtypes",["function"==typeof(g=void 0!==n.QueryList&&n.QueryList)&&g||Object])],f.prototype,"modeTemplates",null),h([r.i(n.ContentChildren)(i.a),m("design:type","function"==typeof(y=void 0!==n.QueryList&&n.QueryList)&&y||Object),m("design:paramtypes",["function"==typeof(b=void 0!==n.QueryList&&n.QueryList)&&b||Object])],f.prototype,"columnTemplates",null),h([r.i(n.Input)(),m("design:type",Object),m("design:paramtypes",[Object])],f.prototype,"rows",null),h([r.i(n.Input)(),m("design:type",String),m("design:paramtypes",[String])],f.prototype,"trackByProp",null),h([r.i(n.Input)(),m("design:type",String),m("design:paramtypes",[String])],f.prototype,"filter",null),h([r.i(n.Input)(),m("design:type",Object)],f.prototype,"filterFunction",void 0),h([r.i(n.Input)(),m("design:type",Object)],f.prototype,"sortFunctions",void 0),h([r.i(n.Input)(),m("design:type",String)],f.prototype,"orderByColumn",void 0),f=h([r.i(n.Component)({selector:"ark-data-table",template:r("jkBB"),styles:[r("rZY4")],changeDetection:n.ChangeDetectionStrategy.OnPush,encapsulation:n.ViewEncapsulation.None}),m("design:paramtypes",["function"==typeof(w=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&w||Object])],f);var v,g,y,b,w},"0onv":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("PJh5"));r.n(s);r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.ref=e,this._time=new i.BehaviorSubject(void 0)}return Object.defineProperty(e.prototype,"time",{get:function(){return this._time.getValue()},set:function(e){this._time.next(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._timeSubscription=this._time.subscribe(function(t){e.update()}),this._counter=i.Observable.interval(1e3).map(function(e){return e}),this._counterSubscription=this._counter.subscribe(function(t){return e.update()})},e.prototype.ngOnDestroy=function(){this._timeSubscription.unsubscribe(),this._counterSubscription.unsubscribe()},e.prototype.update=function(){var e=this.toRelativeDate(this.time);e!=this._str&&(this._str=e,this.ref.markForCheck())},e.prototype.toRelativeDate=function(e){return s(new Date(e)).fromNow()},e}();a([r.i(n.Input)(),o("design:type",Object),o("design:paramtypes",[Object])],c.prototype,"time",null),c=a([r.i(n.Component)({selector:"relative-time",template:"{{_str}}",styles:[r("HOjl")],changeDetection:n.ChangeDetectionStrategy.OnPush}),o("design:paramtypes",["function"==typeof(l=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&l||Object])],c);var l},"1DTO":function(e,t){e.exports='
\n
\n

Access Denied

\n

You do not have access to view this page...

\n
\n
'},"38q8":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Qbdm");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this._sanitizer=e}return e.prototype.transform=function(e){return this._sanitizer.bypassSecurityTrustStyle(e)},e}();o=s([r.i(n.Pipe)({name:"sanitizeStyle"}),a("design:paramtypes",["function"==typeof(c=void 0!==i.DomSanitizer&&i.DomSanitizer)&&c||Object])],o);var c},5305:function(e,t,r){"use strict";var n=r("3j3K"),i=r("kZql"),s=r("vwbq");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(){this.width=1024,this.height=1024,this.zoom=s.a().scaleExtent([1,10])}return e.prototype.imageLoaded=function(e){var t=this;this.img=e,this.width=e.naturalWidth,this.height=e.naturalHeight,window.setTimeout(function(){t.resize(),t.redraw()},100)},e.prototype.resize=function(){},e.prototype.zoomed=function(){var e=s.e(this.canvasRef.nativeElement),t=this.canvasRef.nativeElement.getContext("2d");t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,this.width,this.height),t.translate(e.x,e.y),t.scale(e.k,e.k),this.redraw()},e.prototype.redraw=function(){var e=this.canvasRef.nativeElement.getContext("2d");if(e.drawImage(this.img,0,0),null!=this.points)for(var t=0,r=this.points;t/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e}();a([r.i(n.Input)(),o("design:type",String)],c.prototype,"mapName",void 0),a([r.i(n.Input)(),o("design:type",Array)],c.prototype,"points",void 0),a([r.i(n.ViewChild)("myCanvas"),o("design:type","function"==typeof(l=void 0!==n.ElementRef&&n.ElementRef)&&l||Object)],c.prototype,"canvasRef",void 0),c=a([r.i(n.Component)({selector:"arkmap",template:''}),o("design:paramtypes",[])],c);var l},"5xMp":function(e,t){e.exports='\r\n\r\n
\r\n
\r\n \r\n
Logged in as {{dataService.Servers.User.Name}} | Logout | Login | Admin Options | Theme: Light | Dark
\r\n
\r\n \r\n
\r\n\r\n\r\n'},"6fYc":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".serverdetails th{white-space:nowrap}.serverdetails td{width:99%}",""]),e.exports=e.exports.toString()},"78nn":function(e,t){e.exports="\r\n

Player

\r\n
\r\n
Profile
\r\n
Creatures
\r\n
Creatures (Cloud)
\r\n
Breeding
\r\n
Crops
\r\n
Electrical Generators
\r\n
Kibbles and Eggs
\r\n
Tribe Log
\r\n
\r\n
"},"7T2B":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){this.callback=new n.EventEmitter,this.confirming=!1}return e.prototype.ngOnInit=function(){},e.prototype.onClick=function(e){var t=this;this.confirming?e.detail>=3&&(window.clearTimeout(this.resetTimeout),this.confirming=!1,this.callback.emit()):(this.confirming=!0,this.resetTimeout=window.setTimeout(function(){t.confirming=!1},5e3))},e}();i([r.i(n.Output)(),s("design:type","function"==typeof(o=void 0!==n.EventEmitter&&n.EventEmitter)&&o||Object)],a.prototype,"callback",void 0),i([r.i(n.Input)(),s("design:type",Number)],a.prototype,"width",void 0),i([r.i(n.ViewChild)("confirmButton"),s("design:type","function"==typeof(c=void 0!==n.ElementRef&&n.ElementRef)&&c||Object)],a.prototype,"confirmButton",void 0),a=i([r.i(n.Component)({selector:"confirm-button",template:r("QaTd"),styles:[r("8Zim")]}),s("design:paramtypes",[])],a);var o,c},"7arz":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"7fuz":function(e,t){e.exports='
\n \n
'},"7uO+":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"7xIs":function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.dataService.hasFeatureAccess("server","players")?this.menu.activate("players"):this.dataService.hasFeatureAccess("server","tribes")?this.menu.activate("tribes"):this.dataService.hasFeatureAccess("server","wildcreatures-statistics")?this.menu.activate("wildcreatures-statistics"):this.dataService.hasFeatureAccess("server","wildcreatures")&&this.menu.activate("wildcreatures")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-server-menu",host:{"[class]":"menu.className"},template:r("MjD/"),styles:[r("oLRk")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},"8Zim":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"8kYA":function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this.dataService=e,this.menuOption=void 0,this.menuVisible=!1,this.className="menucontainer"}return e.prototype.ngOnInit=function(){var e=this;this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe()},e.prototype.activate=function(e){this.dataService.SetMenuOption(e)},e.prototype.active=function(e){return this.menuOption==e},e.prototype.toggleMenu=function(){this.menuVisible=!this.menuVisible},e}();o=s([r.i(n.Component)({selector:"app-menu",template:r("m8aW"),styles:[r("ne8d")]}),a("design:paramtypes",["function"==typeof(c=void 0!==i.a&&i.a)&&c||Object])],o);var c},"8zLQ":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(e){this._elementRef=e,this.clickOutside=new n.EventEmitter}return e.prototype.onClick=function(e,t){if(t){this._elementRef.nativeElement.contains(t)||this.clickOutside.emit(e)}},e}();i([r.i(n.Output)(),s("design:type",Object)],a.prototype,"clickOutside",void 0),i([r.i(n.HostListener)("document:click",["$event","$event.target"]),s("design:type",Function),s("design:paramtypes",[Object,Object]),s("design:returntype",void 0)],a.prototype,"onClick",null),a=i([r.i(n.Directive)({selector:"[clickOutside]"}),s("design:paramtypes",["function"==typeof(o=void 0!==n.ElementRef&&n.ElementRef)&&o||Object])],a);var o},"9kk6":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"A+2f":function(e,t){e.exports=''},ATz5:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("lHWG")),a=r("+Lwu"),o=r("kZql"),c=r("PJh5");r.n(c);r.d(t,"a",function(){return u});var l=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},d=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(){function e(e,t){var r=this;this.httpService=e,this.messageService=t,this._servers=new i.BehaviorSubject(void 0),this.menuOption=new i.BehaviorSubject(void 0),this.theme=new i.BehaviorSubject(void 0),this.ServersUpdated$=new n.EventEmitter,t.serverUpdated$.subscribe(function(e){return r.updateServer(e)})}return Object.defineProperty(e.prototype,"Theme",{get:function(){return this.theme.asObservable()},enumerable:!0,configurable:!0}),e.prototype.SetTheme=function(e){this.theme.next(e)},Object.defineProperty(e.prototype,"MenuOption",{get:function(){return this.menuOption.asObservable()},enumerable:!0,configurable:!0}),e.prototype.SetMenuOption=function(e){this.menuOption.next(e)},e.prototype.getServers=function(){var e=this;return this.httpService.getServers().then(function(t){e.Servers=t;var r=t?t.User:void 0;return e.UserSteamId=r&&r.SteamId?r.SteamId:void 0,e._servers.next(t),e.ServersUpdated$.emit(t),!0}).catch(function(t){return e.Servers=null,e.UserSteamId=void 0,e._servers.next(null),e.ServersUpdated$.emit(null),!1})},e.prototype.updateServer=function(e){this.getServers()},e.prototype.hasFeatureAccess=function(e,t,r){var n=this.Servers?this.Servers.AccessControl:void 0;if(!n)return!1;var i=n[e];if(!i)return!1;var s=i[t];if(!s)return!1;var a=this.Servers?this.Servers.User:void 0,o=a&&a.Roles?a.Roles.slice(0):[];a&&a.SteamId&&a.SteamId==r&&o.push("self");for(var c=function(e){if(s.find(function(t){return e.toLowerCase()===t.toLowerCase()}))return{value:!0}},l=0,d=o;l=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e,t){this.dataService=e,this.router=t}return e.prototype.resolve=function(e,t){var r=this;return this.dataService.getServers().then(function(e){return r.dataService}).catch(function(e){return r.dataService})},e}();c=a([r.i(n.Injectable)(),o("design:paramtypes",["function"==typeof(l=void 0!==s.a&&s.a)&&l||Object,"function"==typeof(d=void 0!==i.b&&i.b)&&d||Object])],c);var l,d},CzL3:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("kZql")),a=r("PJh5");r.n(a);r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(){this._ready=!1,this._wasExpired=!1,this._notificationSent=!1,this._time=new i.BehaviorSubject(void 0),this._notification=new i.BehaviorSubject(void 0),this._loadedAt=a()}return Object.defineProperty(e.prototype,"time",{get:function(){return this._time.getValue()},set:function(e){this._time.next(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"notification",{get:function(){return this._notification.getValue()},set:function(e){this._notification.next(e)},enumerable:!0,configurable:!0}),e.prototype.updateDiff=function(e){e&&(s.a.demo?this._wasExpired=a(new Date(e)).diff(a(new Date(s.a.demoDate)))-a().diff(this._loadedAt)<=0:this._wasExpired=a(new Date(e)).diff(a())<=0,this._notificationSent=!1,this._str=void 0,this._ready=this._wasExpired,this._wasExpired||1!=this.state._completed||(this.state._completed=!1)),s.a.demo?this._diff=e||this.time?a.duration(a(new Date(e||this.time)).diff(a(new Date(s.a.demoDate)))-a().diff(this._loadedAt)):void 0:this._diff=e||this.time?a.duration(a(new Date(e||this.time)).diff(a())):void 0},e.prototype.update=function(){if(!this._diff)return"";if(this._diff.asMilliseconds()<=0){if(!this._notificationSent){if(this.notification&&this.state.imprintNotifications&&!this._wasExpired){new Audio("assets/Alarm01.mp3").play()}this._ready=!0}return this._notificationSent=!0,void(this._str=void 0)}var e=this._diff.seconds(),t=this._diff.minutes(),r=this._diff.hours(),n=Math.floor(this._diff.asDays()),i=[];n>0&&i.push(n+"d"),(n>0||r>0)&&i.push(r+"h"),(n>0||r>0||t>0)&&i.push(t+"m"),i.push(e+"s"),this._str=i.join(" "),this._ready=!1,this.state._completed=!1},e.prototype.ngOnInit=function(){var e=this;this._timeSubscription=this._time.subscribe(function(t){e.updateDiff(t),e.update()}),this._notificationSubscription=this._notification.subscribe(function(e){}),this._counter=i.Observable.interval(1e3).map(function(t){return e.updateDiff(void 0),t}),this._counterSubscription=this._counter.subscribe(function(t){return e.update()})},e.prototype.ngOnDestroy=function(){this._timeSubscription.unsubscribe(),this._notificationSubscription.unsubscribe(),this._counterSubscription.unsubscribe()},e}();o([r.i(n.Input)(),c("design:type",Object)],l.prototype,"state",void 0),o([r.i(n.Input)(),c("design:type",Object),c("design:paramtypes",[Object])],l.prototype,"time",null),o([r.i(n.Input)(),c("design:type",Object),c("design:paramtypes",[Object])],l.prototype,"notification",null),l=o([r.i(n.Component)({selector:"timer",template:'{{_str}}',styles:[r("cPj0")]}),c("design:paramtypes",[])],l)},EEDX:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},EM12:function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n={configJs:'var config = {"webapi":{"port":60001},"webapp":{"defaultTheme":"Dark"}};'}},Fnlp:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0,this.demoMode=!1}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.demoMode="true"==localStorage.getItem("demoMode")},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.toggleDemoMode=function(){var e="true"!=localStorage.getItem("demoMode");this.demoMode=e,localStorage.setItem("demoMode",e+"")},e}();l=o([r.i(n.Component)({selector:"app-developer",template:r("7fuz"),styles:[r("EEDX")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},FxpQ:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e}();l=o([r.i(n.Component)({selector:"app-connection-error",template:r("lRu1"),styles:[r("mf93")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},HOjl:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},Iksp:function(e,t,r){"use strict";var n=r("Qbdm"),i=r("KN8t"),s=r("3j3K"),a=r("NVOs"),o=r("5oXY"),c=r("Fzro"),l=r("3MNG"),d=(r.n(l),r("hHgl")),u=r("YWx4"),p=r("KZxv"),h=r("RiXa"),m=r("qn86"),f=r("JLFQ"),v=r("e/mT"),g=r("5305"),y=r("lHWG"),b=r("0Hpj"),w=r("+Lwu"),S=r("ATz5"),C=r("AcJ7"),O=r("r5VE"),k=r("+w0e"),j=r("38q8"),_=r("ilmp"),x=r("8zLQ"),I=r("JKTH"),A=r("8kYA"),F=r("7xIs"),M=r("08Wm"),R=r("lCrv"),T=r("CzL3"),L=r("0onv"),P=r("7T2B"),N=r("+qYp"),D=r("FxpQ"),B=r("Fnlp"),E=r("vMp4"),K=r("J8nT"),U=r("kZql");r.d(t,"a",function(){return G});var z=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},W=[{path:"player/:playerid",canActivate:[k.a],data:{name:"player"},children:[{path:"",component:p.a},{path:"",component:h.a,outlet:"menu"}]},{path:"server/:id",canActivate:[k.a],data:{name:"server"},children:[{path:"",component:m.a},{path:"",component:F.a,outlet:"menu"}]},{path:"admin/:id",canActivate:[k.a],data:{name:"admin-server"},children:[{path:"",component:v.a},{path:"",component:M.a,outlet:"menu"}]},{path:"servers",canActivate:[k.a],data:{name:"home"},children:[{path:"",component:f.a},{path:"",component:I.a,outlet:"menu"}]},{path:"developer",component:B.a},{path:"accessdenied",component:N.a},{path:"connectionerror",component:D.a},{path:"",redirectTo:"/servers",pathMatch:"full"}],G=function(){function e(){}return e}();G=z([r.i(s.NgModule)({declarations:[u.a,f.a,g.a,j.a,_.a,x.a,p.a,h.a,m.a,v.a,I.a,A.a,F.a,M.a,R.a,T.a,L.a,P.a,N.a,D.a,B.a,E.a],imports:[o.a.forRoot(W),d.a.forRoot(),n.BrowserModule,a.a,c.a,i.a,l.SimpleNotificationsModule.forRoot(),K.a],providers:[[{provide:y.a,useClass:U.a.demo?b.a:y.a}],w.a,S.a,C.a,O.a,k.a,{provide:s.LOCALE_ID,useValue:"en-US"}],bootstrap:[u.a]})],G)},J8nT:function(e,t,r){"use strict";var n=r("3j3K"),i=r("2Je8"),s=r("NVOs"),a=r("0jRk"),o=r("jWPz"),c=r("joX7");r.d(t,"a",function(){return d});var l=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},d=function(){function e(){}return e}();d=l([r.i(n.NgModule)({imports:[i.CommonModule,s.a],providers:[],declarations:[a.a,o.a,o.b,o.c,c.a],exports:[a.a,o.a,o.b,o.c,c.a]})],d)},JKTH:function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.menu.activate("overview")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-server-list-menu",host:{"[class]":"menu.className"},template:r("rHbN"),styles:[r("P+hD")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},JLFQ:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0,this.serverCount=0,this.onlinePlayerCount=0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.serversUpdatedSubscription=this.dataService.ServersUpdated$.subscribe(function(t){e.updateData(t)}),this.serverUpdateInterval=window.setInterval(function(){e.dataService.updateServer(null)},6e4),this.updateData(this.dataService.Servers)},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe(),this.serversUpdatedSubscription.unsubscribe(),window.clearInterval(this.serverUpdateInterval)},e.prototype.updateData=function(e){var t=0,r=0;if(e&&e.Servers){t=e.Servers.length;for(var n=0,i=e.Servers;n=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,n,i,s,a,o){this.route=e,this.router=t,this.httpService=n,this.dataService=i,this.messageService=s,this.notificationsService=a,this.ref=o,this.menuOption=void 0,this.theme=void 0,this.imprintNotifications=!1,this.keysGetter=Object.keys,this.loaded=!1,this.showMap=!1,this.creaturesMode="status",this.creatureStates={},this.creaturesSortField="food",this.creaturesAltSortFields="name",this.creaturesSortFunctions={food:function(e,t,n){return r.i(l.d)(e.FoodStatus,t.FoodStatus,n,2)},name:function(e,t,n){return r.i(l.b)(e.Name,t.Name,n)},species:function(e,t,n){return r.i(l.b)(e.Species,t.Species,n)},gender:function(e,t,n){return r.i(l.b)(e.Gender,t.Gender,n)},base_level:function(e,t,n){return r.i(l.c)(e.BaseLevel,t.BaseLevel,!n)},level:function(e,t,n){return r.i(l.c)(e.Level==e.BaseLevel?null:e.Level,t.Level==t.BaseLevel?null:t.Level,!n)},imprint:function(e,t,n){return r.i(l.d)(e.Imprint,t.Imprint,!n,2)},latitude:function(e,t,n){return r.i(l.d)(e.Latitude,t.Latitude,n,1)},longitude:function(e,t,n){return r.i(l.d)(e.Longitude,t.Longitude,n,1)},owner:function(e,t,n){return r.i(l.b)(e.OwnerType,t.OwnerType,n)},stat_health:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Health:null,void 0!=t.BaseStats?t.BaseStats.Health:null,!n)},stat_stamina:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Stamina:null,void 0!=t.BaseStats?t.BaseStats.Stamina:null,!n)},stat_oxygen:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Oxygen:null,void 0!=t.BaseStats?t.BaseStats.Oxygen:null,!n)},stat_food:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Food:null,void 0!=t.BaseStats?t.BaseStats.Food:null,!n)},stat_weight:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Weight:null,void 0!=t.BaseStats?t.BaseStats.Weight:null,!n)},stat_melee:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Melee:null,void 0!=t.BaseStats?t.BaseStats.Melee:null,!n)},stat_speed:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.MovementSpeed:null,void 0!=t.BaseStats?t.BaseStats.MovementSpeed:null,!n)},id1:function(e,t,n){return r.i(l.c)(e.Id1,t.Id1,n)},id2:function(e,t,n){return r.i(l.c)(e.Id1,t.Id1,n)}},this.tribeLogFilterFunction=function(e,t){return null==t||null!=e.Message&&e.Message.toLowerCase().indexOf(t)>=0}}return e.prototype.getPlayer=function(){var e=this;this.httpService.getPlayer(this.steamId).then(function(t){var r=Object.keys(t.Servers);e.serverKey&&void 0!=r.find(function(t){return t==e.serverKey})||(e.serverKey=r.length>0?r[0]:null);var n=Object.keys(t.Clusters);e.clusterKey&&void 0!=n.find(function(t){return t==e.clusterKey})||(e.clusterKey=n.length>0?n[0]:null),e.player=t,e.filterAndSort(),e.sortCluster(),e.filterCluster(),e.loaded=!0,e.ref.detectChanges()}).catch(function(t){e.player=null,e.filteredCreatures=null,e.imprintCreatures=null,e.filteredClusterCreatures=null,e.loaded=!0})},e.prototype.ngOnInit=function(){var e=this;this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.theme$=this.dataService.Theme,this.themeSubscription=this.theme$.subscribe(function(t){e.theme=t}),this.steamId=this.route.snapshot.params.playerid,this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.updateServer(t)}),this.getPlayer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.themeSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.haveMatingCooldown=function(e){return null!=e.NextMating&&new Date(e.NextMating)>new Date},e.prototype.active=function(e){return this.serverKey==e},e.prototype.activate=function(e){this.serverKey=e,this.filterAndSort()},e.prototype.serverWidth=function(){return 100/Object.keys(this.player.Servers).length},e.prototype.activeCluster=function(e){return this.clusterKey==e},e.prototype.activateCluster=function(e){this.clusterKey=e,this.sortCluster(),this.filterCluster()},e.prototype.clusterWidth=function(){return 100/Object.keys(this.player.Clusters).length},e.prototype.sort=function(){var e=this,t="-"!=this.creaturesSortField[0],r=this.creaturesSortFunctions[this.creaturesSortField.replace(/^\-/,"")],n=this.creaturesAltSortFields.split(",").map(function(t){var r={};return r.asc="-"!=t[0],r.sortFunc=e.creaturesSortFunctions[t.replace(/^\-/,"")],r});this.filteredCreatures.sort(function(e,i){var s=r(e,i,t);if(0==s)for(var a=0,o=n;a=0||null!=t.Name&&t.Name.toLowerCase().indexOf(e)>=0})}var t=this.player.Servers[this.serverKey].Creatures.filter(function(e){return null!=e.BabyAge});t.sort(function(e,t){return new Date(e.BabyNextCuddle)new Date(t.BabyNextCuddle)?1:0}),this.imprintCreatures=t;for(var r=[],n=0,i=this.filteredCreatures;nt.Level?-1:e.Level=0||null!=t.Name&&t.Name.toLowerCase().indexOf(e)>=0})}},e.prototype.run=function(){if(null==this.steamId||""==this.steamId)return this.player=null,this.filteredCreatures=null,void(this.imprintCreatures=null);this.getPlayer()},e.prototype.openMap=function(e){this.showMap=!0,e.stopPropagation()},e.prototype.closeMap=function(e){this.showMap=!1},e.prototype.updateServer=function(e){this.getPlayer(),this.showServerUpdateNotification(e)},e.prototype.haveCluster=function(){return null!=this.player&&Object.keys(this.player.Clusters).length>0},e.prototype.sumKibbleAndEggs=function(){return void 0!=this.player.Servers[this.serverKey].KibblesAndEggs?this.player.Servers[this.serverKey].KibblesAndEggs.reduce(function(e,t){return e+t.KibbleCount+t.EggCount},0):0},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.getStateForCreature=function(e){if(e){var t=this.creatureStates[e.Id1+"_"+e.Id2];return t||(t={imprintNotifications:!0},this.creatureStates[e.Id1+"_"+e.Id2]=t),t}},e.prototype.toggleImprintNotificationForCreature=function(e){var t=this.getStateForCreature(e);t.imprintNotifications=!t.imprintNotifications},e.prototype.activeCreaturesMode=function(e){return e==this.creaturesMode},e.prototype.activateCreaturesMode=function(e){this.creaturesMode=e},e.prototype.setCreaturesSort=function(e){var t=this.creaturesSortField==e;this.creaturesSortField=t?"-"+e:e,this.creaturesAltSortFields="latitude"==e?t?"-longitude,name":"longitude,name":"longitude"==e?t?"-latitude,name":"latitude,name":"name",this.sort()},e.prototype.copyCreature=function(e){},e.prototype.getCurrentServer=function(){var e=this;if(this.dataService&&this.dataService.Servers&&this.dataService.Servers.Servers){return this.dataService.Servers.Servers.find(function(t){return t.Key==e.serverKey})}},e.prototype.numCreatureTabs=function(){var e=1;return this.dataService.hasFeatureAccess("player","creatures-basestats",this.steamId)&&(e+=1),this.dataService.hasFeatureAccess("player","creatures-ids",this.steamId)&&(e+=1),e},e.prototype.isTheme=function(e){return this.theme==e},e}();p=d([r.i(n.Component)({selector:"app-player",template:r("jFLX"),styles:[r("S6EL")]}),u("design:paramtypes",["function"==typeof(h=void 0!==i.g&&i.g)&&h||Object,"function"==typeof(m=void 0!==i.b&&i.b)&&m||Object,"function"==typeof(f=void 0!==c.a&&c.a)&&f||Object,"function"==typeof(v=void 0!==a.a&&a.a)&&v||Object,"function"==typeof(g=void 0!==o.a&&o.a)&&g||Object,"function"==typeof(y=void 0!==s.NotificationsService&&s.NotificationsService)&&y||Object,"function"==typeof(b=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&b||Object])],p);var h,m,f,v,g,y,b},MOVZ:function(e,t){function r(e){throw new Error("Cannot find module '"+e+"'.")}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id="MOVZ"},"MjD/":function(e,t){e.exports="\r\n

Server

\r\n
\r\n
Players
\r\n
Tribes
\r\n
Wild Statistics
\r\n
Wild Creatures
\r\n
\r\n
"},"P+hD":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},QMiF:function(e,t){e.exports='\x3c!--
\r\n \r\n

{{currentOwner.Name}}

\r\n
Coords: {{currentArea.Latitude | number:\'1.0-1\'}}, {{currentArea.Longitude | number:\'1.0-1\'}}
\r\n
Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n
{{currentArea.StructureCount | number}} structures
\r\n \r\n
\r\n
--\x3e\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{currentOwner.Name}}

\r\n
\r\n
\r\n
\r\n Coords: {{currentArea.Latitude | number:\'1.0-1\'}}, {{currentArea.Longitude | number:\'1.0-1\'}}
\r\n Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n {{currentArea.StructureCount | number}} structures\r\n
\r\n
\r\n
Destroy this area
\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{currentOwner.Name}}

\r\n
\r\n
\r\n
\r\n Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n {{currentOwner.AreaCount | number}} areas
\r\n {{currentOwner.StructureCount | number}} structures
\r\n {{currentOwner.CreatureCount | number}} creatures\r\n
\r\n
\r\n
Destroy all structures
\r\n
Destroy all creatures
\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{modalInfo.Header}}

\r\n
\r\n
\r\n
\r\n {{modalInfo.Message}}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n

Structures

\r\n
Save World
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n
\r\n

Player/Tribe Locations

\r\n
\r\n
\r\n \x3c!--\r\n --\x3e\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameTypeA#S#C#Last Active
{{owner.Name}}{{owner.Type}}{{owner.AreaCount}}{{owner.StructureCount}}{{owner.CreatureCount}}{{dataService.toRelativeDate(owner.LastActiveTime)}}
\r\n
\r\n
'},QaTd:function(e,t){e.exports=''},RiXa:function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("5oXY"),a=r("ATz5");r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t){this.route=e,this.dataService=t}return e.prototype.ngOnInit=function(){this.steamId=this.route.snapshot.params.playerid,this.dataService.hasFeatureAccess("player","profile",this.steamId)?this.menu.activate("profile"):this.dataService.hasFeatureAccess("player","creatures",this.steamId)?this.menu.activate("creatures"):this.dataService.hasFeatureAccess("player","creatures-cloud",this.steamId)?this.menu.activate("creatures_cloud"):this.dataService.hasFeatureAccess("player","breeding",this.steamId)?this.menu.activate("breeding"):this.dataService.hasFeatureAccess("player","crops",this.steamId)?this.menu.activate("crop_plots"):this.dataService.hasFeatureAccess("player","generators",this.steamId)?this.menu.activate("electrical_generators"):this.dataService.hasFeatureAccess("player","kibbles-eggs",this.steamId)?this.menu.activate("kibbles_and_eggs"):this.dataService.hasFeatureAccess("player","tribelog",this.steamId)&&this.menu.activate("tribelog")},e}();o([r.i(n.ViewChild)("menu"),c("design:type","function"==typeof(d=void 0!==i.a&&i.a)&&d||Object)],l.prototype,"menu",void 0),l=o([r.i(n.Component)({selector:"app-player-menu",host:{"[class]":"menu.className"},template:r("78nn"),styles:[r("7uO+")]}),c("design:paramtypes",["function"==typeof(u=void 0!==s.g&&s.g)&&u||Object,"function"==typeof(p=void 0!==a.a&&a.a)&&p||Object])],l);var d,u,p},S6EL:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},SH1B:function(e,t){e.exports='
\r\n

My Profile

\r\n
\r\n
\r\n

Hello, {{dataService.Servers.User.Name}}

\r\n
\r\n
\r\n

\r\n Find your tames, view base stats and keep track of their food status. Get notified of pending imprints, the amount of fertilizer and gasoline remaining in your crops and generators. This and much more is available in your profile.\r\n

\r\n

View my profile ❯

\r\n
\r\n
\r\n
\r\n
\r\n

Servers

\r\n
\r\n
\r\n

{{server.MapName}} - {{server.Key}}{{server.MapName}} - {{server.Key}}

\r\n
\r\n
\r\n

\r\n Last Update {{server.LastUpdate}}, Next Update {{server.NextUpdate || \'-\'}}\r\n

\r\n

View server ❯

\r\n

Admin ❯

\r\n
\r\n
\r\n
\r\n
\r\n

Online {{onlinePlayerCount}}

\r\n
There are no players online...
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam NameCharacter NameTribe NameDiscord TagServerTime Online
{{player.SteamName}}{{player.CharacterName}}{{player.TribeName}}{{player.DiscordName}}{{server.Key}}{{player.TimeOnline}}
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n

{{server.Name}}{{server.Name}}

\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Address{{server.Address}}
Version{{server.Version}}
Player Slots{{server.OnlinePlayerMax}}
Map{{server.MapName}}
In-Game Day{{server.InGameTime}}
Tamed Creatures{{server.TamedCreatureCount | number}}
Cloud Creatures{{server.CloudCreatureCount | number}}
Wild Creatures{{server.WildCreatureCount | number}}
Structures{{server.StructureCount | number}}
Players{{server.PlayerCount | number}}
Tribes{{server.TribeCount | number}}
Last Update{{server.LastUpdate}}
Next Update{{server.NextUpdate}}
Uptime{{server.ServerStarted ? dataService.toRelativeDate(server.ServerStarted) : \'-\'}}
\r\n
\r\n
\r\n\r\n \x3c!--

{{server.Name}}{{server.Name}}

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Address{{server.Address}}
Version{{server.Version}}
Player Slots{{server.OnlinePlayerMax}}
Map{{server.MapName}}
In-Game Time{{server.InGameTime}}
Tamed Creatures{{server.TamedCreatureCount | number}}
Cloud Creatures{{server.CloudCreatureCount | number}}
Wild Creatures{{server.WildCreatureCount | number}}
Structures{{server.StructureCount | number}}
Players{{server.PlayerCount | number}}
Tribes{{server.TribeCount | number}}
Last Update{{server.LastUpdate}}
Next Update{{server.NextUpdate}}
Uptime{{server.ServerStarted ? dataService.toRelativeDate(server.ServerStarted) : \'-\'}}
\r\n
--\x3e\r\n \r\n

Online {{server.OnlinePlayerCount}}

\r\n
There are no players online...
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam NameCharacter NameTribe NameDiscord TagTime Online
{{player.SteamName}}{{player.CharacterName}}{{player.TribeName}}{{player.DiscordName}}{{player.TimeOnline}}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

External Resources

\r\n
\r\n
\r\n

Wiki

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Taming Calculators

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Creature Library and Breeding Suggestions

\r\n
\r\n \r\n
\r\n
'},YWx4:function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("hHgl")),o=r("+Lwu"),c=r("ATz5"),l=r("lHWG"),d=r("r5VE"),u=r("kZql"),p=r("2Je8");r.d(t,"a",function(){return v});var h=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},m=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},v=function(){function e(e,t,r,n,i,s,a,o){this.doc=e,this.messageService=t,this.dataService=r,this.httpService=n,this.hotkeysService=i,this.breadcrumbService=s,this.notificationsService=a,this.router=o,this.notificationOptions={position:["top","right"],timeOut:1e3,lastOnBottom:!1},this.showLogin=!1,this.showAdmin=!1,this.previewOverrideMenuOption=!1,this.currentUrl="/",this.serversUpdatedBefore=!1,this.loading=!0;var c=this.doc.getElementById("configjs"),l=null;if(null!=u.a.configJsOverride?l=u.a.configJsOverride:"/*[[config]]*/"==c.text&&(l=u.a.configJsDefault),null!=l){var d=this.doc.createElement("script");d.type="text/javascript",d.id="configjs",d.text=l,c.parentNode.replaceChild(d,c)}if("undefined"!=typeof config&&"undefined"!==config.webapp&&!0===config.webapp.useCustomCssFile){var p=this.doc.createElement("link");p.rel="stylesheet",p.href="/custom.css",this.doc.getElementsByTagName("head")[0].appendChild(p)}"undefined"!=typeof config&&"undefined"!==config.webapp&&!0===config.webapp.topMenu?this.previewMenuName="Sidebar Menu":this.previewMenuName="Top Menu",s.addFriendlyNameForRoute("/accessdenied","Access Denied"),s.addFriendlyNameForRoute("/connectionerror","Connection error"),s.hideRoute("/player"),s.hideRoute("/servers"),s.hideRoute("/server"),s.hideRoute("/admin"),s.addCallbackForRouteRegex("^/player/.+$",this.getNameForPlayer),u.a.demo||t.connect()}return e.prototype.ngOnInit=function(){var e=this;this.dataService.SetTheme(this.getTheme()),this.routerEventsSubscription=this.router.events.subscribe(function(t){e.navigationInterceptor(t)}),this.currentUrl=window.location.href||"/",this.serversUpdatedSubscription=this.dataService.ServersUpdated$.subscribe(function(t){e.serversUpdatedBefore||!t||t.User&&t.User.SteamId||(e.showLogin=!0),e.serversUpdatedBefore=!0}),this.adminOptionsHotkeySubscription=this.hotkeysService.add({keys:"control.shift.a"}).subscribe(function(){e.dataService.hasFeatureAccess("pages","admin-server")&&(e.showAdmin=!0)})},e.prototype.ngOnDestroy=function(){this.routerEventsSubscription.unsubscribe(),this.serversUpdatedSubscription.unsubscribe(),this.adminOptionsHotkeySubscription.unsubscribe()},e.prototype.navigationInterceptor=function(e){e instanceof i.d?this.loading=!0:e instanceof i.c?this.loading=!1:e instanceof i.e?this.loading=!1:e instanceof i.f&&(this.loading=!1)},e.prototype.getNameForPlayer=function(e){return"Player"},e.prototype.getBodyClasses=function(){var e=this.getTheme();return("undefined"!=typeof config&&"undefined"!==config.webapp&&!0===config.webapp.topMenu)!==this.previewOverrideMenuOption&&(e+=" topmenu"),e},e.prototype.getDefaultTheme=function(){var e="undefined"!=typeof config&&"undefined"!==config.webapp&&"string"==typeof config.webapp.defaultTheme?config.webapp.defaultTheme.toLowerCase():void 0;return"light"!=e&&"dark"!=e?"dark":e},e.prototype.getTheme=function(){return localStorage.getItem("theme")||this.getDefaultTheme()},e.prototype.setTheme=function(e){return this.dataService.SetTheme(e),localStorage.setItem("theme",e),!1},e.prototype.openLogin=function(e){this.showLogin=!0,e.stopPropagation(),e.preventDefault()},e.prototype.closeLogin=function(e){this.showLogin=!1},e.prototype.openAdminOptions=function(e){this.showAdmin=!0,e.stopPropagation(),e.preventDefault()},e.prototype.openCustomTheme=function(e,t){e.stopPropagation(),e.preventDefault(),this.showAdmin=!1,t.show()},e.prototype.getLoginUrl=function(){return u.a.demo?"":this.httpService.getApiBaseUrl()+"/authentication/login"},e.prototype.getLogoutUrl=function(){return u.a.demo?"":this.httpService.getApiBaseUrl()+"/authentication/logout?returnUrl="+this.currentUrl},e}();v=h([r.i(n.Component)({selector:"body",host:{"[class]":"getBodyClasses()"},template:r("5xMp"),styles:[r("okgc")]}),f(0,r.i(n.Inject)(p.DOCUMENT)),m("design:paramtypes",[Object,"function"==typeof(g=void 0!==o.a&&o.a)&&g||Object,"function"==typeof(y=void 0!==c.a&&c.a)&&y||Object,"function"==typeof(b=void 0!==l.a&&l.a)&&b||Object,"function"==typeof(w=void 0!==d.a&&d.a)&&w||Object,"function"==typeof(S=void 0!==a.b&&a.b)&&S||Object,"function"==typeof(C=void 0!==s.NotificationsService&&s.NotificationsService)&&C||Object,"function"==typeof(O=void 0!==i.b&&i.b)&&O||Object])],v);var g,y,b,w,S,C,O},aijx:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},bKAj:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},bl1B:function(e,t){e.exports="\r\n

Admin|Server

\r\n
\r\n
Structures
\r\n
Players
\r\n
Tribes
\r\n
Fertilized Eggs
\r\n
\r\n
"},cPj0:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"e/mT":function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("ATz5")),o=r("+Lwu"),c=r("lHWG"),l=r("vwbq");r.d(t,"a",function(){return p});var d=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,r,n,i,s){this.route=e,this.router=t,this.httpService=r,this.dataService=n,this.messageService=i,this.notificationsService=s,this.menuOption=void 0,this.loaded=!1,this.loadedStructures=!1,this.loadedFertilizedEggs=!1}return e.prototype.getServer=function(){var e=this;this.httpService.getAdminServer(this.serverKey).then(function(t){e.server=t,e.loaded=!0}).catch(function(t){e.server=null,e.loaded=!0})},e.prototype.getStructures=function(){var e=this;this.httpService.getStructures(this.serverKey).then(function(t){e.structures=t,e.loadedStructures=!0}).catch(function(t){e.structures=void 0,e.loadedStructures=!0})},e.prototype.getListFertilizedEggs=function(){var e=this;this.httpService.adminListFertilizedEggs(this.serverKey).then(function(t){e.spoiledEggsList=t.SpoiledEggList,e.fertilizedEggsList=t.FertilizedEggList,e.fertilizedEggsCount=void 0===t.FertilizedEggsCount?0:t.FertilizedEggsCount,e.spoiledEggsCount=void 0===t.SpoiledEggsCount?0:t.SpoiledEggsCount,e.totalEggCount=e.spoiledEggsCount+e.fertilizedEggsCount,e.loadedFertilizedEggs=!0}).catch(function(t){e.fertilizedEggsList=void 0,e.loadedFertilizedEggs=!0})},e.prototype.ngOnInit=function(){var e=this;this.serverKey=this.route.snapshot.params.id,this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){e.menuOption=t,"structures"==e.menuOption?e.getStructures():"fertilized-eggs"==e.menuOption&&e.getListFertilizedEggs()}),this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){e.serverKey==t&&(e.updateServer(),e.showServerUpdateNotification(t))}),this.getServer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.getTribeMember=function(e){return this.server.Players.find(function(t){return t.SteamId==e})},e.prototype.updateServer=function(){this.getServer()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.showInfoModal=function(e,t){var r={};r.Header=e,r.Message=t,this.modalInfo=r,l.b(this.contextMenu.nativeElement).style("display","block"),l.c&&l.c.stopPropagation()},e.prototype.hideContextMenu=function(){l.b(this.contextMenu.nativeElement).style("display","none"),this.modalInfo=void 0},e.prototype.saveWorld=function(e){var t=this;this.httpService.adminSaveWorld(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyAllEggs=function(e){var t=this;this.httpService.adminDestroyAllEggs(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroySpoiledEggs=function(e){var t=this;this.httpService.adminDestroySpoiledEggs(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e}();d([r.i(n.ViewChild)("contextMenu"),u("design:type","function"==typeof(h=void 0!==n.ElementRef&&n.ElementRef)&&h||Object)],p.prototype,"contextMenu",void 0),p=d([r.i(n.Component)({selector:"app-admin-server",template:r("/Wuq"),styles:[r("7arz")]}),u("design:paramtypes",["function"==typeof(m=void 0!==i.g&&i.g)&&m||Object,"function"==typeof(f=void 0!==i.b&&i.b)&&f||Object,"function"==typeof(v=void 0!==c.a&&c.a)&&v||Object,"function"==typeof(g=void 0!==a.a&&a.a)&&g||Object,"function"==typeof(y=void 0!==o.a&&o.a)&&y||Object,"function"==typeof(b=void 0!==s.NotificationsService&&s.NotificationsService)&&b||Object])],p);var h,m,f,v,g,y,b},eqcJ:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".customThemeContainer{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-line-pack:justify;align-content:space-between}.customThemeItem{width:50%;padding:2px;cursor:pointer}.customThemeColorPreview{width:28px;height:28px;display:inline-block;vertical-align:middle;margin-right:5px;border:2px solid #000;box-sizing:border-box}.customThemeColorPreview>div{width:24px;height:24px;display:inline-block;border:2px solid #fff;box-sizing:border-box}.customThemeColor{font-family:monospace;padding:1px 3px;width:55px;border-radius:8px;margin-right:10px}.customThemeColor,.customThemeName{height:20px;display:inline-block;vertical-align:middle}",""]),e.exports=e.exports.toString()},"fT+k":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,'.map canvas,.map svg{position:absolute;top:0;left:0;width:100%}rect.overlay{fill:transparent}.wrapper{position:relative}.wrapper:after{padding-top:100%;display:block;content:""}.wrapper .buttons{position:absolute;left:5px;top:5px;opacity:.75;z-index:2}',""]),e.exports=e.exports.toString()},ilmp:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Qbdm");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this._sanitizer=e}return e.prototype.transform=function(e){return this._sanitizer.bypassSecurityTrustHtml(e)},e}();o=s([r.i(n.Pipe)({name:"sanitizeHtml"}),a("design:paramtypes",["function"==typeof(c=void 0!==i.DomSanitizer&&i.DomSanitizer)&&c||Object])],o);var c},jFLX:function(e,t){e.exports='
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given steam id.

\r\n
\r\n
\r\n
\r\n

Servers

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Player

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Character NameGenderTribe NameSteam IdTribe IdLevelEngram PointsLatLngSaved At
{{player?.Servers[serverKey]?.CharacterName}}{{player?.Servers[serverKey]?.Gender}}{{player?.Servers[serverKey]?.TribeName}}{{player?.Servers[serverKey]?.FakeSteamId || player?.Servers[serverKey]?.SteamId}}{{player?.Servers[serverKey]?.TribeId}}{{player?.Servers[serverKey]?.Level}}{{player?.Servers[serverKey]?.EngramPoints | number}}{{player?.Servers[serverKey]?.Latitude | number:\'1.1-1\'}}{{player?.Servers[serverKey]?.Longitude | number:\'1.1-1\'}}{{dataService.toDate(player?.Servers[serverKey]?.SavedAt)}}
\r\n
\r\n
\r\n
\r\n
\r\n

Creatures {{filteredCreatures.length}}

\r\n
\r\n
\r\n
There are no creatures...
\r\n \r\n
\r\n close\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameClassNameSpeciesAliasesGenderBase LevelLevelImprintFoodLatLngStatusOwnerHPSTOXFOWEMESPID1ID2
No matching creatures...
{{creature.Name}}{{creature.ClassName}}{{creature.Species}}{{creature.Aliases}}{{creature.Gender}}{{creature.BaseLevel}}{{creature.Level}}{{creature.Imprint | percent:\'1.0-0\'}}\r\n
\r\n
{{creature.FoodStatus | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{creature.Latitude | number:\'1.1-1\'}}{{creature.Longitude | number:\'1.1-1\'}}\r\n Next mating {{dataService.toRelativeDate(creature.NextMating)}}\r\n
\r\n
\r\n
Baby
\r\n
\r\n
\r\n
{{creature.BabyAge | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
\r\n
cuddle {{dataService.toRelativeDate(creature.BabyNextCuddle)}}
\r\n
\r\n
\r\n
{{creature.OwnerType}}{{creature.BaseStats?.Health}}{{creature.BaseStats?.Stamina}}{{creature.BaseStats?.Oxygen}}{{creature.BaseStats?.Food}}{{creature.BaseStats?.Weight}}{{creature.BaseStats?.Melee}}{{creature.BaseStats?.MovementSpeed}}content_copy{{creature.Id1}}{{creature.Id2}}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Breeding {{imprintCreatures.length}}

\r\n
\r\n
\r\n
There are no baby creatures...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameSpeciesGenderBase LevelImprintProgressFully Grown AtNext Imprint
{{creature.Name}}{{creature.Species}}{{creature.Gender}}{{creature.BaseLevel}}{{creature.Imprint | percent:\'1.0-0\'}}\r\n
\r\n
{{creature.BabyAge | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{dataService.toDate(creature.BabyFullyGrown)}}
\r\n
\r\n \x3c!--

\r\n Last Update {{getCurrentServer().LastUpdate}}, Next Update {{getCurrentServer().NextUpdate || \'-\'}}\r\n

--\x3e\r\n
\r\n
\r\n
\r\n

Kibbles and Eggs {{sumKibbleAndEggs() | number:0.0-0}}

\r\n
\r\n
There are no kibbles or eggs...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameKibblesEggsTotal
{{ke.Name}}{{ke.KibbleCount}}{{ke.EggCount}}{{ke.KibbleCount + ke.EggCount}}
\r\n
\r\n
\r\n
\r\n

Clusters

\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n

Creatures

\r\n
\r\n
There are no creatures in the cloud...
\r\n
\r\n
\r\n
\r\n

Creatures {{filteredClusterCreatures.length}}

\r\n
\r\n
There are no creatures in the cloud...
\r\n
\r\n close\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameSpeciesLevel
No matching creatures...
{{creature.Name}}{{creature.Species}}{{creature.Level}}
\r\n
\r\n
\r\n
\r\n
\r\n

Crops

\r\n
\r\n
There are no crops...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CropSizeFertilizer %Fertilizer UnitsWaterLatLng
{{(cp.PlantedCropName || cp.PlantedCropClassName)}}{{cp.Size}}\r\n
\r\n
{{(cp.FertilizerQuantity / cp.FertilizerMax) | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{cp.FertilizerQuantity | number}}{{cp.WaterAmount | number:\'1.0-0\'}}{{cp.Latitude | number:\'1.1-1\'}}{{cp.Longitude | number:\'1.1-1\'}}
\r\n
\r\n
\r\n
\r\n
\r\n

Electrical Generators

\r\n
\r\n
There are no electrical generators...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Gasoline %Gasoline QuantityActivatedLatLng
\r\n
\r\n
{{(eg.GasolineQuantity / 800.0) | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{eg.GasolineQuantity | number}}{{(eg.Activated == true ? "Yes" : "No")}}{{eg.Latitude | number:\'1.1-1\'}}{{eg.Longitude | number:\'1.1-1\'}}
\r\n
\r\n
\r\n
\r\n
\r\n

Tribe Log

\r\n
\r\n
There are no tribe logs...
\r\n \r\n
\r\n close\r\n \r\n
\r\n \r\n \r\n \r\n \r\n Day\r\n \r\n \r\n {{log.Day}}\r\n \r\n \r\n \r\n \r\n Time\r\n \r\n \r\n {{log.Time}}\r\n \r\n \r\n \r\n \r\n Message\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n'},jWPz:function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"c",function(){return a}),r.d(t,"b",function(){return o}),r.d(t,"a",function(){return c});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(e){this.template=e}return e}();a=i([r.i(n.Directive)({selector:"[ark-dt-cell]"}),s("design:paramtypes",["function"==typeof(l=void 0!==n.TemplateRef&&n.TemplateRef)&&l||Object])],a);var o=function(){function e(e){this.template=e}return e}();o=i([r.i(n.Directive)({selector:"[ark-dt-header]"}),s("design:paramtypes",["function"==typeof(d=void 0!==n.TemplateRef&&n.TemplateRef)&&d||Object])],o);var c=function(){function e(){}return e}();i([r.i(n.Input)(),r.i(n.ContentChild)(a,{read:n.TemplateRef}),s("design:type","function"==typeof(u=void 0!==n.TemplateRef&&n.TemplateRef)&&u||Object)],c.prototype,"cellTemplate",void 0),i([r.i(n.Input)(),r.i(n.ContentChild)(o,{read:n.TemplateRef}),s("design:type","function"==typeof(p=void 0!==n.TemplateRef&&n.TemplateRef)&&p||Object)],c.prototype,"headerTemplate",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"mode",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"key",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"thenSort",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"title",void 0),i([r.i(n.Input)(),s("design:type",Boolean)],c.prototype,"orderBy",void 0),c=i([r.i(n.Directive)({selector:"ark-dt-column"})],c);var l,d,u,p},jkBB:function(e,t){e.exports='
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n
No matching entries...
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n «\r\n \r\n \r\n  {{_fromRow}} - {{getLastRowOffset()}} of {{_totalRows}} \r\n »\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
'},joX7:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl");r.n(i);r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(){this.enabled=i.Observable.of(!0)}return Object.defineProperty(e.prototype,"columnKeys",{set:function(e){this._columnKeys=e,this.ColumnKeys=this._columnKeys.split(",")},enumerable:!0,configurable:!0}),e}();s([r.i(n.Input)(),a("design:type",String)],o.prototype,"key",void 0),s([r.i(n.Input)(),a("design:type",String)],o.prototype,"name",void 0),s([r.i(n.Input)(),a("design:type","function"==typeof(c=void 0!==i.Observable&&i.Observable)&&c||Object)],o.prototype,"enabled",void 0),s([r.i(n.Input)(),a("design:type",String),a("design:paramtypes",[String])],o.prototype,"columnKeys",null),o=s([r.i(n.Directive)({selector:"ark-dt-mode"})],o);var c},kZql:function(e,t,r){"use strict";var n=r("EM12");r.d(t,"a",function(){return i});var i={production:!0,demo:!1,demoDate:null,configJsOverride:null,configJsDefault:n.a.configJs,apiBaseUrl:"//:/api",signalrBaseUrl:"//:/signalr"}},lCrv:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("ATz5")),a=r("lHWG"),o=r("kZql"),c=r("vwbq"),l=r("PJh5");r.n(l);r.d(t,"a",function(){return p});var d=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,r){this.dataService=e,this.httpService=t,this.zone=r,this._structures=new i.BehaviorSubject(void 0),this.keysGetter=Object.keys,this.ownerSortField="locations",this.ownerSortFunctions={locations:function(e,t){return e.AreaCount>t.AreaCount?-1:e.AreaCountt.StructureCount?-1:e.StructureCountt.StructureCount?-1:e.StructureCountt.LastActiveTime||void 0==t.LastActiveTime?1:0}},this.width=1024,this.height=1024,this.zoom=c.a().scaleExtent([1,8])}return Object.defineProperty(e.prototype,"structures",{get:function(){return this._structures.getValue()},set:function(e){this._structures.next(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._structuresSubscription=this._structures.subscribe(function(t){return e.update(t)});var t=this.mapContainer.nativeElement;this.map={},this.map.canvas=c.b(t).append("canvas").attr("width",1024).attr("height",1024).node().getContext("2d"),this.map.svg=c.b(t).append("svg").attr("viewBox","0 0 1024 1024").attr("preserveAspectRatio","xMidYMid").append("g").on("contextmenu",function(e,t){c.c.preventDefault()}),this.map.svg.append("rect").attr("class","overlay").attr("width",1024).attr("height",1024),this.map.x=c.d().domain([0,1024]).range([0,1024]),this.map.y=c.d().domain([0,1024]).range([0,1024]),c.b(t).call(this.zoom.on("zoom",function(){e.hideContextMenu(),e.redraw()})).on("wheel.zoom",null),this.structures&&this.updateMap()},e.prototype.ngOnDestroy=function(){this._structuresSubscription.unsubscribe()},e.prototype.zoomIn=function(){this.zoom.scaleBy(c.b(this.mapContainer.nativeElement),1.2)},e.prototype.zoomOut=function(){this.zoom.scaleBy(c.b(this.mapContainer.nativeElement),.8)},e.prototype.updateSelection=function(){var e=this;this.map.svg.circle.attr("display",function(t){var r=e.structures.Owners[t.OwnerId];return t.Removed||r.Removed||e.selectedOwner&&(!e.selectedOwner||e.selectedOwner.Id!=t.OwnerId)?"none":"block"}),this.redraw()},e.prototype.update=function(e){this.sortOwners(e),this.map&&this.updateMap()},e.prototype.sortOwners=function(e){var t=this.ownerSortFunctions[this.ownerSortField];if(e){var r=e.Owners.slice();r.sort(t),this.ownersSorted=r}else this.ownersSorted=void 0},e.prototype.updateMap=function(){var e=this;this.map.svg.nodes=this.structures.Areas,this.map.svg.draw=function(){e.map.svg.circle=e.map.svg.selectAll("circle").data(e.map.svg.nodes).enter().append("circle").attr("r",function(e){return e.RadiusPx<2?2:e.RadiusPx}).attr("fill","transparent").attr("stroke",function(t){var r=e.structures.Owners[t.OwnerId];return!!r.LastActiveTime&&l(new Date(r.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(t.StructureCount>=100||t.TrashQuota<.5&&t.StructureCount>=10)?"magenta":"red"}).attr("stroke-width",function(t){var r=e.structures.Owners[t.OwnerId];return!!r.LastActiveTime&&l(new Date(r.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(t.StructureCount>=100||t.TrashQuota<.5&&t.StructureCount>=10)?3:2}).attr("transform",e.map.svg.transform),e.map.svg.circle.on("click",function(t){c.c.preventDefault();var r={};r.x=c.c.pageX,r.y=c.c.pageY,e.showAreaModal(t,r)}),e.map.svg.circle.append("svg:title").text(function(t){var r=e.structures.Owners[t.OwnerId],n=r.LastActiveTime?l(new Date(r.LastActiveTime)).fromNow():null;return r.Name+": "+t.StructureCount+" structures\nCoords: "+t.Latitude+", "+t.Longitude+"\n"+(n?"Last active: "+n+"\n":"")+"---\n"+t.Structures.map(function(t){var r=e.structures.Types[t.t];return t.c+": "+(r?r.Name:t.t)}).join("\n")})},this.map.svg.draw(),this.map.svg.transform=function(t){return"translate("+e.map.x(t.TopoMapX)+","+e.map.y(t.TopoMapY)+")"},this.map.svg.circle.attr("transform",this.map.svg.transform)},e.prototype.imageLoaded=function(e){var t=this;this.img=e,this.width=e?e.naturalWidth:1024,this.height=e?e.naturalHeight:1024,window.setTimeout(function(){t.resize(),t.redraw()},100)},e.prototype.resize=function(){},e.prototype.redraw=function(){var e=this,t=c.e(this.mapContainer.nativeElement);this.map.svg.attr("transform","translate("+t.x+","+t.y+") scale("+t.k+")"),t.k!=this.prevTransformK&&this.map.svg.circle.attr("stroke-width",function(r){var n=e.structures.Owners[r.OwnerId];return(!!n.LastActiveTime&&l(new Date(n.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(r.StructureCount>=100||r.TrashQuota<.5&&r.StructureCount>=10)?3:2)/t.k});var r=this.map.canvas;r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,1024,1024),r.translate(t.x,t.y),r.scale(t.k,t.k),this.img&&r.drawImage(this.img,0,0),this.prevTransformK=t.k},e.prototype.ngOnChanges=function(e){var t=this;if(null!=this.mapName){var r=new Image;r.onload=function(){return t.imageLoaded(r)},r.onerror=function(){return t.imageLoaded(void 0)},r.src=o.a.demo?"assets/demo/Ragnarok.jpg":this.getApiBaseUrl()+"/map/"+this.mapName,r.complete&&(r.onload=null,r.onerror=null,this.imageLoaded(r))}},e.prototype.getApiBaseUrl=function(){return o.a.apiBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e.prototype.reset=function(){this.selectedOwner=void 0,this.updateSelection()},e.prototype.setSelectedOwner=function(e){this.selectedOwner=e,this.updateSelection()},e.prototype.setOwnerSort=function(e){this.ownerSortField=e,this.sortOwners(this.structures)},e.prototype.showAreaModal=function(e,t){this.currentArea=e,this.currentOwner=this.structures.Owners[e.OwnerId],c.b(this.contextMenu.nativeElement).style("display","block"),c.c&&c.c.stopPropagation()},e.prototype.showOwnerModal=function(e,t){this.currentOwner=t,c.b(this.contextMenu.nativeElement).style("display","block"),e.stopPropagation()},e.prototype.showInfoModal=function(e,t){var r={};r.Header=e,r.Message=t,this.modalInfo=r,c.b(this.contextMenu.nativeElement).style("display","block"),c.c&&c.c.stopPropagation()},e.prototype.hideContextMenu=function(){c.b(this.contextMenu.nativeElement).style("display","none"),this.currentArea=void 0,this.currentOwner=void 0,this.modalInfo=void 0},e.prototype.destroyCurrentArea=function(e){var t=this;this.httpService.adminDestroyStructuresForTeamIdAtPosition(this.serverKey,this.currentOwner.OwnerId,this.currentArea.X,this.currentArea.Y,+this.currentArea.RadiusUu+1e3,1).then(function(e){t.currentArea.Removed=!0,t.currentOwner.AreaCount-=1,t.currentOwner.StructureCount-=t.currentArea.StructureCount,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyAllStructuresForTeam=function(e){var t=this;this.httpService.adminDestroyAllStructuresForTeamId(this.serverKey,this.currentOwner.OwnerId).then(function(e){t.currentOwner.Removed=!0,t.currentOwner.AreaCount=0,t.currentOwner.StructureCount=0,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyDinosForTeam=function(e){var t=this;this.httpService.adminDestroyDinosForTeamId(this.serverKey,this.currentOwner.OwnerId).then(function(e){t.currentOwner.CreatureCount=0,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.saveWorld=function(e){var t=this;this.httpService.adminSaveWorld(this.serverKey).then(function(e){t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e}();d([r.i(n.Input)(),u("design:type",Object),u("design:paramtypes",[Object])],p.prototype,"structures",null),d([r.i(n.Input)(),u("design:type",String)],p.prototype,"serverKey",void 0),d([r.i(n.Input)(),u("design:type",String)],p.prototype,"mapName",void 0),d([r.i(n.ViewChild)("map"),u("design:type","function"==typeof(h=void 0!==n.ElementRef&&n.ElementRef)&&h||Object)],p.prototype,"mapContainer",void 0),d([r.i(n.ViewChild)("contextMenu"),u("design:type","function"==typeof(m=void 0!==n.ElementRef&&n.ElementRef)&&m||Object)],p.prototype,"contextMenu",void 0),p=d([r.i(n.Component)({selector:"arkmap-structures",template:r("QMiF"),styles:[r("fT+k")],encapsulation:n.ViewEncapsulation.None}),u("design:paramtypes",["function"==typeof(f=void 0!==s.a&&s.a)&&f||Object,"function"==typeof(v=void 0!==a.a&&a.a)&&v||Object,"function"==typeof(g=void 0!==n.NgZone&&n.NgZone)&&g||Object])],p);var h,m,f,v,g},lHWG:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Fzro"),s=r("eErF"),a=(r.n(s),r("kZql"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e){this.http=e,this.headers=new i.c({"Content-Type":"application/json"}),this.serversUrl="/servers",this.serverUrl="/server",this.wildCreaturesUrl="/wildcreatures",this.structuresUrl="/structures",this.adminServerUrl="/adminserver",this.administerUrl="/administer",this.playerUrl="/player"}return e.prototype.getOptions=function(){var e="true"==localStorage.getItem("demoMode"),t=new i.d({withCredentials:!0});return e&&(t.headers||(t.headers=new i.c),t.headers.append("demoMode","true")),t},e.prototype.getServers=function(){return this.http.get(""+this.getApiBaseUrl()+this.serversUrl+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getServer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.serverUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getWildCreatures=function(e){return this.http.get(""+this.getApiBaseUrl()+this.wildCreaturesUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getStructures=function(e){return this.http.get(""+this.getApiBaseUrl()+this.structuresUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getPlayer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.playerUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getAdminServer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.adminServerUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyAllStructuresForTeamId=function(e,t){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyAllStructuresForTeamId/"+e+"?teamId="+t+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyStructuresForTeamIdAtPosition=function(e,t,r,n,i,s){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyStructuresForTeamIdAtPosition/"+e+"?teamId="+t+"&x="+r+"&y="+n+"&radius="+i+"&rafts="+s+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyDinosForTeamId=function(e,t){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyDinosForTeamId/"+e+"?teamId="+t+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminSaveWorld=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/SaveWorld/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminListFertilizedEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DroppedEggsList/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyAllEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyAllEggs/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroySpoiledEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroySpoiledEggs/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getApiBaseUrl=function(){return a.a.apiBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e.prototype.handleError=function(e){return Promise.reject(e.message||e)},e}();l=o([r.i(n.Injectable)(),c("design:paramtypes",["function"==typeof(d=void 0!==i.b&&i.b)&&d||Object])],l);var d},lRu1:function(e,t){e.exports='
\n
\n

Connection error

\n

The application was unable to connect to the Web API. This could be due to a configuration error...

\n
\n
'},m8aW:function(e,t){e.exports=''},mf93:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},ne8d:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},oLRk:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},okgc:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},qn86:function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("PJh5")),o=(r.n(a),r("ATz5")),c=r("+Lwu"),l=r("lHWG"),d=r("+rAa");r.d(t,"a",function(){return h});var u=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},p=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},h=function(){function e(e,t,n,i,s,a,o){this.route=e,this.router=t,this.httpService=n,this.dataService=i,this.messageService=s,this.notificationsService=a,this.ref=o,this.menuOption=void 0,this.loaded=!1,this.creaturesLoaded=!1,this.keysGetter=Object.keys,this.showMap=!1,this.creaturesMode="status",this.creaturesSortField="base_level",this.creaturesAltSortFields="base_level,gender",this.creaturesSortFunctions={gender:function(e,t,n){return r.i(d.b)(e.Gender,t.Gender,n)},base_level:function(e,t,n){return r.i(d.c)(e.BaseLevel,t.BaseLevel,!n)},tameable:function(e,t,n){return r.i(d.c)(e.IsTameable,t.IsTameable,!n)},latitude:function(e,t,n){return r.i(d.d)(e.Latitude,t.Latitude,n,1)},longitude:function(e,t,n){return r.i(d.d)(e.Longitude,t.Longitude,n,1)},x:function(e,t,n){return r.i(d.d)(e.X,t.X,n,0)},y:function(e,t,n){return r.i(d.d)(e.Y,t.Y,n,0)},z:function(e,t,n){return r.i(d.d)(e.Z,t.Z,n,0)},stat_health:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Health:null,void 0!=t.BaseStats?t.BaseStats.Health:null,!n)},stat_stamina:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Stamina:null,void 0!=t.BaseStats?t.BaseStats.Stamina:null,!n)},stat_oxygen:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Oxygen:null,void 0!=t.BaseStats?t.BaseStats.Oxygen:null,!n)},stat_food:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Food:null,void 0!=t.BaseStats?t.BaseStats.Food:null,!n)},stat_weight:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Weight:null,void 0!=t.BaseStats?t.BaseStats.Weight:null,!n)},stat_melee:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Melee:null,void 0!=t.BaseStats?t.BaseStats.Melee:null,!n)},stat_speed:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.MovementSpeed:null,void 0!=t.BaseStats?t.BaseStats.MovementSpeed:null,!n)},id1:function(e,t,n){return r.i(d.c)(e.Id1,t.Id1,n)},id2:function(e,t,n){return r.i(d.c)(e.Id1,t.Id1,n)}},this.playerSortFunctions={character_name:function(e,t,n){return r.i(d.b)(e.CharacterName,t.CharacterName,n)},tribe_name:function(e,t,n){return r.i(d.b)(e.TribeName,t.TribeName,n)},last_active:function(e,t,n){return r.i(d.c)(e.LastActiveTime,t.LastActiveTime,!n)}},this.tribeSortFunctions={tribe_name:function(e,t,n){return r.i(d.b)(e.Name,t.Name,n)},last_active:function(e,t,n){return r.i(d.c)(e.LastActiveTime,t.LastActiveTime,!n)}},this.wildStatisticsSortFunctions={species:function(e,t,n){return r.i(d.b)(e.Name,t.Name,n)},class_name:function(e,t,n){return r.i(d.b)(e.ClassName,t.ClassName,n)},count:function(e,t,n){return r.i(d.c)(e.Count,t.Count,!n)},fraction:function(e,t,n){return r.i(d.d)(e.Fraction,t.Fraction,!n,4)}}}return e.prototype.getServer=function(){var e=this;this.httpService.getServer(this.serverKey).then(function(t){e.server=t,e.filter(),e.loaded=!0}).catch(function(t){e.server=null,e.filteredPlayers=null,e.filteredTribes=null,e.loaded=!0})},e.prototype.getWildCreatures=function(){var e=this;this.httpService.getWildCreatures(this.serverKey).then(function(t){e.wild=t,e.species=Object.keys(e.wild.Species).sort(function(t,n){return r.i(d.b)(e.wild.Species[t].Name||t,e.wild.Species[n].Name||n,!0)}),e.selectedSpecies&&void 0!=e.species.find(function(t){return t==e.selectedSpecies})||(e.selectedSpecies=e.species.length>0?e.species[0]:null),e.filterAndSortWild(),e.creaturesLoaded=!0,e.ref.detectChanges()}).catch(function(t){e.wild=null,e.species=null,e.filteredCreatures=null,e.creaturesLoaded=!0})},e.prototype.ngOnInit=function(){var e=this;this.accessControl_pages_player=this.dataService.hasFeatureAccessObservable("pages","player"),this.serverKey=this.route.snapshot.params.id,this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){e.menuOption=t,0!=e.creaturesLoaded||"wildcreatures"!=e.menuOption&&"wildcreatures-statistics"!=e.menuOption||e.getWildCreatures()}),this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){e.serverKey==t&&(e.updateServer(),e.showServerUpdateNotification(t))}),this.getServer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.filter=function(){var e=this.dataService.getCurrentDate(),t=e.subtract(90,"day");this.filteredPlayers=this.server.Players.filter(function(e){return a(new Date(e.LastActiveTime)).isSameOrAfter(t)}),this.filteredTribes=this.server.Tribes.filter(function(e){return a(new Date(e.LastActiveTime)).isSameOrAfter(t)})},e.prototype.sortWild=function(){var e=this,t="-"!=this.creaturesSortField[0],r=this.creaturesSortFunctions[this.creaturesSortField.replace(/^\-/,"")],n=this.creaturesAltSortFields.split(",").map(function(t){var r={};return r.asc="-"!=t[0],r.sortFunc=e.creaturesSortFunctions[t.replace(/^\-/,"")],r});void 0!=this.filteredCreatures&&this.filteredCreatures.sort(function(e,i){var s=r(e,i,t);if(0==s)for(var a=0,o=n;a=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},u=function(){function e(e,t){this.doc=e,this.eventManager=t,this.hotkeys=new Map,this.defaults={element:this.doc}}return e.prototype.add=function(e){var t=this,r=o({},this.defaults,e),n="keydown."+r.keys;return r.description&&this.hotkeys.set(r.keys,r.description),new s.Observable(function(e){var i=function(t){t.preventDefault(),e.next(t)},s=t.eventManager.addEventListener(r.element,n,i);return function(){s(),t.hotkeys.delete(r.keys)}})},e}();u=c([r.i(n.Injectable)(),d(0,r.i(n.Inject)(a.DOCUMENT)),l("design:paramtypes",[Object,"function"==typeof(p=void 0!==i.EventManager&&i.EventManager)&&p||Object])],u);var p},rHbN:function(e,t){e.exports='\r\n \r\n \r\n'},rZY4:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"tr th.orderBy{cursor:pointer}a.w3-button.disabled{color:#a9a9a9}a.w3-button.disabled:hover{color:#a9a9a9!important;background-color:transparent!important;opacity:1!important;cursor:default}",""]),e.exports=e.exports.toString()},uslO:function(e,t,r){function n(e){return r(i(e))}function i(e){var t=s[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}var s={"./af":"3CJN","./af.js":"3CJN","./ar":"3MVc","./ar-dz":"tkWw","./ar-dz.js":"tkWw","./ar-kw":"j8cJ","./ar-kw.js":"j8cJ","./ar-ly":"wPpW","./ar-ly.js":"wPpW","./ar-ma":"dURR","./ar-ma.js":"dURR","./ar-sa":"7OnE","./ar-sa.js":"7OnE","./ar-tn":"BEem","./ar-tn.js":"BEem","./ar.js":"3MVc","./az":"eHwN","./az.js":"eHwN","./be":"3hfc","./be.js":"3hfc","./bg":"lOED","./bg.js":"lOED","./bm":"hng5","./bm.js":"hng5","./bn":"aM0x","./bn.js":"aM0x","./bo":"w2Hs","./bo.js":"w2Hs","./br":"OSsP","./br.js":"OSsP","./bs":"aqvp","./bs.js":"aqvp","./ca":"wIgY","./ca.js":"wIgY","./cs":"ssxj","./cs.js":"ssxj","./cv":"N3vo","./cv.js":"N3vo","./cy":"ZFGz","./cy.js":"ZFGz","./da":"YBA/","./da.js":"YBA/","./de":"DOkx","./de-at":"8v14","./de-at.js":"8v14","./de-ch":"Frex","./de-ch.js":"Frex","./de.js":"DOkx","./dv":"rIuo","./dv.js":"rIuo","./el":"CFqe","./el.js":"CFqe","./en-SG":"oYA3","./en-SG.js":"oYA3","./en-au":"Sjoy","./en-au.js":"Sjoy","./en-ca":"Tqun","./en-ca.js":"Tqun","./en-gb":"hPuz","./en-gb.js":"hPuz","./en-ie":"ALEw","./en-ie.js":"ALEw","./en-il":"QZk1","./en-il.js":"QZk1","./en-nz":"dyB6","./en-nz.js":"dyB6","./eo":"Nd3h","./eo.js":"Nd3h","./es":"LT9G","./es-do":"7MHZ","./es-do.js":"7MHZ","./es-us":"INcR","./es-us.js":"INcR","./es.js":"LT9G","./et":"XlWM","./et.js":"XlWM","./eu":"sqLM","./eu.js":"sqLM","./fa":"2pmY","./fa.js":"2pmY","./fi":"nS2h","./fi.js":"nS2h","./fo":"OVPi","./fo.js":"OVPi","./fr":"tzHd","./fr-ca":"bXQP","./fr-ca.js":"bXQP","./fr-ch":"VK9h","./fr-ch.js":"VK9h","./fr.js":"tzHd","./fy":"g7KF","./fy.js":"g7KF","./ga":"U5Iz","./ga.js":"U5Iz","./gd":"nLOz","./gd.js":"nLOz","./gl":"FuaP","./gl.js":"FuaP","./gom-latn":"+27R","./gom-latn.js":"+27R","./gu":"rtsW","./gu.js":"rtsW","./he":"Nzt2","./he.js":"Nzt2","./hi":"ETHv","./hi.js":"ETHv","./hr":"V4qH","./hr.js":"V4qH","./hu":"xne+","./hu.js":"xne+","./hy-am":"GrS7","./hy-am.js":"GrS7","./id":"yRTJ","./id.js":"yRTJ","./is":"upln","./is.js":"upln","./it":"FKXc","./it-ch":"/E8D","./it-ch.js":"/E8D","./it.js":"FKXc","./ja":"ORgI","./ja.js":"ORgI","./jv":"JwiF","./jv.js":"JwiF","./ka":"RnJI","./ka.js":"RnJI","./kk":"j+vx","./kk.js":"j+vx","./km":"5j66","./km.js":"5j66","./kn":"gEQe","./kn.js":"gEQe","./ko":"eBB/","./ko.js":"eBB/","./ku":"kI9l","./ku.js":"kI9l","./ky":"6cf8","./ky.js":"6cf8","./lb":"z3hR","./lb.js":"z3hR","./lo":"nE8X","./lo.js":"nE8X","./lt":"/6P1","./lt.js":"/6P1","./lv":"jxEH","./lv.js":"jxEH","./me":"svD2","./me.js":"svD2","./mi":"gEU3","./mi.js":"gEU3","./mk":"Ab7C","./mk.js":"Ab7C","./ml":"oo1B","./ml.js":"oo1B","./mn":"CqHt","./mn.js":"CqHt","./mr":"5vPg","./mr.js":"5vPg","./ms":"ooba","./ms-my":"G++c","./ms-my.js":"G++c","./ms.js":"ooba","./mt":"oCzW","./mt.js":"oCzW","./my":"F+2e","./my.js":"F+2e","./nb":"FlzV","./nb.js":"FlzV","./ne":"/mhn","./ne.js":"/mhn","./nl":"3K28","./nl-be":"Bp2f","./nl-be.js":"Bp2f","./nl.js":"3K28","./nn":"C7av","./nn.js":"C7av","./pa-in":"pfs9","./pa-in.js":"pfs9","./pl":"7LV+","./pl.js":"7LV+","./pt":"ZoSI","./pt-br":"AoDM","./pt-br.js":"AoDM","./pt.js":"ZoSI","./ro":"wT5f","./ro.js":"wT5f","./ru":"ulq9","./ru.js":"ulq9","./sd":"fW1y","./sd.js":"fW1y","./se":"5Omq","./se.js":"5Omq","./si":"Lgqo","./si.js":"Lgqo","./sk":"OUMt","./sk.js":"OUMt","./sl":"2s1U","./sl.js":"2s1U","./sq":"V0td","./sq.js":"V0td","./sr":"f4W3","./sr-cyrl":"c1x4","./sr-cyrl.js":"c1x4","./sr.js":"f4W3","./ss":"7Q8x","./ss.js":"7Q8x","./sv":"Fpqq","./sv.js":"Fpqq","./sw":"DSXN","./sw.js":"DSXN","./ta":"+7/x","./ta.js":"+7/x","./te":"Nlnz","./te.js":"Nlnz","./tet":"gUgh","./tet.js":"gUgh","./tg":"5SNd","./tg.js":"5SNd","./th":"XzD+","./th.js":"XzD+","./tl-ph":"3LKG","./tl-ph.js":"3LKG","./tlh":"m7yE","./tlh.js":"m7yE","./tr":"k+5o","./tr.js":"k+5o","./tzl":"iNtv","./tzl.js":"iNtv","./tzm":"FRPF","./tzm-latn":"krPU","./tzm-latn.js":"krPU","./tzm.js":"FRPF","./ug-cn":"To0v","./ug-cn.js":"To0v","./uk":"ntHu","./uk.js":"ntHu","./ur":"uSe8","./ur.js":"uSe8","./uz":"XU1s","./uz-latn":"/bsm","./uz-latn.js":"/bsm","./uz.js":"XU1s","./vi":"0X8Q","./vi.js":"0X8Q","./x-pseudo":"e/KL","./x-pseudo.js":"e/KL","./yo":"YXlc","./yo.js":"YXlc","./zh-cn":"Vz2w","./zh-cn.js":"Vz2w","./zh-hk":"ZUyn","./zh-hk.js":"ZUyn","./zh-tw":"BbgG","./zh-tw.js":"BbgG"};n.keys=function(){return Object.keys(s)},n.resolve=i,e.exports=n,n.id="uslO"},vMp4:function(e,t,r){"use strict";var n=r("3j3K"),i=r("3MNG"),s=(r.n(i),r("2Je8")),a=r("ATz5"),o=r("+rAa");r.d(t,"a",function(){return u});var c=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},u=function(){function e(e,t,r){this.doc=e,this.notificationsService=t,this.dataService=r,this._show=!1,this._hoverHide=!1,this._isInitialized=!1,this.customTheme=[],this.customThemeGroups=[{key:"dark",name:"Dark Theme",theme:[]},{key:"light",name:"Light Theme",theme:[]}],this.currentCustomThemeGroup=this.customThemeGroups[0]}return e.prototype.toHexColor=function(e){var t=this.doc.createElement("div");t.style.display="none",t.style.color=e;var r=window.getComputedStyle(this.doc.body.appendChild(t)).color.match(/\d+/g).map(function(e){return parseInt(e,10)});return this.doc.body.removeChild(t),r.length<3?(console.log("Could not convert color '"+e+"' to hex"),e):"#"+((1<<24)+(r[0]<<16)+(r[1]<<8)+r[2]).toString(16).substr(1)},e.prototype.show=function(){this._isInitialized||this.init(),this._show=!0},e.prototype.init=function(){this._isInitialized=!0;for(var e=[],t=0,r=this.customThemeGroups;t\r\n
\r\n

Loading...

\r\n
\r\n\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given server key.

\r\n
\r\n
\r\n
\r\n

Players

\r\n \r\n \r\n \r\n \r\n Character Name\r\n \r\n \r\n {{player.CharacterName}}{{player.CharacterName}}\r\n \r\n \r\n \r\n \r\n Tribe Name\r\n \r\n \r\n {{player.TribeName}}\r\n \r\n \r\n \r\n \r\n Last Active\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n

Tribes

\r\n \r\n \r\n \r\n \r\n Tribe Name\r\n \r\n \r\n {{tribe.Name}}\r\n \r\n \r\n \r\n \r\n Members\r\n \r\n \r\n {{getTribeMember(member)?.CharacterName || member}}{{getTribeMember(member)?.CharacterName || member}}, \r\n \r\n \r\n \r\n \r\n Last Active\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n

Wild Statistics {{(wild.Statistics.Species?.length || 0) | number}}

\r\n \r\n \r\n \r\n \r\n Species\r\n \r\n \r\n {{species.Name}}\r\n \r\n \r\n \r\n \r\n Class Name\r\n \r\n \r\n {{species.ClassName}}\r\n \r\n \r\n \r\n \r\n Aliases\r\n \r\n \r\n {{species.Aliases.length > 0 ? species.Aliases.join(\', \') : \'\'}}\r\n \r\n \r\n \r\n \r\n Count\r\n \r\n \r\n {{species.Count | number}}\r\n \r\n \r\n \r\n \r\n Fraction\r\n \r\n \r\n {{species.Fraction | percent:\'1.0-4\'}}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n

Wild Creatures {{(filteredCreatures?.length || 0) | number}} / {{(wild?.Statistics?.CreatureCount || 0) | number}}

\r\n
\r\n
\r\n
There are no creatures...
\r\n \r\n \r\n \x3c!--
\r\n close\r\n \r\n
--\x3e\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
GenderBase LevelTameableXYZLatLngHPSTOXFOWEMESPID1ID2
No matching creatures...
{{creature.Gender}}{{creature.BaseLevel}}{{(wild.Species[selectedSpecies].IsTameable && creature.IsTameable == true ? "Yes" : "No")}}{{creature.X}}{{creature.Y}}{{creature.Z}}{{creature.Latitude | number:\'1.1-1\'}}{{creature.Longitude | number:\'1.1-1\'}}{{creature.BaseStats?.Health}}{{creature.BaseStats?.Stamina}}{{creature.BaseStats?.Oxygen}}{{creature.BaseStats?.Food}}{{creature.BaseStats?.Weight}}{{creature.BaseStats?.Melee}}{{creature.BaseStats?.MovementSpeed}}content_copy{{creature.Id1}}{{creature.Id2}}
\r\n
\r\n
\r\n
\r\n'}},[0]); \ No newline at end of file diff --git a/ArkBot/WebApp/dist/main.5c285ad7e37cab7baf69.bundle.js b/ArkBot/WebApp/dist/main.5c285ad7e37cab7baf69.bundle.js deleted file mode 100644 index 50b363c..0000000 --- a/ArkBot/WebApp/dist/main.5c285ad7e37cab7baf69.bundle.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([1,5],{"+Lwu":function(e,t,r){"use strict";var n=r("3j3K"),i=r("kZql");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this.zone=e,this.serverUpdated$=new n.EventEmitter}return e.prototype.connect=function(){var e=this;this.connection=$.hubConnection(this.getSignalRBaseUrl()),this.proxy=this.connection.createHubProxy("ServerUpdateHub"),this.proxy.on("serverUpdateNotification",function(t){e.zone.run(function(){e.serverUpdated$.emit(t)})}),this.connection.start().done(function(){return console.log("Now connected, connection ID="+e.connection.id)}).fail(function(){return console.log("Could not connect")})},e.prototype.getSignalRBaseUrl=function(){return i.a.signalrBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e}();o=s([r.i(n.Injectable)(),a("design:paramtypes",["function"==typeof(c=void 0!==n.NgZone&&n.NgZone)&&c||Object])],o);var c},"+qYp":function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e}();l=o([r.i(n.Component)({selector:"app-access-denied",template:r("1DTO"),styles:[r("aijx")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},"+rAa":function(e,t,r){"use strict";function n(e,t,r,n){var i=a(e,t,r);if(void 0!=i)return i;var s=Math.pow(10,n),o=void 0!=n?Math.round(e*s)/s:e,c=void 0!=n?Math.round(t*s)/s:t;return o>c?r?1:-1:ot?r?1:-1:e=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t){this.dataService=e,this.router=t}return e.prototype.canActivate=function(e,t){var r=this;return s.Observable.fromPromise(this.dataService.getServers().then(function(t){if(t){var n=e.params.playerid;return r.dataService.hasFeatureAccess("pages",e.data.name,n)?"access":"noaccess"}return"connectionerror"}).catch(function(){return"connectionerror"})).map(function(e){return"noaccess"==e?r.router.navigateByUrl("/accessdenied",{skipLocationChange:!0}):"connectionerror"==e&&r.router.navigateByUrl("/connectionerror",{skipLocationChange:!0}),"access"==e})},e}();l=o([r.i(n.Injectable)(),c("design:paramtypes",["function"==typeof(d=void 0!==a.a&&a.a)&&d||Object,"function"==typeof(u=void 0!==i.b&&i.b)&&u||Object])],l);var d,u},"/Wuq":function(e,t){e.exports='
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given server key.

\r\n
\r\n
\r\n
\r\n

Players

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam IdCharacter IdSteam NameCharacter NameTribe NameTribe IdStructuresCreaturesLast Active
{{player.FakeSteamId || player.SteamId}}{{player.Id}}{{player.SteamName}}{{player.CharacterName}}{{player.CharacterName}}{{player.TribeName}}{{player.TribeId}}{{player.StructureCount}}{{player.CreatureCount}}{{dataService.toRelativeDate(player.LastActiveTime)}}
\r\n
\r\n
\r\n
\r\n

Tribes

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
IdNameMembersStructuresCreaturesLast Active
{{tribe.Id}}{{tribe.Name}}{{getTribeMember(member)?.CharacterName || member}}{{getTribeMember(member)?.CharacterName || member}}, {{tribe.StructureCount}}{{tribe.CreatureCount}}{{dataService.toRelativeDate(tribe.LastActiveTime)}}
\r\n
\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n\r\n
\r\n
\r\n

Egg Summary

\r\n
Save World
\r\n
\r\n\r\n
\r\n
\r\n

Summary

\r\n
\r\n
\r\n

Total Eggs: {{totalEggCount}}

\r\n

Fertilized Eggs: {{fertilizedEggsCount}}

\r\n

Spoiled Eggs: {{spoiledEggsCount}}

\r\n
\r\n
\r\n

There are no fertilized eggs on the map

\r\n
\r\n
\r\n\r\n
\r\n

Fertilized Eggs

\r\n
Destroy All Eggs
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CreatureEgg LevelSpoil Time
{{egg.Dino}}{{egg.EggLevel}}{{egg.SpoilTime}}
\r\n
\r\n\r\n
\r\n

Spoiled Eggs

\r\n
Destroy Spoiled Eggs
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CreatureEgg LevelDropped By
{{egg.Dino}}{{egg.EggLevel}}{{egg.DroppedBy}}{{egg.DroppedBy}}
\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{modalInfo.Header}}

\r\n
\r\n
\r\n
\r\n {{modalInfo.Message}}\r\n
\r\n
\r\n
\r\n
\r\n
'},0:function(e,t,r){e.exports=r("x35b")},"08Wm":function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.dataService.hasFeatureAccess("admin-server","structures")?this.menu.activate("structures"):this.dataService.hasFeatureAccess("admin-server","players")?this.menu.activate("players"):this.dataService.hasFeatureAccess("admin-server","tribes")?this.menu.activate("tribes"):this.dataService.hasFeatureAccess("admin-server","eggs")&&this.menu.activate("eggs")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-admin-server-menu",host:{"[class]":"menu.className"},template:r("bl1B"),styles:[r("9kk6")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},"0Hpj":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Fzro"),s=r("eErF"),a=(r.n(s),r("lHWG"));r.d(t,"a",function(){return d});var o=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.getServers=function(){return this.http.get("assets/demo/servers.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getServer=function(e){return this.http.get("assets/demo/server.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getWildCreatures=function(e){return this.http.get("assets/demo/wildcreatures.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getStructures=function(e){return this.http.get("assets/demo/structures.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getPlayer=function(e){return this.http.get("assets/demo/player.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.getAdminServer=function(e){return this.http.get("assets/demo/adminserver.json").toPromise().then(function(e){return e.json()}).catch(this.handleError)},t.prototype.adminDestroyAllStructuresForTeamId=function(e,t){return Promise.resolve(null)},t.prototype.adminDestroyStructuresForTeamIdAtPosition=function(e,t,r,n,i,s){return Promise.resolve(null)},t.prototype.adminDestroyDinosForTeamId=function(e,t){return Promise.resolve(null)},t.prototype.adminSaveWorld=function(e){return Promise.resolve(null)},t}(a.a);d=c([r.i(n.Injectable)(),l("design:paramtypes",["function"==typeof(u=void 0!==i.b&&i.b)&&u||Object])],d);var u},"0jRk":function(e,t,r){"use strict";var n=r("3j3K"),i=r("jWPz"),s=r("joX7"),a=r("Gvdl"),o=(r.n(a),r("XlOA")),c=(r.n(o),r("1APj")),l=(r.n(c),r("6Yye")),d=(r.n(l),r("uCY4")),u=(r.n(d),r("wUn1")),p=(r.n(u),r("/lY3"));r.n(p);r.d(t,"a",function(){return f});var h=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},m=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(){function e(e){this.ref=e,this._modeEnabledSubscriptions=[],this._rows$=a.Observable.of([]),this._orderByColumnKey=new a.BehaviorSubject(void 0),this._filter=new a.BehaviorSubject(void 0),this._updateTap=new a.BehaviorSubject(void 0),this._sort=new a.Subject,this._fromRow=0,this._numRows=25,this._totalRows=0,this._enabledColumnsForMode={},this._viewOptions=[{value:25,text:"25"},{value:50,text:"50"},{value:100,text:"100"},{value:250,text:"250"},{value:500,text:"500"},{value:1e3,text:"1000"},{value:1e6,text:"All"}],this._forceUpdate=!0,this._prevColumnKey=void 0,this._prevFilter=void 0,this._prevSortedRows=void 0,this._prevFilteredRows=void 0,this._prevSortedRowsKey=void 0,this._prevFilteredRowsKey=void 0}return e.prototype.ngOnInit=function(){var e=this;this._rows$=a.Observable.combineLatest(this._orderByColumnKey,this._filter.debounceTime(250),this._updateTap,function(e,t,r){return{key:e,filter:t}}).skip(1).startWith({key:this._orderByColumnKey.getValue(),filter:this._filter.getValue()}).switchMap(function(t){return a.Observable.of(e.filterAndSortData(t.key,t.filter))}).catch(function(t){return console.log("Error in component ... "+t),a.Observable.of(e._rows)})},Object.defineProperty(e.prototype,"modeTemplates",{set:function(e){if(e){var t=e.toArray();if(t.length){for(var r=[],n=0,i=t;n0&&(this._currentMode=this._modes[0].key)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnTemplates",{set:function(e){if(e){var t=e.toArray();if(t.length){for(var r=[],n=0,i=t;n=this._totalRows&&(t=this._totalRows-1),this._fromRow=parseInt(""+t),this.ref.markForCheck()},e.prototype.setViewOffsetRelative=function(e){this.setViewOffset(this._fromRow+e)},e.prototype.setFirstPage=function(){this.isFirstPage()||this.setViewOffset(0)},e.prototype.setPrevPage=function(){this.isFirstPage()||this.setViewOffsetRelative(-this._numRows)},e.prototype.setNextPage=function(){this.isLastPage()||this.setViewOffsetRelative(this._numRows)},e.prototype.setLastPage=function(){this.isLastPage()||this.setViewOffset(this._totalRows-this._numRows)},e.prototype.isFirstPage=function(){return this._fromRow<=0},e.prototype.isLastPage=function(){return this._fromRow>=this._totalRows-this._numRows},e.prototype.setViewLimit=function(e){this._numRows=parseInt(""+(e>0?e:1e6)),this.ref.markForCheck()},e.prototype.getLastRowOffset=function(){var e=this._fromRow+this._numRows;return e>this._totalRows?this._totalRows:e},e}();h([r.i(n.ContentChildren)(s.a),m("design:type","function"==typeof(v=void 0!==n.QueryList&&n.QueryList)&&v||Object),m("design:paramtypes",["function"==typeof(g=void 0!==n.QueryList&&n.QueryList)&&g||Object])],f.prototype,"modeTemplates",null),h([r.i(n.ContentChildren)(i.a),m("design:type","function"==typeof(y=void 0!==n.QueryList&&n.QueryList)&&y||Object),m("design:paramtypes",["function"==typeof(b=void 0!==n.QueryList&&n.QueryList)&&b||Object])],f.prototype,"columnTemplates",null),h([r.i(n.Input)(),m("design:type",Object),m("design:paramtypes",[Object])],f.prototype,"rows",null),h([r.i(n.Input)(),m("design:type",String),m("design:paramtypes",[String])],f.prototype,"trackByProp",null),h([r.i(n.Input)(),m("design:type",String),m("design:paramtypes",[String])],f.prototype,"filter",null),h([r.i(n.Input)(),m("design:type",Object)],f.prototype,"filterFunction",void 0),h([r.i(n.Input)(),m("design:type",Object)],f.prototype,"sortFunctions",void 0),h([r.i(n.Input)(),m("design:type",String)],f.prototype,"orderByColumn",void 0),f=h([r.i(n.Component)({selector:"ark-data-table",template:r("jkBB"),styles:[r("rZY4")],changeDetection:n.ChangeDetectionStrategy.OnPush,encapsulation:n.ViewEncapsulation.None}),m("design:paramtypes",["function"==typeof(w=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&w||Object])],f);var v,g,y,b,w},"0onv":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("PJh5"));r.n(s);r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.ref=e,this._time=new i.BehaviorSubject(void 0)}return Object.defineProperty(e.prototype,"time",{get:function(){return this._time.getValue()},set:function(e){this._time.next(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._timeSubscription=this._time.subscribe(function(t){e.update()}),this._counter=i.Observable.interval(1e3).map(function(e){return e}),this._counterSubscription=this._counter.subscribe(function(t){return e.update()})},e.prototype.ngOnDestroy=function(){this._timeSubscription.unsubscribe(),this._counterSubscription.unsubscribe()},e.prototype.update=function(){var e=this.toRelativeDate(this.time);e!=this._str&&(this._str=e,this.ref.markForCheck())},e.prototype.toRelativeDate=function(e){return s(new Date(e)).fromNow()},e}();a([r.i(n.Input)(),o("design:type",Object),o("design:paramtypes",[Object])],c.prototype,"time",null),c=a([r.i(n.Component)({selector:"relative-time",template:"{{_str}}",styles:[r("HOjl")],changeDetection:n.ChangeDetectionStrategy.OnPush}),o("design:paramtypes",["function"==typeof(l=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&l||Object])],c);var l},"1DTO":function(e,t){e.exports='
\n
\n

Access Denied

\n

You do not have access to view this page...

\n
\n
'},"38q8":function(e,t,r){"use strict";var n=r("3j3K"),i=r("Qbdm");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this._sanitizer=e}return e.prototype.transform=function(e){return this._sanitizer.bypassSecurityTrustStyle(e)},e}();o=s([r.i(n.Pipe)({name:"sanitizeStyle"}),a("design:paramtypes",["function"==typeof(c=void 0!==i.DomSanitizer&&i.DomSanitizer)&&c||Object])],o);var c},5305:function(e,t,r){"use strict";var n=r("3j3K"),i=r("kZql"),s=r("vwbq");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(){this.width=1024,this.height=1024,this.zoom=s.a().scaleExtent([1,10])}return e.prototype.imageLoaded=function(e){var t=this;this.img=e,this.width=e.naturalWidth,this.height=e.naturalHeight,window.setTimeout(function(){t.resize(),t.redraw()},100)},e.prototype.resize=function(){},e.prototype.zoomed=function(){var e=s.e(this.canvasRef.nativeElement),t=this.canvasRef.nativeElement.getContext("2d");t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,this.width,this.height),t.translate(e.x,e.y),t.scale(e.k,e.k),this.redraw()},e.prototype.redraw=function(){var e=this.canvasRef.nativeElement.getContext("2d");if(e.drawImage(this.img,0,0),null!=this.points)for(var t=0,r=this.points;t/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e}();a([r.i(n.Input)(),o("design:type",String)],c.prototype,"mapName",void 0),a([r.i(n.Input)(),o("design:type",Array)],c.prototype,"points",void 0),a([r.i(n.ViewChild)("myCanvas"),o("design:type","function"==typeof(l=void 0!==n.ElementRef&&n.ElementRef)&&l||Object)],c.prototype,"canvasRef",void 0),c=a([r.i(n.Component)({selector:"arkmap",template:''}),o("design:paramtypes",[])],c);var l},"5xMp":function(e,t){e.exports='\r\n\r\n
\r\n
\r\n \r\n
Logged in as {{dataService.Servers.User.Name}} | Logout | Login | Theme: Light | Dark
\r\n
\r\n \r\n
\r\n\r\n\r\n'},"6fYc":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".serverdetails th{white-space:nowrap}.serverdetails td{width:99%}",""]),e.exports=e.exports.toString()},"78nn":function(e,t){e.exports="\r\n

Player

\r\n
\r\n
Profile
\r\n
Creatures
\r\n
Creatures (Cloud)
\r\n
Breeding
\r\n
Crops
\r\n
Electrical Generators
\r\n
Kibbles and Eggs
\r\n
Tribe Log
\r\n
\r\n
"},"7T2B":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){this.callback=new n.EventEmitter,this.confirming=!1}return e.prototype.ngOnInit=function(){},e.prototype.onClick=function(e){var t=this;this.confirming?e.detail>=3&&(window.clearTimeout(this.resetTimeout),this.confirming=!1,this.callback.emit()):(this.confirming=!0,this.resetTimeout=window.setTimeout(function(){t.confirming=!1},5e3))},e}();i([r.i(n.Output)(),s("design:type","function"==typeof(o=void 0!==n.EventEmitter&&n.EventEmitter)&&o||Object)],a.prototype,"callback",void 0),i([r.i(n.Input)(),s("design:type",Number)],a.prototype,"width",void 0),i([r.i(n.ViewChild)("confirmButton"),s("design:type","function"==typeof(c=void 0!==n.ElementRef&&n.ElementRef)&&c||Object)],a.prototype,"confirmButton",void 0),a=i([r.i(n.Component)({selector:"confirm-button",template:r("QaTd"),styles:[r("8Zim")]}),s("design:paramtypes",[])],a);var o,c},"7arz":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"7fuz":function(e,t){e.exports='
\n \n
'},"7uO+":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"7xIs":function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.dataService.hasFeatureAccess("server","players")?this.menu.activate("players"):this.dataService.hasFeatureAccess("server","tribes")?this.menu.activate("tribes"):this.dataService.hasFeatureAccess("server","wildcreatures-statistics")?this.menu.activate("wildcreatures-statistics"):this.dataService.hasFeatureAccess("server","wildcreatures")&&this.menu.activate("wildcreatures")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-server-menu",host:{"[class]":"menu.className"},template:r("MjD/"),styles:[r("oLRk")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},"8Zim":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"8kYA":function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this.dataService=e,this.menuOption=void 0,this.menuVisible=!1,this.className="menucontainer"}return e.prototype.ngOnInit=function(){var e=this;this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe()},e.prototype.activate=function(e){this.dataService.SetMenuOption(e)},e.prototype.active=function(e){return this.menuOption==e},e.prototype.toggleMenu=function(){this.menuVisible=!this.menuVisible},e}();o=s([r.i(n.Component)({selector:"app-menu",template:r("m8aW"),styles:[r("ne8d")]}),a("design:paramtypes",["function"==typeof(c=void 0!==i.a&&i.a)&&c||Object])],o);var c},"8zLQ":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(e){this._elementRef=e,this.clickOutside=new n.EventEmitter}return e.prototype.onClick=function(e,t){if(t){this._elementRef.nativeElement.contains(t)||this.clickOutside.emit(e)}},e}();i([r.i(n.Output)(),s("design:type",Object)],a.prototype,"clickOutside",void 0),i([r.i(n.HostListener)("document:click",["$event","$event.target"]),s("design:type",Function),s("design:paramtypes",[Object,Object]),s("design:returntype",void 0)],a.prototype,"onClick",null),a=i([r.i(n.Directive)({selector:"[clickOutside]"}),s("design:paramtypes",["function"==typeof(o=void 0!==n.ElementRef&&n.ElementRef)&&o||Object])],a);var o},"9kk6":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"A+2f":function(e,t){e.exports=''},ATz5:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("lHWG")),a=r("+Lwu"),o=r("kZql"),c=r("PJh5");r.n(c);r.d(t,"a",function(){return u});var l=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},d=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(){function e(e,t){var r=this;this.httpService=e,this.messageService=t,this._servers=new i.BehaviorSubject(void 0),this.menuOption=new i.BehaviorSubject(void 0),this.theme=new i.BehaviorSubject(void 0),this.ServersUpdated$=new n.EventEmitter,t.serverUpdated$.subscribe(function(e){return r.updateServer(e)})}return Object.defineProperty(e.prototype,"Theme",{get:function(){return this.theme.asObservable()},enumerable:!0,configurable:!0}),e.prototype.SetTheme=function(e){this.theme.next(e)},Object.defineProperty(e.prototype,"MenuOption",{get:function(){return this.menuOption.asObservable()},enumerable:!0,configurable:!0}),e.prototype.SetMenuOption=function(e){this.menuOption.next(e)},e.prototype.getServers=function(){var e=this;return this.httpService.getServers().then(function(t){e.Servers=t;var r=t?t.User:void 0;return e.UserSteamId=r&&r.SteamId?r.SteamId:void 0,e._servers.next(t),e.ServersUpdated$.emit(t),!0}).catch(function(t){return e.Servers=null,e.UserSteamId=void 0,e._servers.next(null),e.ServersUpdated$.emit(null),!1})},e.prototype.updateServer=function(e){this.getServers()},e.prototype.hasFeatureAccess=function(e,t,r){var n=this.Servers?this.Servers.AccessControl:void 0;if(!n)return!1;var i=n[e];if(!i)return!1;var s=i[t];if(!s)return!1;var a=this.Servers?this.Servers.User:void 0,o=a&&a.Roles?a.Roles.slice(0):[];a&&a.SteamId&&a.SteamId==r&&o.push("self");for(var c=function(e){if(s.find(function(t){return e.toLowerCase()===t.toLowerCase()}))return{value:!0}},l=0,d=o;l=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e,t){this.dataService=e,this.router=t}return e.prototype.resolve=function(e,t){var r=this;return this.dataService.getServers().then(function(e){return r.dataService}).catch(function(e){return r.dataService})},e}();c=a([r.i(n.Injectable)(),o("design:paramtypes",["function"==typeof(l=void 0!==s.a&&s.a)&&l||Object,"function"==typeof(d=void 0!==i.b&&i.b)&&d||Object])],c);var l,d},CzL3:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("kZql")),a=r("PJh5");r.n(a);r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(){this._ready=!1,this._wasExpired=!1,this._notificationSent=!1,this._time=new i.BehaviorSubject(void 0),this._notification=new i.BehaviorSubject(void 0),this._loadedAt=a()}return Object.defineProperty(e.prototype,"time",{get:function(){return this._time.getValue()},set:function(e){this._time.next(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"notification",{get:function(){return this._notification.getValue()},set:function(e){this._notification.next(e)},enumerable:!0,configurable:!0}),e.prototype.updateDiff=function(e){e&&(s.a.demo?this._wasExpired=a(new Date(e)).diff(a(new Date(s.a.demoDate)))-a().diff(this._loadedAt)<=0:this._wasExpired=a(new Date(e)).diff(a())<=0,this._notificationSent=!1,this._str=void 0,this._ready=this._wasExpired,this._wasExpired||1!=this.state._completed||(this.state._completed=!1)),s.a.demo?this._diff=e||this.time?a.duration(a(new Date(e||this.time)).diff(a(new Date(s.a.demoDate)))-a().diff(this._loadedAt)):void 0:this._diff=e||this.time?a.duration(a(new Date(e||this.time)).diff(a())):void 0},e.prototype.update=function(){if(!this._diff)return"";if(this._diff.asMilliseconds()<=0){if(!this._notificationSent){if(this.notification&&this.state.imprintNotifications&&!this._wasExpired){new Audio("assets/Alarm01.mp3").play()}this._ready=!0}return this._notificationSent=!0,void(this._str=void 0)}var e=this._diff.seconds(),t=this._diff.minutes(),r=this._diff.hours(),n=Math.floor(this._diff.asDays()),i=[];n>0&&i.push(n+"d"),(n>0||r>0)&&i.push(r+"h"),(n>0||r>0||t>0)&&i.push(t+"m"),i.push(e+"s"),this._str=i.join(" "),this._ready=!1,this.state._completed=!1},e.prototype.ngOnInit=function(){var e=this;this._timeSubscription=this._time.subscribe(function(t){e.updateDiff(t),e.update()}),this._notificationSubscription=this._notification.subscribe(function(e){}),this._counter=i.Observable.interval(1e3).map(function(t){return e.updateDiff(void 0),t}),this._counterSubscription=this._counter.subscribe(function(t){return e.update()})},e.prototype.ngOnDestroy=function(){this._timeSubscription.unsubscribe(),this._notificationSubscription.unsubscribe(),this._counterSubscription.unsubscribe()},e}();o([r.i(n.Input)(),c("design:type",Object)],l.prototype,"state",void 0),o([r.i(n.Input)(),c("design:type",Object),c("design:paramtypes",[Object])],l.prototype,"time",null),o([r.i(n.Input)(),c("design:type",Object),c("design:paramtypes",[Object])],l.prototype,"notification",null),l=o([r.i(n.Component)({selector:"timer",template:'{{_str}}',styles:[r("cPj0")]}),c("design:paramtypes",[])],l)},EEDX:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},EM12:function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n={configJs:'var config = {"webapi":{"port":60001},"webapp":{"defaultTheme":"Dark"}};'}},Fnlp:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0,this.demoMode=!1}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.demoMode="true"==localStorage.getItem("demoMode")},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.toggleDemoMode=function(){var e="true"!=localStorage.getItem("demoMode");this.demoMode=e,localStorage.setItem("demoMode",e+"")},e}();l=o([r.i(n.Component)({selector:"app-developer",template:r("7fuz"),styles:[r("EEDX")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},FxpQ:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t})},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e}();l=o([r.i(n.Component)({selector:"app-connection-error",template:r("lRu1"),styles:[r("mf93")]}),c("design:paramtypes",["function"==typeof(d=void 0!==i.a&&i.a)&&d||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(p=void 0!==s.NotificationsService&&s.NotificationsService)&&p||Object])],l);var d,u,p},HOjl:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},Iksp:function(e,t,r){"use strict";var n=r("Qbdm"),i=r("KN8t"),s=r("3j3K"),a=r("NVOs"),o=r("5oXY"),c=r("Fzro"),l=r("3MNG"),d=(r.n(l),r("hHgl")),u=r("YWx4"),p=r("KZxv"),h=r("RiXa"),m=r("qn86"),f=r("JLFQ"),v=r("e/mT"),g=r("5305"),y=r("lHWG"),b=r("0Hpj"),w=r("+Lwu"),S=r("ATz5"),C=r("AcJ7"),O=r("r5VE"),k=r("+w0e"),j=r("38q8"),_=r("ilmp"),x=r("8zLQ"),I=r("JKTH"),A=r("8kYA"),F=r("7xIs"),M=r("08Wm"),R=r("lCrv"),T=r("CzL3"),L=r("0onv"),P=r("7T2B"),N=r("+qYp"),D=r("FxpQ"),B=r("Fnlp"),E=r("vMp4"),K=r("J8nT"),U=r("kZql");r.d(t,"a",function(){return G});var z=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},W=[{path:"player/:playerid",canActivate:[k.a],data:{name:"player"},children:[{path:"",component:p.a},{path:"",component:h.a,outlet:"menu"}]},{path:"server/:id",canActivate:[k.a],data:{name:"server"},children:[{path:"",component:m.a},{path:"",component:F.a,outlet:"menu"}]},{path:"admin/:id",canActivate:[k.a],data:{name:"admin-server"},children:[{path:"",component:v.a},{path:"",component:M.a,outlet:"menu"}]},{path:"servers",canActivate:[k.a],data:{name:"home"},children:[{path:"",component:f.a},{path:"",component:I.a,outlet:"menu"}]},{path:"developer",component:B.a},{path:"accessdenied",component:N.a},{path:"connectionerror",component:D.a},{path:"",redirectTo:"/servers",pathMatch:"full"}],G=function(){function e(){}return e}();G=z([r.i(s.NgModule)({declarations:[u.a,f.a,g.a,j.a,_.a,x.a,p.a,h.a,m.a,v.a,I.a,A.a,F.a,M.a,R.a,T.a,L.a,P.a,N.a,D.a,B.a,E.a],imports:[o.a.forRoot(W),d.a.forRoot(),n.BrowserModule,a.a,c.a,i.a,l.SimpleNotificationsModule.forRoot(),K.a],providers:[[{provide:y.a,useClass:U.a.demo?b.a:y.a}],w.a,S.a,C.a,O.a,k.a,{provide:s.LOCALE_ID,useValue:"en-US"}],bootstrap:[u.a]})],G)},J8nT:function(e,t,r){"use strict";var n=r("3j3K"),i=r("2Je8"),s=r("NVOs"),a=r("0jRk"),o=r("jWPz"),c=r("joX7");r.d(t,"a",function(){return d});var l=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},d=function(){function e(){}return e}();d=l([r.i(n.NgModule)({imports:[i.CommonModule,s.a],providers:[],declarations:[a.a,o.a,o.b,o.c,c.a],exports:[a.a,o.a,o.b,o.c,c.a]})],d)},JKTH:function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("ATz5");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.dataService=e}return e.prototype.ngOnInit=function(){this.menu.activate("overview")},e}();a([r.i(n.ViewChild)("menu"),o("design:type","function"==typeof(l=void 0!==i.a&&i.a)&&l||Object)],c.prototype,"menu",void 0),c=a([r.i(n.Component)({selector:"app-server-list-menu",host:{"[class]":"menu.className"},template:r("rHbN"),styles:[r("P+hD")]}),o("design:paramtypes",["function"==typeof(d=void 0!==s.a&&s.a)&&d||Object])],c);var l,d},JLFQ:function(e,t,r){"use strict";var n=r("3j3K"),i=r("ATz5"),s=r("3MNG"),a=(r.n(s),r("+Lwu"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.dataService=e,this.messageService=t,this.notificationsService=r,this.menuOption=void 0,this.serverCount=0,this.onlinePlayerCount=0}return e.prototype.ngOnInit=function(){var e=this;this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.showServerUpdateNotification(t)}),this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.serversUpdatedSubscription=this.dataService.ServersUpdated$.subscribe(function(t){e.updateData(t)}),this.serverUpdateInterval=window.setInterval(function(){e.dataService.updateServer(null)},6e4),this.updateData(this.dataService.Servers)},e.prototype.ngOnDestroy=function(){this.serverUpdatedSubscription.unsubscribe(),this.menuOptionSubscription.unsubscribe(),this.serversUpdatedSubscription.unsubscribe(),window.clearInterval(this.serverUpdateInterval)},e.prototype.updateData=function(e){var t=0,r=0;if(e&&e.Servers){t=e.Servers.length;for(var n=0,i=e.Servers;n=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,n,i,s,a,o){this.route=e,this.router=t,this.httpService=n,this.dataService=i,this.messageService=s,this.notificationsService=a,this.ref=o,this.menuOption=void 0,this.theme=void 0,this.imprintNotifications=!1,this.keysGetter=Object.keys,this.loaded=!1,this.showMap=!1,this.creaturesMode="status",this.creatureStates={},this.creaturesSortField="food",this.creaturesAltSortFields="name",this.creaturesSortFunctions={food:function(e,t,n){return r.i(l.d)(e.FoodStatus,t.FoodStatus,n,2)},name:function(e,t,n){return r.i(l.b)(e.Name,t.Name,n)},species:function(e,t,n){return r.i(l.b)(e.Species,t.Species,n)},gender:function(e,t,n){return r.i(l.b)(e.Gender,t.Gender,n)},base_level:function(e,t,n){return r.i(l.c)(e.BaseLevel,t.BaseLevel,!n)},level:function(e,t,n){return r.i(l.c)(e.Level==e.BaseLevel?null:e.Level,t.Level==t.BaseLevel?null:t.Level,!n)},imprint:function(e,t,n){return r.i(l.d)(e.Imprint,t.Imprint,!n,2)},latitude:function(e,t,n){return r.i(l.d)(e.Latitude,t.Latitude,n,1)},longitude:function(e,t,n){return r.i(l.d)(e.Longitude,t.Longitude,n,1)},owner:function(e,t,n){return r.i(l.b)(e.OwnerType,t.OwnerType,n)},stat_health:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Health:null,void 0!=t.BaseStats?t.BaseStats.Health:null,!n)},stat_stamina:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Stamina:null,void 0!=t.BaseStats?t.BaseStats.Stamina:null,!n)},stat_oxygen:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Oxygen:null,void 0!=t.BaseStats?t.BaseStats.Oxygen:null,!n)},stat_food:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Food:null,void 0!=t.BaseStats?t.BaseStats.Food:null,!n)},stat_weight:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Weight:null,void 0!=t.BaseStats?t.BaseStats.Weight:null,!n)},stat_melee:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.Melee:null,void 0!=t.BaseStats?t.BaseStats.Melee:null,!n)},stat_speed:function(e,t,n){return r.i(l.c)(void 0!=e.BaseStats?e.BaseStats.MovementSpeed:null,void 0!=t.BaseStats?t.BaseStats.MovementSpeed:null,!n)},id1:function(e,t,n){return r.i(l.c)(e.Id1,t.Id1,n)},id2:function(e,t,n){return r.i(l.c)(e.Id1,t.Id1,n)}},this.tribeLogFilterFunction=function(e,t){return null==t||null!=e.Message&&e.Message.toLowerCase().indexOf(t)>=0}}return e.prototype.getPlayer=function(){var e=this;this.httpService.getPlayer(this.steamId).then(function(t){var r=Object.keys(t.Servers);e.serverKey&&void 0!=r.find(function(t){return t==e.serverKey})||(e.serverKey=r.length>0?r[0]:null);var n=Object.keys(t.Clusters);e.clusterKey&&void 0!=n.find(function(t){return t==e.clusterKey})||(e.clusterKey=n.length>0?n[0]:null),e.player=t,e.filterAndSort(),e.sortCluster(),e.filterCluster(),e.loaded=!0,e.ref.detectChanges()}).catch(function(t){e.player=null,e.filteredCreatures=null,e.imprintCreatures=null,e.filteredClusterCreatures=null,e.loaded=!0})},e.prototype.ngOnInit=function(){var e=this;this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){return e.menuOption=t}),this.theme$=this.dataService.Theme,this.themeSubscription=this.theme$.subscribe(function(t){e.theme=t}),this.steamId=this.route.snapshot.params.playerid,this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){return e.updateServer(t)}),this.getPlayer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.themeSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.haveMatingCooldown=function(e){return null!=e.NextMating&&new Date(e.NextMating)>new Date},e.prototype.active=function(e){return this.serverKey==e},e.prototype.activate=function(e){this.serverKey=e,this.filterAndSort()},e.prototype.serverWidth=function(){return 100/Object.keys(this.player.Servers).length},e.prototype.activeCluster=function(e){return this.clusterKey==e},e.prototype.activateCluster=function(e){this.clusterKey=e,this.sortCluster(),this.filterCluster()},e.prototype.clusterWidth=function(){return 100/Object.keys(this.player.Clusters).length},e.prototype.sort=function(){var e=this,t="-"!=this.creaturesSortField[0],r=this.creaturesSortFunctions[this.creaturesSortField.replace(/^\-/,"")],n=this.creaturesAltSortFields.split(",").map(function(t){var r={};return r.asc="-"!=t[0],r.sortFunc=e.creaturesSortFunctions[t.replace(/^\-/,"")],r});this.filteredCreatures.sort(function(e,i){var s=r(e,i,t);if(0==s)for(var a=0,o=n;a=0||null!=t.Name&&t.Name.toLowerCase().indexOf(e)>=0})}var t=this.player.Servers[this.serverKey].Creatures.filter(function(e){return null!=e.BabyAge});t.sort(function(e,t){return new Date(e.BabyNextCuddle)new Date(t.BabyNextCuddle)?1:0}),this.imprintCreatures=t;for(var r=[],n=0,i=this.filteredCreatures;nt.Level?-1:e.Level=0||null!=t.Name&&t.Name.toLowerCase().indexOf(e)>=0})}},e.prototype.run=function(){if(null==this.steamId||""==this.steamId)return this.player=null,this.filteredCreatures=null,void(this.imprintCreatures=null);this.getPlayer()},e.prototype.openMap=function(e){this.showMap=!0,e.stopPropagation()},e.prototype.closeMap=function(e){this.showMap=!1},e.prototype.updateServer=function(e){this.getPlayer(),this.showServerUpdateNotification(e)},e.prototype.haveCluster=function(){return null!=this.player&&Object.keys(this.player.Clusters).length>0},e.prototype.sumKibbleAndEggs=function(){return void 0!=this.player.Servers[this.serverKey].KibblesAndEggs?this.player.Servers[this.serverKey].KibblesAndEggs.reduce(function(e,t){return e+t.KibbleCount+t.EggCount},0):0},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.getStateForCreature=function(e){if(e){var t=this.creatureStates[e.Id1+"_"+e.Id2];return t||(t={imprintNotifications:!0},this.creatureStates[e.Id1+"_"+e.Id2]=t),t}},e.prototype.toggleImprintNotificationForCreature=function(e){var t=this.getStateForCreature(e);t.imprintNotifications=!t.imprintNotifications},e.prototype.activeCreaturesMode=function(e){return e==this.creaturesMode},e.prototype.activateCreaturesMode=function(e){this.creaturesMode=e},e.prototype.setCreaturesSort=function(e){var t=this.creaturesSortField==e;this.creaturesSortField=t?"-"+e:e,this.creaturesAltSortFields="latitude"==e?t?"-longitude,name":"longitude,name":"longitude"==e?t?"-latitude,name":"latitude,name":"name",this.sort()},e.prototype.copyCreature=function(e){},e.prototype.getCurrentServer=function(){var e=this;if(this.dataService&&this.dataService.Servers&&this.dataService.Servers.Servers){return this.dataService.Servers.Servers.find(function(t){return t.Key==e.serverKey})}},e.prototype.numCreatureTabs=function(){var e=1;return this.dataService.hasFeatureAccess("player","creatures-basestats",this.steamId)&&(e+=1),this.dataService.hasFeatureAccess("player","creatures-ids",this.steamId)&&(e+=1),e},e.prototype.isTheme=function(e){return this.theme==e},e}();p=d([r.i(n.Component)({selector:"app-player",template:r("jFLX"),styles:[r("S6EL")]}),u("design:paramtypes",["function"==typeof(h=void 0!==i.g&&i.g)&&h||Object,"function"==typeof(m=void 0!==i.b&&i.b)&&m||Object,"function"==typeof(f=void 0!==c.a&&c.a)&&f||Object,"function"==typeof(v=void 0!==a.a&&a.a)&&v||Object,"function"==typeof(g=void 0!==o.a&&o.a)&&g||Object,"function"==typeof(y=void 0!==s.NotificationsService&&s.NotificationsService)&&y||Object,"function"==typeof(b=void 0!==n.ChangeDetectorRef&&n.ChangeDetectorRef)&&b||Object])],p);var h,m,f,v,g,y,b},MOVZ:function(e,t){function r(e){throw new Error("Cannot find module '"+e+"'.")}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id="MOVZ"},"MjD/":function(e,t){e.exports="\r\n

Server

\r\n
\r\n
Players
\r\n
Tribes
\r\n
Wild Statistics
\r\n
Wild Creatures
\r\n
\r\n
"},"P+hD":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},QMiF:function(e,t){e.exports='\x3c!--
\r\n \r\n

{{currentOwner.Name}}

\r\n
Coords: {{currentArea.Latitude | number:\'1.0-1\'}}, {{currentArea.Longitude | number:\'1.0-1\'}}
\r\n
Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n
{{currentArea.StructureCount | number}} structures
\r\n \r\n
\r\n
--\x3e\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{currentOwner.Name}}

\r\n
\r\n
\r\n
\r\n Coords: {{currentArea.Latitude | number:\'1.0-1\'}}, {{currentArea.Longitude | number:\'1.0-1\'}}
\r\n Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n {{currentArea.StructureCount | number}} structures\r\n
\r\n
\r\n
Destroy this area
\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{currentOwner.Name}}

\r\n
\r\n
\r\n
\r\n Last Active: {{dataService.toRelativeDate(currentOwner.LastActiveTime)}}
\r\n {{currentOwner.AreaCount | number}} areas
\r\n {{currentOwner.StructureCount | number}} structures
\r\n {{currentOwner.CreatureCount | number}} creatures\r\n
\r\n
\r\n
Destroy all structures
\r\n
Destroy all creatures
\r\n
\r\n
\r\n \r\n
\r\n ×\r\n

{{modalInfo.Header}}

\r\n
\r\n
\r\n
\r\n {{modalInfo.Message}}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n

Structures

\r\n
Save World
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n
\r\n

Player/Tribe Locations

\r\n
\r\n
\r\n \x3c!--\r\n --\x3e\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameTypeA#S#C#Last Active
{{owner.Name}}{{owner.Type}}{{owner.AreaCount}}{{owner.StructureCount}}{{owner.CreatureCount}}{{dataService.toRelativeDate(owner.LastActiveTime)}}
\r\n
\r\n
'},QaTd:function(e,t){e.exports=''},RiXa:function(e,t,r){"use strict";var n=r("3j3K"),i=r("8kYA"),s=r("5oXY"),a=r("ATz5");r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t){this.route=e,this.dataService=t}return e.prototype.ngOnInit=function(){this.steamId=this.route.snapshot.params.playerid,this.dataService.hasFeatureAccess("player","profile",this.steamId)?this.menu.activate("profile"):this.dataService.hasFeatureAccess("player","creatures",this.steamId)?this.menu.activate("creatures"):this.dataService.hasFeatureAccess("player","creatures-cloud",this.steamId)?this.menu.activate("creatures_cloud"):this.dataService.hasFeatureAccess("player","breeding",this.steamId)?this.menu.activate("breeding"):this.dataService.hasFeatureAccess("player","crops",this.steamId)?this.menu.activate("crop_plots"):this.dataService.hasFeatureAccess("player","generators",this.steamId)?this.menu.activate("electrical_generators"):this.dataService.hasFeatureAccess("player","kibbles-eggs",this.steamId)?this.menu.activate("kibbles_and_eggs"):this.dataService.hasFeatureAccess("player","tribelog",this.steamId)&&this.menu.activate("tribelog")},e}();o([r.i(n.ViewChild)("menu"),c("design:type","function"==typeof(d=void 0!==i.a&&i.a)&&d||Object)],l.prototype,"menu",void 0),l=o([r.i(n.Component)({selector:"app-player-menu",host:{"[class]":"menu.className"},template:r("78nn"),styles:[r("7uO+")]}),c("design:paramtypes",["function"==typeof(u=void 0!==s.g&&s.g)&&u||Object,"function"==typeof(p=void 0!==a.a&&a.a)&&p||Object])],l);var d,u,p},S6EL:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},SH1B:function(e,t){e.exports='
\r\n

My Profile

\r\n
\r\n
\r\n

Hello, {{dataService.Servers.User.Name}}

\r\n
\r\n
\r\n

\r\n Find your tames, view base stats and keep track of their food status. Get notified of pending imprints, the amount of fertilizer and gasoline remaining in your crops and generators. This and much more is available in your profile.\r\n

\r\n

View my profile ❯

\r\n
\r\n
\r\n
\r\n
\r\n

Servers

\r\n
\r\n
\r\n

{{server.MapName}} - {{server.Key}}{{server.MapName}} - {{server.Key}}

\r\n
\r\n
\r\n

\r\n Last Update {{server.LastUpdate}}, Next Update {{server.NextUpdate || \'-\'}}\r\n

\r\n

View server ❯

\r\n

Admin ❯

\r\n
\r\n
\r\n
\r\n
\r\n

Online {{onlinePlayerCount}}

\r\n
There are no players online...
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam NameCharacter NameTribe NameDiscord TagServerTime Online
{{player.SteamName}}{{player.CharacterName}}{{player.TribeName}}{{player.DiscordName}}{{server.Key}}{{player.TimeOnline}}
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n

{{server.Name}}{{server.Name}}

\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Address{{server.Address}}
Version{{server.Version}}
Player Slots{{server.OnlinePlayerMax}}
Map{{server.MapName}}
In-Game Day{{server.InGameTime}}
Tamed Creatures{{server.TamedCreatureCount | number}}
Cloud Creatures{{server.CloudCreatureCount | number}}
Wild Creatures{{server.WildCreatureCount | number}}
Structures{{server.StructureCount | number}}
Players{{server.PlayerCount | number}}
Tribes{{server.TribeCount | number}}
Last Update{{server.LastUpdate}}
Next Update{{server.NextUpdate}}
Uptime{{server.ServerStarted ? dataService.toRelativeDate(server.ServerStarted) : \'-\'}}
\r\n
\r\n
\r\n\r\n \x3c!--

{{server.Name}}{{server.Name}}

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Address{{server.Address}}
Version{{server.Version}}
Player Slots{{server.OnlinePlayerMax}}
Map{{server.MapName}}
In-Game Time{{server.InGameTime}}
Tamed Creatures{{server.TamedCreatureCount | number}}
Cloud Creatures{{server.CloudCreatureCount | number}}
Wild Creatures{{server.WildCreatureCount | number}}
Structures{{server.StructureCount | number}}
Players{{server.PlayerCount | number}}
Tribes{{server.TribeCount | number}}
Last Update{{server.LastUpdate}}
Next Update{{server.NextUpdate}}
Uptime{{server.ServerStarted ? dataService.toRelativeDate(server.ServerStarted) : \'-\'}}
\r\n
--\x3e\r\n \r\n

Online {{server.OnlinePlayerCount}}

\r\n
There are no players online...
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Steam NameCharacter NameTribe NameDiscord TagTime Online
{{player.SteamName}}{{player.CharacterName}}{{player.TribeName}}{{player.DiscordName}}{{player.TimeOnline}}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

External Resources

\r\n
\r\n
\r\n

Wiki

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Taming Calculators

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Creature Library and Breeding Suggestions

\r\n
\r\n \r\n
\r\n
'},YWx4:function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("hHgl")),o=r("+Lwu"),c=r("ATz5"),l=r("lHWG"),d=r("r5VE"),u=r("kZql"),p=r("2Je8");r.d(t,"a",function(){return v});var h=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},m=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},v=function(){function e(e,t,r,n,i,s,a,o){this.doc=e,this.messageService=t,this.dataService=r,this.httpService=n,this.hotkeysService=i,this.breadcrumbService=s,this.notificationsService=a,this.router=o,this.notificationOptions={position:["top","right"],timeOut:1e3,lastOnBottom:!1},this.showLogin=!1,this.showAdmin=!1,this.currentUrl="/",this.serversUpdatedBefore=!1,this.loading=!0;var c=this.doc.getElementById("configjs"),l=null;if(null!=u.a.configJsOverride?l=u.a.configJsOverride:"/*[[config]]*/"==c.text&&(l=u.a.configJsDefault),null!=l){var d=this.doc.createElement("script");d.type="text/javascript",d.id="configjs",d.text=l,c.parentNode.replaceChild(d,c)}if("undefined"!=typeof config&&"undefined"!==config.webapp&&!0===config.webapp.useCustomCssFile){var p=this.doc.createElement("link");p.rel="stylesheet",p.href="/custom.css",this.doc.getElementsByTagName("head")[0].appendChild(p)}s.addFriendlyNameForRoute("/accessdenied","Access Denied"),s.addFriendlyNameForRoute("/connectionerror","Connection error"),s.hideRoute("/player"),s.hideRoute("/servers"),s.hideRoute("/server"),s.hideRoute("/admin"),s.addCallbackForRouteRegex("^/player/.+$",this.getNameForPlayer),u.a.demo||t.connect()}return e.prototype.ngOnInit=function(){var e=this;this.dataService.SetTheme(this.getTheme()),this.routerEventsSubscription=this.router.events.subscribe(function(t){e.navigationInterceptor(t)}),this.currentUrl=window.location.href||"/",this.serversUpdatedSubscription=this.dataService.ServersUpdated$.subscribe(function(t){e.serversUpdatedBefore||!t||t.User&&t.User.SteamId||(e.showLogin=!0),e.serversUpdatedBefore=!0}),this.adminOptionsHotkeySubscription=this.hotkeysService.add({keys:"control.shift.a"}).subscribe(function(){e.dataService.hasFeatureAccess("pages","admin-server")&&(e.showAdmin=!0)})},e.prototype.ngOnDestroy=function(){this.routerEventsSubscription.unsubscribe(),this.serversUpdatedSubscription.unsubscribe(),this.adminOptionsHotkeySubscription.unsubscribe()},e.prototype.navigationInterceptor=function(e){e instanceof i.d?this.loading=!0:e instanceof i.c?this.loading=!1:e instanceof i.e?this.loading=!1:e instanceof i.f&&(this.loading=!1)},e.prototype.getNameForPlayer=function(e){return"Player"},e.prototype.getBodyClasses=function(){var e=this.getTheme();return"undefined"!=typeof config&&"undefined"!==config.webapp&&!0===config.webapp.topMenu&&(e+=" topmenu"),e},e.prototype.getDefaultTheme=function(){var e="undefined"!=typeof config&&"undefined"!==config.webapp&&"string"==typeof config.webapp.defaultTheme?config.webapp.defaultTheme.toLowerCase():void 0;return"light"!=e&&"dark"!=e?"dark":e},e.prototype.getTheme=function(){return localStorage.getItem("theme")||this.getDefaultTheme()},e.prototype.setTheme=function(e){return this.dataService.SetTheme(e),localStorage.setItem("theme",e),!1},e.prototype.openLogin=function(e){this.showLogin=!0,e.stopPropagation(),e.preventDefault()},e.prototype.closeLogin=function(e){this.showLogin=!1},e.prototype.openCustomTheme=function(e,t){e.stopPropagation(),e.preventDefault(),this.showAdmin=!1,t.show()},e.prototype.getLoginUrl=function(){return u.a.demo?"":this.httpService.getApiBaseUrl()+"/authentication/login"},e.prototype.getLogoutUrl=function(){return u.a.demo?"":this.httpService.getApiBaseUrl()+"/authentication/logout?returnUrl="+this.currentUrl},e}();v=h([r.i(n.Component)({selector:"body",host:{"[class]":"getBodyClasses()"},template:r("5xMp"),styles:[r("okgc")]}),f(0,r.i(n.Inject)(p.DOCUMENT)),m("design:paramtypes",[Object,"function"==typeof(g=void 0!==o.a&&o.a)&&g||Object,"function"==typeof(y=void 0!==c.a&&c.a)&&y||Object,"function"==typeof(b=void 0!==l.a&&l.a)&&b||Object,"function"==typeof(w=void 0!==d.a&&d.a)&&w||Object,"function"==typeof(S=void 0!==a.b&&a.b)&&S||Object,"function"==typeof(C=void 0!==s.NotificationsService&&s.NotificationsService)&&C||Object,"function"==typeof(O=void 0!==i.b&&i.b)&&O||Object])],v);var g,y,b,w,S,C,O},aijx:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},bKAj:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},bl1B:function(e,t){e.exports="\r\n

Admin|Server

\r\n
\r\n
Structures
\r\n
Players
\r\n
Tribes
\r\n
Fertilized Eggs
\r\n
\r\n
"},cPj0:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"e/mT":function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("ATz5")),o=r("+Lwu"),c=r("lHWG"),l=r("vwbq");r.d(t,"a",function(){return p});var d=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,r,n,i,s){this.route=e,this.router=t,this.httpService=r,this.dataService=n,this.messageService=i,this.notificationsService=s,this.menuOption=void 0,this.loaded=!1,this.loadedStructures=!1,this.loadedFertilizedEggs=!1}return e.prototype.getServer=function(){var e=this;this.httpService.getAdminServer(this.serverKey).then(function(t){e.server=t,e.loaded=!0}).catch(function(t){e.server=null,e.loaded=!0})},e.prototype.getStructures=function(){var e=this;this.httpService.getStructures(this.serverKey).then(function(t){e.structures=t,e.loadedStructures=!0}).catch(function(t){e.structures=void 0,e.loadedStructures=!0})},e.prototype.getListFertilizedEggs=function(){var e=this;this.httpService.adminListFertilizedEggs(this.serverKey).then(function(t){e.spoiledEggsList=t.SpoiledEggList,e.fertilizedEggsList=t.FertilizedEggList,e.fertilizedEggsCount=void 0===t.FertilizedEggsCount?0:t.FertilizedEggsCount,e.spoiledEggsCount=void 0===t.SpoiledEggsCount?0:t.SpoiledEggsCount,e.totalEggCount=e.spoiledEggsCount+e.fertilizedEggsCount,e.loadedFertilizedEggs=!0}).catch(function(t){e.fertilizedEggsList=void 0,e.loadedFertilizedEggs=!0})},e.prototype.ngOnInit=function(){var e=this;this.serverKey=this.route.snapshot.params.id,this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){e.menuOption=t,"structures"==e.menuOption?e.getStructures():"fertilized-eggs"==e.menuOption&&e.getListFertilizedEggs()}),this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){e.serverKey==t&&(e.updateServer(),e.showServerUpdateNotification(t))}),this.getServer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.getTribeMember=function(e){return this.server.Players.find(function(t){return t.SteamId==e})},e.prototype.updateServer=function(){this.getServer()},e.prototype.showServerUpdateNotification=function(e){this.notificationsService.success("Server Update",e+" was updated; Reloading data...",{showProgressBar:!0,pauseOnHover:!0,clickToClose:!0})},e.prototype.isMenuActive=function(e){return this.menuOption==e},e.prototype.showInfoModal=function(e,t){var r={};r.Header=e,r.Message=t,this.modalInfo=r,l.b(this.contextMenu.nativeElement).style("display","block"),l.c&&l.c.stopPropagation()},e.prototype.hideContextMenu=function(){l.b(this.contextMenu.nativeElement).style("display","none"),this.modalInfo=void 0},e.prototype.saveWorld=function(e){var t=this;this.httpService.adminSaveWorld(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyAllEggs=function(e){var t=this;this.httpService.adminDestroyAllEggs(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroySpoiledEggs=function(e){var t=this;this.httpService.adminDestroySpoiledEggs(this.serverKey).then(function(e){t.hideContextMenu(),t.getListFertilizedEggs(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e}();d([r.i(n.ViewChild)("contextMenu"),u("design:type","function"==typeof(h=void 0!==n.ElementRef&&n.ElementRef)&&h||Object)],p.prototype,"contextMenu",void 0),p=d([r.i(n.Component)({selector:"app-admin-server",template:r("/Wuq"),styles:[r("7arz")]}),u("design:paramtypes",["function"==typeof(m=void 0!==i.g&&i.g)&&m||Object,"function"==typeof(f=void 0!==i.b&&i.b)&&f||Object,"function"==typeof(v=void 0!==c.a&&c.a)&&v||Object,"function"==typeof(g=void 0!==a.a&&a.a)&&g||Object,"function"==typeof(y=void 0!==o.a&&o.a)&&y||Object,"function"==typeof(b=void 0!==s.NotificationsService&&s.NotificationsService)&&b||Object])],p);var h,m,f,v,g,y,b},eqcJ:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".customThemeContainer{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-line-pack:justify;align-content:space-between}.customThemeItem{width:50%;padding:2px;cursor:pointer}.customThemeColorPreview{width:28px;height:28px;display:inline-block;vertical-align:middle;margin-right:5px;border:2px solid #000;box-sizing:border-box}.customThemeColorPreview>div{width:24px;height:24px;display:inline-block;border:2px solid #fff;box-sizing:border-box}.customThemeColor{font-family:monospace;padding:1px 3px;width:55px;border-radius:8px;margin-right:10px}.customThemeColor,.customThemeName{height:20px;display:inline-block;vertical-align:middle}",""]),e.exports=e.exports.toString()},"fT+k":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,'.map canvas,.map svg{position:absolute;top:0;left:0;width:100%}rect.overlay{fill:transparent}.wrapper{position:relative}.wrapper:after{padding-top:100%;display:block;content:""}.wrapper .buttons{position:absolute;left:5px;top:5px;opacity:.75;z-index:2}',""]),e.exports=e.exports.toString()},ilmp:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Qbdm");r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e){this._sanitizer=e}return e.prototype.transform=function(e){return this._sanitizer.bypassSecurityTrustHtml(e)},e}();o=s([r.i(n.Pipe)({name:"sanitizeHtml"}),a("design:paramtypes",["function"==typeof(c=void 0!==i.DomSanitizer&&i.DomSanitizer)&&c||Object])],o);var c},jFLX:function(e,t){e.exports='
\r\n
\r\n

Loading...

\r\n
\r\n
\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given steam id.

\r\n
\r\n
\r\n
\r\n

Servers

\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Player

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Character NameGenderTribe NameSteam IdTribe IdLevelEngram PointsLatLngSaved At
{{player?.Servers[serverKey]?.CharacterName}}{{player?.Servers[serverKey]?.Gender}}{{player?.Servers[serverKey]?.TribeName}}{{player?.Servers[serverKey]?.FakeSteamId || player?.Servers[serverKey]?.SteamId}}{{player?.Servers[serverKey]?.TribeId}}{{player?.Servers[serverKey]?.Level}}{{player?.Servers[serverKey]?.EngramPoints | number}}{{player?.Servers[serverKey]?.Latitude | number:\'1.1-1\'}}{{player?.Servers[serverKey]?.Longitude | number:\'1.1-1\'}}{{dataService.toDate(player?.Servers[serverKey]?.SavedAt)}}
\r\n
\r\n
\r\n
\r\n
\r\n

Creatures {{filteredCreatures.length}}

\r\n
\r\n
\r\n
There are no creatures...
\r\n \r\n
\r\n close\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameClassNameSpeciesAliasesGenderBase LevelLevelImprintFoodLatLngStatusOwnerHPSTOXFOWEMESPID1ID2
No matching creatures...
{{creature.Name}}{{creature.ClassName}}{{creature.Species}}{{creature.Aliases}}{{creature.Gender}}{{creature.BaseLevel}}{{creature.Level}}{{creature.Imprint | percent:\'1.0-0\'}}\r\n
\r\n
{{creature.FoodStatus | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{creature.Latitude | number:\'1.1-1\'}}{{creature.Longitude | number:\'1.1-1\'}}\r\n Next mating {{dataService.toRelativeDate(creature.NextMating)}}\r\n
\r\n
\r\n
Baby
\r\n
\r\n
\r\n
{{creature.BabyAge | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
\r\n
cuddle {{dataService.toRelativeDate(creature.BabyNextCuddle)}}
\r\n
\r\n
\r\n
{{creature.OwnerType}}{{creature.BaseStats?.Health}}{{creature.BaseStats?.Stamina}}{{creature.BaseStats?.Oxygen}}{{creature.BaseStats?.Food}}{{creature.BaseStats?.Weight}}{{creature.BaseStats?.Melee}}{{creature.BaseStats?.MovementSpeed}}content_copy{{creature.Id1}}{{creature.Id2}}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Breeding {{imprintCreatures.length}}

\r\n
\r\n
\r\n
There are no baby creatures...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameSpeciesGenderBase LevelImprintProgressFully Grown AtNext Imprint
{{creature.Name}}{{creature.Species}}{{creature.Gender}}{{creature.BaseLevel}}{{creature.Imprint | percent:\'1.0-0\'}}\r\n
\r\n
{{creature.BabyAge | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{dataService.toDate(creature.BabyFullyGrown)}}
\r\n
\r\n \x3c!--

\r\n Last Update {{getCurrentServer().LastUpdate}}, Next Update {{getCurrentServer().NextUpdate || \'-\'}}\r\n

--\x3e\r\n
\r\n
\r\n
\r\n

Kibbles and Eggs {{sumKibbleAndEggs() | number:0.0-0}}

\r\n
\r\n
There are no kibbles or eggs...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameKibblesEggsTotal
{{ke.Name}}{{ke.KibbleCount}}{{ke.EggCount}}{{ke.KibbleCount + ke.EggCount}}
\r\n
\r\n
\r\n
\r\n

Clusters

\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n

Creatures

\r\n
\r\n
There are no creatures in the cloud...
\r\n
\r\n
\r\n
\r\n

Creatures {{filteredClusterCreatures.length}}

\r\n
\r\n
There are no creatures in the cloud...
\r\n
\r\n close\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
NameSpeciesLevel
No matching creatures...
{{creature.Name}}{{creature.Species}}{{creature.Level}}
\r\n
\r\n
\r\n
\r\n
\r\n

Crops

\r\n
\r\n
There are no crops...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CropSizeFertilizer %Fertilizer UnitsWaterLatLng
{{(cp.PlantedCropName || cp.PlantedCropClassName)}}{{cp.Size}}\r\n
\r\n
{{(cp.FertilizerQuantity / cp.FertilizerMax) | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{cp.FertilizerQuantity | number}}{{cp.WaterAmount | number:\'1.0-0\'}}{{cp.Latitude | number:\'1.1-1\'}}{{cp.Longitude | number:\'1.1-1\'}}
\r\n
\r\n
\r\n
\r\n
\r\n

Electrical Generators

\r\n
\r\n
There are no electrical generators...
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Gasoline %Gasoline QuantityActivatedLatLng
\r\n
\r\n
{{(eg.GasolineQuantity / 800.0) | percent:\'1.0-0\'}}
\r\n
 
\r\n
\r\n
{{eg.GasolineQuantity | number}}{{(eg.Activated == true ? "Yes" : "No")}}{{eg.Latitude | number:\'1.1-1\'}}{{eg.Longitude | number:\'1.1-1\'}}
\r\n
\r\n
\r\n
\r\n
\r\n

Tribe Log

\r\n
\r\n
There are no tribe logs...
\r\n \r\n
\r\n close\r\n \r\n
\r\n \r\n \r\n \r\n \r\n Day\r\n \r\n \r\n {{log.Day}}\r\n \r\n \r\n \r\n \r\n Time\r\n \r\n \r\n {{log.Time}}\r\n \r\n \r\n \r\n \r\n Message\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n'},jWPz:function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"c",function(){return a}),r.d(t,"b",function(){return o}),r.d(t,"a",function(){return c});var i=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(e){this.template=e}return e}();a=i([r.i(n.Directive)({selector:"[ark-dt-cell]"}),s("design:paramtypes",["function"==typeof(l=void 0!==n.TemplateRef&&n.TemplateRef)&&l||Object])],a);var o=function(){function e(e){this.template=e}return e}();o=i([r.i(n.Directive)({selector:"[ark-dt-header]"}),s("design:paramtypes",["function"==typeof(d=void 0!==n.TemplateRef&&n.TemplateRef)&&d||Object])],o);var c=function(){function e(){}return e}();i([r.i(n.Input)(),r.i(n.ContentChild)(a,{read:n.TemplateRef}),s("design:type","function"==typeof(u=void 0!==n.TemplateRef&&n.TemplateRef)&&u||Object)],c.prototype,"cellTemplate",void 0),i([r.i(n.Input)(),r.i(n.ContentChild)(o,{read:n.TemplateRef}),s("design:type","function"==typeof(p=void 0!==n.TemplateRef&&n.TemplateRef)&&p||Object)],c.prototype,"headerTemplate",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"mode",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"key",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"thenSort",void 0),i([r.i(n.Input)(),s("design:type",String)],c.prototype,"title",void 0),i([r.i(n.Input)(),s("design:type",Boolean)],c.prototype,"orderBy",void 0),c=i([r.i(n.Directive)({selector:"ark-dt-column"})],c);var l,d,u,p},jkBB:function(e,t){e.exports='
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n
No matching entries...
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n «\r\n \r\n \r\n  {{_fromRow}} - {{getLastRowOffset()}} of {{_totalRows}} \r\n »\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
'},joX7:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl");r.n(i);r.d(t,"a",function(){return o});var s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(){this.enabled=i.Observable.of(!0)}return Object.defineProperty(e.prototype,"columnKeys",{set:function(e){this._columnKeys=e,this.ColumnKeys=this._columnKeys.split(",")},enumerable:!0,configurable:!0}),e}();s([r.i(n.Input)(),a("design:type",String)],o.prototype,"key",void 0),s([r.i(n.Input)(),a("design:type",String)],o.prototype,"name",void 0),s([r.i(n.Input)(),a("design:type","function"==typeof(c=void 0!==i.Observable&&i.Observable)&&c||Object)],o.prototype,"enabled",void 0),s([r.i(n.Input)(),a("design:type",String),a("design:paramtypes",[String])],o.prototype,"columnKeys",null),o=s([r.i(n.Directive)({selector:"ark-dt-mode"})],o);var c},kZql:function(e,t,r){"use strict";var n=r("EM12");r.d(t,"a",function(){return i});var i={production:!0,demo:!1,demoDate:null,configJsOverride:null,configJsDefault:n.a.configJs,apiBaseUrl:"//:/api",signalrBaseUrl:"//:/signalr"}},lCrv:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Gvdl"),s=(r.n(i),r("ATz5")),a=r("lHWG"),o=r("kZql"),c=r("vwbq"),l=r("PJh5");r.n(l);r.d(t,"a",function(){return p});var d=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,r){this.dataService=e,this.httpService=t,this.zone=r,this._structures=new i.BehaviorSubject(void 0),this.keysGetter=Object.keys,this.ownerSortField="locations",this.ownerSortFunctions={locations:function(e,t){return e.AreaCount>t.AreaCount?-1:e.AreaCountt.StructureCount?-1:e.StructureCountt.StructureCount?-1:e.StructureCountt.LastActiveTime||void 0==t.LastActiveTime?1:0}},this.width=1024,this.height=1024,this.zoom=c.a().scaleExtent([1,8])}return Object.defineProperty(e.prototype,"structures",{get:function(){return this._structures.getValue()},set:function(e){this._structures.next(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._structuresSubscription=this._structures.subscribe(function(t){return e.update(t)});var t=this.mapContainer.nativeElement;this.map={},this.map.canvas=c.b(t).append("canvas").attr("width",1024).attr("height",1024).node().getContext("2d"),this.map.svg=c.b(t).append("svg").attr("viewBox","0 0 1024 1024").attr("preserveAspectRatio","xMidYMid").append("g").on("contextmenu",function(e,t){c.c.preventDefault()}),this.map.svg.append("rect").attr("class","overlay").attr("width",1024).attr("height",1024),this.map.x=c.d().domain([0,1024]).range([0,1024]),this.map.y=c.d().domain([0,1024]).range([0,1024]),c.b(t).call(this.zoom.on("zoom",function(){e.hideContextMenu(),e.redraw()})).on("wheel.zoom",null),this.structures&&this.updateMap()},e.prototype.ngOnDestroy=function(){this._structuresSubscription.unsubscribe()},e.prototype.zoomIn=function(){this.zoom.scaleBy(c.b(this.mapContainer.nativeElement),1.2)},e.prototype.zoomOut=function(){this.zoom.scaleBy(c.b(this.mapContainer.nativeElement),.8)},e.prototype.updateSelection=function(){var e=this;this.map.svg.circle.attr("display",function(t){var r=e.structures.Owners[t.OwnerId];return t.Removed||r.Removed||e.selectedOwner&&(!e.selectedOwner||e.selectedOwner.Id!=t.OwnerId)?"none":"block"}),this.redraw()},e.prototype.update=function(e){this.sortOwners(e),this.map&&this.updateMap()},e.prototype.sortOwners=function(e){var t=this.ownerSortFunctions[this.ownerSortField];if(e){var r=e.Owners.slice();r.sort(t),this.ownersSorted=r}else this.ownersSorted=void 0},e.prototype.updateMap=function(){var e=this;this.map.svg.nodes=this.structures.Areas,this.map.svg.draw=function(){e.map.svg.circle=e.map.svg.selectAll("circle").data(e.map.svg.nodes).enter().append("circle").attr("r",function(e){return e.RadiusPx<2?2:e.RadiusPx}).attr("fill","transparent").attr("stroke",function(t){var r=e.structures.Owners[t.OwnerId];return!!r.LastActiveTime&&l(new Date(r.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(t.StructureCount>=100||t.TrashQuota<.5&&t.StructureCount>=10)?"magenta":"red"}).attr("stroke-width",function(t){var r=e.structures.Owners[t.OwnerId];return!!r.LastActiveTime&&l(new Date(r.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(t.StructureCount>=100||t.TrashQuota<.5&&t.StructureCount>=10)?3:2}).attr("transform",e.map.svg.transform),e.map.svg.circle.on("click",function(t){c.c.preventDefault();var r={};r.x=c.c.pageX,r.y=c.c.pageY,e.showAreaModal(t,r)}),e.map.svg.circle.append("svg:title").text(function(t){var r=e.structures.Owners[t.OwnerId],n=r.LastActiveTime?l(new Date(r.LastActiveTime)).fromNow():null;return r.Name+": "+t.StructureCount+" structures\nCoords: "+t.Latitude+", "+t.Longitude+"\n"+(n?"Last active: "+n+"\n":"")+"---\n"+t.Structures.map(function(t){var r=e.structures.Types[t.t];return t.c+": "+(r?r.Name:t.t)}).join("\n")})},this.map.svg.draw(),this.map.svg.transform=function(t){return"translate("+e.map.x(t.TopoMapX)+","+e.map.y(t.TopoMapY)+")"},this.map.svg.circle.attr("transform",this.map.svg.transform)},e.prototype.imageLoaded=function(e){var t=this;this.img=e,this.width=e?e.naturalWidth:1024,this.height=e?e.naturalHeight:1024,window.setTimeout(function(){t.resize(),t.redraw()},100)},e.prototype.resize=function(){},e.prototype.redraw=function(){var e=this,t=c.e(this.mapContainer.nativeElement);this.map.svg.attr("transform","translate("+t.x+","+t.y+") scale("+t.k+")"),t.k!=this.prevTransformK&&this.map.svg.circle.attr("stroke-width",function(r){var n=e.structures.Owners[r.OwnerId];return(!!n.LastActiveTime&&l(new Date(n.LastActiveTime)).isSameOrAfter(l().subtract(28,"day"))&&(r.StructureCount>=100||r.TrashQuota<.5&&r.StructureCount>=10)?3:2)/t.k});var r=this.map.canvas;r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,1024,1024),r.translate(t.x,t.y),r.scale(t.k,t.k),this.img&&r.drawImage(this.img,0,0),this.prevTransformK=t.k},e.prototype.ngOnChanges=function(e){var t=this;if(null!=this.mapName){var r=new Image;r.onload=function(){return t.imageLoaded(r)},r.onerror=function(){return t.imageLoaded(void 0)},r.src=o.a.demo?"assets/demo/Ragnarok.jpg":this.getApiBaseUrl()+"/map/"+this.mapName,r.complete&&(r.onload=null,r.onerror=null,this.imageLoaded(r))}},e.prototype.getApiBaseUrl=function(){return o.a.apiBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e.prototype.reset=function(){this.selectedOwner=void 0,this.updateSelection()},e.prototype.setSelectedOwner=function(e){this.selectedOwner=e,this.updateSelection()},e.prototype.setOwnerSort=function(e){this.ownerSortField=e,this.sortOwners(this.structures)},e.prototype.showAreaModal=function(e,t){this.currentArea=e,this.currentOwner=this.structures.Owners[e.OwnerId],c.b(this.contextMenu.nativeElement).style("display","block"),c.c&&c.c.stopPropagation()},e.prototype.showOwnerModal=function(e,t){this.currentOwner=t,c.b(this.contextMenu.nativeElement).style("display","block"),e.stopPropagation()},e.prototype.showInfoModal=function(e,t){var r={};r.Header=e,r.Message=t,this.modalInfo=r,c.b(this.contextMenu.nativeElement).style("display","block"),c.c&&c.c.stopPropagation()},e.prototype.hideContextMenu=function(){c.b(this.contextMenu.nativeElement).style("display","none"),this.currentArea=void 0,this.currentOwner=void 0,this.modalInfo=void 0},e.prototype.destroyCurrentArea=function(e){var t=this;this.httpService.adminDestroyStructuresForTeamIdAtPosition(this.serverKey,this.currentOwner.OwnerId,this.currentArea.X,this.currentArea.Y,+this.currentArea.RadiusUu+1e3,1).then(function(e){t.currentArea.Removed=!0,t.currentOwner.AreaCount-=1,t.currentOwner.StructureCount-=t.currentArea.StructureCount,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyAllStructuresForTeam=function(e){var t=this;this.httpService.adminDestroyAllStructuresForTeamId(this.serverKey,this.currentOwner.OwnerId).then(function(e){t.currentOwner.Removed=!0,t.currentOwner.AreaCount=0,t.currentOwner.StructureCount=0,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.destroyDinosForTeam=function(e){var t=this;this.httpService.adminDestroyDinosForTeamId(this.serverKey,this.currentOwner.OwnerId).then(function(e){t.currentOwner.CreatureCount=0,t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message),t.updateSelection()}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e.prototype.saveWorld=function(e){var t=this;this.httpService.adminSaveWorld(this.serverKey).then(function(e){t.hideContextMenu(),t.showInfoModal("Action Successfull!",e.Message)}).catch(function(e){t.hideContextMenu();var r=e&&e._body?JSON.parse(e._body):void 0;t.showInfoModal("Action Failed...",r?r.Message:e.statusText)})},e}();d([r.i(n.Input)(),u("design:type",Object),u("design:paramtypes",[Object])],p.prototype,"structures",null),d([r.i(n.Input)(),u("design:type",String)],p.prototype,"serverKey",void 0),d([r.i(n.Input)(),u("design:type",String)],p.prototype,"mapName",void 0),d([r.i(n.ViewChild)("map"),u("design:type","function"==typeof(h=void 0!==n.ElementRef&&n.ElementRef)&&h||Object)],p.prototype,"mapContainer",void 0),d([r.i(n.ViewChild)("contextMenu"),u("design:type","function"==typeof(m=void 0!==n.ElementRef&&n.ElementRef)&&m||Object)],p.prototype,"contextMenu",void 0),p=d([r.i(n.Component)({selector:"arkmap-structures",template:r("QMiF"),styles:[r("fT+k")],encapsulation:n.ViewEncapsulation.None}),u("design:paramtypes",["function"==typeof(f=void 0!==s.a&&s.a)&&f||Object,"function"==typeof(v=void 0!==a.a&&a.a)&&v||Object,"function"==typeof(g=void 0!==n.NgZone&&n.NgZone)&&g||Object])],p);var h,m,f,v,g},lHWG:function(e,t,r){"use strict";var n=r("3j3K"),i=r("Fzro"),s=r("eErF"),a=(r.n(s),r("kZql"));r.d(t,"a",function(){return l});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e){this.http=e,this.headers=new i.c({"Content-Type":"application/json"}),this.serversUrl="/servers",this.serverUrl="/server",this.wildCreaturesUrl="/wildcreatures",this.structuresUrl="/structures",this.adminServerUrl="/adminserver",this.administerUrl="/administer",this.playerUrl="/player"}return e.prototype.getOptions=function(){var e="true"==localStorage.getItem("demoMode"),t=new i.d({withCredentials:!0});return e&&(t.headers||(t.headers=new i.c),t.headers.append("demoMode","true")),t},e.prototype.getServers=function(){return this.http.get(""+this.getApiBaseUrl()+this.serversUrl+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getServer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.serverUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getWildCreatures=function(e){return this.http.get(""+this.getApiBaseUrl()+this.wildCreaturesUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getStructures=function(e){return this.http.get(""+this.getApiBaseUrl()+this.structuresUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getPlayer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.playerUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getAdminServer=function(e){return this.http.get(""+this.getApiBaseUrl()+this.adminServerUrl+"/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyAllStructuresForTeamId=function(e,t){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyAllStructuresForTeamId/"+e+"?teamId="+t+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyStructuresForTeamIdAtPosition=function(e,t,r,n,i,s){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyStructuresForTeamIdAtPosition/"+e+"?teamId="+t+"&x="+r+"&y="+n+"&radius="+i+"&rafts="+s+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyDinosForTeamId=function(e,t){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyDinosForTeamId/"+e+"?teamId="+t+"&t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminSaveWorld=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/SaveWorld/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminListFertilizedEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DroppedEggsList/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroyAllEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroyAllEggs/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.adminDestroySpoiledEggs=function(e){return this.http.get(""+this.getApiBaseUrl()+this.administerUrl+"/DestroySpoiledEggs/"+e+"?t="+ +new Date,this.getOptions()).toPromise().then(function(e){return e.json()}).catch(this.handleError)},e.prototype.getApiBaseUrl=function(){return a.a.apiBaseUrl.replace(/\/gi,window.location.protocol).replace(/\/gi,window.location.hostname).replace(/\/gi,"undefined"!=typeof config?config.webapi.port:"")},e.prototype.handleError=function(e){return Promise.reject(e.message||e)},e}();l=o([r.i(n.Injectable)(),c("design:paramtypes",["function"==typeof(d=void 0!==i.b&&i.b)&&d||Object])],l);var d},lRu1:function(e,t){e.exports='
\n
\n

Connection error

\n

The application was unable to connect to the Web API. This could be due to a configuration error...

\n
\n
'},m8aW:function(e,t){e.exports=''},mf93:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},ne8d:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},oLRk:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},okgc:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},qn86:function(e,t,r){"use strict";var n=r("3j3K"),i=r("5oXY"),s=r("3MNG"),a=(r.n(s),r("PJh5")),o=(r.n(a),r("ATz5")),c=r("+Lwu"),l=r("lHWG"),d=r("+rAa");r.d(t,"a",function(){return h});var u=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},p=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},h=function(){function e(e,t,n,i,s,a,o){this.route=e,this.router=t,this.httpService=n,this.dataService=i,this.messageService=s,this.notificationsService=a,this.ref=o,this.menuOption=void 0,this.loaded=!1,this.creaturesLoaded=!1,this.keysGetter=Object.keys,this.showMap=!1,this.creaturesMode="status",this.creaturesSortField="base_level",this.creaturesAltSortFields="base_level,gender",this.creaturesSortFunctions={gender:function(e,t,n){return r.i(d.b)(e.Gender,t.Gender,n)},base_level:function(e,t,n){return r.i(d.c)(e.BaseLevel,t.BaseLevel,!n)},tameable:function(e,t,n){return r.i(d.c)(e.IsTameable,t.IsTameable,!n)},latitude:function(e,t,n){return r.i(d.d)(e.Latitude,t.Latitude,n,1)},longitude:function(e,t,n){return r.i(d.d)(e.Longitude,t.Longitude,n,1)},x:function(e,t,n){return r.i(d.d)(e.X,t.X,n,0)},y:function(e,t,n){return r.i(d.d)(e.Y,t.Y,n,0)},z:function(e,t,n){return r.i(d.d)(e.Z,t.Z,n,0)},stat_health:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Health:null,void 0!=t.BaseStats?t.BaseStats.Health:null,!n)},stat_stamina:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Stamina:null,void 0!=t.BaseStats?t.BaseStats.Stamina:null,!n)},stat_oxygen:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Oxygen:null,void 0!=t.BaseStats?t.BaseStats.Oxygen:null,!n)},stat_food:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Food:null,void 0!=t.BaseStats?t.BaseStats.Food:null,!n)},stat_weight:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Weight:null,void 0!=t.BaseStats?t.BaseStats.Weight:null,!n)},stat_melee:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.Melee:null,void 0!=t.BaseStats?t.BaseStats.Melee:null,!n)},stat_speed:function(e,t,n){return r.i(d.c)(void 0!=e.BaseStats?e.BaseStats.MovementSpeed:null,void 0!=t.BaseStats?t.BaseStats.MovementSpeed:null,!n)},id1:function(e,t,n){return r.i(d.c)(e.Id1,t.Id1,n)},id2:function(e,t,n){return r.i(d.c)(e.Id1,t.Id1,n)}},this.playerSortFunctions={character_name:function(e,t,n){return r.i(d.b)(e.CharacterName,t.CharacterName,n)},tribe_name:function(e,t,n){return r.i(d.b)(e.TribeName,t.TribeName,n)},last_active:function(e,t,n){return r.i(d.c)(e.LastActiveTime,t.LastActiveTime,!n)}},this.tribeSortFunctions={tribe_name:function(e,t,n){return r.i(d.b)(e.Name,t.Name,n)},last_active:function(e,t,n){return r.i(d.c)(e.LastActiveTime,t.LastActiveTime,!n)}},this.wildStatisticsSortFunctions={species:function(e,t,n){return r.i(d.b)(e.Name,t.Name,n)},class_name:function(e,t,n){return r.i(d.b)(e.ClassName,t.ClassName,n)},count:function(e,t,n){return r.i(d.c)(e.Count,t.Count,!n)},fraction:function(e,t,n){return r.i(d.d)(e.Fraction,t.Fraction,!n,4)}}}return e.prototype.getServer=function(){var e=this;this.httpService.getServer(this.serverKey).then(function(t){e.server=t,e.filter(),e.loaded=!0}).catch(function(t){e.server=null,e.filteredPlayers=null,e.filteredTribes=null,e.loaded=!0})},e.prototype.getWildCreatures=function(){var e=this;this.httpService.getWildCreatures(this.serverKey).then(function(t){e.wild=t,e.species=Object.keys(e.wild.Species).sort(function(t,n){return r.i(d.b)(e.wild.Species[t].Name||t,e.wild.Species[n].Name||n,!0)}),e.selectedSpecies&&void 0!=e.species.find(function(t){return t==e.selectedSpecies})||(e.selectedSpecies=e.species.length>0?e.species[0]:null),e.filterAndSortWild(),e.creaturesLoaded=!0,e.ref.detectChanges()}).catch(function(t){e.wild=null,e.species=null,e.filteredCreatures=null,e.creaturesLoaded=!0})},e.prototype.ngOnInit=function(){var e=this;this.accessControl_pages_player=this.dataService.hasFeatureAccessObservable("pages","player"),this.serverKey=this.route.snapshot.params.id,this.menuOptionSubscription=this.dataService.MenuOption.subscribe(function(t){e.menuOption=t,0!=e.creaturesLoaded||"wildcreatures"!=e.menuOption&&"wildcreatures-statistics"!=e.menuOption||e.getWildCreatures()}),this.serverUpdatedSubscription=this.messageService.serverUpdated$.subscribe(function(t){e.serverKey==t&&(e.updateServer(),e.showServerUpdateNotification(t))}),this.getServer()},e.prototype.ngOnDestroy=function(){this.menuOptionSubscription.unsubscribe(),this.serverUpdatedSubscription.unsubscribe()},e.prototype.filter=function(){var e=this.dataService.getCurrentDate(),t=e.subtract(90,"day");this.filteredPlayers=this.server.Players.filter(function(e){return a(new Date(e.LastActiveTime)).isSameOrAfter(t)}),this.filteredTribes=this.server.Tribes.filter(function(e){return a(new Date(e.LastActiveTime)).isSameOrAfter(t)})},e.prototype.sortWild=function(){var e=this,t="-"!=this.creaturesSortField[0],r=this.creaturesSortFunctions[this.creaturesSortField.replace(/^\-/,"")],n=this.creaturesAltSortFields.split(",").map(function(t){var r={};return r.asc="-"!=t[0],r.sortFunc=e.creaturesSortFunctions[t.replace(/^\-/,"")],r});void 0!=this.filteredCreatures&&this.filteredCreatures.sort(function(e,i){var s=r(e,i,t);if(0==s)for(var a=0,o=n;a=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},u=function(){function e(e,t){this.doc=e,this.eventManager=t,this.hotkeys=new Map,this.defaults={element:this.doc}}return e.prototype.add=function(e){var t=this,r=o({},this.defaults,e),n="keydown."+r.keys;return r.description&&this.hotkeys.set(r.keys,r.description),new s.Observable(function(e){var i=function(t){t.preventDefault(),e.next(t)},s=t.eventManager.addEventListener(r.element,n,i);return function(){s(),t.hotkeys.delete(r.keys)}})},e}();u=c([r.i(n.Injectable)(),d(0,r.i(n.Inject)(a.DOCUMENT)),l("design:paramtypes",[Object,"function"==typeof(p=void 0!==i.EventManager&&i.EventManager)&&p||Object])],u);var p},rHbN:function(e,t){e.exports='\r\n \r\n \r\n'},rZY4:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"tr th.orderBy{cursor:pointer}a.w3-button.disabled{color:#a9a9a9}a.w3-button.disabled:hover{color:#a9a9a9!important;background-color:transparent!important;opacity:1!important;cursor:default}",""]),e.exports=e.exports.toString()},uslO:function(e,t,r){function n(e){return r(i(e))}function i(e){var t=s[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}var s={"./af":"3CJN","./af.js":"3CJN","./ar":"3MVc","./ar-dz":"tkWw","./ar-dz.js":"tkWw","./ar-kw":"j8cJ","./ar-kw.js":"j8cJ","./ar-ly":"wPpW","./ar-ly.js":"wPpW","./ar-ma":"dURR","./ar-ma.js":"dURR","./ar-sa":"7OnE","./ar-sa.js":"7OnE","./ar-tn":"BEem","./ar-tn.js":"BEem","./ar.js":"3MVc","./az":"eHwN","./az.js":"eHwN","./be":"3hfc","./be.js":"3hfc","./bg":"lOED","./bg.js":"lOED","./bm":"hng5","./bm.js":"hng5","./bn":"aM0x","./bn.js":"aM0x","./bo":"w2Hs","./bo.js":"w2Hs","./br":"OSsP","./br.js":"OSsP","./bs":"aqvp","./bs.js":"aqvp","./ca":"wIgY","./ca.js":"wIgY","./cs":"ssxj","./cs.js":"ssxj","./cv":"N3vo","./cv.js":"N3vo","./cy":"ZFGz","./cy.js":"ZFGz","./da":"YBA/","./da.js":"YBA/","./de":"DOkx","./de-at":"8v14","./de-at.js":"8v14","./de-ch":"Frex","./de-ch.js":"Frex","./de.js":"DOkx","./dv":"rIuo","./dv.js":"rIuo","./el":"CFqe","./el.js":"CFqe","./en-SG":"oYA3","./en-SG.js":"oYA3","./en-au":"Sjoy","./en-au.js":"Sjoy","./en-ca":"Tqun","./en-ca.js":"Tqun","./en-gb":"hPuz","./en-gb.js":"hPuz","./en-ie":"ALEw","./en-ie.js":"ALEw","./en-il":"QZk1","./en-il.js":"QZk1","./en-nz":"dyB6","./en-nz.js":"dyB6","./eo":"Nd3h","./eo.js":"Nd3h","./es":"LT9G","./es-do":"7MHZ","./es-do.js":"7MHZ","./es-us":"INcR","./es-us.js":"INcR","./es.js":"LT9G","./et":"XlWM","./et.js":"XlWM","./eu":"sqLM","./eu.js":"sqLM","./fa":"2pmY","./fa.js":"2pmY","./fi":"nS2h","./fi.js":"nS2h","./fo":"OVPi","./fo.js":"OVPi","./fr":"tzHd","./fr-ca":"bXQP","./fr-ca.js":"bXQP","./fr-ch":"VK9h","./fr-ch.js":"VK9h","./fr.js":"tzHd","./fy":"g7KF","./fy.js":"g7KF","./ga":"U5Iz","./ga.js":"U5Iz","./gd":"nLOz","./gd.js":"nLOz","./gl":"FuaP","./gl.js":"FuaP","./gom-latn":"+27R","./gom-latn.js":"+27R","./gu":"rtsW","./gu.js":"rtsW","./he":"Nzt2","./he.js":"Nzt2","./hi":"ETHv","./hi.js":"ETHv","./hr":"V4qH","./hr.js":"V4qH","./hu":"xne+","./hu.js":"xne+","./hy-am":"GrS7","./hy-am.js":"GrS7","./id":"yRTJ","./id.js":"yRTJ","./is":"upln","./is.js":"upln","./it":"FKXc","./it-ch":"/E8D","./it-ch.js":"/E8D","./it.js":"FKXc","./ja":"ORgI","./ja.js":"ORgI","./jv":"JwiF","./jv.js":"JwiF","./ka":"RnJI","./ka.js":"RnJI","./kk":"j+vx","./kk.js":"j+vx","./km":"5j66","./km.js":"5j66","./kn":"gEQe","./kn.js":"gEQe","./ko":"eBB/","./ko.js":"eBB/","./ku":"kI9l","./ku.js":"kI9l","./ky":"6cf8","./ky.js":"6cf8","./lb":"z3hR","./lb.js":"z3hR","./lo":"nE8X","./lo.js":"nE8X","./lt":"/6P1","./lt.js":"/6P1","./lv":"jxEH","./lv.js":"jxEH","./me":"svD2","./me.js":"svD2","./mi":"gEU3","./mi.js":"gEU3","./mk":"Ab7C","./mk.js":"Ab7C","./ml":"oo1B","./ml.js":"oo1B","./mn":"CqHt","./mn.js":"CqHt","./mr":"5vPg","./mr.js":"5vPg","./ms":"ooba","./ms-my":"G++c","./ms-my.js":"G++c","./ms.js":"ooba","./mt":"oCzW","./mt.js":"oCzW","./my":"F+2e","./my.js":"F+2e","./nb":"FlzV","./nb.js":"FlzV","./ne":"/mhn","./ne.js":"/mhn","./nl":"3K28","./nl-be":"Bp2f","./nl-be.js":"Bp2f","./nl.js":"3K28","./nn":"C7av","./nn.js":"C7av","./pa-in":"pfs9","./pa-in.js":"pfs9","./pl":"7LV+","./pl.js":"7LV+","./pt":"ZoSI","./pt-br":"AoDM","./pt-br.js":"AoDM","./pt.js":"ZoSI","./ro":"wT5f","./ro.js":"wT5f","./ru":"ulq9","./ru.js":"ulq9","./sd":"fW1y","./sd.js":"fW1y","./se":"5Omq","./se.js":"5Omq","./si":"Lgqo","./si.js":"Lgqo","./sk":"OUMt","./sk.js":"OUMt","./sl":"2s1U","./sl.js":"2s1U","./sq":"V0td","./sq.js":"V0td","./sr":"f4W3","./sr-cyrl":"c1x4","./sr-cyrl.js":"c1x4","./sr.js":"f4W3","./ss":"7Q8x","./ss.js":"7Q8x","./sv":"Fpqq","./sv.js":"Fpqq","./sw":"DSXN","./sw.js":"DSXN","./ta":"+7/x","./ta.js":"+7/x","./te":"Nlnz","./te.js":"Nlnz","./tet":"gUgh","./tet.js":"gUgh","./tg":"5SNd","./tg.js":"5SNd","./th":"XzD+","./th.js":"XzD+","./tl-ph":"3LKG","./tl-ph.js":"3LKG","./tlh":"m7yE","./tlh.js":"m7yE","./tr":"k+5o","./tr.js":"k+5o","./tzl":"iNtv","./tzl.js":"iNtv","./tzm":"FRPF","./tzm-latn":"krPU","./tzm-latn.js":"krPU","./tzm.js":"FRPF","./ug-cn":"To0v","./ug-cn.js":"To0v","./uk":"ntHu","./uk.js":"ntHu","./ur":"uSe8","./ur.js":"uSe8","./uz":"XU1s","./uz-latn":"/bsm","./uz-latn.js":"/bsm","./uz.js":"XU1s","./vi":"0X8Q","./vi.js":"0X8Q","./x-pseudo":"e/KL","./x-pseudo.js":"e/KL","./yo":"YXlc","./yo.js":"YXlc","./zh-cn":"Vz2w","./zh-cn.js":"Vz2w","./zh-hk":"ZUyn","./zh-hk.js":"ZUyn","./zh-tw":"BbgG","./zh-tw.js":"BbgG"};n.keys=function(){return Object.keys(s)},n.resolve=i,e.exports=n,n.id="uslO"},vMp4:function(e,t,r){"use strict";var n=r("3j3K"),i=r("3MNG"),s=(r.n(i),r("2Je8")),a=r("+rAa");r.d(t,"a",function(){return d});var o=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},d=function(){function e(e,t){this.doc=e,this.notificationsService=t,this._show=!1,this._hoverHide=!1,this._isInitialized=!1,this.customTheme=[],this.customThemeGroups=[{key:"dark",name:"Dark Theme",theme:[]},{key:"light",name:"Light Theme",theme:[]}],this.currentCustomThemeGroup=this.customThemeGroups[0]}return e.prototype.toHexColor=function(e){var t=this.doc.createElement("div");t.style.display="none",t.style.color=e;var r=window.getComputedStyle(this.doc.body.appendChild(t)).color.match(/\d+/g).map(function(e){return parseInt(e,10)});return this.doc.body.removeChild(t),r.length<3?(console.log("Could not convert color '"+e+"' to hex"),e):"#"+((1<<24)+(r[0]<<16)+(r[1]<<8)+r[2]).toString(16).substr(1)},e.prototype.show=function(){this._isInitialized||this.init(),this._show=!0},e.prototype.init=function(){this._isInitialized=!0;for(var e=[],t=0,r=this.customThemeGroups;t\r\n
\r\n

Loading...

\r\n
\r\n\r\n
\r\n
\r\n

Error!

\r\n

No data could be loaded for the given server key.

\r\n
\r\n
\r\n
\r\n

Players

\r\n \r\n \r\n \r\n \r\n Character Name\r\n \r\n \r\n {{player.CharacterName}}{{player.CharacterName}}\r\n \r\n \r\n \r\n \r\n Tribe Name\r\n \r\n \r\n {{player.TribeName}}\r\n \r\n \r\n \r\n \r\n Last Active\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n

Tribes

\r\n \r\n \r\n \r\n \r\n Tribe Name\r\n \r\n \r\n {{tribe.Name}}\r\n \r\n \r\n \r\n \r\n Members\r\n \r\n \r\n {{getTribeMember(member)?.CharacterName || member}}{{getTribeMember(member)?.CharacterName || member}}, \r\n \r\n \r\n \r\n \r\n Last Active\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n

Wild Statistics {{(wild.Statistics.Species?.length || 0) | number}}

\r\n \r\n \r\n \r\n \r\n Species\r\n \r\n \r\n {{species.Name}}\r\n \r\n \r\n \r\n \r\n Class Name\r\n \r\n \r\n {{species.ClassName}}\r\n \r\n \r\n \r\n \r\n Aliases\r\n \r\n \r\n {{species.Aliases.length > 0 ? species.Aliases.join(\', \') : \'\'}}\r\n \r\n \r\n \r\n \r\n Count\r\n \r\n \r\n {{species.Count | number}}\r\n \r\n \r\n \r\n \r\n Fraction\r\n \r\n \r\n {{species.Fraction | percent:\'1.0-4\'}}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n

Wild Creatures {{(filteredCreatures?.length || 0) | number}} / {{(wild?.Statistics?.CreatureCount || 0) | number}}

\r\n
\r\n
\r\n
There are no creatures...
\r\n \r\n \r\n \x3c!--
\r\n close\r\n \r\n
--\x3e\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!----\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
GenderBase LevelTameableXYZLatLngHPSTOXFOWEMESPID1ID2
No matching creatures...
{{creature.Gender}}{{creature.BaseLevel}}{{(wild.Species[selectedSpecies].IsTameable && creature.IsTameable == true ? "Yes" : "No")}}{{creature.X}}{{creature.Y}}{{creature.Z}}{{creature.Latitude | number:\'1.1-1\'}}{{creature.Longitude | number:\'1.1-1\'}}{{creature.BaseStats?.Health}}{{creature.BaseStats?.Stamina}}{{creature.BaseStats?.Oxygen}}{{creature.BaseStats?.Food}}{{creature.BaseStats?.Weight}}{{creature.BaseStats?.Melee}}{{creature.BaseStats?.MovementSpeed}}content_copy{{creature.Id1}}{{creature.Id2}}
\r\n
\r\n
\r\n
\r\n'}},[0]); \ No newline at end of file diff --git a/ArkBot/WebApp/dist/polyfills.70a52f0b33460f37363a.bundle.js b/ArkBot/WebApp/dist/polyfills.c2c650e443c940acda1b.bundle.js similarity index 100% rename from ArkBot/WebApp/dist/polyfills.70a52f0b33460f37363a.bundle.js rename to ArkBot/WebApp/dist/polyfills.c2c650e443c940acda1b.bundle.js diff --git a/ArkBot/WebApp/dist/scripts.fbf4958174ba477fe15b.bundle.js b/ArkBot/WebApp/dist/scripts.01c3505ddbe0d20e9ed0.bundle.js similarity index 100% rename from ArkBot/WebApp/dist/scripts.fbf4958174ba477fe15b.bundle.js rename to ArkBot/WebApp/dist/scripts.01c3505ddbe0d20e9ed0.bundle.js diff --git a/ArkBot/WebApp/dist/vendor.f8d4a57af80469b13c5c.bundle.js b/ArkBot/WebApp/dist/vendor.f8d4a57af80469b13c5c.bundle.js index 5f02a09..834cbdf 100644 --- a/ArkBot/WebApp/dist/vendor.f8d4a57af80469b13c5c.bundle.js +++ b/ArkBot/WebApp/dist/vendor.f8d4a57af80469b13c5c.bundle.js @@ -632,7 +632,7 @@ function _(t,e){return e.path.concat([t])}function v(t,e){t||M(e,"Cannot find co * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -var H=function(){function t(){}return t.prototype.control=function(){},Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return A.a(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(H),V=new Y.InjectionToken("NgValidators"),U=new Y.InjectionToken("NgAsyncValidators"),W=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[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])?)*$/,z=function(){function t(){}return t.min=function(t){return function(e){if(r(e.value)||r(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&nt?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return r(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return W.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(r(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){if(!e)return t.nullValidator;var n,i;return"string"==typeof e?(i="^"+e+"$",n=new RegExp(i)):(i=e.toString(),n=e),function(t){if(r(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:i,actualValue:e}}}},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(i);return 0==e.length?null:function(t){return u(s(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(i);return 0==e.length?null:function(t){var r=a(t,e).map(o);return R.map.call(n.i(N.forkJoin)(r),u)}},t}(),B=new Y.InjectionToken("NgValueAccessor"),q={provide:B,useExisting:n.i(Y.forwardRef)(function(){return J}),multi:!0},J=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();J.decorators=[{type:Y.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[q]}]}],J.ctorParameters=function(){return[{type:Y.Renderer2},{type:Y.ElementRef}]};/** +var H=function(){function t(){}return t.prototype.control=function(){},Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return A.a(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(H),V=new Y.InjectionToken("NgValidators"),U=new Y.InjectionToken("NgAsyncValidators"),W=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[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])?)*$/,z=function(){function t(){}return t.min=function(t){return function(e){if(r(e.value)||r(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&nt?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return r(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return W.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(r(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){if(!e)return t.nullValidator;var n,i;return"string"==typeof e?(i="^"+e+"$",n=new RegExp(i)):(i=e.toString(),n=e),function(t){if(r(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:i,actualValue:e}}}},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(i);return 0==e.length?null:function(t){return u(s(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(i);return 0==e.length?null:function(t){var r=a(t,e).map(o);return R.map.call(n.i(N.forkJoin)(r),u)}},t}(),B=new Y.InjectionToken("NgValueAccessor"),q={provide:B,useExisting:n.i(Y.forwardRef)(function(){return J}),multi:!0},J=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();J.decorators=[{type:Y.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[q]}]}],J.ctorParameters=function(){return[{type:Y.Renderer2},{type:Y.ElementRef}]};/** * @license * Copyright Google Inc. All Rights Reserved. * @@ -846,7 +846,7 @@ var xt=["alt","control","meta","shift"],Et={alt:function(t){return t.altKey},con * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -var Lt,kt=function(){function t(t,e){this.defaultDoc=t,this.DOM=e;var n=this.DOM.createHtmlDocument();if(this.inertBodyElement=n.body,null==this.inertBodyElement){var r=this.DOM.createElement("html",n);this.inertBodyElement=this.DOM.createElement("body",n),this.DOM.appendChild(r,this.inertBodyElement),this.DOM.appendChild(n,r)}return this.DOM.setInnerHTML(this.inertBodyElement,''),this.inertBodyElement.querySelector&&!this.inertBodyElement.querySelector("svg")?void(this.getInertBodyElement=this.getInertBodyElement_XHR):(this.DOM.setInnerHTML(this.inertBodyElement,'

'),this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&v()?void(this.getInertBodyElement=this.getInertBodyElement_DOMParser):void(this.getInertBodyElement=this.getInertBodyElement_InertDocument))}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.DOM.createElement("template");return"content"in e?(this.DOM.setInnerHTML(e,t),e):(this.DOM.setInnerHTML(this.inertBodyElement,t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){var e=this;this.DOM.attributeMap(t).forEach(function(n,r){"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.DOM.removeAttribute(t,r)});for(var n=0,r=this.DOM.childNodesAsList(t);n")},t.prototype.endElement=function(t){var e=this.DOM.nodeName(t).toLowerCase();jt.hasOwnProperty(e)&&!Pt.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(S(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&this.DOM.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+this.DOM.getOuterHTML(t));return e},t}(),zt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Bt=/([^\#-~ |!])/g,qt="[-,.\"'%_!# a-zA-Z0-9]+",Jt="(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?",Gt="(?:rgb|hsl)a?",Qt="(?:repeating-)?(?:linear|radial)-gradient",Kt="(?:calc|attr)",Zt="\\([-0-9.%, #a-zA-Z]+\\)",Xt=new RegExp("^("+qt+"|(?:"+Jt+"|"+Gt+"|"+Qt+"|"+Kt+")"+Zt+")$","g"),$t=/^url\(([^)]+)\)$/,te=function(){function t(){}return t.prototype.sanitize=function(t,e){},t.prototype.bypassSecurityTrustHtml=function(t){},t.prototype.bypassSecurityTrustStyle=function(t){},t.prototype.bypassSecurityTrustScript=function(t){},t.prototype.bypassSecurityTrustUrl=function(t){},t.prototype.bypassSecurityTrustResourceUrl=function(t){},t}(),ee=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return P.a(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case Y.SecurityContext.NONE:return e;case Y.SecurityContext.HTML:return e instanceof re?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),T(this._doc,String(e)));case Y.SecurityContext.STYLE:return e instanceof ie?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),E(e));case Y.SecurityContext.SCRIPT:if(e instanceof oe)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case Y.SecurityContext.URL:return e instanceof ae||e instanceof se?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),g(String(e)));case Y.SecurityContext.RESOURCE_URL:if(e instanceof ae)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof ne)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new re(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new ie(t)},e.prototype.bypassSecurityTrustScript=function(t){return new oe(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new se(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new ae(t)},e}(te);ee.decorators=[{type:Y.Injectable}],ee.ctorParameters=function(){return[{type:void 0,decorators:[{type:Y.Inject,args:[q]}]}]};var ne=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.getTypeName=function(){},t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P.a(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(ne),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P.a(e,t),e.prototype.getTypeName=function(){return"Style"},e}(ne),oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P.a(e,t),e.prototype.getTypeName=function(){return"Script"},e}(ne),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P.a(e,t),e.prototype.getTypeName=function(){return"URL"},e}(ne),ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P.a(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(ne),ue=[{provide:Y.PLATFORM_ID,useValue:A["ɵPLATFORM_BROWSER_ID"]},{provide:Y.PLATFORM_INITIALIZER,useValue:C,multi:!0},{provide:A.PlatformLocation,useClass:J},{provide:q,useFactory:k,deps:[]}],ce=[{provide:Y.Sanitizer,useExisting:te},{provide:te,useClass:ee}],le=n.i(Y.createPlatformFactory)(Y.platformCore,"browser",ue),pe=function(){function t(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.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:Y.APP_ID,useValue:e.appId},{provide:Q,useExisting:Y.APP_ID},K]}},t}();pe.decorators=[{type:Y.NgModule,args:[{providers:[ce,{provide:Y.ErrorHandler,useFactory:L,deps:[]},{provide:ot,useClass:bt,multi:!0},{provide:ot,useClass:Ct,multi:!0},{provide:ot,useClass:Tt,multi:!0},{provide:Mt,useClass:St},mt,{provide:Y.RendererFactory2,useExisting:mt},{provide:ut,useExisting:ct},ct,Y.Testability,st,it,G,X],exports:[A.CommonModule,Y.ApplicationModule]}]}],pe.ctorParameters=function(){return[{type:pe,decorators:[{type:Y.Optional},{type:Y.SkipSelf}]}]};/** +var Lt,kt=function(){function t(t,e){this.defaultDoc=t,this.DOM=e;var n=this.DOM.createHtmlDocument();if(this.inertBodyElement=n.body,null==this.inertBodyElement){var r=this.DOM.createElement("html",n);this.inertBodyElement=this.DOM.createElement("body",n),this.DOM.appendChild(r,this.inertBodyElement),this.DOM.appendChild(n,r)}return this.DOM.setInnerHTML(this.inertBodyElement,''),this.inertBodyElement.querySelector&&!this.inertBodyElement.querySelector("svg")?void(this.getInertBodyElement=this.getInertBodyElement_XHR):(this.DOM.setInnerHTML(this.inertBodyElement,'

'),this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&v()?void(this.getInertBodyElement=this.getInertBodyElement_DOMParser):void(this.getInertBodyElement=this.getInertBodyElement_InertDocument))}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.DOM.createElement("template");return"content"in e?(this.DOM.setInnerHTML(e,t),e):(this.DOM.setInnerHTML(this.inertBodyElement,t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){var e=this;this.DOM.attributeMap(t).forEach(function(n,r){"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.DOM.removeAttribute(t,r)});for(var n=0,r=this.DOM.childNodesAsList(t);n")},t.prototype.endElement=function(t){var e=this.DOM.nodeName(t).toLowerCase();jt.hasOwnProperty(e)&&!Pt.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(S(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&this.DOM.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+this.DOM.getOuterHTML(t));return e},t}(),zt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Bt=/([^\#-~ |!])/g,qt="[-,.\"'%_!# a-zA-Z0-9]+",Jt="(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?",Gt="(?:rgb|hsl)a?",Qt="(?:repeating-)?(?:linear|radial)-gradient",Kt="(?:calc|attr)",Zt="\\([-0-9.%, #a-zA-Z]+\\)",Xt=new RegExp("^("+qt+"|(?:"+Jt+"|"+Gt+"|"+Qt+"|"+Kt+")"+Zt+")$","g"),$t=/^url\(([^)]+)\)$/,te=function(){function t(){}return t.prototype.sanitize=function(t,e){},t.prototype.bypassSecurityTrustHtml=function(t){},t.prototype.bypassSecurityTrustStyle=function(t){},t.prototype.bypassSecurityTrustScript=function(t){},t.prototype.bypassSecurityTrustUrl=function(t){},t.prototype.bypassSecurityTrustResourceUrl=function(t){},t}(),ee=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return P.a(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case Y.SecurityContext.NONE:return e;case Y.SecurityContext.HTML:return e instanceof re?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),T(this._doc,String(e)));case Y.SecurityContext.STYLE:return e instanceof ie?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),E(e));case Y.SecurityContext.SCRIPT:if(e instanceof oe)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case Y.SecurityContext.URL:return e instanceof ae||e instanceof se?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),g(String(e)));case Y.SecurityContext.RESOURCE_URL:if(e instanceof ae)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof ne)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new re(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new ie(t)},e.prototype.bypassSecurityTrustScript=function(t){return new oe(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new se(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new ae(t)},e}(te);ee.decorators=[{type:Y.Injectable}],ee.ctorParameters=function(){return[{type:void 0,decorators:[{type:Y.Inject,args:[q]}]}]};var ne=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.getTypeName=function(){},t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P.a(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(ne),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P.a(e,t),e.prototype.getTypeName=function(){return"Style"},e}(ne),oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P.a(e,t),e.prototype.getTypeName=function(){return"Script"},e}(ne),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P.a(e,t),e.prototype.getTypeName=function(){return"URL"},e}(ne),ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P.a(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(ne),ue=[{provide:Y.PLATFORM_ID,useValue:A["ɵPLATFORM_BROWSER_ID"]},{provide:Y.PLATFORM_INITIALIZER,useValue:C,multi:!0},{provide:A.PlatformLocation,useClass:J},{provide:q,useFactory:k,deps:[]}],ce=[{provide:Y.Sanitizer,useExisting:te},{provide:te,useClass:ee}],le=n.i(Y.createPlatformFactory)(Y.platformCore,"browser",ue),pe=function(){function t(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.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:Y.APP_ID,useValue:e.appId},{provide:Q,useExisting:Y.APP_ID},K]}},t}();pe.decorators=[{type:Y.NgModule,args:[{providers:[ce,{provide:Y.ErrorHandler,useFactory:L,deps:[]},{provide:ot,useClass:bt,multi:!0},{provide:ot,useClass:Ct,multi:!0},{provide:ot,useClass:Tt,multi:!0},{provide:Mt,useClass:St},mt,{provide:Y.RendererFactory2,useExisting:mt},{provide:ut,useExisting:ct},ct,Y.Testability,st,it,G,X],exports:[A.CommonModule,Y.ApplicationModule]}]}],pe.ctorParameters=function(){return[{type:pe,decorators:[{type:Y.Optional},{type:Y.SkipSelf}]}]};/** * @license * Copyright Google Inc. All Rights Reserved. * @@ -970,7 +970,7 @@ var Iu=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),void 0===i&&(i=ti.M * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -var Vu="ngPreserveWhitespaces",Uu=new Set(["pre","template","textarea","script","style"]),Wu=" \f\n\r\t\v ᠎ - \u2028\u2029   \ufeff",zu=new RegExp("[^"+Wu+"]"),Bu=new RegExp("["+Wu+"]{2,}","g"),qu=function(){function t(){}return t.prototype.visitElement=function(t,e){return Uu.has(t.name)||de(t.attrs)?new Gs(t.name,lt(this,t.attrs),t.children,t.sourceSpan,t.startSourceSpan,t.endSourceSpan):new Gs(t.name,t.attrs,lt(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t.name!==Vu?t:null},t.prototype.visitText=function(t,e){return t.value.match(zu)?new zs(me(t.value).replace(Bu," "),t.sourceSpan):null},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),Ju=["zero","one","two","few","many","other"],Gu=function(){function t(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}return t}(),Qu=function(t){function e(e,n){return t.call(this,e,n)||this}return $r.a(e,t),e}(Ws),Ku=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t,e){return new Gs(t.name,t.attrs,lt(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t},t.prototype.visitText=function(t,e){return t},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return this.isExpanded=!0,"plural"==t.type?ve(t,this.errors):ge(t,this.errors)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Should not be reached")},t}(),Zu=function(t){function e(e,n){return t.call(this,n,e)||this}return $r.a(e,t),e}(Ws),Xu=function(){function t(t,e){var n=this;this.reflector=t,this.component=e,this.errors=[],this.viewQueries=Te(e),this.viewProviders=new Map,e.viewProviders.forEach(function(t){null==n.viewProviders.get(D(t.token))&&n.viewProviders.set(D(t.token),!0)})}return t}(),$u=function(){function t(t,e,n,r,i,o,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._queriedTokens=new Map,this._attrs={},i.forEach(function(t){return c._attrs[t.name]=t.value});var l=r.map(function(t){return t.directive});if(this._allProviders=Me(l,u,t.errors),this._contentQueries=xe(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var p=fe(this.viewContext.reflector,Fu.TemplateRef);this._addQueryReadsTo(p,p,this._queriedTokens)}o.forEach(function(t){var e=t.value||fe(c.viewContext.reflector,Fu.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(Fu.ViewContainerRef))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){(t.eager||c._queriedTokens.get(D(t.token)))&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){var t=[],e=[];return this._transformedProviders.forEach(function(n){n.eager?e.push(n):t.push(n)}),t.concat(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,n){return t.indexOf(e.directive.type)-t.indexOf(n.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,e)}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,n){this._getQueriesFor(t).forEach(function(t){var r=t.meta.read||e,i=D(r),o=n.get(i);o||(o=[],n.set(i,o)),o.push({queryId:t.queryId,value:r})})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,i=0;null!==r;)e=r._contentQueries.get(D(t)),e&&n.push.apply(n,e.filter(function(t){return t.meta.descendants||i<=1})),r._directiveAsts.length>0&&i++,r=r._parent;return e=this.viewContext.viewQueries.get(D(t)),e&&n.push.apply(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,i=this._allProviders.get(D(e));if(!i||(t===fi.Directive||t===fi.PublicService)&&i.providerType===fi.PrivateService||(t===fi.PrivateService||t===fi.PublicService)&&i.providerType===fi.Builtin)return null;var o=this._transformedProviders.get(D(e));if(o)return o;if(null!=this._seenProviders.get(D(e)))return this.viewContext.errors.push(new Zu("Cannot instantiate cyclic dependency! "+k(e),this._sourceSpan)),null;this._seenProviders.set(D(e),!0);var s=i.providers.map(function(t){var e=t.useValue,o=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency(i.providerType,{token:t.useExisting},n);null!=a.token?o=a.token:(o=null,e=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return r._getDependency(i.providerType,t,n)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return r._getDependency(i.providerType,t,n)})}return be(t,{useExisting:o,useValue:e,deps:s})});return o=we(i,{eager:n,providers:s}),this._transformedProviders.set(D(e),o),o},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=!1),e.isAttribute){var r=this._attrs[e.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=e.token){if(t===fi.Directive||t===fi.Component){if(D(e.token)===this.viewContext.reflector.resolveExternalReference(Fu.Renderer)||D(e.token)===this.viewContext.reflector.resolveExternalReference(Fu.ElementRef)||D(e.token)===this.viewContext.reflector.resolveExternalReference(Fu.ChangeDetectorRef)||D(e.token)===this.viewContext.reflector.resolveExternalReference(Fu.TemplateRef))return e;D(e.token)===this.viewContext.reflector.resolveExternalReference(Fu.ViewContainerRef)&&(this._hasViewContainer=!0)}if(D(e.token)===this.viewContext.reflector.resolveExternalReference(Fu.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,n))return e}return null},t.prototype._getDependency=function(t,e,n){void 0===n&&(n=!1);var r=this,i=n,o=null;if(e.isSkipSelf||(o=this._getLocalDependency(t,e,n)),e.isSelf)!o&&e.isOptional&&(o={isValue:!0,value:null});else{for(;!o&&r._parent;){var s=r;r=r._parent,s._isViewRoot&&(i=!1),o=r._getLocalDependency(fi.PublicService,e,i)}o||(o=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===D(e.token)||null!=this.viewContext.viewProviders.get(D(e.token))?e:e.isOptional?o={isValue:!0,value:null}:null)}return o||this.viewContext.errors.push(new Zu("No provider for "+k(e.token),this._sourceSpan)),o},t}(),tc=function(){function t(t,e,n,r){var i=this;this.reflector=t,this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,e.transitiveModule.modules.forEach(function(t){Se([{token:{identifier:t},useClass:t}],fi.PublicService,!0,r,i._errors,i._allProviders)}),Se(e.transitiveModule.providers.map(function(t){return t.provider}).concat(n),fi.PublicService,!1,r,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}var n=[],r=[];return this._transformedProviders.forEach(function(t){t.eager?r.push(t):n.push(t)}),n.concat(r)},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,r=this._allProviders.get(D(t));if(!r)return null;var i=this._transformedProviders.get(D(t));if(i)return i;if(null!=this._seenProviders.get(D(t)))return this._errors.push(new Zu("Cannot instantiate cyclic dependency! "+k(t),r.sourceSpan)),null;this._seenProviders.set(D(t),!0);var o=r.providers.map(function(t){var i=t.useValue,o=t.useExisting,s=void 0;if(null!=t.useExisting){var a=n._getDependency({token:t.useExisting},e,r.sourceSpan);null!=a.token?o=a.token:(o=null,i=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}return be(t,{useExisting:o,useValue:i,deps:s})});return i=we(r,{eager:e,providers:o}),this._transformedProviders.set(D(t),i),i},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=!1);var r=!1;t.isSkipSelf||null==t.token||(D(t.token)===this.reflector.resolveExternalReference(Fu.Injector)||D(t.token)===this.reflector.resolveExternalReference(Fu.ComponentFactoryResolver)?r=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(r=!0));var i=t;return t.isSelf&&!r&&(t.isOptional?i={isValue:!0,value:null}:this._errors.push(new Zu("No provider for "+k(t.token),n))),i},t}(),ec=function(){function t(){}return t.prototype.hasProperty=function(t,e,n){},t.prototype.hasElement=function(t,e){},t.prototype.securityContext=function(t,e,n){},t.prototype.allKnownElementNames=function(){},t.prototype.getMappedPropName=function(t){},t.prototype.getDefaultComponentElementName=function(){},t.prototype.validateProperty=function(t){},t.prototype.validateAttribute=function(t){},t.prototype.normalizeAnimationStyleProperty=function(t){},t.prototype.normalizeAnimationStyleValue=function(t,e,n){},t}(),nc=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),rc=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,ic=/\/\*[\s\S]+?\*\//g,oc=/^([^:\/?#]+):/,sc=".",ac="attr",uc="class",cc="style",lc="animate-",pc={};pc.DEFAULT=0,pc.LITERAL_ATTR=1,pc.ANIMATION=2,pc[pc.DEFAULT]="DEFAULT",pc[pc.LITERAL_ATTR]="LITERAL_ATTR",pc[pc.ANIMATION]="ANIMATION";var hc=function(){function t(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r}return Object.defineProperty(t.prototype,"isLiteral",{get:function(){return this.type===pc.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===pc.ANIMATION},enumerable:!0,configurable:!0}),t}(),fc=function(){function t(t,e,n,r,i){var o=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this._targetErrors=i,this.pipesByName=new Map,this._usedPipes=new Map,r.forEach(function(t){return o.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,n){var r=this;if(t.hostProperties){var i=[];return Object.keys(t.hostProperties).forEach(function(e){var o=t.hostProperties[e];"string"==typeof o?r.parsePropertyBinding(e,o,!0,n,[],i):r._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",n)}),i.map(function(t){return r.createElementPropertyAst(e,t)})}return null},t.prototype.createDirectiveHostEventAsts=function(t,e){var n=this;if(t.hostListeners){var r=[];return Object.keys(t.hostListeners).forEach(function(i){var o=t.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,e,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",e)}),r}return null},t.prototype.parseInterpolation=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseInterpolation(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),this._checkPipes(r,e),r}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.parseInlineTemplateBinding=function(t,e,n,r,i,o){for(var s=this._parseTemplateBindings(t,e,n),a=0;a1)if(o[0]==ac){i=o[1],this._validatePropertyOrAttributeName(i,e.sourceSpan,!0),s=De(this._schemaRegistry,t,i,!0);var a=i.indexOf(":");if(a>-1){var u=i.substring(0,a),l=i.substring(a+1);i=c(u,l)}r=mi.Attribute}else o[0]==uc?(i=o[1],r=mi.Class,s=[ti.SecurityContext.NONE]):o[0]==cc&&(n=o.length>2?o[2]:null,i=o[1],r=mi.Style,s=[ti.SecurityContext.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(e.name),s=De(this._schemaRegistry,t,i,!1),r=mi.Property,this._validatePropertyOrAttributeName(i,e.sourceSpan,!1)),new ii(i,r,s[0],e.expression,n,e.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,i){ke(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,i)):this._parseEvent(t,e,n,r,i)},t.prototype._parseAnimationEvent=function(t,e,n,r){var i=f(t,[t,""]),o=i[0],s=i[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,n);r.push(new oi(o,null,s,a,n));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+o+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+o+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(t,e,n,r,i){var o=h(t,[null,t]),s=o[0],a=o[1],u=this._parseAction(e,n);r.push([t,u.source]),i.push(new oi(a,s,null,u,n))},t.prototype._parseAction=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseAction(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),!r||r.ast instanceof $i?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,e),r)}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Us.ERROR),this._targetErrors.push(new Ws(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){for(var n=0,r=t;n element is deprecated. Use instead",Wc="The template attribute is deprecated. Use an ng-template element instead.",zc={},Bc=new ti.InjectionToken("TemplateTransforms"),qc=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return $r.a(e,t),e}(Ws),Jc=function(){function t(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n}return t}(),Gc=function(){function t(t,e,n,r,i,o,s){this._config=t,this._reflector=e,this._exprParser=n,this._schemaRegistry=r,this._htmlParser=i,this._console=o,this.transforms=s}return t.prototype.parse=function(t,e,n,r,i,o,s){var a=this.tryParse(t,e,n,r,i,o,s),u=a.errors.filter(function(t){return t.level===Us.WARNING}).filter(Ae([Wc,Uc])),c=a.errors.filter(function(t){return t.level===Us.ERROR});if(u.length>0&&this._console.warn("Template parse warnings:\n"+u.join("\n")),c.length>0){throw v("Template parse errors:\n"+c.join("\n"),c)}return{template:a.templateAst,pipes:a.usedPipes}},t.prototype.tryParse=function(t,e,n,r,i,o,s){var a=this._htmlParser.parse(e,o,!0,this.getInterpolationConfig(t));return s||(a=ye(a)),this.tryParseHtml(this.expandHtml(a),t,n,r,i)},t.prototype.tryParseHtml=function(t,e,n,i,o){var s,a=t.errors,u=[];if(t.rootNodes.length>0){var c=je(n),l=je(i),p=new Xu(this._reflector,e),h=void 0;e.template&&e.template.interpolation&&(h={start:e.template.interpolation[0],end:e.template.interpolation[1]});var f=new fc(this._exprParser,h,this._schemaRegistry,l,a),d=new Qc(this._reflector,this._config,p,c,f,this._schemaRegistry,o,a);s=lt(d,t.rootNodes,$c),a.push.apply(a,p.errors),u.push.apply(u,f.getUsedPipes())}else s=[];return this._assertNoReferenceDuplicationOnTemplate(s,a),a.length>0?new Jc(s,u,a):(this.transforms&&this.transforms.forEach(function(t){s=r(t,s)}),new Jc(s,u,a))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=_e(t.rootNodes);n.push.apply(n,r.errors),t=new ia(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return Es.fromArray(t.template.interpolation)},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var n=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var r=t.name;if(n.indexOf(r)<0)n.push(r);else{var i=new qc('Reference "#'+r+'" is defined several times',t.sourceSpan,Us.ERROR);e.push(i)}})})},t}();Gc.decorators=[{type:z}],Gc.ctorParameters=function(){return[{type:Gi},{type:Ji},{type:Is},{type:ec},{type:ju},{type:ti["ɵConsole"]},{type:Array,decorators:[{type:ti.Optional},{type:ti.Inject,args:[Bc]}]}]};var Qc=function(){function t(t,e,n,r,i,o,s,a){var u=this;this.reflector=t,this.config=e,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=o,this._schemas=s,this._targetErrors=a,this.selectorMatcher=new Ci,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(t,e){var n=Ei.parse(t.selector);u.selectorMatcher.addSelectables(n,t),u.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(t,e){return null},t.prototype.visitExpansionCase=function(t,e){return null},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Vc),r=me(t.value),i=this._bindingParser.parseInterpolation(r,t.sourceSpan);return i?new ni(i,n,t.sourceSpan):new ei(r,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new ri(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitElement=function(t,e){var n=this,r=this.contentQueryStartId,i=t.name,o=Oe(t);if(o.type===Tc.SCRIPT||o.type===Tc.STYLE)return null;if(o.type===Tc.STYLESHEET&&Ce(o.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,m=[],y=Fe(t,this.config.enableLegacyTemplate,function(t,e){return n._reportError(t,e,Us.WARNING)});t.attrs.forEach(function(t){var e,r,i=n._parseAttr(y,t,s,a,l,u,c),o=n._normalizeAttributeName(t.name);n.config.enableLegacyTemplate&&o==jc?(n._reportError(Wc,t.sourceSpan,Us.WARNING),e=t.value):o.startsWith(Hc)&&(e=t.value,r=o.substring(Hc.length)+":");var _=null!=e;_&&(d&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),d=!0,n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,f)),i||_||(m.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var _=Ie(i,s),v=this._parseDirectives(this.selectorMatcher,_),g=v.directives,b=v.matchElement,w=[],M=new Set,S=this._createDirectiveAsts(y,t.name,g,a,u,t.sourceSpan,w,M),T=this._createElementPropertyAsts(t.name,a,M),x=e.isTemplateElement||d,E=new $u(this.providerViewContext,e.providerContext,x,S,m,w,y,r,t.sourceSpan),C=lt(o.nonBindable?tl:this,t.children,Xc.create(y,S,y?e.providerContext:E));E.afterElement();var L,k=null!=o.projectAs?Ei.parse(o.projectAs)[0]:_,D=e.findNgContentIndex(k);if(o.type===Tc.NG_CONTENT)t.children&&!t.children.every(Re)&&this._reportError(" element cannot have content.",t.sourceSpan),L=new di(this.ngContentCount++,d?null:D,t.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(S,l),this._assertNoComponentsNorElementBindingsOnTemplate(S,T,t.sourceSpan),L=new ci(m,l,w,c,E.transformedDirectiveAsts,E.transformProviders,E.transformedHasViewContainer,E.queryMatches,C,d?null:D,t.sourceSpan);else{this._assertElementExists(b,t),this._assertOnlyOneComponent(S,t.sourceSpan);var O=d?null:e.findNgContentIndex(k);L=new ui(i,m,T,l,w,E.transformedDirectiveAsts,E.transformProviders,E.transformedHasViewContainer,E.queryMatches,C,d?null:O,t.sourceSpan,t.endSourceSpan||null)}if(d){var P=this.contentQueryStartId,A=Ie(Rc,h),Y=this._parseDirectives(this.selectorMatcher,A).directives,N=new Set,I=this._createDirectiveAsts(!0,t.name,Y,p,[],t.sourceSpan,[],N),R=this._createElementPropertyAsts(t.name,p,N);this._assertNoComponentsNorElementBindingsOnTemplate(I,R,t.sourceSpan);var j=new $u(this.providerViewContext,e.providerContext,e.isTemplateElement,I,[],[],!0,P,t.sourceSpan);j.afterElement(),L=new ci([],[],[],f,j.transformedDirectiveAsts,j.transformProviders,j.transformedHasViewContainer,j.queryMatches,[L],D,t.sourceSpan)}return L},t.prototype._parseAttr=function(t,e,n,r,i,o,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(Ec),p=!1;if(null!==l)if(p=!0,null!=l[Cc])this._bindingParser.parsePropertyBinding(l[Ac],u,!1,c,n,r);else if(l[Lc])if(t){var h=l[Ac];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on template elements.',c);else if(l[kc]){var h=l[Ac];this._parseReference(h,u,c,o)}else l[Dc]?this._bindingParser.parseEvent(l[Ac],u,c,n,i):l[Oc]?(this._bindingParser.parsePropertyBinding(l[Ac],u,!1,c,n,r),this._parseAssignmentEvent(l[Ac],u,c,n,i)):l[Pc]?this._bindingParser.parseLiteralAttr(a,u,c,n,r):l[Yc]?(this._bindingParser.parsePropertyBinding(l[Yc],u,!1,c,n,r),this._parseAssignmentEvent(l[Yc],u,c,n,i)):l[Nc]?this._bindingParser.parsePropertyBinding(l[Nc],u,!1,c,n,r):l[Ic]&&this._bindingParser.parseEvent(l[Ic],u,c,n,i);else p=this._bindingParser.parsePropertyInterpolation(a,u,c,n,r);return p||this._bindingParser.parseLiteralAttr(a,u,c,n,r),p},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new ai(t,e,n))},t.prototype._parseReference=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new Zc(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,i){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,i)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),i=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:i}},t.prototype._createDirectiveAsts=function(t,e,n,r,i,o,s,a){var u=this,c=new Set,l=null,p=n.map(function(t){var n=new Vs(o.start,o.end,"Directive "+S(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,n);h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,n);u._createDirectivePropertyAsts(t.inputs,r,p,a),i.forEach(function(e){(0===e.value.length&&t.isComponent||e.isReferenceToDirective(t))&&(s.push(new si(e.name,he(t.type.reference),e.sourceSpan)),c.add(e.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new pi(t,p,h,f,d,n)});return i.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var n=null;t&&(n=fe(u.reflector,Fu.TemplateRef)),s.push(new si(e.name,n,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var i=new Map;e.forEach(function(t){var e=i.get(t.name);e&&!e.isLiteral||i.set(t.name,t)}),Object.keys(t).forEach(function(e){var o=t[e],s=i.get(o);s&&(r.add(s.name),He(s.expression)||n.push(new li(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,i=[];return e.forEach(function(e){e.isLiteral||n.has(e.name)||i.push(r._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,i)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return S(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+n.join(","),e)},t.prototype._assertElementExists=function(t,e){var n=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n";r+="1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n",n.indexOf("-")>-1?r+="2. If '"+n+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":r+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(r,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),n),e.forEach(function(t){r._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',n)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,r=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var n=t.directive.outputs[e];r.add(n)})}),e.forEach(function(t){null==t.target&&r.has(t.name)||n._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var n=this;return e.filter(function(e){if(e.type===mi.Property&&!n._schemaRegistry.hasProperty(t,e.name,n._schemas)){var r="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?r+="\n1. If '"+e.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":t.indexOf("-")>-1&&(r+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module.\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),n._reportError(r,e.sourceSpan)}return!He(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Us.ERROR),this._targetErrors.push(new Ws(e,t,n))},t}(),Kc=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=Oe(t);if(n.type===Tc.SCRIPT||n.type===Tc.STYLE||n.type===Tc.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),i=Ie(t.name,r),o=e.findNgContentIndex(i),s=lt(this,t.children,$c);return new ui(t.name,lt(this,t.attrs),[],[],[],[],[],!1,[],s,o,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new ri(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Vc);return new ei(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),Zc=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.isReferenceToDirective=function(t){return-1!==Ye(t.exportAs).indexOf(this.value)},t}(),Xc=function(){function t(t,e,n,r){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=r}return t.create=function(e,n,r){var i=new Ci,o=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u0?e[0]:null},t}(),$c=new Xc(!0,new Ci,null,null),tl=new Kc,el=function(){function t(){}return t.prototype.get=function(t){return""},t}(),nl={provide:ti.PACKAGE_ROOT_URL,useValue:"/"},rl=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var n=e;null!=t&&t.length>0&&(n=Je(t,n));var r=ze(n),i=this._packagePrefix;if(null!=i&&null!=r&&"package"==r[ol.Scheme]){var o=r[ol.Path];return i=i.replace(/\/+$/,""),o=o.replace(/^\/+/,""),i+"/"+o}return n},t}();rl.decorators=[{type:z}],rl.ctorParameters=function(){return[{type:void 0,decorators:[{type:ti.Inject,args:[ti.PACKAGE_ROOT_URL]}]}]};var il=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),ol={};ol.Scheme=1,ol.UserInfo=2,ol.Domain=3,ol.Port=4,ol.Path=5,ol.QueryData=6,ol.Fragment=7,ol[ol.Scheme]="Scheme",ol[ol.UserInfo]="UserInfo",ol[ol.Domain]="Domain",ol[ol.Port]="Port",ol[ol.Path]="Path",ol[ol.QueryData]="QueryData",ol[ol.Fragment]="Fragment";/** +var Vu="ngPreserveWhitespaces",Uu=new Set(["pre","template","textarea","script","style"]),Wu=" \f\n\r\t\v ᠎ - \u2028\u2029   \ufeff",zu=new RegExp("[^"+Wu+"]"),Bu=new RegExp("["+Wu+"]{2,}","g"),qu=function(){function t(){}return t.prototype.visitElement=function(t,e){return Uu.has(t.name)||de(t.attrs)?new Gs(t.name,lt(this,t.attrs),t.children,t.sourceSpan,t.startSourceSpan,t.endSourceSpan):new Gs(t.name,t.attrs,lt(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t.name!==Vu?t:null},t.prototype.visitText=function(t,e){return t.value.match(zu)?new zs(me(t.value).replace(Bu," "),t.sourceSpan):null},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),Ju=["zero","one","two","few","many","other"],Gu=function(){function t(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}return t}(),Qu=function(t){function e(e,n){return t.call(this,e,n)||this}return $r.a(e,t),e}(Ws),Ku=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t,e){return new Gs(t.name,t.attrs,lt(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t},t.prototype.visitText=function(t,e){return t},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return this.isExpanded=!0,"plural"==t.type?ve(t,this.errors):ge(t,this.errors)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Should not be reached")},t}(),Zu=function(t){function e(e,n){return t.call(this,n,e)||this}return $r.a(e,t),e}(Ws),Xu=function(){function t(t,e){var n=this;this.reflector=t,this.component=e,this.errors=[],this.viewQueries=Te(e),this.viewProviders=new Map,e.viewProviders.forEach(function(t){null==n.viewProviders.get(D(t.token))&&n.viewProviders.set(D(t.token),!0)})}return t}(),$u=function(){function t(t,e,n,r,i,o,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._queriedTokens=new Map,this._attrs={},i.forEach(function(t){return c._attrs[t.name]=t.value});var l=r.map(function(t){return t.directive});if(this._allProviders=Me(l,u,t.errors),this._contentQueries=xe(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var p=fe(this.viewContext.reflector,Fu.TemplateRef);this._addQueryReadsTo(p,p,this._queriedTokens)}o.forEach(function(t){var e=t.value||fe(c.viewContext.reflector,Fu.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(Fu.ViewContainerRef))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){(t.eager||c._queriedTokens.get(D(t.token)))&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){var t=[],e=[];return this._transformedProviders.forEach(function(n){n.eager?e.push(n):t.push(n)}),t.concat(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,n){return t.indexOf(e.directive.type)-t.indexOf(n.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,e)}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,n){this._getQueriesFor(t).forEach(function(t){var r=t.meta.read||e,i=D(r),o=n.get(i);o||(o=[],n.set(i,o)),o.push({queryId:t.queryId,value:r})})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,i=0;null!==r;)e=r._contentQueries.get(D(t)),e&&n.push.apply(n,e.filter(function(t){return t.meta.descendants||i<=1})),r._directiveAsts.length>0&&i++,r=r._parent;return e=this.viewContext.viewQueries.get(D(t)),e&&n.push.apply(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,i=this._allProviders.get(D(e));if(!i||(t===fi.Directive||t===fi.PublicService)&&i.providerType===fi.PrivateService||(t===fi.PrivateService||t===fi.PublicService)&&i.providerType===fi.Builtin)return null;var o=this._transformedProviders.get(D(e));if(o)return o;if(null!=this._seenProviders.get(D(e)))return this.viewContext.errors.push(new Zu("Cannot instantiate cyclic dependency! "+k(e),this._sourceSpan)),null;this._seenProviders.set(D(e),!0);var s=i.providers.map(function(t){var e=t.useValue,o=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency(i.providerType,{token:t.useExisting},n);null!=a.token?o=a.token:(o=null,e=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return r._getDependency(i.providerType,t,n)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return r._getDependency(i.providerType,t,n)})}return be(t,{useExisting:o,useValue:e,deps:s})});return o=we(i,{eager:n,providers:s}),this._transformedProviders.set(D(e),o),o},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=!1),e.isAttribute){var r=this._attrs[e.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=e.token){if(t===fi.Directive||t===fi.Component){if(D(e.token)===this.viewContext.reflector.resolveExternalReference(Fu.Renderer)||D(e.token)===this.viewContext.reflector.resolveExternalReference(Fu.ElementRef)||D(e.token)===this.viewContext.reflector.resolveExternalReference(Fu.ChangeDetectorRef)||D(e.token)===this.viewContext.reflector.resolveExternalReference(Fu.TemplateRef))return e;D(e.token)===this.viewContext.reflector.resolveExternalReference(Fu.ViewContainerRef)&&(this._hasViewContainer=!0)}if(D(e.token)===this.viewContext.reflector.resolveExternalReference(Fu.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,n))return e}return null},t.prototype._getDependency=function(t,e,n){void 0===n&&(n=!1);var r=this,i=n,o=null;if(e.isSkipSelf||(o=this._getLocalDependency(t,e,n)),e.isSelf)!o&&e.isOptional&&(o={isValue:!0,value:null});else{for(;!o&&r._parent;){var s=r;r=r._parent,s._isViewRoot&&(i=!1),o=r._getLocalDependency(fi.PublicService,e,i)}o||(o=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===D(e.token)||null!=this.viewContext.viewProviders.get(D(e.token))?e:e.isOptional?o={isValue:!0,value:null}:null)}return o||this.viewContext.errors.push(new Zu("No provider for "+k(e.token),this._sourceSpan)),o},t}(),tc=function(){function t(t,e,n,r){var i=this;this.reflector=t,this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,e.transitiveModule.modules.forEach(function(t){Se([{token:{identifier:t},useClass:t}],fi.PublicService,!0,r,i._errors,i._allProviders)}),Se(e.transitiveModule.providers.map(function(t){return t.provider}).concat(n),fi.PublicService,!1,r,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}var n=[],r=[];return this._transformedProviders.forEach(function(t){t.eager?r.push(t):n.push(t)}),n.concat(r)},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,r=this._allProviders.get(D(t));if(!r)return null;var i=this._transformedProviders.get(D(t));if(i)return i;if(null!=this._seenProviders.get(D(t)))return this._errors.push(new Zu("Cannot instantiate cyclic dependency! "+k(t),r.sourceSpan)),null;this._seenProviders.set(D(t),!0);var o=r.providers.map(function(t){var i=t.useValue,o=t.useExisting,s=void 0;if(null!=t.useExisting){var a=n._getDependency({token:t.useExisting},e,r.sourceSpan);null!=a.token?o=a.token:(o=null,i=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}return be(t,{useExisting:o,useValue:i,deps:s})});return i=we(r,{eager:e,providers:o}),this._transformedProviders.set(D(t),i),i},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=!1);var r=!1;t.isSkipSelf||null==t.token||(D(t.token)===this.reflector.resolveExternalReference(Fu.Injector)||D(t.token)===this.reflector.resolveExternalReference(Fu.ComponentFactoryResolver)?r=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(r=!0));var i=t;return t.isSelf&&!r&&(t.isOptional?i={isValue:!0,value:null}:this._errors.push(new Zu("No provider for "+k(t.token),n))),i},t}(),ec=function(){function t(){}return t.prototype.hasProperty=function(t,e,n){},t.prototype.hasElement=function(t,e){},t.prototype.securityContext=function(t,e,n){},t.prototype.allKnownElementNames=function(){},t.prototype.getMappedPropName=function(t){},t.prototype.getDefaultComponentElementName=function(){},t.prototype.validateProperty=function(t){},t.prototype.validateAttribute=function(t){},t.prototype.normalizeAnimationStyleProperty=function(t){},t.prototype.normalizeAnimationStyleValue=function(t,e,n){},t}(),nc=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),rc=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,ic=/\/\*[\s\S]+?\*\//g,oc=/^([^:/?#]+):/,sc=".",ac="attr",uc="class",cc="style",lc="animate-",pc={};pc.DEFAULT=0,pc.LITERAL_ATTR=1,pc.ANIMATION=2,pc[pc.DEFAULT]="DEFAULT",pc[pc.LITERAL_ATTR]="LITERAL_ATTR",pc[pc.ANIMATION]="ANIMATION";var hc=function(){function t(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r}return Object.defineProperty(t.prototype,"isLiteral",{get:function(){return this.type===pc.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===pc.ANIMATION},enumerable:!0,configurable:!0}),t}(),fc=function(){function t(t,e,n,r,i){var o=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this._targetErrors=i,this.pipesByName=new Map,this._usedPipes=new Map,r.forEach(function(t){return o.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,n){var r=this;if(t.hostProperties){var i=[];return Object.keys(t.hostProperties).forEach(function(e){var o=t.hostProperties[e];"string"==typeof o?r.parsePropertyBinding(e,o,!0,n,[],i):r._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",n)}),i.map(function(t){return r.createElementPropertyAst(e,t)})}return null},t.prototype.createDirectiveHostEventAsts=function(t,e){var n=this;if(t.hostListeners){var r=[];return Object.keys(t.hostListeners).forEach(function(i){var o=t.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,e,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",e)}),r}return null},t.prototype.parseInterpolation=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseInterpolation(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),this._checkPipes(r,e),r}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.parseInlineTemplateBinding=function(t,e,n,r,i,o){for(var s=this._parseTemplateBindings(t,e,n),a=0;a1)if(o[0]==ac){i=o[1],this._validatePropertyOrAttributeName(i,e.sourceSpan,!0),s=De(this._schemaRegistry,t,i,!0);var a=i.indexOf(":");if(a>-1){var u=i.substring(0,a),l=i.substring(a+1);i=c(u,l)}r=mi.Attribute}else o[0]==uc?(i=o[1],r=mi.Class,s=[ti.SecurityContext.NONE]):o[0]==cc&&(n=o.length>2?o[2]:null,i=o[1],r=mi.Style,s=[ti.SecurityContext.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(e.name),s=De(this._schemaRegistry,t,i,!1),r=mi.Property,this._validatePropertyOrAttributeName(i,e.sourceSpan,!1)),new ii(i,r,s[0],e.expression,n,e.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,i){ke(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,i)):this._parseEvent(t,e,n,r,i)},t.prototype._parseAnimationEvent=function(t,e,n,r){var i=f(t,[t,""]),o=i[0],s=i[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,n);r.push(new oi(o,null,s,a,n));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+o+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+o+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(t,e,n,r,i){var o=h(t,[null,t]),s=o[0],a=o[1],u=this._parseAction(e,n);r.push([t,u.source]),i.push(new oi(a,s,null,u,n))},t.prototype._parseAction=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseAction(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),!r||r.ast instanceof $i?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,e),r)}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Us.ERROR),this._targetErrors.push(new Ws(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){for(var n=0,r=t;n element is deprecated. Use instead",Wc="The template attribute is deprecated. Use an ng-template element instead.",zc={},Bc=new ti.InjectionToken("TemplateTransforms"),qc=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return $r.a(e,t),e}(Ws),Jc=function(){function t(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n}return t}(),Gc=function(){function t(t,e,n,r,i,o,s){this._config=t,this._reflector=e,this._exprParser=n,this._schemaRegistry=r,this._htmlParser=i,this._console=o,this.transforms=s}return t.prototype.parse=function(t,e,n,r,i,o,s){var a=this.tryParse(t,e,n,r,i,o,s),u=a.errors.filter(function(t){return t.level===Us.WARNING}).filter(Ae([Wc,Uc])),c=a.errors.filter(function(t){return t.level===Us.ERROR});if(u.length>0&&this._console.warn("Template parse warnings:\n"+u.join("\n")),c.length>0){throw v("Template parse errors:\n"+c.join("\n"),c)}return{template:a.templateAst,pipes:a.usedPipes}},t.prototype.tryParse=function(t,e,n,r,i,o,s){var a=this._htmlParser.parse(e,o,!0,this.getInterpolationConfig(t));return s||(a=ye(a)),this.tryParseHtml(this.expandHtml(a),t,n,r,i)},t.prototype.tryParseHtml=function(t,e,n,i,o){var s,a=t.errors,u=[];if(t.rootNodes.length>0){var c=je(n),l=je(i),p=new Xu(this._reflector,e),h=void 0;e.template&&e.template.interpolation&&(h={start:e.template.interpolation[0],end:e.template.interpolation[1]});var f=new fc(this._exprParser,h,this._schemaRegistry,l,a),d=new Qc(this._reflector,this._config,p,c,f,this._schemaRegistry,o,a);s=lt(d,t.rootNodes,$c),a.push.apply(a,p.errors),u.push.apply(u,f.getUsedPipes())}else s=[];return this._assertNoReferenceDuplicationOnTemplate(s,a),a.length>0?new Jc(s,u,a):(this.transforms&&this.transforms.forEach(function(t){s=r(t,s)}),new Jc(s,u,a))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=_e(t.rootNodes);n.push.apply(n,r.errors),t=new ia(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return Es.fromArray(t.template.interpolation)},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var n=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var r=t.name;if(n.indexOf(r)<0)n.push(r);else{var i=new qc('Reference "#'+r+'" is defined several times',t.sourceSpan,Us.ERROR);e.push(i)}})})},t}();Gc.decorators=[{type:z}],Gc.ctorParameters=function(){return[{type:Gi},{type:Ji},{type:Is},{type:ec},{type:ju},{type:ti["ɵConsole"]},{type:Array,decorators:[{type:ti.Optional},{type:ti.Inject,args:[Bc]}]}]};var Qc=function(){function t(t,e,n,r,i,o,s,a){var u=this;this.reflector=t,this.config=e,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=o,this._schemas=s,this._targetErrors=a,this.selectorMatcher=new Ci,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(t,e){var n=Ei.parse(t.selector);u.selectorMatcher.addSelectables(n,t),u.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(t,e){return null},t.prototype.visitExpansionCase=function(t,e){return null},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Vc),r=me(t.value),i=this._bindingParser.parseInterpolation(r,t.sourceSpan);return i?new ni(i,n,t.sourceSpan):new ei(r,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new ri(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitElement=function(t,e){var n=this,r=this.contentQueryStartId,i=t.name,o=Oe(t);if(o.type===Tc.SCRIPT||o.type===Tc.STYLE)return null;if(o.type===Tc.STYLESHEET&&Ce(o.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,m=[],y=Fe(t,this.config.enableLegacyTemplate,function(t,e){return n._reportError(t,e,Us.WARNING)});t.attrs.forEach(function(t){var e,r,i=n._parseAttr(y,t,s,a,l,u,c),o=n._normalizeAttributeName(t.name);n.config.enableLegacyTemplate&&o==jc?(n._reportError(Wc,t.sourceSpan,Us.WARNING),e=t.value):o.startsWith(Hc)&&(e=t.value,r=o.substring(Hc.length)+":");var _=null!=e;_&&(d&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),d=!0,n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,f)),i||_||(m.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var _=Ie(i,s),v=this._parseDirectives(this.selectorMatcher,_),g=v.directives,b=v.matchElement,w=[],M=new Set,S=this._createDirectiveAsts(y,t.name,g,a,u,t.sourceSpan,w,M),T=this._createElementPropertyAsts(t.name,a,M),x=e.isTemplateElement||d,E=new $u(this.providerViewContext,e.providerContext,x,S,m,w,y,r,t.sourceSpan),C=lt(o.nonBindable?tl:this,t.children,Xc.create(y,S,y?e.providerContext:E));E.afterElement();var L,k=null!=o.projectAs?Ei.parse(o.projectAs)[0]:_,D=e.findNgContentIndex(k);if(o.type===Tc.NG_CONTENT)t.children&&!t.children.every(Re)&&this._reportError(" element cannot have content.",t.sourceSpan),L=new di(this.ngContentCount++,d?null:D,t.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(S,l),this._assertNoComponentsNorElementBindingsOnTemplate(S,T,t.sourceSpan),L=new ci(m,l,w,c,E.transformedDirectiveAsts,E.transformProviders,E.transformedHasViewContainer,E.queryMatches,C,d?null:D,t.sourceSpan);else{this._assertElementExists(b,t),this._assertOnlyOneComponent(S,t.sourceSpan);var O=d?null:e.findNgContentIndex(k);L=new ui(i,m,T,l,w,E.transformedDirectiveAsts,E.transformProviders,E.transformedHasViewContainer,E.queryMatches,C,d?null:O,t.sourceSpan,t.endSourceSpan||null)}if(d){var P=this.contentQueryStartId,A=Ie(Rc,h),Y=this._parseDirectives(this.selectorMatcher,A).directives,N=new Set,I=this._createDirectiveAsts(!0,t.name,Y,p,[],t.sourceSpan,[],N),R=this._createElementPropertyAsts(t.name,p,N);this._assertNoComponentsNorElementBindingsOnTemplate(I,R,t.sourceSpan);var j=new $u(this.providerViewContext,e.providerContext,e.isTemplateElement,I,[],[],!0,P,t.sourceSpan);j.afterElement(),L=new ci([],[],[],f,j.transformedDirectiveAsts,j.transformProviders,j.transformedHasViewContainer,j.queryMatches,[L],D,t.sourceSpan)}return L},t.prototype._parseAttr=function(t,e,n,r,i,o,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(Ec),p=!1;if(null!==l)if(p=!0,null!=l[Cc])this._bindingParser.parsePropertyBinding(l[Ac],u,!1,c,n,r);else if(l[Lc])if(t){var h=l[Ac];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on template elements.',c);else if(l[kc]){var h=l[Ac];this._parseReference(h,u,c,o)}else l[Dc]?this._bindingParser.parseEvent(l[Ac],u,c,n,i):l[Oc]?(this._bindingParser.parsePropertyBinding(l[Ac],u,!1,c,n,r),this._parseAssignmentEvent(l[Ac],u,c,n,i)):l[Pc]?this._bindingParser.parseLiteralAttr(a,u,c,n,r):l[Yc]?(this._bindingParser.parsePropertyBinding(l[Yc],u,!1,c,n,r),this._parseAssignmentEvent(l[Yc],u,c,n,i)):l[Nc]?this._bindingParser.parsePropertyBinding(l[Nc],u,!1,c,n,r):l[Ic]&&this._bindingParser.parseEvent(l[Ic],u,c,n,i);else p=this._bindingParser.parsePropertyInterpolation(a,u,c,n,r);return p||this._bindingParser.parseLiteralAttr(a,u,c,n,r),p},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new ai(t,e,n))},t.prototype._parseReference=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new Zc(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,i){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,i)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),i=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:i}},t.prototype._createDirectiveAsts=function(t,e,n,r,i,o,s,a){var u=this,c=new Set,l=null,p=n.map(function(t){var n=new Vs(o.start,o.end,"Directive "+S(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,n);h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,n);u._createDirectivePropertyAsts(t.inputs,r,p,a),i.forEach(function(e){(0===e.value.length&&t.isComponent||e.isReferenceToDirective(t))&&(s.push(new si(e.name,he(t.type.reference),e.sourceSpan)),c.add(e.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new pi(t,p,h,f,d,n)});return i.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var n=null;t&&(n=fe(u.reflector,Fu.TemplateRef)),s.push(new si(e.name,n,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var i=new Map;e.forEach(function(t){var e=i.get(t.name);e&&!e.isLiteral||i.set(t.name,t)}),Object.keys(t).forEach(function(e){var o=t[e],s=i.get(o);s&&(r.add(s.name),He(s.expression)||n.push(new li(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,i=[];return e.forEach(function(e){e.isLiteral||n.has(e.name)||i.push(r._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,i)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return S(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+n.join(","),e)},t.prototype._assertElementExists=function(t,e){var n=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n";r+="1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n",n.indexOf("-")>-1?r+="2. If '"+n+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":r+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(r,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),n),e.forEach(function(t){r._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',n)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,r=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var n=t.directive.outputs[e];r.add(n)})}),e.forEach(function(t){null==t.target&&r.has(t.name)||n._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var n=this;return e.filter(function(e){if(e.type===mi.Property&&!n._schemaRegistry.hasProperty(t,e.name,n._schemas)){var r="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?r+="\n1. If '"+e.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":t.indexOf("-")>-1&&(r+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module.\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),n._reportError(r,e.sourceSpan)}return!He(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Us.ERROR),this._targetErrors.push(new Ws(e,t,n))},t}(),Kc=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=Oe(t);if(n.type===Tc.SCRIPT||n.type===Tc.STYLE||n.type===Tc.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),i=Ie(t.name,r),o=e.findNgContentIndex(i),s=lt(this,t.children,$c);return new ui(t.name,lt(this,t.attrs),[],[],[],[],[],!1,[],s,o,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new ri(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Vc);return new ei(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),Zc=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.isReferenceToDirective=function(t){return-1!==Ye(t.exportAs).indexOf(this.value)},t}(),Xc=function(){function t(t,e,n,r){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=r}return t.create=function(e,n,r){var i=new Ci,o=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u0?e[0]:null},t}(),$c=new Xc(!0,new Ci,null,null),tl=new Kc,el=function(){function t(){}return t.prototype.get=function(t){return""},t}(),nl={provide:ti.PACKAGE_ROOT_URL,useValue:"/"},rl=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var n=e;null!=t&&t.length>0&&(n=Je(t,n));var r=ze(n),i=this._packagePrefix;if(null!=i&&null!=r&&"package"==r[ol.Scheme]){var o=r[ol.Path];return i=i.replace(/\/+$/,""),o=o.replace(/^\/+/,""),i+"/"+o}return n},t}();rl.decorators=[{type:z}],rl.ctorParameters=function(){return[{type:void 0,decorators:[{type:ti.Inject,args:[ti.PACKAGE_ROOT_URL]}]}]};var il=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),ol={};ol.Scheme=1,ol.UserInfo=2,ol.Domain=3,ol.Port=4,ol.Path=5,ol.QueryData=6,ol.Fragment=7,ol[ol.Scheme]="Scheme",ol[ol.UserInfo]="UserInfo",ol[ol.Domain]="Domain",ol[ol.Port]="Port",ol[ol.Path]="Path",ol[ol.QueryData]="QueryData",ol[ol.Fragment]="Fragment";/** * @license * Copyright Google Inc. All Rights Reserved. * diff --git a/ArkBot/WebApp/src/app/app.component.html b/ArkBot/WebApp/src/app/app.component.html index fb9465c..80f7621 100644 --- a/ArkBot/WebApp/src/app/app.component.html +++ b/ArkBot/WebApp/src/app/app.component.html @@ -3,7 +3,7 @@

-
Logged in as {{dataService.Servers.User.Name}} | Logout | Login | Theme: Light | Dark
+
Logged in as {{dataService.Servers.User.Name}} | Logout | Login | Admin Options | Theme: Light | Dark
@@ -29,9 +29,17 @@

Log In

×

Admin Options

+
+
+ These setting are configured in the application configuration editor/config.json but can be generated and previewed here. +
+
+
+ +
- \ No newline at end of file + \ No newline at end of file diff --git a/ArkBot/WebApp/src/app/app.component.ts b/ArkBot/WebApp/src/app/app.component.ts index f415971..92b6908 100644 --- a/ArkBot/WebApp/src/app/app.component.ts +++ b/ArkBot/WebApp/src/app/app.component.ts @@ -25,6 +25,8 @@ export class AppComponent implements OnInit, OnDestroy { }; public showLogin: boolean = false; public showAdmin: boolean = false; + public previewOverrideMenuOption: boolean = false; + public previewMenuName: string; public currentUrl: string = "/"; private serversUpdatedSubscription: any; private serversUpdatedBefore: boolean = false; @@ -61,6 +63,9 @@ export class AppComponent implements OnInit, OnDestroy { this.doc.getElementsByTagName("head")[0].appendChild(l); } + if (typeof config !== 'undefined' && config.webapp !== 'undefined' && config.webapp.topMenu === true) this.previewMenuName = "Sidebar Menu"; + else this.previewMenuName = "Top Menu"; + breadcrumbService.addFriendlyNameForRoute('/accessdenied', 'Access Denied'); breadcrumbService.addFriendlyNameForRoute('/connectionerror', 'Connection error'); breadcrumbService.hideRoute('/player'); @@ -112,7 +117,8 @@ export class AppComponent implements OnInit, OnDestroy { getBodyClasses(): string { let classes = this.getTheme(); - if (typeof config !== 'undefined' && config.webapp !== 'undefined' && config.webapp.topMenu === true) + let topmenu = typeof config !== 'undefined' && config.webapp !== 'undefined' && config.webapp.topMenu === true; + if (topmenu !== this.previewOverrideMenuOption) classes += " topmenu"; return classes; } @@ -142,6 +148,12 @@ export class AppComponent implements OnInit, OnDestroy { this.showLogin = false; } + openAdminOptions(event: any) { + this.showAdmin = true; + event.stopPropagation(); + event.preventDefault(); + } + openCustomTheme(event: any, customTheme: any): void { event.stopPropagation(); event.preventDefault(); diff --git a/ArkBot/WebApp/src/app/custom-theme/custom-theme.component.html b/ArkBot/WebApp/src/app/custom-theme/custom-theme.component.html index 456790f..6ae0561 100644 --- a/ArkBot/WebApp/src/app/custom-theme/custom-theme.component.html +++ b/ArkBot/WebApp/src/app/custom-theme/custom-theme.component.html @@ -1,4 +1,4 @@ -