PageSourceSearch

https://aiploya.lovable.app/assets/use-spring-B2DXGObC.js

js aiploya.lovable.app collected 2026-10-03 03:20:18 UTC 862 bytes, 1 lines download raw bytes

1import{r}from"./vendor-react-CFJRxGiR.js";import{M as x,u as l,o as m,q as A,f as C,k as M,J as R}from"./proxy-Byd2lrQq.js";import{a as h}from"./use-transform-BaSnMeuc.js";function k(t,n={}){const{isStatic:S}=r.useContext(x),a=r.useRef(null),o=l(()=>m(t)?t.get():t),i=l(()=>typeof o=="string"?o.replace(/[\d.-]/g,""):void 0),e=h(o),u=r.useRef(o),c=r.useRef(A),d=()=>{f(),a.current=new R({keyframes:[y(e.get()),y(u.current)],velocity:e.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:c.current})},f=()=>{a.current&&a.current.stop()};return r.useInsertionEffect(()=>e.attach((s,p)=>S?p(s):(u.current=s,c.current=V=>p(g(V,i)),C.postRender(d),e.get()),f),[JSON.stringify(n)]),M(()=>{if(m(t))return t.on("change",s=>e.set(g(s,i)))},[e,i]),e}function g(t,n){return n?t+n:t}function y(t){return typeof t=="number"?t:parseFloat(t)}export{k as u};

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.