PageSourceSearch

https://time-dilation.vercel.app/_next/static/chunks/175.c206881c6ea05c18.js

js time-dilation.vercel.app collected 2026-10-03 07:52:51 UTC 2,187 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[175],{1175:function(e,r,s){s.r(r);var l=s(7437),t=s(2265);r.default=e=>{let{birthDate:r,currentDate:s,lifeExpectancy:m,onReady:a}=e;(0,t.useEffect)(()=>{a&&a()},[r,s,m,a]);let d=((e,r)=>{let s=Math.floor((r.getTime()-e.getTime())/864e5),l=0;for(let s=e.getFullYear();s<=r.getFullYear();s++)s%4==0&&(s%100!=0||s%400==0)&&l++,l++;return Math.floor(s/7)-Math.floor(l/7)})(r,s),i=e=>{let r="w-[0.25rem] h-[0.25rem] md:w-3 md:h-3 m-[0.0625rem] rounded-[0.075rem] md:rounded-sm ";return e<d?r+="bg-primary":r+="bg-secondary",(0,l.jsx)("div",{className:r},e)},c=e=>{let r=Array.from({length:52},(r,s)=>i(52*e+s));return(0,l.jsxs)("div",{className:"flex items-center",children:[e%5==0&&(0,l.jsx)("div",{className:"md:mr-2 text-[0.25rem] md:text-xs text-gray-900 md:text-muted-foreground w-3 md:w-8 text-center md:text-right",children:e}),e%5!=0&&(0,l.jsx)("div",{className:"w-3 md:w-8 md:mr-2"}),(0,l.jsx)("div",{className:"flex",children:r})]},e)},x=Array.from({length:m},(e,r)=>c(r));return(0,l.jsxs)("div",{className:"w-full flex flex-col items-center",children:[(0,l.jsxs)("div",{className:"flex items-center mb-2",children:[(0,l.jsx)("h2",{className:"mr-2 text-[0.65rem] md:text-base ml-12",children:"Week of the Year"}),(0,l.jsxs)("svg",{className:"w-16 md:w-20 h-4",viewBox:"0 0 80 16",children:[(0,l.jsx)("line",{x1:"0",y1:"8",x2:"74",y2:"8",stroke:"currentColor",strokeWidth:"2"}),(0,l.jsx)("path",{d:"M74,8 L68,4 L68,12 Z",fill:"currentColor"})]})]}),(0,l.jsxs)("div",{className:"flex w-full justify-center",children:[(0,l.jsx)("div",{className:"flex-shrink-0",children:(0,l.jsxs)("div",{className:"flex flex-col items-center mt-8",children:[(0,l.jsx)("h2",{className:"mb-1 mt-32 md:mt-40 writing-mode-vertical transform rotate-180 text-[0.65rem] md:text-base",children:"Age"}),(0,l.jsxs)("svg",{className:"w-4 h-24 md:h-48",viewBox:"0 0 16 192",children:[(0,l.jsx)("line",{x1:"8",y1:"0",x2:"8",y2:"186",stroke:"currentColor",strokeWidth:"2"}),(0,l.jsx)("path",{d:"M8,186 L4,180 L12,180 Z",fill:"currentColor"})]})]})}),(0,l.jsx)("div",{className:"inline-flex flex-col overflow-x-auto ml-1",children:x})]})]})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.