{#if $userIdentity.id === -2 || user === undefined} {:else if $userIdentity.id !== -1}
{#if shouldFetchData} {#key fetchKey} {#await selectedYear !== currentYear || useFullActivityHistory || new Date().getMonth() <= 6 ? fullActivityHistory(user, $userIdentity, selectedYear, disableLoopingActivityCounter) : getActivityHistory($userIdentity)} {:then activities} {#await wrapped(user, $userIdentity, selectedYear, false, disableLoopingActivityCounter)} {:then wrapped} { update().then(updateWidth).catch(updateWidth); }} />
{#if !disableActivityHistory && activityHistoryPosition === 'TOP' && activities.length > 0 && selectedYear === currentYear} {/if}
{#if !disableActivityHistory && activityHistoryPosition === 'BELOW_TOP' && activities.length > 0 && selectedYear === currentYear} {/if} {#if topMedia && topGenresTags && ((topMedia.topGenreMedia && topMedia.genres.length > 0) || (topMedia.topTagMedia && topMedia.tags.length > 0))} {/if} {#if !disableActivityHistory && activityHistoryPosition === 'ORIGINAL' && activities.length > 0 && selectedYear === currentYear} {/if} {#if watermark} {/if}
{:catch} {/await} {:catch} {#if useFullActivityHistory}

{$locale().tools.wrapped?.multiAttemptPrefix}many{$locale().tools.wrapped ?.multiAttemptSuffix}

{/if}
{/await} {/key} {:else} {/if}
{#if generated}
{$locale().tools.wrapped?.saveImageInstruction}
{/if}
{#if generated} {/if}
{#if !shouldFetchData} {:else if needsRefetch} {/if}
{$locale().tools.wrapped?.display} {$locale().tools.wrapped?.showWatermark}
{$locale().tools.wrapped?.bgTransparency}
{$locale().tools.wrapped?.lightMode}
{$locale().tools.wrapped?.showGenresTags}
{$locale().tools.wrapped?.hideActivityHistory}
{$locale().tools.wrapped?.showRatedPercentages}
{$locale().tools.wrapped?.showGenreTagPercentages}
{$locale().tools.wrapped?.showOngoingPrevious}
{$locale().tools.wrapped?.activityHistoryPosition}
{$locale().tools.wrapped?.highestRatedCount}
{$locale().tools.wrapped?.highestGenreTagCount}
{$locale().tools.wrapped?.widthAdjustment}
{$locale().tools.wrapped?.calculation} {$locale().tools.wrapped?.enableFullYear}
{$locale().tools.wrapped?.calculateForYear}
{ dateTicked = true; update(); }} /> {$locale().tools.wrapped?.startDateFilter}
{ dateTicked = true; update(); }} /> {$locale().tools.wrapped?.endDateFilter}
{$locale().tools.wrapped?.animeMangaSort}
{$locale().tools.wrapped?.genreTagSort}
{$locale().tools.wrapped?.includeMusic}
{$locale().tools.wrapped?.includeRewatches}
{$locale().tools.wrapped?.includeSpecials}
{$locale().tools.wrapped?.includeOvas}
{$locale().tools.wrapped?.includeMovies}
{$locale().tools.wrapped?.excludeUnrated}
{ e.key === 'Enter' && submitExcludedKeywords(); }} /> {$locale().tools.wrapped?.excludedKeywords}
{$locale().tools.wrapped?.excludedHint}
{$locale().tools.wrapped?.advanced} {$locale().tools.wrapped?.disableDetailedActivity}
{:else} {/if}