const initSplineAnimation=(t=document)=>{let e=async(e=t)=>{let a=e.querySelectorAll("canvas[data-canvas-type='spline']"),{Application:n}=await import("https://unpkg.com/@splinetool/runtime@latest/build/runtime.js");a.forEach(t=>{let e=t.getAttribute("data-canvas-src"),a=t.getAttribute("data-canvas-id"),r=t.getAttribute("data-canvas-controllers"),l=new n(t);l.load(e).then(()=>{if(window[a]=l,t.classList.add("loaded"),r&&r.length>0){let e=[];try{(e=JSON.parse(r||"[]"))&&e.length>0&&e.forEach(t=>{l.setVariable(t.name,t.value)})}catch(n){console.error("Error parsing data-canvas-controllers. It should be a valid JSON array string.",{error:n,value:r})}}})})},a=async()=>{document.getElementById("spline-js"),await e()},n=t.querySelectorAll("canvas[data-canvas-type='spline']");if(n&&n.length>0){let r=!1;n.forEach(t=>{t.getAttribute("data-canvas-smart-lazy-load")&&(r=!0)}),r?(document.body.addEventListener("mouseover",a,{once:!0}),document.body.addEventListener("touchmove",a,{once:!0}),window.addEventListener("scroll",a,{once:!0}),document.body.addEventListener("keydown",a,{once:!0})):a()}};initSplineAnimation();