import{v as Bn,c as W,i as Hn,a as qn,r as K,w as S,b as fe,o as Un,d as ut,g as zn,e as Wn,p as ft,f as B,h as te,j as Bt,k as Ie,l as Kn,m as Zn,n as pt,F as Yn,_ as Gn,u as Jn,q as M,s as $,t as j,x as Xn,y as N,z as Qn,A as w,B as De,C as er,D as C,E as tr,G as nr,H as rr,I as sr,J as or,K as Ht,L as z,M as ir,N as Ne,O as ar,P as lr,T as cr,Q as ur,R as fr,S as xe,U as R,V as dt,W as _e,X as q,Y as we,Z as mt,$ as Se,a0 as U,a1 as ae,a2 as Te,a3 as pr,a4 as dr,a5 as mr,a6 as hr,a7 as yr,a8 as vr,a9 as gr,aa as br,ab as Or,ac as xr,ad as _r}from"./nav-1e818d35.js";import{c as wr,u as qt,V as ra,a as Sr}from"./index-85fbf1a9.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerpolicy&&(o.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?o.credentials="include":s.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();const Tr=["script","style","noscript"],Er=["base","meta","link","style","script","noscript"],Ar=["base","title","titleTemplate","bodyAttrs","htmlAttrs"];function jr(e,t){const{props:n,tag:r}=e;if(Ar.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const s=["id"];r==="meta"&&s.push("name","property","http-equiv");for(const o of s)if(typeof n[o]<"u"){const i=String(n[o]);return t&&!t(i)?!1:`${r}:${o}:${i}`}return!1}const le=(e,t)=>{const{tag:n,$el:r}=e;r&&(Object.entries(n.props).forEach(([s,o])=>{o=String(o);const i=`attr:${s}`;if(s==="class"){if(!o)return;for(const a of o.split(" ")){const l=`${i}:${a}`;t&&t(e,l,()=>r.classList.remove(a)),r.classList.contains(a)||r.classList.add(a)}return}t&&!s.startsWith("data-h-")&&t(e,i,()=>r.removeAttribute(s)),r.getAttribute(s)!==o&&r.setAttribute(s,o)}),Tr.includes(n.tag)&&r.innerHTML!==(n.children||"")&&(r.innerHTML=n.children||""))};function Cr(e){let t=9;for(let n=0;n>>9)+65536).toString(16).substring(1,8).toLowerCase()}async function Ut(e,t={}){var u,f;const n={shouldRender:!0};if(await e.hooks.callHook("dom:beforeRender",n),!n.shouldRender)return;const r=t.document||window.document,s=e._popSideEffectQueue();e.headEntries().map(p=>p._sde).forEach(p=>{Object.entries(p).forEach(([d,m])=>{s[d]=m})});const o=async p=>{const d=e.headEntries().find(_=>_._i===p._e),m={renderId:p._d||Cr(JSON.stringify({...p,_e:void 0,_p:void 0})),$el:null,shouldRender:!0,tag:p,entry:d,staleSideEffects:s};return await e.hooks.callHook("dom:beforeRenderTag",m),m},i=[],a={body:[],head:[]},l=(p,d,m)=>{d=`${p.renderId}:${d}`,p.entry&&(p.entry._sde[d]=m),delete s[d]},c=p=>{e._elMap[p.renderId]=p.$el,i.push(p),l(p,"el",()=>{var d;(d=p.$el)==null||d.remove(),delete e._elMap[p.renderId]})};for(const p of await e.resolveTags()){const d=await o(p);if(!d.shouldRender)continue;const{tag:m}=d;if(m.tag==="title"){r.title=m.children||"",i.push(d);continue}if(m.tag==="htmlAttrs"||m.tag==="bodyAttrs"){d.$el=r[m.tag==="htmlAttrs"?"documentElement":"body"],le(d,l),i.push(d);continue}if(d.$el=e._elMap[d.renderId],!d.$el&&m._hash&&(d.$el=r.querySelector(`${(u=m.tagPosition)!=null&&u.startsWith("body")?"body":"head"} > ${m.tag}[data-h-${m._hash}]`)),d.$el){d.tag._d&&le(d),c(d);continue}d.$el=r.createElement(m.tag),le(d),a[(f=m.tagPosition)!=null&&f.startsWith("body")?"body":"head"].push(d)}Object.entries(a).forEach(([p,d])=>{var _;if(!d.length)return;const m=(_=r==null?void 0:r[p])==null?void 0:_.children;if(m){for(const g of[...m].reverse()){const b=g.tagName.toLowerCase();if(!Er.includes(b))continue;const x=jr({tag:b,props:g.getAttributeNames().reduce((y,O)=>({...y,[O]:g.getAttribute(O)}),{})}),h=d.findIndex(y=>{var O;return y&&(y.tag._d===x||((O=g.isEqualNode)==null?void 0:O.call(g,y.$el)))});if(h!==-1){const y=d[h];y.$el=g,le(y),c(y),delete d[h]}}d.forEach(g=>{if(g.$el){switch(g.tag.tagPosition){case"bodyClose":r.body.appendChild(g.$el);break;case"bodyOpen":r.body.insertBefore(g.$el,r.body.firstChild);break;case"head":default:r.head.appendChild(g.$el);break}c(g)}})}});for(const p of i)await e.hooks.callHook("dom:renderTag",p);Object.values(s).forEach(p=>p())}let Ee=null;async function Pr(e,t={}){function n(){return Ee=null,Ut(e,t)}const r=t.delayFn||(s=>setTimeout(s,10));return Ee=Ee||new Promise(s=>r(()=>s(n())))}function $r(e){const t=wr(),n={unhead:t,install(r){Bn.startsWith("3")&&(r.config.globalProperties.$head=t,r.provide("usehead",t))},use(r){t.use(r)},resolveTags(){return t.resolveTags()},headEntries(){return t.headEntries()},headTags(){return t.resolveTags()},push(r,s){return t.push(r,s)},addEntry(r,s){return t.push(r,s)},addHeadObjs(r,s){return t.push(r,s)},addReactiveEntry(r,s){const o=qt(r,s);return typeof o<"u"?o.dispose:()=>{}},removeHeadObjs(){},updateDOM(r,s){s?Ut(t,{document:r}):Pr(t,{delayFn:o=>setTimeout(()=>o(),50),document:r})},internalHooks:t.hooks,hooks:{"before:dom":[],"resolved:tags":[],"resolved:entries":[]}};return t.addHeadObjs=n.addHeadObjs,t.updateDOM=n.updateDOM,t.hooks.hook("dom:beforeRender",r=>{for(const s of n.hooks["before:dom"])s()===!1&&(r.shouldRender=!1)}),e&&n.addHeadObjs(e),n}function Vr(){const e=W.titleTemplate.replace("%s",W.title||"Slidev");qt({title:e}),Sr(W.htmlAttrs),Hn(`${e} - shared`),qn(`${e} - drawings`);function t(){Wn.value&&(ft("page",+ut.value),ft("clicks",fe.value))}K.afterEach(t),S(fe,t),Un(n=>{(+n.page!=+ut.value||fe.value!==n.clicks)&&K.replace({path:zn(n.page),query:{...K.currentRoute.value.query,clicks:n.clicks||0}})})}const Lr=B({__name:"App",setup(e){return te(Bt),Vr(),(t,n)=>{const r=Ie("RouterView"),s=Ie("StarportCarrier");return Kn(),Zn(Yn,null,[pt(r),pt(s)],64)}}}),Mr=Gn(Lr,[["__file","/tmp/projet-probleme-inverse-3D/docs/node_modules/@slidev/client/App.vue"]]);function Ae(e){return e!==null&&typeof e=="object"}function Re(e,t,n=".",r){if(!Ae(t))return Re(e,{},n,r);const s=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const i=e[o];i!=null&&(r&&r(s,o,i,n)||(Array.isArray(i)&&Array.isArray(s[o])?s[o]=[...i,...s[o]]:Ae(i)&&Ae(s[o])?s[o]=Re(i,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=i))}return s}function Fr(e){return(...t)=>t.reduce((n,r)=>Re(n,r,"",e),{})}const Ir=Fr(),zt=1/60*1e3,Dr=typeof performance<"u"?()=>performance.now():()=>Date.now(),Wt=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Dr()),zt);function Nr(e){let t=[],n=[],r=0,s=!1,o=!1;const i=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{const f=u&&s,p=f?t:n;return c&&i.add(l),p.indexOf(l)===-1&&(p.push(l),f&&s&&(r=t.length)),l},cancel:l=>{const c=n.indexOf(l);c!==-1&&n.splice(c,1),i.delete(l)},process:l=>{if(s){o=!0;return}if(s=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let c=0;c(e[t]=Nr(()=>X=!0),e),{}),He=ne.reduce((e,t)=>{const n=ve[t];return e[t]=(r,s=!1,o=!1)=>(X||Hr(),n.schedule(r,s,o)),e},{}),kr=ne.reduce((e,t)=>(e[t]=ve[t].cancel,e),{});ne.reduce((e,t)=>(e[t]=()=>ve[t].process(k),e),{});const Br=e=>ve[e].process(k),Kt=e=>{X=!1,k.delta=ke?zt:Math.max(Math.min(e-k.timestamp,Rr),1),k.timestamp=e,Be=!0,ne.forEach(Br),Be=!1,X&&(ke=!1,Wt(Kt))},Hr=()=>{X=!0,ke=!0,Be||Wt(Kt)},Zt=()=>k;function Yt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);sMath.min(Math.max(n,e),t),je=.001,qr=.01,ht=10,Ur=.05,zr=1;function Wr({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let s,o;Je(e<=ht*1e3,"Spring duration must be 10 seconds or less");let i=1-t;i=qe(Ur,zr,i),e=qe(qr,ht,e/1e3),i<1?(s=c=>{const u=c*i,f=u*e,p=u-n,d=Ue(c,i),m=Math.exp(-f);return je-p/d*m},o=c=>{const f=c*i*e,p=f*n+n,d=Math.pow(i,2)*Math.pow(c,2)*e,m=Math.exp(-f),_=Ue(Math.pow(c,2),i);return(-s(c)+je>0?-1:1)*((p-d)*m)/_}):(s=c=>{const u=Math.exp(-c*e),f=(c-n)*e+1;return-je+u*f},o=c=>{const u=Math.exp(-c*e),f=(n-c)*(e*e);return u*f});const a=5/e,l=Zr(s,o,a);if(e=e*1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:i*2*Math.sqrt(r*c),duration:e}}}const Kr=12;function Zr(e,t,n){let r=n;for(let s=1;se[n]!==void 0)}function Jr(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!yt(e,Gr)&&yt(e,Yr)){const n=Wr(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Xe(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:s}=e,o=Yt(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:a,damping:l,mass:c,velocity:u,duration:f,isResolvedFromDuration:p}=Jr(o),d=vt,m=vt;function _(){const g=u?-(u/1e3):0,b=n-t,x=l/(2*Math.sqrt(a*c)),h=Math.sqrt(a/c)/1e3;if(s===void 0&&(s=Math.min(Math.abs(n-t)/100,.4)),x<1){const y=Ue(h,x);d=O=>{const T=Math.exp(-x*h*O);return n-T*((g+x*h*b)/y*Math.sin(y*O)+b*Math.cos(y*O))},m=O=>{const T=Math.exp(-x*h*O);return x*h*T*(Math.sin(y*O)*(g+x*h*b)/y+b*Math.cos(y*O))-T*(Math.cos(y*O)*(g+x*h*b)-y*b*Math.sin(y*O))}}else if(x===1)d=y=>n-Math.exp(-h*y)*(b+(g+h*b)*y);else{const y=h*Math.sqrt(x*x-1);d=O=>{const T=Math.exp(-x*h*O),P=Math.min(y*O,300);return n-T*((g+x*h*b)*Math.sinh(P)+y*b*Math.cosh(P))/y}}}return _(),{next:g=>{const b=d(g);if(p)i.done=g>=f;else{const x=m(g)*1e3,h=Math.abs(x)<=r,y=Math.abs(n-b)<=s;i.done=h&&y}return i.value=i.done?n:b,i},flipTarget:()=>{u=-u,[t,n]=[n,t],_()}}}Xe.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const vt=e=>0,Gt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Qe=(e,t,n)=>-n*e+n*t+e,Jt=(e,t)=>n=>Math.max(Math.min(n,t),e),Z=e=>e%1?Number(e.toFixed(5)):e,ee=/(-)?([\d]*\.?[\d])+/g,ze=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Xr=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function re(e){return typeof e=="string"}const se={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Y=Object.assign(Object.assign({},se),{transform:Jt(0,1)}),ce=Object.assign(Object.assign({},se),{default:1}),et=e=>({test:t=>re(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),F=et("deg"),G=et("%"),v=et("px"),gt=Object.assign(Object.assign({},G),{parse:e=>G.parse(e)/100,transform:e=>G.transform(e*100)}),tt=(e,t)=>n=>Boolean(re(n)&&Xr.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Xt=(e,t,n)=>r=>{if(!re(r))return r;const[s,o,i,a]=r.match(ee);return{[e]:parseFloat(s),[t]:parseFloat(o),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},D={test:tt("hsl","hue"),parse:Xt("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+G.transform(Z(t))+", "+G.transform(Z(n))+", "+Z(Y.transform(r))+")"},Qr=Jt(0,255),Ce=Object.assign(Object.assign({},se),{transform:e=>Math.round(Qr(e))}),L={test:tt("rgb","red"),parse:Xt("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ce.transform(e)+", "+Ce.transform(t)+", "+Ce.transform(n)+", "+Z(Y.transform(r))+")"};function es(e){let t="",n="",r="",s="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),s=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),s=e.substr(4,1),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const We={test:tt("#"),parse:es,transform:L.transform},E={test:e=>L.test(e)||We.test(e)||D.test(e),parse:e=>L.test(e)?L.parse(e):D.test(e)?D.parse(e):We.parse(e),transform:e=>re(e)?e:e.hasOwnProperty("red")?L.transform(e):D.transform(e)},Qt="${c}",en="${n}";function ts(e){var t,n,r,s;return isNaN(e)&&re(e)&&((n=(t=e.match(ee))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((s=(r=e.match(ze))===null||r===void 0?void 0:r.length)!==null&&s!==void 0?s:0)>0}function tn(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(ze);r&&(n=r.length,e=e.replace(ze,Qt),t.push(...r.map(E.parse)));const s=e.match(ee);return s&&(e=e.replace(ee,en),t.push(...s.map(se.parse))),{values:t,numColors:n,tokenised:e}}function nn(e){return tn(e).values}function rn(e){const{values:t,numColors:n,tokenised:r}=tn(e),s=t.length;return o=>{let i=r;for(let a=0;atypeof e=="number"?0:e;function rs(e){const t=nn(e);return rn(e)(t.map(ns))}const oe={test:ts,parse:nn,createTransformer:rn,getAnimatableNone:rs},ss=new Set(["brightness","contrast","saturate","opacity"]);function os(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ee)||[];if(!r)return e;const s=n.replace(r,"");let o=ss.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+s+")"}const is=/([a-z-]*)\(.*?\)/g,Ke=Object.assign(Object.assign({},oe),{getAnimatableNone:e=>{const t=e.match(is);return t?t.map(os).join(" "):e}});function Pe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function bt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,o=0,i=0;if(!t)s=o=i=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=Pe(l,a,e+1/3),o=Pe(l,a,e),i=Pe(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(i*255),alpha:r}}const as=(e,t,n)=>{const r=e*e,s=t*t;return Math.sqrt(Math.max(0,n*(s-r)+r))},ls=[We,L,D],Ot=e=>ls.find(t=>t.test(e)),xt=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,sn=(e,t)=>{let n=Ot(e),r=Ot(t);Q(!!n,xt(e)),Q(!!r,xt(t));let s=n.parse(e),o=r.parse(t);n===D&&(s=bt(s),n=L),r===D&&(o=bt(o),r=L);const i=Object.assign({},s);return a=>{for(const l in i)l!=="alpha"&&(i[l]=as(s[l],o[l],a));return i.alpha=Qe(s.alpha,o.alpha,a),n.transform(i)}},cs=e=>typeof e=="number",us=(e,t)=>n=>t(e(n)),on=(...e)=>e.reduce(us);function an(e,t){return cs(e)?n=>Qe(e,t,n):E.test(e)?sn(e,t):cn(e,t)}const ln=(e,t)=>{const n=[...e],r=n.length,s=e.map((o,i)=>an(o,t[i]));return o=>{for(let i=0;i{const n=Object.assign(Object.assign({},e),t),r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=an(e[s],t[s]));return s=>{for(const o in r)n[o]=r[o](s);return n}};function _t(e){const t=oe.parse(e),n=t.length;let r=0,s=0,o=0;for(let i=0;i{const n=oe.createTransformer(t),r=_t(e),s=_t(t);return r.numHSL===s.numHSL&&r.numRGB===s.numRGB&&r.numNumbers>=s.numNumbers?on(ln(r.parsed,s.parsed),n):(Je(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),i=>`${i>0?t:e}`)},ps=(e,t)=>n=>Qe(e,t,n);function ds(e){if(typeof e=="number")return ps;if(typeof e=="string")return E.test(e)?sn:cn;if(Array.isArray(e))return ln;if(typeof e=="object")return fs}function ms(e,t,n){const r=[],s=n||ds(e[0]),o=e.length-1;for(let i=0;in(Gt(e,t,r))}function ys(e,t){const n=e.length,r=n-1;return s=>{let o=0,i=!1;if(s<=e[0]?i=!0:s>=e[r]&&(o=r-1,i=!0),!i){let l=1;for(;ls||l===r);l++);o=l-1}const a=Gt(e[o],e[o+1],s);return t[o](a)}}function un(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const o=e.length;Q(o===t.length,"Both input and output ranges must be the same length"),Q(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=ms(t,r,s),a=o===2?hs(e,i):ys(e,i);return n?l=>a(qe(e[0],e[o-1],l)):a}const ge=e=>t=>1-e(1-t),nt=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,vs=e=>t=>Math.pow(t,e),fn=e=>t=>t*t*((e+1)*t-e),gs=e=>{const t=fn(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},pn=1.525,bs=4/11,Os=8/11,xs=9/10,dn=e=>e,rt=vs(2),_s=ge(rt),mn=nt(rt),hn=e=>1-Math.sin(Math.acos(e)),yn=ge(hn),ws=nt(yn),st=fn(pn),Ss=ge(st),Ts=nt(st),Es=gs(pn),As=4356/361,js=35442/1805,Cs=16061/1805,me=e=>{if(e===1||e===0)return e;const t=e*e;return ee<.5?.5*(1-me(1-e*2)):.5*me(e*2-1)+.5;function Vs(e,t){return e.map(()=>t||mn).splice(0,e.length-1)}function Ls(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function Ms(e,t){return e.map(n=>n*t)}function pe({from:e=0,to:t=1,ease:n,offset:r,duration:s=300}){const o={done:!1,value:e},i=Array.isArray(t)?t:[e,t],a=Ms(r&&r.length===i.length?r:Ls(i),s);function l(){return un(a,i,{ease:Array.isArray(n)?n:Vs(i,n)})}let c=l();return{next:u=>(o.value=c(u),o.done=u>=s,o),flipTarget:()=>{i.reverse(),c=l()}}}function Fs({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:s=.5,modifyTarget:o}){const i={done:!1,value:t};let a=n*e;const l=t+a,c=o===void 0?l:o(l);return c!==l&&(a=c-t),{next:u=>{const f=-a*Math.exp(-u/r);return i.done=!(f>s||f<-s),i.value=i.done?c:c+f,i},flipTarget:()=>{}}}const wt={keyframes:pe,spring:Xe,decay:Fs};function Is(e){if(Array.isArray(e.to))return pe;if(wt[e.type])return wt[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?pe:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Xe:pe}function vn(e,t,n=0){return e-t-n}function Ds(e,t,n=0,r=!0){return r?vn(t+-e,t,n):t-(e-t)+n}function Ns(e,t,n,r){return r?e>=t+n:e<=-n}const Rs=e=>{const t=({delta:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>kr.update(t)}};function gn(e){var t,n,{from:r,autoplay:s=!0,driver:o=Rs,elapsed:i=0,repeat:a=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:f,onComplete:p,onRepeat:d,onUpdate:m}=e,_=Yt(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:g}=_,b,x=0,h=_.duration,y,O=!1,T=!0,P;const ie=Is(_);!((n=(t=ie).needsInterpolation)===null||n===void 0)&&n.call(t,r,g)&&(P=un([0,100],[r,g],{clamp:!1}),r=0,g=100);const V=ie(Object.assign(Object.assign({},_),{from:r,to:g}));function Dn(){x++,l==="reverse"?(T=x%2===0,i=Ds(i,h,c,T)):(i=vn(i,h,c),l==="mirror"&&V.flipTarget()),O=!1,d&&d()}function Nn(){b.stop(),p&&p()}function Rn(Oe){if(T||(Oe=-Oe),i+=Oe,!O){const ct=V.next(Math.max(0,i));y=ct.value,P&&(y=P(y)),O=T?ct.done:i<=0}m==null||m(y),O&&(x===0&&(h??(h=i)),x{f==null||f(),b.stop()}}}function bn(e,t){return t?e*(1e3/t):0}function ks({from:e=0,velocity:t=0,min:n,max:r,power:s=.8,timeConstant:o=750,bounceStiffness:i=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:f,onComplete:p,onStop:d}){let m;function _(h){return n!==void 0&&hr}function g(h){return n===void 0?r:r===void 0||Math.abs(n-h){var O;f==null||f(y),(O=h.onUpdate)===null||O===void 0||O.call(h,y)},onComplete:p,onStop:d}))}function x(h){b(Object.assign({type:"spring",stiffness:i,damping:a,restDelta:l},h))}if(_(e))x({from:e,velocity:t,to:g(e)});else{let h=s*t+e;typeof c<"u"&&(h=c(h));const y=g(h),O=y===n?-1:1;let T,P;const ie=V=>{T=P,P=V,t=bn(V-T,Zt().delta),(O===1&&V>y||O===-1&&Vm==null?void 0:m.stop()}}const On=(e,t)=>1-3*t+3*e,xn=(e,t)=>3*t-6*e,_n=e=>3*e,he=(e,t,n)=>((On(t,n)*e+xn(t,n))*e+_n(t))*e,wn=(e,t,n)=>3*On(t,n)*e*e+2*xn(t,n)*e+_n(t),Bs=1e-7,Hs=10;function qs(e,t,n,r,s){let o,i,a=0;do i=t+(n-t)/2,o=he(i,r,s)-e,o>0?n=i:t=i;while(Math.abs(o)>Bs&&++a=zs?Ws(i,f,e,n):p===0?f:qs(i,a,a+ue,e,n)}return i=>i===0||i===1?i:he(o(i),t,r)}const $e={};class Zs{constructor(){this.subscriptions=new Set}add(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}notify(t,n,r){if(this.subscriptions.size)for(const s of this.subscriptions)s(t,n,r)}clear(){this.subscriptions.clear()}}const St=e=>!isNaN(parseFloat(e));class Ys{constructor(t){this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Zs,this.canTrackVelocity=!1,this.updateAndNotify=n=>{this.prev=this.current,this.current=n;const{delta:r,timestamp:s}=Zt();this.lastUpdated!==s&&(this.timeDelta=r,this.lastUpdated=s),He.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>He.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{this.canTrackVelocity||(this.canTrackVelocity=St(this.current)),n!==this.lastUpdated&&(this.prev=this.current)},this.prev=this.current=t,this.canTrackVelocity=St(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}set(t){this.updateAndNotify(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?bn(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{const{stop:r}=t(n);this.stopAnimation=r}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}}function Gs(e){return new Ys(e)}const{isArray:Js}=Array;function Xs(){const e=w({}),t=r=>{const s=o=>{e.value[o]&&(e.value[o].stop(),e.value[o].destroy(),delete e.value[o])};r?Js(r)?r.forEach(s):s(r):Object.keys(e.value).forEach(s)},n=(r,s,o)=>{if(e.value[r])return e.value[r];const i=Gs(s);return i.onChange(a=>o[r]=a),e.value[r]=i,i};return rr(t),{motionValues:e,get:n,stop:t}}const Qs=e=>Array.isArray(e),I=()=>({type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}),Ve=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}),eo=e=>({type:"spring",stiffness:550,damping:e===0?100:30,restDelta:.01,restSpeed:10}),Le=()=>({type:"keyframes",ease:"linear",duration:300}),to=e=>({type:"keyframes",duration:800,values:e}),Tt={default:eo,x:I,y:I,z:I,rotate:I,rotateX:I,rotateY:I,rotateZ:I,scaleX:Ve,scaleY:Ve,scale:Ve,backgroundColor:Le,color:Le,opacity:Le},Sn=(e,t)=>{let n;return Qs(t)?n=to:n=Tt[e]||Tt.default,{to:t,...n(t)}},Et={...se,transform:Math.round},Tn={color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,borderWidth:v,borderTopWidth:v,borderRightWidth:v,borderBottomWidth:v,borderLeftWidth:v,borderRadius:v,radius:v,borderTopLeftRadius:v,borderTopRightRadius:v,borderBottomRightRadius:v,borderBottomLeftRadius:v,width:v,maxWidth:v,height:v,maxHeight:v,size:v,top:v,right:v,bottom:v,left:v,padding:v,paddingTop:v,paddingRight:v,paddingBottom:v,paddingLeft:v,margin:v,marginTop:v,marginRight:v,marginBottom:v,marginLeft:v,rotate:F,rotateX:F,rotateY:F,rotateZ:F,scale:ce,scaleX:ce,scaleY:ce,scaleZ:ce,skew:F,skewX:F,skewY:F,distance:v,translateX:v,translateY:v,translateZ:v,x:v,y:v,z:v,perspective:v,transformPerspective:v,opacity:Y,originX:gt,originY:gt,originZ:v,zIndex:Et,filter:Ke,WebkitFilter:Ke,fillOpacity:Y,strokeOpacity:Y,numOctaves:Et},ot=e=>Tn[e],En=(e,t)=>t&&typeof e=="number"&&t.transform?t.transform(e):e;function no(e,t){let n=ot(e);return n!==Ke&&(n=oe),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ro={linear:dn,easeIn:rt,easeInOut:mn,easeOut:_s,circIn:hn,circInOut:ws,circOut:yn,backIn:st,backInOut:Ts,backOut:Ss,anticipate:Es,bounceIn:Ps,bounceInOut:$s,bounceOut:me},At=e=>{if(Array.isArray(e)){const[t,n,r,s]=e;return Ks(t,n,r,s)}else if(typeof e=="string")return ro[e];return e},so=e=>Array.isArray(e)&&typeof e[0]!="number",jt=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&oe.test(t)&&!t.startsWith("url("));function oo(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function io({ease:e,times:t,delay:n,...r}){const s={...r};return t&&(s.offset=t),e&&(s.ease=so(e)?e.map(At):At(e)),n&&(s.elapsed=-n),s}function ao(e,t,n){return Array.isArray(t.to)&&(e.duration||(e.duration=800)),oo(t),lo(e)||(e={...e,...Sn(n,t.to)}),{...t,...io(e)}}function lo({delay:e,repeat:t,repeatType:n,repeatDelay:r,from:s,...o}){return!!Object.keys(o).length}function co(e,t){return e[t]||e.default||e}function uo(e,t,n,r,s){const o=co(r,e);let i=o.from===null||o.from===void 0?t.get():o.from;const a=jt(e,n);i==="none"&&a&&typeof n=="string"&&(i=no(e,n));const l=jt(e,i);function c(f){const p={from:i,to:n,velocity:r.velocity?r.velocity:t.getVelocity(),onUpdate:d=>t.set(d)};return o.type==="inertia"||o.type==="decay"?ks({...p,...o}):gn({...ao(o,p,e),onUpdate:d=>{p.onUpdate(d),o.onUpdate&&o.onUpdate(d)},onComplete:()=>{r.onComplete&&r.onComplete(),s&&s(),f&&f()}})}function u(f){return t.set(n),r.onComplete&&r.onComplete(),s&&s(),f&&f(),{stop:()=>{}}}return!l||!a||o.type===!1?u:c}function fo(){const{motionValues:e,stop:t,get:n}=Xs();return{motionValues:e,stop:t,push:(s,o,i,a={},l)=>{const c=i[s],u=n(s,c,i);if(a&&a.immediate){u.set(o);return}const f=uo(s,u,o,a,l);u.start(f)}}}function po(e,t={},{motionValues:n,push:r,stop:s}=fo()){const o=N(t),i=w(!1);S(n,f=>{i.value=Object.values(f).filter(p=>p.isAnimating()).length>0},{immediate:!0,deep:!0});const a=f=>{if(!o||!o[f])throw new Error(`The variant ${f} does not exist.`);return o[f]},l=f=>(typeof f=="string"&&(f=a(f)),Promise.all(Object.entries(f).map(([p,d])=>{if(p!=="transition")return new Promise(m=>r(p,d,e,f.transition||Sn(p,f[p]),m))}).filter(Boolean)));return{isAnimating:i,apply:l,set:f=>{const p=De(f)?f:a(f);Object.entries(p).forEach(([d,m])=>{d!=="transition"&&r(d,m,e,{immediate:!0})})},leave:async f=>{let p;if(o&&(o.leave&&(p=o.leave),!o.leave&&o.initial&&(p=o.initial)),!p){f();return}await l(p),f()},stop:s}}const it=typeof window<"u",mo=()=>it&&window.onpointerdown===null,ho=()=>it&&window.ontouchstart===null,yo=()=>it&&window.onmousedown===null;function vo({target:e,state:t,variants:n,apply:r}){const s=N(n),o=w(!1),i=w(!1),a=w(!1),l=j(()=>{let u=[];return s&&(s.hovered&&(u=[...u,...Object.keys(s.hovered)]),s.tapped&&(u=[...u,...Object.keys(s.tapped)]),s.focused&&(u=[...u,...Object.keys(s.focused)])),u}),c=j(()=>{const u={};Object.assign(u,t.value),o.value&&s.hovered&&Object.assign(u,s.hovered),i.value&&s.tapped&&Object.assign(u,s.tapped),a.value&&s.focused&&Object.assign(u,s.focused);for(const f in u)l.value.includes(f)||delete u[f];return u});s.hovered&&(C(e,"mouseenter",()=>o.value=!0),C(e,"mouseleave",()=>{o.value=!1,i.value=!1}),C(e,"mouseout",()=>{o.value=!1,i.value=!1})),s.tapped&&(yo()&&(C(e,"mousedown",()=>i.value=!0),C(e,"mouseup",()=>i.value=!1)),mo()&&(C(e,"pointerdown",()=>i.value=!0),C(e,"pointerup",()=>i.value=!1)),ho()&&(C(e,"touchstart",()=>i.value=!0),C(e,"touchend",()=>i.value=!1))),s.focused&&(C(e,"focus",()=>a.value=!0),C(e,"blur",()=>a.value=!1)),S(c,r)}function go({set:e,target:t,apply:n,variants:r,variant:s}){const o=N(r);S(()=>t,()=>{o&&(o.initial&&e("initial"),o.enter&&(s.value="enter"))},{immediate:!0,flush:"pre"})}function bo({state:e,apply:t}){S(e,n=>{n&&t(n)},{immediate:!0})}function Oo({target:e,variants:t,variant:n}){const r=N(t);r&&(r.visible||r.visibleOnce)&&tr(e,([{isIntersecting:s}])=>{r.visible?s?n.value="visible":n.value="initial":r.visibleOnce&&(s&&n.value!=="visibleOnce"?n.value="visibleOnce":n.value||(n.value="initial"))})}function xo(e,t={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){t.lifeCycleHooks&&go(e),t.syncVariants&&bo(e),t.visibilityHooks&&Oo(e),t.eventListeners&&vo(e)}function An(e={}){const t=M({...e}),n=w({});return S(t,()=>{const r={};for(const[s,o]of Object.entries(t)){const i=ot(s),a=En(o,i);r[s]=a}n.value=r},{immediate:!0,deep:!0}),{state:t,style:n}}function at(e,t){S(()=>nr(e),n=>{n&&t(n)},{immediate:!0})}const _o={x:"translateX",y:"translateY",z:"translateZ"};function jn(e={},t=!0){const n=M({...e}),r=w("");return S(n,s=>{let o="",i=!1;if(t&&(s.x||s.y||s.z)){const a=[s.x||0,s.y||0,s.z||0].map(v.transform).join(",");o+=`translate3d(${a}) `,i=!0}for(const[a,l]of Object.entries(s)){if(t&&(a==="x"||a==="y"||a==="z"))continue;const c=ot(a),u=En(l,c);o+=`${_o[a]||a}(${u}) `}t&&!i&&(o+="translateZ(0px) "),r.value=o.trim()},{immediate:!0,deep:!0}),{state:n,transform:r}}const wo=["","X","Y","Z"],So=["perspective","translate","scale","rotate","skew"],Cn=["transformPerspective","x","y","z"];So.forEach(e=>{wo.forEach(t=>{const n=e+t;Cn.push(n)})});const To=new Set(Cn);function lt(e){return To.has(e)}const Eo=new Set(["originX","originY","originZ"]);function Pn(e){return Eo.has(e)}function Ao(e){const t={},n={};return Object.entries(e).forEach(([r,s])=>{lt(r)||Pn(r)?t[r]=s:n[r]=s}),{transform:t,style:n}}function $n(e){const{transform:t,style:n}=Ao(e),{transform:r}=jn(t),{style:s}=An(n);return r.value&&(s.value.transform=r.value),s.value}function jo(e,t){let n,r;const{state:s,style:o}=An();return at(e,i=>{r=i;for(const a of Object.keys(Tn))i.style[a]===null||i.style[a]===""||lt(a)||Pn(a)||(s[a]=i.style[a]);n&&Object.entries(n).forEach(([a,l])=>i.style[a]=l),t&&t(s)}),S(o,i=>{if(!r){n=i;return}for(const a in i)r.style[a]=i[a]},{immediate:!0}),{style:s}}function Co(e){const t=e.trim().split(/\) |\)/);if(t.length===1)return{};const n=r=>r.endsWith("px")||r.endsWith("deg")?parseFloat(r):isNaN(Number(r))?Number(r):r;return t.reduce((r,s)=>{if(!s)return r;const[o,i]=s.split("("),l=i.split(",").map(u=>n(u.endsWith(")")?u.replace(")",""):u.trim())),c=l.length===1?l[0]:l;return{...r,[o]:c}},{})}function Po(e,t){Object.entries(Co(t)).forEach(([n,r])=>{const s=["x","y","z"];if(n==="translate3d"){if(r===0){s.forEach(o=>e[o]=0);return}r.forEach((o,i)=>e[s[i]]=o);return}if(r=parseFloat(r),n==="translateX"){e.x=r;return}if(n==="translateY"){e.y=r;return}if(n==="translateZ"){e.z=r;return}e[n]=r})}function $o(e,t){let n,r;const{state:s,transform:o}=jn();return at(e,i=>{r=i,i.style.transform&&Po(s,i.style.transform),n&&(i.style.transform=n),t&&t(s)}),S(o,i=>{if(!r){n=i;return}r.style.transform=i},{immediate:!0}),{transform:s}}function Vo(e,t){const n=M({}),r=i=>Object.entries(i).forEach(([a,l])=>n[a]=l),{style:s}=jo(e,r),{transform:o}=$o(e,r);return S(n,i=>{Object.entries(i).forEach(([a,l])=>{const c=lt(a)?o:s;c[a]&&c[a]===l||(c[a]=l)})},{immediate:!0,deep:!0}),at(e,()=>t&&r(t)),{motionProperties:n,style:s,transform:o}}function Lo(e={}){const t=N(e),n=w();return{state:j(()=>{if(n.value)return t[n.value]}),variant:n}}function Vn(e,t={},n){const{motionProperties:r}=Vo(e),{variant:s,state:o}=Lo(t),i=po(r,t),a={target:e,variant:s,variants:t,state:o,motionProperties:r,...i};return xo(a,n),a}const Mo=["initial","enter","leave","visible","visible-once","hovered","tapped","focused","delay"],Fo=(e,t)=>{const n=e.props?e.props:e.data&&e.data.attrs?e.data.attrs:{};n&&(n.variants&&De(n.variants)&&(t.value={...t.value,...n.variants}),Mo.forEach(r=>{if(r==="delay"){if(n&&n[r]&&er(n[r])){const s=n[r];t&&t.value&&(t.value.enter&&(t.value.enter.transition||(t.value.enter.transition={}),t.value.enter.transition={delay:s,...t.value.enter.transition}),t.value.visible&&(t.value.visible.transition||(t.value.visible.transition={}),t.value.visible.transition={delay:s,...t.value.visible.transition}),t.value.visibleOnce&&(t.value.visibleOnce.transition||(t.value.visibleOnce.transition={}),t.value.visibleOnce.transition={delay:s,...t.value.visibleOnce.transition}))}return}r==="visible-once"&&(r="visibleOnce"),n&&n[r]&&De(n[r])&&(t.value[r]=n[r])}))},Me=e=>({created:(n,r,s)=>{const o=r.value&&typeof r.value=="string"?r.value:s.key;o&&$e[o]&&$e[o].stop();const i=w(e||{});typeof r.value=="object"&&(i.value=r.value),Fo(s,i);const a=Vn(n,i);n.motionInstance=a,o&&($e[o]=a)},getSSRProps(n,r){let{initial:s}=n.value||r&&(r==null?void 0:r.props)||{};s=N(s);const o=Ir((e==null?void 0:e.initial)||{},s||{});return!o||Object.keys(o).length===0?void 0:{style:$n(o)}}}),Io={initial:{opacity:0},enter:{opacity:1}},Do={initial:{opacity:0},visible:{opacity:1}},No={initial:{opacity:0},visibleOnce:{opacity:1}},Ro={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},ko={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},Bo={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},Ho={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},qo={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},Uo={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},zo={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},Wo={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},Ko={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},Zo={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},Yo={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},Go={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},Jo={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},Xo={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},Qo={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},ei={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},ti={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},ni={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},ri={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},si={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},oi={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},ii={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},ai={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},li={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},ci={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},ui={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},fi={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},Ze={__proto__:null,fade:Io,fadeVisible:Do,fadeVisibleOnce:No,pop:Ro,popVisible:ko,popVisibleOnce:Bo,rollBottom:Jo,rollLeft:Ho,rollRight:zo,rollTop:Zo,rollVisibleBottom:Xo,rollVisibleLeft:qo,rollVisibleRight:Wo,rollVisibleTop:Yo,rollVisibleOnceBottom:Qo,rollVisibleOnceLeft:Uo,rollVisibleOnceRight:Ko,rollVisibleOnceTop:Go,slideBottom:ci,slideLeft:ei,slideRight:ri,slideTop:ii,slideVisibleBottom:ui,slideVisibleLeft:ti,slideVisibleRight:si,slideVisibleTop:ai,slideVisibleOnceBottom:fi,slideVisibleOnceLeft:ni,slideVisibleOnceRight:oi,slideVisibleOnceTop:li},pi=B({props:{is:{type:[String,Object],required:!1},preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1}},setup(e){var a;const t=Jn(),n=M({});if(!e.is&&!t.default)return()=>$("div",{});const r=j(()=>{let l;return e.preset&&(l=Ze[e.preset]),l}),s=j(()=>({initial:e.initial,enter:e.enter,leave:e.leave,visible:e.visible,visibleOnce:e.visibleOnce,hovered:e.hovered,tapped:e.tapped,focused:e.focused})),o=j(()=>{const l={...s.value,...r.value||{},...e.variants||{}};return e.delay&&(l.enter.transition={...l.enter.transition},l.enter.transition.delay=parseInt(e.delay)),l}),i=j(()=>{if(!e.is)return;let l=e.is;return typeof i.value=="string"&&!Qn(l)&&(l=Ie(l)),l});if(((a=process==null?void 0:process.env)==null?void 0:a.NODE_ENV)==="development"||process!=null&&process.dev){const l=c=>{var u;(u=c.variants)!=null&&u.initial&&c.set("initial"),setTimeout(()=>{var f,p,d;(f=c.variants)!=null&&f.enter&&c.apply("enter"),(p=c.variants)!=null&&p.visible&&c.apply("visible"),(d=c.variants)!=null&&d.visibleOnce&&c.apply("visibleOnce")},10)};Xn(()=>Object.entries(n).forEach(([c,u])=>l(u)))}return{slots:t,component:i,motionConfig:o,instances:n}},render({slots:e,motionConfig:t,instances:n,component:r}){var a;const s=$n(t.initial||{}),o=(l,c)=>(l.props||(l.props={}),l.props.style=s,l.props.onVnodeMounted=({el:u})=>{const f=Vn(u,t);n[c]=f},l);if(r){const l=$(r,void 0,e);return o(l,0),l}return(((a=e.default)==null?void 0:a.call(e))||[]).map((l,c)=>o(l,c))}});function di(e){const t="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",n="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------",r=new RegExp(t.split("").join("|"),"g");return e.toString().replace(/[A-Z]/g,s=>`-${s}`).toLowerCase().replace(/\s+/g,"-").replace(r,s=>n.charAt(t.indexOf(s))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const mi={install(e,t){if(e.directive("motion",Me()),e.component("Motion",pi),!t||t&&!t.excludePresets)for(const n in Ze){const r=Ze[n];e.directive(`motion-${di(n)}`,Me(r))}if(t&&t.directives)for(const n in t.directives){const r=t.directives[n];r.initial,e.directive(`motion-${n}`,Me(r))}}};var Ct;const J=typeof window<"u",hi=Object.prototype.toString,yi=e=>hi.call(e)==="[object Object]";J&&((Ct=window==null?void 0:window.navigator)!=null&&Ct.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function vi(e){return sr()?(or(e),!0):!1}function gi(e){var t;const n=N(e);return(t=n==null?void 0:n.$el)!=null?t:n}const bi=J?window:void 0,Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ge="__vueuse_ssr_handlers__";Ye[Ge]=Ye[Ge]||{};Ye[Ge];function Oi(e,t={}){const{immediate:n=!0,window:r=bi}=t,s=w(!1);let o=null;function i(){!s.value||!r||(e(),o=r.requestAnimationFrame(i))}function a(){!s.value&&r&&(s.value=!0,i())}function l(){s.value=!1,o!=null&&r&&(r.cancelAnimationFrame(o),o=null)}return n&&a(),vi(l),{isActive:s,pause:l,resume:a}}var Pt;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Pt||(Pt={}));const be="vue-starport-injection",Ln="vue-starport-options",xi={duration:800,easing:"cubic-bezier(0.45, 0, 0.55, 1)",keepAlive:!1},Mn={port:{type:String,required:!0},duration:{type:Number,required:!1},easing:{type:String,required:!1},keepAlive:{type:Boolean,required:!1,default:void 0},mountedProps:{type:Object,required:!1},initialProps:{type:Object,required:!1}};var _i=Object.defineProperty,ye=Object.getOwnPropertySymbols,Fn=Object.prototype.hasOwnProperty,In=Object.prototype.propertyIsEnumerable,$t=(e,t,n)=>t in e?_i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wi=(e,t)=>{for(var n in t||(t={}))Fn.call(t,n)&&$t(e,n,t[n]);if(ye)for(var n of ye(t))In.call(t,n)&&$t(e,n,t[n]);return e},Vt=(e,t)=>{var n={};for(var r in e)Fn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ye)for(var r of ye(e))t.indexOf(r)<0&&In.call(e,r)&&(n[r]=e[r]);return n};const Si=B({name:"StarportProxy",props:wi({props:{type:Object,default:()=>({})},component:{type:Object,required:!0}},Mn),setup(e,t){const n=te(be),r=j(()=>n.getInstance(e.port,e.component)),s=w(),o=r.value.generateId(),i=w(!1);return r.value.isVisible||(r.value.land(),i.value=!0),Ht(async()=>{if(r.value.el){console.error(`[Vue Starport] Multiple proxies of "${r.value.componentName}" with port "${e.port}" detected. The later one will be ignored.`);return}if(r.value.el=s.value,await z(),i.value=!0,r.value.rect.update(),r.value.rect.width===0||r.value.rect.height===0){const a=r.value.rect.width===0?"width":"height";console.warn(`[Vue Starport] The proxy of component "${r.value.componentName}" (port "${e.port}") has no ${a} on initial render, have you set the size for it?`),console.warn("element:",r.value.el),console.warn("rect:",r.value.rect)}}),ir(async()=>{r.value.rect.update(),r.value.liftOff(),r.value.el=void 0,i.value=!1,!r.value.options.keepAlive&&(await z(),await z(),!r.value.el&&n.dispose(r.value.port))}),S(()=>e,async()=>{r.value.props&&await z();const a=e,{props:l}=a,c=Vt(a,["props"]);r.value.props=l||{},r.value.setLocalOptions(c)},{deep:!0,immediate:!0}),()=>{const a=e,{initialProps:l,mountedProps:c}=a,u=Vt(a,["initialProps","mountedProps"]),f=Ne(u,(i.value?c:l)||{});return $("div",Ne(f,{id:o,ref:s,"data-starport-proxy":r.value.componentId,"data-starport-landed":r.value.isLanded?"true":void 0,"data-starport-floating":r.value.isLanded?void 0:"true"}),t.slots.default?$(t.slots.default):void 0)}}});var Ti=Object.defineProperty,Ei=Object.defineProperties,Ai=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,ji=Object.prototype.hasOwnProperty,Ci=Object.prototype.propertyIsEnumerable,Mt=(e,t,n)=>t in e?Ti(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pi=(e,t)=>{for(var n in t||(t={}))ji.call(t,n)&&Mt(e,n,t[n]);if(Lt)for(var n of Lt(t))Ci.call(t,n)&&Mt(e,n,t[n]);return e},$i=(e,t)=>Ei(e,Ai(t));const Vi=B({name:"Starport",inheritAttrs:!0,props:Mn,setup(e,t){const n=w(!1);return Ht(()=>{if(n.value=!0,!te(be))throw new Error("[Vue Starport] Failed to find the carrier, all Starport components must be wrapped in a component.")}),()=>{var i,a;const r=(a=(i=t.slots).default)==null?void 0:a.call(i);if(!r)throw new Error("[Vue Starport] Slot is required to use ");if(r.length!==1)throw new Error(`[Vue Starport] requires exactly one slot, but got ${r.length}`);const s=r[0];let o=s.type;return(!yi(o)||ar(o))&&(o={render(){return r}}),$(Si,$i(Pi({},e),{key:e.port,component:lr(o),props:s.props}))}}});function Li(e){const t=M({height:0,width:0,left:0,top:0,update:r,listen:o,pause:i,margin:"0px",padding:"0px"}),n=J?document.documentElement||document.body:void 0;function r(){if(!J)return;const a=gi(e);if(!a)return;const{height:l,width:c,left:u,top:f}=a.getBoundingClientRect(),p=window.getComputedStyle(a),d=p.margin,m=p.padding;Object.assign(t,{height:l,width:c,left:u,top:n.scrollTop+f,margin:d,padding:m})}const s=Oi(r,{immediate:!1});function o(){J&&(r(),s.resume())}function i(){s.pause()}return t}let Mi=(e,t=21)=>(n=t)=>{let r="",s=n;for(;s--;)r+=e[Math.random()*e.length|0];return r};const Ft=Mi("abcdefghijklmnopqrstuvwxyz",5);function It(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().replace(/[^\w\d_-]/g,"")}function Fi(e){var t;return e.name||((t=e.__file)==null?void 0:t.split(/[\/\\.]/).slice(-2)[0])||""}var Ii=Object.defineProperty,Dt=Object.getOwnPropertySymbols,Di=Object.prototype.hasOwnProperty,Ni=Object.prototype.propertyIsEnumerable,Nt=(e,t,n)=>t in e?Ii(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fe=(e,t)=>{for(var n in t||(t={}))Di.call(t,n)&&Nt(e,n,t[n]);if(Dt)for(var n of Dt(t))Ni.call(t,n)&&Nt(e,n,t[n]);return e};function Ri(e,t,n={}){const r=Fi(t),s=It(r)||Ft(),o=w(),i=w(null),a=w(!1),l=w(!1),c=fr(!0),u=w({}),f=j(()=>Fe(Fe(Fe({},xi),n),u.value)),p=w(0);let d;c.run(()=>{d=Li(o),S(o,async b=>{b&&(l.value=!0),await z(),o.value||(l.value=!1)})});const m=It(e);function _(){return`starport-${s}-${m}-${Ft()}`}const g=_();return M({el:o,id:g,port:e,props:i,rect:d,scope:c,isLanded:a,isVisible:l,options:f,liftOffTime:p,component:t,componentName:r,componentId:s,generateId:_,setLocalOptions(b={}){u.value=JSON.parse(JSON.stringify(b))},elRef(){return o},liftOff(){a.value&&(a.value=!1,p.value=Date.now(),d.listen())},land(){a.value||(a.value=!0,d.pause())}})}function ki(e){const t=M(new Map);function n(s,o){let i=t.get(s);return i||(i=Ri(s,o,e),t.set(s,i)),i.component=o,i}function r(s){var o;(o=t.get(s))==null||o.scope.stop(),t.delete(s)}return{portMap:t,dispose:r,getInstance:n}}var Bi=Object.defineProperty,Hi=Object.defineProperties,qi=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,Ui=Object.prototype.hasOwnProperty,zi=Object.prototype.propertyIsEnumerable,kt=(e,t,n)=>t in e?Bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wi=(e,t)=>{for(var n in t||(t={}))Ui.call(t,n)&&kt(e,n,t[n]);if(Rt)for(var n of Rt(t))zi.call(t,n)&&kt(e,n,t[n]);return e},Ki=(e,t)=>Hi(e,qi(t));const Zi=B({name:"StarportCraft",props:{port:{type:String,required:!0},component:{type:Object,required:!0}},setup(e){const t=te(be);if(!t)throw new Error("[Vue Starport] Failed to find the carrier, all Starport components must be wrapped in a component.");const n=j(()=>t.getInstance(e.port,e.component)),r=j(()=>{var i;return((i=n.value.el)==null?void 0:i.id)||n.value.id}),s=j(()=>{const i=Date.now()-n.value.liftOffTime,a=Math.max(0,n.value.options.duration-i),l=n.value.rect,c={position:"absolute",left:0,top:0,width:`${l.width}px`,height:`${l.height}px`,margin:l.margin,padding:l.padding,transform:`translate3d(${l.left}px,${l.top}px,0px)`};return!n.value.isVisible||!n.value.el?Ki(Wi({},c),{zIndex:-1,display:"none"}):(n.value.isLanded?c.display="none":Object.assign(c,{transitionProperty:"all",transitionDuration:`${a}ms`,transitionTimingFunction:n.value.options.easing}),c)}),o={onTransitionend(i){n.value.isLanded||console.warn(`[Vue Starport] Transition duration of component "${n.value.componentName}" is too short (${i.elapsedTime}s) that may cause animation glitches. Try to increase the duration of that component, or decrease the duration the Starport (current: ${n.value.options.duration/1e3}s).`)}};return()=>{const i=!!(n.value.isLanded&&n.value.el);return $("div",{style:s.value,"data-starport-craft":n.value.componentId,"data-starport-landed":n.value.isLanded?"true":void 0,"data-starport-floating":n.value.isLanded?void 0:"true",onTransitionend:n.value.land},$(cr,{to:i?`#${r.value}`:"body",disabled:!i},$(n.value.component,Ne(o,n.value.props))))}}}),Yi=B({name:"StarportCarrier",setup(e,{slots:t}){const n=ki(te(Ln,{}));return ur().appContext.app.provide(be,n),()=>{var s;return[(s=t.default)==null?void 0:s.call(t),Array.from(n.portMap.entries()).map(([o,{component:i}])=>$(Zi,{key:o,port:o,component:i}))]}}});function Gi(e={}){return{install(t){t.provide(Ln,e),t.component("Starport",Vi),t.component("StarportCarrier",Yi)}}}function Ji(e){function t(){document.documentElement.style.setProperty("--vh",`${window.innerHeight*.01}px`)}t(),window.addEventListener("resize",t),e.app.use(mi),e.app.use(Gi({keepAlive:!0}))}function A(e,t,n){var r;return((r=e.instance)==null?void 0:r.$).provides[t]??n}function Xi(){return{install(e){e.directive("click",{name:"v-click",mounted(t,n){var u,f,p,d;if(xe.value||(u=A(n,_e))!=null&&u.value)return;const r=A(n,q),s=A(n,we),o=A(n,mt),i=n.modifiers.hide!==!1&&n.modifiers.hide!=null,a=n.modifiers.fade!==!1&&n.modifiers.fade!=null,l=((f=r==null?void 0:r.value)==null?void 0:f.length)||0,c=a?pr:Te;if(r&&!((p=r==null?void 0:r.value)!=null&&p.includes(t))&&r.value.push(t),n.value==null&&(n.value=r==null?void 0:r.value.length),!(o!=null&&o.value.has(n.value)))o==null||o.value.set(n.value,[t]);else if(!((d=o==null?void 0:o.value.get(n.value))!=null&&d.includes(t))){const m=(o==null?void 0:o.value.get(n.value))||[];o==null||o.value.set(n.value,[t].concat(m))}t==null||t.classList.toggle(R,!0),s&&S(s,()=>{const m=(s==null?void 0:s.value)??0,_=n.value!=null?m>=n.value:m>l;t.classList.contains(Se)||t.classList.toggle(c,!_),i!==!1&&i!==void 0&&t.classList.toggle(c,_),t.classList.toggle(U,!1);const g=o==null?void 0:o.value.get(m);g==null||g.forEach((b,x)=>{b.classList.toggle(ae,!1),x===g.length-1?b.classList.toggle(U,!0):b.classList.toggle(ae,!0)}),t.classList.contains(U)||t.classList.toggle(ae,_)},{immediate:!0})},unmounted(t,n){t==null||t.classList.toggle(R,!1);const r=A(n,q);r!=null&&r.value&&dt(r.value,t)}}),e.directive("after",{name:"v-after",mounted(t,n){var a,l;if(xe.value||(a=A(n,_e))!=null&&a.value)return;const r=A(n,q),s=A(n,we),o=A(n,mt),i=r==null?void 0:r.value.length;n.value==null&&(n.value=r==null?void 0:r.value.length),o!=null&&o.value.has(n.value)?(l=o==null?void 0:o.value.get(n.value))==null||l.push(t):o==null||o.value.set(n.value,[t]),t==null||t.classList.toggle(R,!0),s&&S(s,()=>{const c=(s.value??0)>=(n.value??i??0);t.classList.contains(Se)||t.classList.toggle(Te,!c),t.classList.toggle(U,!1),t.classList.contains(U)||t.classList.toggle(ae,c)},{immediate:!0})},unmounted(t){t==null||t.classList.toggle(R,!0)}}),e.directive("click-hide",{name:"v-click-hide",mounted(t,n){var i,a,l;if(xe.value||(i=A(n,_e))!=null&&i.value)return;const r=A(n,q),s=A(n,we),o=((a=r==null?void 0:r.value)==null?void 0:a.length)||0;r&&!((l=r==null?void 0:r.value)!=null&&l.includes(t))&&r.value.push(t),t==null||t.classList.toggle(R,!0),s&&S(s,()=>{const c=(s==null?void 0:s.value)??0,u=n.value!=null?c>=n.value:c>o;t.classList.toggle(Te,u),t.classList.toggle(Se,u)},{immediate:!0})},unmounted(t,n){t==null||t.classList.toggle(R,!1);const r=A(n,q);r!=null&&r.value&&dt(r.value,t)}})}}}function Qi(e,t){const n=dr(e),r=mr(t,n.currentRoute,n.currentPage);return{nav:{...n,...r,downloadPDF:hr,next:yr,nextSlide:vr,openInEditor:gr,prev:br,prevSlide:Or},configs:W,themeConfigs:j(()=>W.themeConfig)}}function ea(){return{install(e){const t=Qi(xr,fe);e.provide(Bt,M(t))}}}const H=_r(Mr);H.use(K);H.use($r());H.use(Xi());H.use(ea());Ji({app:H,router:K});H.mount("#app");