PageSourceSearch

https://www.hot-factory.jp/assets/index-BXeYqEII.js

js hot-factory.jp collected 2026-10-04 07:35:54 UTC 3,299 bytes, 1 lines download raw bytes

1import{r as f,j as g}from"./jsx-runtime-CysHdCfF.js";import{c as L}from"./clsx-B-dksMZM.js";import{l as _,n as b,o as M,J as k,u as R,p as I,M as j,q as N,r as H,s as h,m as P}from"./easing-CznQith4.js";import{A as q}from"./index-DoqowCpv.js";function D(...t){const e=!Array.isArray(t[0]),n=e?0:-1,o=t[0+n],s=t[1+n],c=t[2+n],a=t[3+n],i=_(s,c,a);return e?i(o):i}function J(t,e,n={}){const o=t.get();let s=null,c=o,a;const i=typeof o=="string"?o.replace(/[\d.-]/g,""):void 0,l=()=>{s&&(s.stop(),s=null),t.animation=void 0},d=()=>{const r=V(t.get()),u=V(c);if(r===u){l();return}const m=s?s.getGeneratorVelocity():t.getVelocity();l(),s=new k({keyframes:[r,u],velocity:m,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:a})},p=()=>{var r;d(),t.animation=s??void 0,(r=t.events.animationStart)==null||r.notify(),s==null||s.then(()=>{var u;t.animation=void 0,(u=t.events.animationComplete)==null||u.notify()})};if(t.attach((r,u)=>{c=r,a=m=>u(x(m,i)),b.postRender(p)},l),M(e)){let r=n.skipInitialAnimation===!0;const u=e.on("change",A=>{r?(r=!1,t.jump(x(A,i),!1)):t.set(x(A,i))}),m=t.on("destroy",u);return()=>{u(),m()}}return l}function x(t,e){return e?t+e:t}function V(t){return typeof t=="number"?t:parseFloat(t)}function y(t){const e=R(()=>I(t)),{isStatic:n}=f.useContext(j);if(n){const[,o]=f.useState(t);f.useEffect(()=>e.on("change",o),[])}return e}function F(t,e){const n=y(e()),o=()=>n.set(e());return o(),N(()=>{const s=()=>b.preRender(o,!1,!0),c=t.map(a=>a.on("change",s));return()=>{c.forEach(a=>a()),H(o)}}),n}function v(t){h.current=[],t();const e=F(h.current,t);return h.current=void 0,e}function T(t,e,n,o){if(typeof t=="function")return v(t);const c=D(e,n,o),a=Array.isArray(t)?S(t,c):S([t],([l])=>c(l)),i=Array.isArray(t)?void 0:t.accelerate;return i&&!i.isTransformed&&typeof e!="function"&&Array.isArray(n)&&(o==null?void 0:o.clamp)!==!1&&(a.accelerate={...i,times:e,keyframes:n,isTransformed:!0}),a}function S(t,e){const n=R(()=>[]);return F(t,()=>{n.length=0;const o=t.length;for(let s=0;s<o;s++)n[s]=t[s].get();return e(n)})}function U(t,e={}){const{isStatic:n}=f.useContext(j),o=()=>M(t)?t.get():t;if(n)return T(o);const s=y(o());return f.useInsertionEffect(()=>J(s,t,e),[s,JSON.stringify(e)]),s}function C(t,e={}){return U(t,{type:"spring",...e})}const E={damping:15,stiffness:150,restDelta:.01};function W(t,e){const n=y(0),o=y(0),s=C(n,E),c=C(o,E);return f.useEffect(()=>{if(!t.current||!e.current)return;const a=e.current,i=({clientX:l,clientY:d})=>{const p=t.current;if(!p)return;const r=a.getBoundingClientRect(),u=p.offsetWidth,m=p.offsetHeight;l>=r.left&&l<=r.right&&d>=r.top&&d<=r.bottom&&b.read(()=>{n.set(l-r.left-u/2),o.set(d-r.top-m/2)})};return window.addEventListener("pointermove",i),()=>window.removeEventListener("pointermove",i)},[t,e,n,o]),{x:s,y:c}}const B="_box_13neq_1",G="_ball_13neq_12",w={box:B,ball:G};function Z({to:t,className:e}){const n=f.useRef(null),o=f.useRef(null),{x:s,y:c}=W(o,n),[a,i]=f.useState(!1);return g.jsx("div",{className:L(w.box,e),ref:n,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:g.jsx(P.div,{ref:o,className:w.ball,style:{x:s,y:c},initial:{opacity:0,scale:0},animate:{opacity:a?1:0,scale:a?1:0},transition:{duration:.3,delay:.4,ease:[0,.71,.2,1.01]},children:g.jsx(q,{to:t,mode:"blend",spin:!0})})})}export{Z as M};

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.