Loading
function(e,t,n){"use strict";n(321073);var i=n(35039),r=n(675970),a=n(499979),s=n(155718),l=n(7584),o=n(811091),d=n(835517),c=n(989238),u=n(373955);n(399667);var _=n(817379);n(142617);var E=n(407905),A=n(532294),f=n(350363),h=n(852717),I=n(792996);let p=[a.pJ.HOURS,a.pJ.MINUTES],m=new Set([r.Q.DEFAULT,r.Q.CHARACTER_ONLY]),g=new Set([r.Q.DEFAULT,r.Q.STATS_ONLY]),T=[128,256,512,768,1024],S=Math.max(...T);n.d(t,{},{Go:function(e,t,n){let i,r,a;return{version:A.wk.V2026,character:m.has(e)?t??void 0:void 0,stats:g.has(e)&&null!=n?(i=n.guilds?.guilds[0],r=n.emojis?.emojis[0],a=n.games?.games[0]?.game,{totalVoiceMinutes:n.voice?.totalVoiceMinutes??0,numMessagesSent:n.messages?.numMessagesSent??0,numEmojisSent:n.emojis?.numEmojisSent??0,totalDaysPlayed:n.games?.totalDaysPlayed??0,topEmoji:null!=r?{emojiId:r.id,emojiName:r.name}:void 0,topGuild:null!=i?{guildId:i.guild.id,guildName:i.guild.name,guildIcon:i.guild.icon??void 0}:void 0,topGuildNumDaysInteracted:i?.numDaysInteracted??0,topGame:null!=a?{applicationId:a.id,applicationName:a.name,applicationImageId:a.iconHash}:void 0,powerLevel:n.power?.powerLevel??0,powerLevelPercentile:n.power?.powerLevelPercentile??0}):void 0,cardColorPalette:(0,u.o)(t)}},R8:function(e){var t;let n;return{powerLevel:(t=e.powerLevel,new Intl.NumberFormat(I.intl.currentLocale,{notation:"compact",compactDisplay:"short"}).format(t)),powerLevelUnits:Math.min(Math.max(Math.round(e.powerLevelPercentile/100*6),1),5),voice:{text:(n=Math.round(e.totalVoiceMinutes))>0?function(e){let{unit:t,time:n}=(0,a.$l)(e,p),i=Math.round(n??0);return t===a.pJ.HOURS?I.intl.formatToPlainString(h.default.CQfBsB,{hours:i}):I.intl.formatToPlainString(h.default.yRfTht,{minutes:i})}(n):I.intl.formatToPlainString(h.default.x7PkHm,{minutes:n}),accessibilityLabel:I.intl.formatToPlainString(h.default.lw35aH,{duration:(0,c.GM)(n)})},messages:{text:e.numMessagesSent>0?e.numMessagesSent.toLocaleString(I.intl.currentLocale):I.intl.formatToPlainString(h.default.foKBCN,{count:e.numMessagesSent}),accessibilityLabel:I.intl.formatToPlainString(h.default.IdRUAC,{count:e.numMessagesSent})},topGuildDaysInteracted:function(e){if(null==e.topGuild){var t;return{text:t=I.intl.string(h.default.GultYJ),accessibilityLabel:t}}return{text:I.intl.formatToPlainString(h.default.cQXIkj,{days:e.topGuildNumDaysInteracted}),accessibilityLabel:I.intl.formatToPlainString(h.default.MpSH8v,{days:e.topGuildNumDaysInteracted})}}(e),topGuildName:function(e){if(null!=e.topGuild)return{text:e.topGuild.guildName,accessibilityLabel:I.intl.formatToPlainString(h.default["9UTJ+t"],{guildName:e.topGuild.guildName})}}(e),reactions:{text:e.numEmojisSent>0?e.numEmojisSent.toLocaleString(I.intl.currentLocale):I.intl.formatToPlainString(h.default.RHYx1k,{count:e.numEmojisSent}),accessibilityLabel:I.intl.formatToPlainString(h.default["36qpUG"],{count:e.numEmojisSent})},topEmojiName:function(e){if(!(e.numEmojisSent<=0)&&null!=e.topEmoji)return{text:null==e.topEmoji.emojiId?l.Ay.convertSurrogateToName(e.topEmoji.emojiName):`:${e.topEmoji.emojiName}:`,accessibilityLabel:I.intl.formatToPlainString(h.default.CcBo8C,{emojiName:e.topEmoji.emojiName})}}(e),daysPlayed:{text:e.totalDaysPlayed>0?I.intl.formatToPlainString(h.default.cQXIkj,{days:e.totalDaysPlayed}):I.intl.string(h.default.mg1NPe),accessibilityLabel:I.intl.formatToPlainString(h.default.LYcKX7,{days:e.totalDaysPlayed})},topGameName:function(e){if(!(e.totalDaysPlayed<=0)&&null!=e.topGame)return{text:e.topGame.applicationName,accessibilityLabel:I.intl.formatToPlainString(h.default.kLqpNC,{gameName:e.topGame.applicationName})}}(e),topEmoji:e.topEmoji,topGuild:e.topGuild,topGuildAcronymCharacter:null!=e.topGuild?(0,E.oW)(e.topGuild.guildName):void 0,topGame:e.topGame}},_S:function(e){let t=e.components[0];return null==t||t.type!==s.I5.CHECKPOINT_CARD?null:t.checkpointData},b5:function(e){switch(e.version){case A.wk.V2025:return I.intl.string(f.default.goiR2u);case A.wk.V2026:default:return null}},q6:function(e){var t,n;return null==e.character&&null==e.stats?null:{version:e.version,character:null!=e.character?{base:(t=e.character).base,shoes:t.shoes,outfit:t.outfit,face:t.face,hat:t.hat,wearable:t.wearable,aura:t.aura}:void 0,stats:null!=e.stats?{totalVoiceMinutes:(n=e.stats).total_voice_minutes,numMessagesSent:n.num_messages_sent,numEmojisSent:n.num_emojis_sent,totalDaysPlayed:n.total_days_played,topEmoji:null!=n.top_emoji?{emojiId:o.default.isProbablyAValidSnowflake(n.top_emoji.emoji_id)?n.top_emoji.emoji_id:void 0,emojiName:n.top_emoji.emoji_name}:void 0,topGuild:null!=n.top_guild?{guildId:n.top_guild.guild_id,guildName:n.top_guild.guild_name,guildIcon:n.top_guild.guild_icon}:void 0,topGuildNumDaysInteracted:n.top_guild_num_days_interacted,topGame:null!=n.top_game?{applicationId:n.top_game.application_id,applicationName:n.top_game.application_name,applicationImageId:n.top_game.application_image_id}:void 0,powerLevel:n.power_level,powerLevelPercentile:n.power_level_percentile}:void 0,cardColorPalette:e.card_color_palette??i.h.NONE}},vF:function(e,t){let n,i=(n=t*(0,d.A)(),T.find(e=>e>=n)??S),r=[];return(0,_.fA)(e.wearable).forEach(t=>{let n=e[t],a=_.qM[t][n]?.layer;null!=a&&""!==a&&r.push(`${a}?height=${i}&width=${i}&format=webp`)}),r}})}