1import{r as e}from"./rolldown-runtime-hePW80VL.js";import{o as t,s as n}from"./vendor-motion-CxjGXqUK.js";import{_ as r,f as i,i as a,m as o,r as s,t as c,u as l}from"./VLVKit.tokens-DjahiYCw.js";import"./VLVKit-Dqk7IpWH.js";var u=e(n(),1),d=t();function f(e){if(e&&/\.png($|\?)/i.test(e))return e.replace(/\.png($|\?)/i,`.webp$1`)}function p({title:e,imprint:t=`VLV`,author:n,coverImage:r,width:i=300,depth:o=26,priority:l=!1,shadow:p=`drop-shadow(40px 40px 50px rgba(0,0,0,0.55))`}){let[h,g]=(0,u.useState)(!!r),_=Math.round(i*1.33),v=!!r&&h,y=v?f(r):void 0;return(0,d.jsx)(`div`,{className:`vlv-book-3d`,style:{width:i+o+60,height:_+80,perspective:1800,perspectiveOrigin:`50% 50%`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,d.jsxs)(`div`,{style:{position:`relative`,width:i,height:_,transformStyle:`preserve-3d`,transform:`rotateY(-24deg) rotateX(4deg)`,filter:p===`none`?void 0:p},children:[(0,d.jsx)(`div`,{style:{position:`absolute`,inset:0,borderRadius:`2px 6px 6px 2px`,overflow:`hidden`,background:v?`#0a0a0a`:s,border:`1px solid ${a}`,backfaceVisibility:`hidden`},children:v?(0,d.jsxs)(`picture`,{children:[y&&(0,d.jsx)(`source`,{srcSet:y,type:`image/webp`}),(0,d.jsx)(`img`,{src:r,alt:``,...l?{fetchPriority:`high`,loading:`eager`}:{loading:`lazy`},decoding:`async`,onError:()=>g(!1),style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})]}):(0,d.jsx)(m,{title:e,imprint:t,author:n})}),(0,d.jsx)(`div`,{"aria-hidden":!0,style:{position:`absolute`,top:0,left:0,width:o,height:`100%`,transform:`translateX(-${o/2}px) rotateY(-90deg)`,transformOrigin:`right center`,background:`linear-gradient(180deg, ${c} 0%, #a8c52e 100%)`,boxShadow:`inset -2px 0 4px rgba(0,0,0,0.3), inset 2px 0 4px rgba(0,0,0,0.15)`}}),(0,d.jsx)(`div`,{"aria-hidden":!0,style:{position:`absolute`,top:3,right:-o/2,width:o,height:`calc(100% - 6px)`,transform:`rotateY(90deg)`,transformOrigin:`left center`,background:`repeating-linear-gradient(90deg, #ECECE0 0, #ECECE0 1px, #F5F5EA 1px, #F5F5EA 3px)`}}),(0,d.jsx)(`div`,{"aria-hidden":!0,style:{position:`absolute`,top:-o/2,left:0,width:`100%`,height:o,transform:`rotateX(90deg)`,transformOrigin:`center bottom`,background:`#ECECE0`}})]})})}function m({title:e,imprint:t,author:n}){return(0,d.jsxs)(`div`,{style:{width:`100%`,height:`100%`,background:`linear-gradient(160deg, ${r} 0%, #0d0d0d 100%)`,color:`#FAFAF7`,fontFamily:o,padding:`28px 24px 24px`,display:`flex`,flexDirection:`column`,justifyContent:`space-between`,position:`relative`},children:[(0,d.jsx)(`div`,{style:{fontFamily:l,fontSize:10,fontWeight:700,letterSpacing:`0.22em`,textTransform:`uppercase`,color:i,background:c,alignSelf:`flex-start`,padding:`4px 8px`,borderRadius:3,lineHeight:1},children:t}),(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`h2`,{style:{fontFamily:o,fontSize:26,fontWeight:800,letterSpacing:`-0.025em`,lineHeight:1.08,color:`#FAFAF7`,margin:0},children:e}),(0,d.jsx)(`div`,{"aria-hidden":!0,style:{marginTop:18,height:2,width:36,background:c}}),n&&(0,d.jsx)(`div`,{style:{fontFamily:`'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace`,fontSize:10,fontWeight:600,letterSpacing:`0.18em`,textTransform:`uppercase`,color:`#A1A1AA`,marginTop:14},children:n})]})]})}export{p as t};
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.