(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{splitText:()=>s});let n=()=>{};function o(e,t){const n=document.createElement("span");return e&&(n.className=e),void 0!==t&&(n.dataset.index=t.toString()),n.style.display="inline-block",n}function l(e,t,n,l){const s=o(n,l);return s.textContent=t,e.appendChild(s),s}function s(e,{splitBy:t=" ",charClass:s="split-char",wordClass:r="split-word",lineClass:i="split-line"}={}){const[p]=function(e,t,n){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document;const n=t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e);n(Boolean(p),"Element not found");const a=p.textContent||"";p.setAttribute("aria-label",a),p.textContent="";const c={chars:[],words:[],lines:[]},d=a.split(t),u=[],f=[];for(let e=0;e<d.length;e++){const n=d[e],i=o(r,e);c.words.push(i),u.push(i);const a=Array.from(n);for(let e=0;e<a.length;e++){const t=l(i,a[e],s,e);c.chars.push(t)}if(p.appendChild(i),e<d.length-1)if(" "===t){const e=document.createTextNode(" ");p.appendChild(e),f.push(e)}else{const e=l(i,t,`${s}-delimiter`);c.chars.push(e)}}const h=u.map(((e,t)=>({element:e,top:e.offsetTop,index:t,spacer:t<f.length?f[t]:null}))),m=[];let y=[],g=h[0]?.top??0,b=0;for(let e=0;e<h.length;e++){const{element:t,top:n,spacer:o}=h[e];n>g&&y.length>0&&(m.push({elements:y,lineIndex:b++}),y=[],g=n),y.push(t),o&&y.push(o)}y.length>0&&m.push({elements:y,lineIndex:b}),p.textContent="";for(const{elements:e,lineIndex:t}of m){const n=o(i,t);n.style.display="inline-block",c.lines.push(n);for(const t of e)n.appendChild(t);p.appendChild(n)}return c}window.motionPlus=t})();