import{d as u,c as h,j as n,o as i,F as g,I as f,B as r,i as v,t as y,C as k}from"./index-BX34W763.js";import{n as x}from"./ReferenceContentLoader-D7Cnl9bC.js";const c=500,s=100,$=u({__name:"ScalarAsciiArt",props:{art:{},animate:{type:Boolean}},setup(m){const p=m,e=h(()=>p.art.split(`
`)),d=(a,o)=>({animationDuration:`${a*s}ms, ${c}ms`,animationTimingFunction:`steps(${a}), step-end`,animationDelay:`${o*s}ms, 0ms`,animationIterationCount:`1, ${((e.value?.length??0)+(e.value?.[e.value?.length-1]?.length??0)+5)*s/c}`});return(a,o)=>(i(),n("div",{"aria-hidden":"true",class:k(["ascii-art font-code flex flex-col items-start text-[6px] leading-[7px]",{"ascii-art-animate":a.animate}]),role:"presentation",inert:""},[(i(!0),n(g,null,f(e.value,(t,l)=>(i(),n("span",{key:l,class:"inline-block",style:r({width:`calc(${t.length+1}ch)`})},[v("span",{class:"inline-block whitespace-pre overflow-hidden",style:r(d(t.length,l))},y(t),5)],4))),128))],2))}}),_=x($,[["__scopeId","data-v-69ebd973"]]);export{_ as i};
