@ndgmnt/client--nudgemoment 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +41 -3
- package/dist/style.css +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* @license
|
3
|
-
* NudgeMoment v0.0.
|
3
|
+
* NudgeMoment v0.0.6
|
4
4
|
* Copyright (c) 2025 NudgeMoment. All Rights Reserved.
|
5
5
|
*
|
6
6
|
* This source code is licensed under a proprietary license (All Rights Reserved).
|
@@ -8,5 +8,43 @@
|
|
8
8
|
* via any medium, is strictly prohibited without express written permission.
|
9
9
|
* Legal action will be taken against unauthorized use.
|
10
10
|
*/
|
11
|
-
"use strict";(()=>{var Ai=Object.defineProperty;var Ei=(e,t,n)=>t in e?Ai(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var D=(e,t,n)=>Ei(e,typeof t!="symbol"?t+"":t,n);var N=e=>e,ge=N,k=N,X=(e,t,n)=>{let i=t-e;return i===0?1:(n-e)/i},Zt=(e,t,n)=>{let i=t-e;return((n-e)%i+i)%i+e};function De(e){let t;return()=>(t===void 0&&(t=e()),t)}var Xt=De(()=>window.ScrollTimeline!==void 0),Fi=class{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){let n=this.animations.map(i=>{if(Xt()&&i.attachTimeline)return i.attachTimeline(e);if(typeof t=="function")return t(i)});return()=>{n.forEach((i,r)=>{i&&i(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},ve=class extends Fi{then(e,t){return Promise.all(this.animations).then(e).catch(t)}},P=e=>e*1e3,I=e=>e/1e3;function Ie(e,t){return e?e[t]||e.default||e:void 0}function Le(e,t,n){var i;if(e instanceof Element)return[e];if(typeof e=="string"){let r=document;t&&(r=t.current);let s=(i=n?.[e])!==null&&i!==void 0?i:r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}var me=2e4;function Ne(e){let t=0,n=50,i=e.next(t);for(;!i.done&&t<me;)t+=n,i=e.next(t);return t>=me?1/0:t}function Jt(e,t=100,n){let i=n({...e,keyframes:[0,t]}),r=Math.min(Ne(i),me);return{type:"keyframes",ease:s=>i.next(r*s).value/t,duration:I(r)}}function J(e){return typeof e=="function"}function ke(e,t){e.timeline=t,e.onfinish=null}var Oi=class{constructor(e){this.animation=e}get duration(){var e,t,n;let i=((t=(e=this.animation)===null||e===void 0?void 0:e.effect)===null||t===void 0?void 0:t.getComputedTiming().duration)||((n=this.options)===null||n===void 0?void 0:n.duration)||300;return I(Number(i))}get time(){var e;return this.animation?I(((e=this.animation)===null||e===void 0?void 0:e.currentTime)||0):0}set time(e){this.animation&&(this.animation.currentTime=P(e))}get speed(){return this.animation?this.animation.playbackRate:1}set speed(e){this.animation&&(this.animation.playbackRate=e)}get state(){return this.animation?this.animation.playState:"finished"}get startTime(){return this.animation?this.animation.startTime:null}get finished(){return this.animation?this.animation.finished:Promise.resolve()}play(){this.animation&&this.animation.play()}pause(){this.animation&&this.animation.pause()}stop(){!this.animation||this.state==="idle"||this.state==="finished"||(this.animation.commitStyles&&this.animation.commitStyles(),this.cancel())}flatten(){var e;this.animation&&((e=this.animation.effect)===null||e===void 0||e.updateTiming({easing:"linear"}))}attachTimeline(e){return this.animation&&ke(this.animation,e),N}complete(){this.animation&&this.animation.finish()}cancel(){try{this.animation&&this.animation.cancel()}catch{}}},Pi={linearEasing:void 0};function _i(e,t){let n=De(e);return()=>{var i;return(i=Pi[t])!==null&&i!==void 0?i:n()}}var Z=_i(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Re=e=>Array.isArray(e)&&typeof e[0]=="number",Ze=(e,t,n=10)=>{let i="",r=Math.max(Math.round(t/n),2);for(let s=0;s<r;s++)i+=e(X(0,r-1,s))+", ";return`linear(${i.substring(0,i.length-2)})`};function Xe(e){return!!(typeof e=="function"&&Z()||!e||typeof e=="string"&&(e in Ye||Z())||Re(e)||Array.isArray(e)&&e.every(Xe))}var pe=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,Ye={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pe([0,.65,.55,1]),circOut:pe([.55,0,1,.45]),backIn:pe([.31,.01,.66,-.59]),backOut:pe([.33,1.53,.69,.99])};function Qt(e,t){if(e)return typeof e=="function"&&Z()?Ze(e,t):Re(e)?pe(e):Array.isArray(e)?e.map(n=>Qt(n,t)||Ye.easeOut):Ye[e]}function Je(e,t,n,{delay:i=0,duration:r=300,repeat:s=0,repeatType:a="loop",ease:o="easeInOut",times:l}={}){let u={[t]:n};l&&(u.offset=l);let c=Qt(o,r);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:i,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"})}var ye=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),W=ye("deg"),U=ye("%"),h=ye("px"),en=ye("vh"),tn=ye("vw"),Qe={...U,parse:e=>U.parse(e)/100,transform:e=>U.transform(e*100)},_e={borderWidth:h,borderTopWidth:h,borderRightWidth:h,borderBottomWidth:h,borderLeftWidth:h,borderRadius:h,radius:h,borderTopLeftRadius:h,borderTopRightRadius:h,borderBottomRightRadius:h,borderBottomLeftRadius:h,width:h,maxWidth:h,height:h,maxHeight:h,top:h,right:h,bottom:h,left:h,padding:h,paddingTop:h,paddingRight:h,paddingBottom:h,paddingLeft:h,margin:h,marginTop:h,marginRight:h,marginBottom:h,marginLeft:h,backgroundPositionX:h,backgroundPositionY:h},Di=e=>e!==null;function Q(e,{repeat:t,repeatType:n="loop"},i){let r=e.filter(Di),s=t&&n!=="loop"&&t%2===1?0:r.length-1;return!s||i===void 0?r[s]:i}function Ii(e,t,n){e.style.setProperty(`--${t}`,n)}function Li(e,t,n){e.style[t]=n}var Ni=De(()=>{try{document.createElement("div").animate({opacity:[1]})}catch{return!1}return!0}),et=De(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Pe=new WeakMap;function ki(e,t,n){for(let i=0;i<t.length;i++)t[i]===null&&(t[i]=i===0?n():t[i-1]),typeof t[i]=="number"&&_e[e]&&(t[i]=_e[e].transform(t[i]));!Ni()&&t.length<2&&t.unshift(n())}var zt="easeOut";function $t(e){let t=Pe.get(e)||new Map;return Pe.set(e,t),Pe.get(e)}var Ri=class extends Oi{constructor(e,t,n,i){let r=t.startsWith("--");k(typeof i.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "framer-motion"?`);let s=$t(e).get(t);s&&s.stop();let a=()=>t.startsWith("--")?e.style.getPropertyValue(t):window.getComputedStyle(e)[t];if(Array.isArray(n)||(n=[n]),ki(t,n,a),J(i.type)){let u=Jt(i,100,i.type);i.ease=Z()?u.ease:zt,i.duration=P(u.duration),i.type="keyframes"}else i.ease=i.ease||zt;let o=()=>{this.setValue(e,t,Q(n,i)),this.cancel(),this.resolveFinishedPromise()},l=()=>{this.setValue=r?Ii:Li,this.options=i,this.updateFinishedPromise(),this.removeAnimation=()=>{var u;return(u=Pe.get(e))===null||u===void 0?void 0:u.delete(t)}};et()?(super(Je(e,t,n,i)),l(),i.autoplay===!1&&this.animation.pause(),this.animation.onfinish=o,$t(e).set(t,this)):(super(),l(),o())}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}play(){this.state==="finished"&&this.updateFinishedPromise(),super.play()}cancel(){this.removeAnimation(),super.cancel()}};function nn(e,t,n,i){let r=Le(e,i),s=r.length;k(!!s,"No valid element provided.");let a=[];for(let o=0;o<s;o++){let l=r[o],u={...n};typeof u.delay=="function"&&(u.delay=u.delay(o,s));for(let c in t){let f=t[c],d={...Ie(u,c)};d.duration=d.duration?P(d.duration):d.duration,d.delay=P(d.delay||0),a.push(new Ri(l,c,f,d))}}return a}var Bi=e=>{function t(n,i,r){return new ve(nn(n,i,r,e))}return t},be=Bi(),tt=e=>Array.isArray(e)&&typeof e[0]!="number",ee=(e,t,n)=>e+(t-e)*n;function rn(e,t){let n=e[e.length-1];for(let i=1;i<=t;i++){let r=X(0,t,i);e.push(ee(n,1,r))}}function nt(e){let t=[0];return rn(t,e.length-1),t}function sn(e,t){return tt(e)?e[Zt(0,e.length,t)]:e}var F=e=>!!(e&&e.getVelocity);function Be(e){return typeof e=="object"&&!Array.isArray(e)}function it(e,t,n,i){return typeof e=="string"&&Be(t)?Le(e,n,i):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function Wi(e,t,n){return e*(t+1)}function qt(e,t,n,i){var r;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(r=i.get(t))!==null&&r!==void 0?r:e}function an(e,t){e.indexOf(t)===-1&&e.push(t)}function rt(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ki(e,t,n){for(let i=0;i<e.length;i++){let r=e[i];r.at>t&&r.at<n&&(rt(e,r),i--)}}function Hi(e,t,n,i,r,s){Ki(e,r,s);for(let a=0;a<t.length;a++)e.push({value:t[a],at:ee(r,s,i[a]),easing:sn(n,a)})}function Gi(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function Ui(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var zi="easeInOut",$i=20;function st(e,{defaultTransition:t={},...n}={},i,r){let s=t.duration||.3,a=new Map,o=new Map,l={},u=new Map,c=0,f=0,d=0;for(let g=0;g<e.length;g++){let v=e[g];if(typeof v=="string"){u.set(v,f);continue}else if(!Array.isArray(v)){u.set(v.name,qt(f,v.at,c,u));continue}let[w,b,p={}]=v;p.at!==void 0&&(f=qt(f,p.at,c,u));let T=0,E=(M,m,S,V=0,y=0)=>{let x=qi(M),{delay:Y=0,times:B=nt(x),type:je="keyframes",repeat:ce,repeatType:_a,repeatDelay:Da=0,...Vi}=m,{ease:H=t.ease||"easeOut",duration:L}=m,Bt=typeof Y=="function"?Y(V,y):Y,Wt=x.length,Kt=J(je)?je:r?.[je];if(Wt<=2&&Kt){let fe=100;if(Wt===2&&Zi(x)){let de=x[1]-x[0];fe=Math.abs(de)}let Fe={...Vi};L!==void 0&&(Fe.duration=P(L));let Oe=Jt(Fe,fe,Kt);H=Oe.ease,L=Oe.duration}L??(L=s);let Ht=f+Bt;B.length===1&&B[0]===0&&(B[1]=1);let Gt=B.length-x.length;if(Gt>0&&rn(B,Gt),x.length===1&&x.unshift(null),ce){k(ce<$i,"Repeat count too high, must be less than 20"),L=Wi(L,ce);let fe=[...x],Fe=[...B];H=Array.isArray(H)?[...H]:[H];let Oe=[...H];for(let de=0;de<ce;de++){x.push(...fe);for(let he=0;he<fe.length;he++)B.push(Fe[he]+(de+1)),H.push(he===0?"linear":sn(Oe,he-1))}Gi(B,ce)}let Ut=Ht+L;Hi(S,x,H,B,Ht,Ut),T=Math.max(Bt+L,T),d=Math.max(Ut,d)};if(F(w)){let M=jt(w,o);E(b,p,Yt("default",M))}else{let M=it(w,b,i,l),m=M.length;for(let S=0;S<m;S++){b=b,p=p;let V=M[S],y=jt(V,o);for(let x in b)E(b[x],ji(p,x),Yt(x,y),S,m)}}c=f,f+=T}return o.forEach((g,v)=>{for(let w in g){let b=g[w];b.sort(Ui);let p=[],T=[],E=[];for(let m=0;m<b.length;m++){let{at:S,value:V,easing:y}=b[m];p.push(V),T.push(X(0,d,S)),E.push(y||"easeOut")}T[0]!==0&&(T.unshift(0),p.unshift(p[0]),E.unshift(zi)),T[T.length-1]!==1&&(T.push(1),p.push(null)),a.has(v)||a.set(v,{keyframes:{},transition:{}});let M=a.get(v);M.keyframes[w]=p,M.transition[w]={...t,duration:d,ease:E,times:T,...n}}}),a}function jt(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Yt(e,t){return t[e]||(t[e]=[]),t[e]}function qi(e){return Array.isArray(e)?e:[e]}function ji(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Yi=e=>typeof e=="number",Zi=e=>e.every(Yi);var j=(e,t,n)=>n>t?t:n<e?e:n;function An(e,t){return t?e*(1e3/t):0}var Xi=5;function En(e,t,n){let i=Math.max(t-Xi,0);return An(n-e(i),t-i)}var A={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},on=.001;function Ji({duration:e=A.duration,bounce:t=A.bounce,velocity:n=A.velocity,mass:i=A.mass}){let r,s;ge(e<=P(A.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=j(A.minDamping,A.maxDamping,a),e=j(A.minDuration,A.maxDuration,I(e)),a<1?(r=u=>{let c=u*a,f=c*e,d=c-n,g=ut(u,a),v=Math.exp(-f);return on-d/g*v},s=u=>{let f=u*a*e,d=f*n+n,g=Math.pow(a,2)*Math.pow(u,2)*e,v=Math.exp(-f),w=ut(Math.pow(u,2),a);return(-r(u)+on>0?-1:1)*((d-g)*v)/w}):(r=u=>{let c=Math.exp(-u*e),f=(u-n)*e+1;return-.001+c*f},s=u=>{let c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});let o=5/e,l=er(r,s,o);if(e=P(e),isNaN(l))return{stiffness:A.stiffness,damping:A.damping,duration:e};{let u=Math.pow(l,2)*i;return{stiffness:u,damping:a*2*Math.sqrt(i*u),duration:e}}}var Qi=12;function er(e,t,n){let i=n;for(let r=1;r<Qi;r++)i=i-e(i)/t(i);return i}function ut(e,t){return e*Math.sqrt(1-t*t)}var tr=["duration","bounce"],nr=["stiffness","damping","mass"];function ln(e,t){return t.some(n=>e[n]!==void 0)}function ir(e){let t={velocity:A.velocity,stiffness:A.stiffness,damping:A.damping,mass:A.mass,isResolvedFromDuration:!1,...e};if(!ln(e,nr)&&ln(e,tr))if(e.visualDuration){let n=e.visualDuration,i=2*Math.PI/(n*1.2),r=i*i,s=2*j(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:A.mass,stiffness:r,damping:s}}else{let n=Ji(e);t={...t,...n,mass:A.mass},t.isResolvedFromDuration=!0}return t}function yt(e=A.visualDuration,t=A.bounce){let n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:r}=n,s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],o={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:g}=ir({...n,velocity:-I(n.velocity||0)}),v=d||0,w=u/(2*Math.sqrt(l*c)),b=a-s,p=I(Math.sqrt(l/c)),T=Math.abs(b)<5;i||(i=T?A.restSpeed.granular:A.restSpeed.default),r||(r=T?A.restDelta.granular:A.restDelta.default);let E;if(w<1){let m=ut(p,w);E=S=>{let V=Math.exp(-w*p*S);return a-V*((v+w*p*b)/m*Math.sin(m*S)+b*Math.cos(m*S))}}else if(w===1)E=m=>a-Math.exp(-p*m)*(b+(v+p*b)*m);else{let m=p*Math.sqrt(w*w-1);E=S=>{let V=Math.exp(-w*p*S),y=Math.min(m*S,300);return a-V*((v+w*p*b)*Math.sinh(y)+m*b*Math.cosh(y))/m}}let M={calculatedDuration:g&&f||null,next:m=>{let S=E(m);if(g)o.done=m>=f;else{let V=0;w<1&&(V=m===0?P(v):En(E,m,S));let y=Math.abs(V)<=i,x=Math.abs(a-S)<=r;o.done=y&&x}return o.value=o.done?a:S,o},toString:()=>{let m=Math.min(Ne(M),me),S=Ze(V=>M.next(m*V).value,m,30);return m+"ms "+S}};return M}var ne=new WeakMap,re=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],se=new Set(re),Fn=new Set(["width","height","top","left","right","bottom",...re]),rr=e=>Array.isArray(e),sr=e=>rr(e)?e[e.length-1]||0:e,ar={skipAnimations:!1,useManualTiming:!1};function or(e){let t=new Set,n=new Set,i=!1,r=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function o(u){s.has(u)&&(l.schedule(u),e()),u(a)}let l={schedule:(u,c=!1,f=!1)=>{let g=f&&i?t:n;return c&&s.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(a=u,i){r=!0;return}i=!0,[t,n]=[n,t],t.forEach(o),t.clear(),i=!1,r&&(r=!1,l.process(u))}};return l}var we=["read","resolveKeyframes","update","preRender","render","postRender"],lr=40;function ur(e,t){let n=!1,i=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=we.reduce((p,T)=>(p[T]=or(s),p),{}),{read:o,resolveKeyframes:l,update:u,preRender:c,render:f,postRender:d}=a,g=()=>{let p=performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(p-r.timestamp,lr),1),r.timestamp=p,r.isProcessing=!0,o.process(r),l.process(r),u.process(r),c.process(r),f.process(r),d.process(r),r.isProcessing=!1,n&&t&&(i=!1,e(g))},v=()=>{n=!0,i=!0,r.isProcessing||e(g)};return{schedule:we.reduce((p,T)=>{let E=a[T];return p[T]=(M,m=!1,S=!1)=>(n||v(),E.schedule(M,m,S)),p},{}),cancel:p=>{for(let T=0;T<we.length;T++)a[we[T]].cancel(p)},state:r,steps:a}}var{schedule:K,cancel:He,state:Ge,steps:Ua}=ur(typeof requestAnimationFrame<"u"?requestAnimationFrame:N,!0),Ke;function cr(){Ke=void 0}var G={now:()=>(Ke===void 0&&G.set(Ge.isProcessing||ar.useManualTiming?Ge.timestamp:performance.now()),Ke),set:e=>{Ke=e,queueMicrotask(cr)}},On=class{constructor(){this.subscriptions=[]}add(e){return an(this.subscriptions,e),()=>rt(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,t,n);else for(let r=0;r<i;r++){let s=this.subscriptions[r];s&&s(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var un=30,fr=e=>!isNaN(parseFloat(e)),dr=class{constructor(e,t={}){this.version="11.18.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,i=!0)=>{let r=G.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=G.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=fr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new On);let n=this.events[e].add(t);return e==="change"?()=>{n(),K.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){!t||!this.passiveEffect?this.updateAndNotify(e,t):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=G.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>un)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,un);return An(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Se(e,t){return new dr(e,t)}function cn(e){let t=[{},{}];return e?.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function Pn(e,t,n,i){if(typeof t=="function"){let[r,s]=cn(i);t=t(n!==void 0?n:e.custom,r,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[r,s]=cn(i);t=t(n!==void 0?n:e.custom,r,s)}return t}function hr(e,t,n){let i=e.getProps();return Pn(i,t,i.custom,e)}function pr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Se(n))}function mr(e,t){let n=hr(e,t),{transitionEnd:i={},transition:r={},...s}=n||{};s={...s,...i};for(let a in s){let o=sr(s[a]);pr(e,a,o)}}function gr(e){return!!(F(e)&&e.add)}function vr(e,t){let n=e.getValue("willChange");if(gr(n))return n.add(t)}var bt=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),yr="framerAppearId",br="data-"+bt(yr);function wr(e){return e.props[br]}var _n=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Tr=1e-7,Sr=12;function xr(e,t,n,i,r){let s,a,o=0;do a=t+(n-t)/2,s=_n(a,i,r)-e,s>0?n=a:t=a;while(Math.abs(s)>Tr&&++o<Sr);return a}function Me(e,t,n,i){if(e===t&&n===i)return N;let r=s=>xr(s,0,1,e,n);return s=>s===0||s===1?s:_n(r(s),t,i)}var Dn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,In=e=>t=>1-e(1-t),Ln=Me(.33,1.53,.69,.99),wt=In(Ln),Nn=Dn(wt),kn=e=>(e*=2)<1?.5*wt(e):.5*(2-Math.pow(2,-10*(e-1))),Tt=e=>1-Math.sin(Math.acos(e)),Cr=In(Tt),Rn=Dn(Tt),Bn=e=>/^0[^.\s]+$/u.test(e);function Mr(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Bn(e):!0}var ae={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},xe={...ae,transform:e=>j(0,1,e)},We={...ae,default:1},Te=e=>Math.round(e*1e5)/1e5,St=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Vr(e){return e==null}var Ar=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xt=(e,t)=>n=>!!(typeof n=="string"&&Ar.test(n)&&n.startsWith(e)||t&&!Vr(n)&&Object.prototype.hasOwnProperty.call(n,t)),Wn=(e,t,n)=>i=>{if(typeof i!="string")return i;let[r,s,a,o]=i.match(St);return{[e]:parseFloat(r),[t]:parseFloat(s),[n]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},Er=e=>j(0,255,e),at={...ae,transform:e=>Math.round(Er(e))},z={test:xt("rgb","red"),parse:Wn("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+at.transform(e)+", "+at.transform(t)+", "+at.transform(n)+", "+Te(xe.transform(i))+")"};function Fr(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}var ct={test:xt("#"),parse:Fr,transform:z.transform},te={test:xt("hsl","hue"),parse:Wn("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+U.transform(Te(t))+", "+U.transform(Te(n))+", "+Te(xe.transform(i))+")"},O={test:e=>z.test(e)||ct.test(e)||te.test(e),parse:e=>z.test(e)?z.parse(e):te.test(e)?te.parse(e):ct.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?z.transform(e):te.transform(e)},Or=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Pr(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(St))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Or))===null||n===void 0?void 0:n.length)||0)>0}var Kn="number",Hn="color",_r="var",Dr="var(",fn="${}",Ir=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ce(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[],s=0,o=t.replace(Ir,l=>(O.test(l)?(i.color.push(s),r.push(Hn),n.push(O.parse(l))):l.startsWith(Dr)?(i.var.push(s),r.push(_r),n.push(l)):(i.number.push(s),r.push(Kn),n.push(parseFloat(l))),++s,fn)).split(fn);return{values:n,split:o,indexes:i,types:r}}function Gn(e){return Ce(e).values}function Un(e){let{split:t,types:n}=Ce(e),i=t.length;return r=>{let s="";for(let a=0;a<i;a++)if(s+=t[a],r[a]!==void 0){let o=n[a];o===Kn?s+=Te(r[a]):o===Hn?s+=O.transform(r[a]):s+=r[a]}return s}}var Lr=e=>typeof e=="number"?0:e;function Nr(e){let t=Gn(e);return Un(e)(t.map(Lr))}var oe={test:Pr,parse:Gn,createTransformer:Un,getAnimatableNone:Nr},kr=new Set(["brightness","contrast","saturate","opacity"]);function Rr(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[i]=n.match(St)||[];if(!i)return e;let r=n.replace(i,""),s=kr.has(t)?1:0;return i!==n&&(s*=100),t+"("+s+r+")"}var Br=/\b([a-z-]*)\(.*?\)/gu,ft={...oe,getAnimatableNone:e=>{let t=e.match(Br);return t?t.map(Rr).join(" "):e}},Wr={rotate:W,rotateX:W,rotateY:W,rotateZ:W,scale:We,scaleX:We,scaleY:We,scaleZ:We,skew:W,skewX:W,skewY:W,distance:h,translateX:h,translateY:h,translateZ:h,x:h,y:h,z:h,perspective:h,transformPerspective:h,opacity:xe,originX:Qe,originY:Qe,originZ:h},dn={...ae,transform:Math.round},Ct={..._e,...Wr,zIndex:dn,size:h,fillOpacity:xe,strokeOpacity:xe,numOctaves:dn},Kr={...Ct,color:O,backgroundColor:O,outlineColor:O,fill:O,stroke:O,borderColor:O,borderTopColor:O,borderRightColor:O,borderBottomColor:O,borderLeftColor:O,filter:ft,WebkitFilter:ft},Mt=e=>Kr[e];function zn(e,t){let n=Mt(e);return n!==ft&&(n=oe),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Hr=new Set(["auto","none","0"]);function Gr(e,t,n){let i=0,r;for(;i<e.length&&!r;){let s=e[i];typeof s=="string"&&!Hr.has(s)&&Ce(s).values.length&&(r=e[i]),i++}if(r&&n)for(let s of t)e[s]=zn(n,r)}var hn=e=>e===ae||e===h,pn=(e,t)=>parseFloat(e.split(", ")[t]),mn=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;let r=i.match(/^matrix3d\((.+)\)$/u);if(r)return pn(r[1],t);{let s=i.match(/^matrix\((.+)\)$/u);return s?pn(s[1],e):0}},Ur=new Set(["x","y","z"]),zr=re.filter(e=>!Ur.has(e));function $r(e){let t=[];return zr.forEach(n=>{let i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}var ie={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:mn(4,13),y:mn(5,14)};ie.translateX=ie.x;ie.translateY=ie.y;var q=new Set,dt=!1,ht=!1;function $n(){if(ht){let e=Array.from(q).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{let r=$r(i);r.length&&(n.set(i,r),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();let r=n.get(i);r&&r.forEach(([s,a])=>{var o;(o=i.getValue(s))===null||o===void 0||o.set(a)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}ht=!1,dt=!1,q.forEach(e=>e.complete()),q.clear()}function qn(){q.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ht=!0)})}function qr(){qn(),$n()}var Vt=class{constructor(e,t,n,i,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(q.add(this),dt||(dt=!0,K.read(qn),K.resolveKeyframes($n))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;for(let r=0;r<e.length;r++)if(e[r]===null)if(r===0){let s=i?.get(),a=e[e.length-1];if(s!==void 0)e[0]=s;else if(n&&t){let o=n.readValue(t,a);o!=null&&(e[0]=o)}e[0]===void 0&&(e[0]=a),i&&s===void 0&&i.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),q.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,q.delete(this))}resume(){this.isComplete||this.scheduleResolve()}},jn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Yn=e=>t=>typeof t=="string"&&t.startsWith(e),Zn=Yn("--"),jr=Yn("var(--"),At=e=>jr(e)?Yr.test(e.split("/*")[0].trim()):!1,Yr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Zr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Xr(e){let t=Zr.exec(e);if(!t)return[,];let[,n,i,r]=t;return[`--${n??i}`,r]}var Jr=4;function Xn(e,t,n=1){k(n<=Jr,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,r]=Xr(e);if(!i)return;let s=window.getComputedStyle(t).getPropertyValue(i);if(s){let a=s.trim();return jn(a)?parseFloat(a):a}return At(r)?Xn(r,t,n+1):r}var Jn=e=>t=>t.test(e),Qr={test:e=>e==="auto",parse:e=>e},Qn=[ae,h,U,W,tn,en,Qr],gn=e=>Qn.find(Jn(e)),ei=class extends Vt{constructor(e,t,n,i,r){super(e,t,n,i,r,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let o=0;o<e.length;o++){let l=e[o];if(typeof l=="string"&&(l=l.trim(),At(l))){let u=Xn(l,t.current);u!==void 0&&(e[o]=u),o===e.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Fn.has(n)||e.length!==2)return;let[i,r]=e,s=gn(i),a=gn(r);if(s!==a)if(hn(s)&&hn(a))for(let o=0;o<e.length;o++){let l=e[o];typeof l=="string"&&(e[o]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let i=0;i<e.length;i++)Mr(e[i])&&n.push(i);n.length&&Gr(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ie[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];i!==void 0&&e.getValue(n,i).jump(i,!1)}measureEndState(){var e;let{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);let s=i.length-1,a=i[s];i[s]=ie[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([o,l])=>{t.getValue(o).set(l)}),this.resolveNoneKeyframes()}},vn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(oe.test(e)||e==="0")&&!e.startsWith("url("));function es(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function ts(e,t,n,i){let r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;let s=e[e.length-1],a=vn(r,t),o=vn(s,t);return ge(a===o,`You are trying to animate ${t} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!a||!o?!1:es(e)||(n==="spring"||J(n))&&i}var ns=40,ti=class{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=G.now(),this.options={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:r,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>ns?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&qr(),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=G.now(),this.hasAttemptedResolve=!0;let{name:n,type:i,velocity:r,delay:s,onComplete:a,onUpdate:o,isGenerator:l}=this.options;if(!l&&!ts(e,n,i,r))if(s)this.options.duration=0;else{o?.(Q(e,this.options,t)),a?.(),this.resolveFinishedPromise();return}let u=this.initPlayback(e,t);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}};function ot(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 is({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let r=0,s=0,a=0;if(!t)r=s=a=n;else{let o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;r=ot(l,o,e+1/3),s=ot(l,o,e),a=ot(l,o,e-1/3)}return{red:Math.round(r*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:i}}function Ue(e,t){return n=>n>0?t:e}var lt=(e,t,n)=>{let i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},rs=[ct,z,te],ss=e=>rs.find(t=>t.test(e));function yn(e){let t=ss(e);if(ge(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===te&&(n=is(n)),n}var bn=(e,t)=>{let n=yn(e),i=yn(t);if(!n||!i)return Ue(e,t);let r={...n};return s=>(r.red=lt(n.red,i.red,s),r.green=lt(n.green,i.green,s),r.blue=lt(n.blue,i.blue,s),r.alpha=ee(n.alpha,i.alpha,s),z.transform(r))},as=(e,t)=>n=>t(e(n)),Et=(...e)=>e.reduce(as),pt=new Set(["none","hidden"]);function os(e,t){return pt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ls(e,t){return n=>ee(e,t,n)}function Ft(e){return typeof e=="number"?ls:typeof e=="string"?At(e)?Ue:O.test(e)?bn:fs:Array.isArray(e)?ni:typeof e=="object"?O.test(e)?bn:us:Ue}function ni(e,t){let n=[...e],i=n.length,r=e.map((s,a)=>Ft(s)(s,t[a]));return s=>{for(let a=0;a<i;a++)n[a]=r[a](s);return n}}function us(e,t){let n={...e,...t},i={};for(let r in n)e[r]!==void 0&&t[r]!==void 0&&(i[r]=Ft(e[r])(e[r],t[r]));return r=>{for(let s in i)n[s]=i[s](r);return n}}function cs(e,t){var n;let i=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){let a=t.types[s],o=e.indexes[a][r[a]],l=(n=e.values[o])!==null&&n!==void 0?n:0;i[s]=l,r[a]++}return i}var fs=(e,t)=>{let n=oe.createTransformer(t),i=Ce(e),r=Ce(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?pt.has(e)&&!r.values.length||pt.has(t)&&!i.values.length?os(e,t):Et(ni(cs(i,r),r.values),n):(ge(!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.`),Ue(e,t))};function ii(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ee(e,t,n):Ft(e)(e,t)}function wn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:c}){let f=e[0],d={done:!1,value:f},g=y=>o!==void 0&&y<o||l!==void 0&&y>l,v=y=>o===void 0?l:l===void 0||Math.abs(o-y)<Math.abs(l-y)?o:l,w=n*t,b=f+w,p=a===void 0?b:a(b);p!==b&&(w=p-f);let T=y=>-w*Math.exp(-y/i),E=y=>p+T(y),M=y=>{let x=T(y),Y=E(y);d.done=Math.abs(x)<=u,d.value=d.done?p:Y},m,S,V=y=>{g(d.value)&&(m=y,S=yt({keyframes:[d.value,v(d.value)],velocity:En(E,y,d.value),damping:r,stiffness:s,restDelta:u,restSpeed:c}))};return V(0),{calculatedDuration:null,next:y=>{let x=!1;return!S&&m===void 0&&(x=!0,M(y),V(y)),m!==void 0&&y>=m?S.next(y-m):(!x&&M(y),d)}}}var ds=Me(.42,0,1,1),hs=Me(0,0,.58,1),ri=Me(.42,0,.58,1),Tn={linear:N,easeIn:ds,easeInOut:ri,easeOut:hs,circIn:Tt,circInOut:Rn,circOut:Cr,backIn:wt,backInOut:Nn,backOut:Ln,anticipate:kn},mt=e=>{if(Re(e)){k(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,n,i,r]=e;return Me(t,n,i,r)}else if(typeof e=="string")return k(Tn[e]!==void 0,`Invalid easing type '${e}'`),Tn[e];return e};function ps(e,t,n){let i=[],r=n||ii,s=e.length-1;for(let a=0;a<s;a++){let o=r(e[a],e[a+1]);if(t){let l=Array.isArray(t)?t[a]||N:t;o=Et(l,o)}i.push(o)}return i}function ms(e,t,{clamp:n=!0,ease:i,mixer:r}={}){let s=e.length;if(k(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=ps(t,i,r),l=o.length,u=c=>{if(a&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);let d=X(e[f],e[f+1],c);return o[f](d)};return n?c=>u(j(e[0],e[s-1],c)):u}function gs(e,t){return e.map(n=>n*t)}function vs(e,t){return e.map(()=>t||ri).splice(0,e.length-1)}function ze({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){let r=tt(i)?i.map(mt):mt(i),s={done:!1,value:t[0]},a=gs(n&&n.length===t.length?n:nt(t),e),o=ms(a,t,{ease:Array.isArray(r)?r:vs(t,r)});return{calculatedDuration:e,next:l=>(s.value=o(l),s.done=l>=e,s)}}var ys=e=>{let t=({timestamp:n})=>e(n);return{start:()=>K.update(t,!0),stop:()=>He(t),now:()=>Ge.isProcessing?Ge.timestamp:G.now()}},bs={decay:wn,inertia:wn,tween:ze,keyframes:ze,spring:yt},ws=e=>e/100,Ot=class extends ti{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:o}=this.options;o&&o()};let{name:t,motionValue:n,element:i,keyframes:r}=this.options,s=i?.KeyframeResolver||Vt,a=(o,l)=>this.onKeyframesResolved(o,l);this.resolver=new s(r,a,t,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let{type:t="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:s=0}=this.options,a=J(t)?t:bs[t]||ze,o,l;a!==ze&&typeof e[0]!="number"&&(o=Et(ws,ii(e[0],e[1])),e=[0,100]);let u=a({...this.options,keyframes:e});r==="mirror"&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=Ne(u));let{calculatedDuration:c}=u,f=c+i,d=f*(n+1)-i;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:o,calculatedDuration:c,resolvedDuration:f,totalDuration:d}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:V}=this.options;return{done:!0,value:V[V.length-1]}}let{finalKeyframe:i,generator:r,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:o,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(this.startTime===null)return r.next(0);let{delay:f,repeat:d,repeatType:g,repeatDelay:v,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let b=this.currentTime-f*(this.speed>=0?1:-1),p=this.speed>=0?b<0:b>u;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let T=this.currentTime,E=r;if(d){let V=Math.min(this.currentTime,u)/c,y=Math.floor(V),x=V%1;!x&&V>=1&&(x=1),x===1&&y--,y=Math.min(y,d+1),!!(y%2)&&(g==="reverse"?(x=1-x,v&&(x-=v/c)):g==="mirror"&&(E=s)),T=j(0,1,x)*c}let M=p?{done:!1,value:o[0]}:E.next(T);a&&(M.value=a(M.value));let{done:m}=M;!p&&l!==null&&(m=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&m);return S&&i!==void 0&&(M.value=Q(o,this.options,i)),w&&w(M.value),S&&this.finish(),M}get duration(){let{resolved:e}=this;return e?I(e.calculatedDuration):0}get time(){return I(this.currentTime)}set time(e){e=P(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=I(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=ys,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),t&&t();let i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}},Ts=new Set(["opacity","clipPath","filter","transform"]),$e=10,Ss=2e4;function xs(e){return J(e.type)||e.type==="spring"||!Xe(e.ease)}function Cs(e,t){let n=new Ot({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),i={done:!1,value:e[0]},r=[],s=0;for(;!i.done&&s<Ss;)i=n.sample(s),r.push(i.value),s+=$e;return{times:void 0,keyframes:r,duration:s-$e,ease:"linear"}}var si={anticipate:kn,backInOut:Nn,circInOut:Rn};function Ms(e){return e in si}var Sn=class extends ti{constructor(e){super(e);let{name:t,motionValue:n,element:i,keyframes:r}=this.options;this.resolver=new ei(r,(s,a)=>this.onKeyframesResolved(s,a),t,n,i),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:i=300,times:r,ease:s,type:a,motionValue:o,name:l,startTime:u}=this.options;if(!(!((n=o.owner)===null||n===void 0)&&n.current))return!1;if(typeof s=="string"&&Z()&&Ms(s)&&(s=si[s]),xs(this.options)){let{onComplete:f,onUpdate:d,motionValue:g,element:v,...w}=this.options,b=Cs(e,w);e=b.keyframes,e.length===1&&(e[1]=e[0]),i=b.duration,r=b.times,s=b.ease,a="keyframes"}let c=Je(o.owner.current,l,e,{...this.options,duration:i,times:r,ease:s});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(ke(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:f}=this.options;o.set(Q(e,this.options,t)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:r,type:a,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return I(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return I(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=P(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{let{resolved:t}=this;if(!t)return N;let{animation:n}=t;ke(n,e)}return N}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.playState==="finished"&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:i,type:r,ease:s,times:a}=e;if(t.playState==="idle"||t.playState==="finished")return;if(this.time){let{motionValue:l,onUpdate:u,onComplete:c,element:f,...d}=this.options,g=new Ot({...d,keyframes:n,duration:i,type:r,ease:s,times:a,isGenerator:!0}),v=P(this.time);l.setWithVelocity(g.sample(v-$e).value,g.sample(v).value,$e)}let{onStop:o}=this.options;o&&o(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:i,repeatType:r,damping:s,type:a}=e;return et()&&n&&Ts.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!i&&r!=="mirror"&&s!==0&&a!=="inertia"}},Vs={type:"spring",stiffness:500,damping:25,restSpeed:10},As=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Es={type:"keyframes",duration:.8},Fs={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Os=(e,{keyframes:t})=>t.length>2?Es:se.has(e)?e.startsWith("scale")?As(t[1]):Vs:Fs;function Ps({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}var ai=(e,t,n,i={},r,s)=>a=>{let o=Ie(i,e)||{},l=o.delay||i.delay||0,{elapsed:u=0}=i;u=u-P(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:d=>{t.set(d),o.onUpdate&&o.onUpdate(d)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:r};Ps(o)||(c={...c,...Os(e,c)}),c.duration&&(c.duration=P(c.duration)),c.repeatDelay&&(c.repeatDelay=P(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!s&&t.get()!==void 0){let d=Q(c.keyframes,o);if(d!==void 0)return K.update(()=>{c.onUpdate(d),c.onComplete()}),new ve([])}return!s&&Sn.supports(c)?new Sn(c):new Ot(c)};function _s({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function Ds(e,t,{delay:n=0,transitionOverride:i,type:r}={}){var s;let{transition:a=e.getDefaultTransition(),transitionEnd:o,...l}=t;i&&(a=i);let u=[],c=r&&e.animationState&&e.animationState.getState()[r];for(let f in l){let d=e.getValue(f,(s=e.latestValues[f])!==null&&s!==void 0?s:null),g=l[f];if(g===void 0||c&&_s(c,f))continue;let v={delay:n,...Ie(a||{},f)},w=!1;if(window.MotionHandoffAnimation){let p=wr(e);if(p){let T=window.MotionHandoffAnimation(p,f,K);T!==null&&(v.startTime=T,w=!0)}}vr(e,f),d.start(ai(f,d,g,e.shouldReduceMotion&&Fn.has(f)?{type:!1}:v,e,w));let b=d.animation;b&&u.push(b)}return o&&Promise.all(u).then(()=>{K.update(()=>{o&&mr(e,o)})}),u}function Is(e){return e instanceof SVGElement&&e.tagName!=="svg"}var xn=()=>({min:0,max:0}),Pt=()=>({x:xn(),y:xn()}),Cn={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},gt={};for(let e in Cn)gt[e]={isEnabled:t=>Cn[e].some(n=>!!t[n])};var Ls=typeof window<"u",vt={current:null},oi={current:!1};function Ns(){if(oi.current=!0,!!Ls)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vt.current=e.matches;e.addListener(t),t()}else vt.current=!1}var ks=[...Qn,O,oe],Rs=e=>ks.find(Jn(e));function Bs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ws(e){return typeof e=="string"||Array.isArray(e)}var Ks=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Hs=["initial",...Ks];function li(e){return Bs(e.animate)||Hs.some(t=>Ws(e[t]))}function Gs(e){return!!(li(e)||e.variants)}function Us(e,t,n){for(let i in t){let r=t[i],s=n[i];if(F(r))e.addValue(i,r);else if(F(s))e.addValue(i,Se(r,{owner:e}));else if(s!==r)if(e.hasValue(i)){let a=e.getValue(i);a.liveStyle===!0?a.jump(r):a.hasAnimated||a.set(r)}else{let a=e.getStaticValue(i);e.addValue(i,Se(a!==void 0?a:r,{owner:e}))}}for(let i in n)t[i]===void 0&&e.removeValue(i);return t}var Mn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ui=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:r,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Vt,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let d=G.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,K.render(this.render,!1,!0))};let{latestValues:o,renderState:l,onUpdate:u}=s;this.onUpdate=u,this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=li(t),this.isVariantNode=Gs(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...f}=this.scrapeMotionValuesFromProps(t,{},this);for(let d in f){let g=f[d];o[d]!==void 0&&F(g)&&g.set(o[d],!1)}}mount(e){this.current=e,ne.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,n)=>this.bindToMotionValue(n,t)),oi.current||Ns(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:vt.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ne.delete(this.current),this.projection&&this.projection.unmount(),He(this.notifyUpdate),He(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=se.has(e),i=t.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&K.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=t.on("renderRequest",this.scheduleRender),s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),r(),s&&s(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in gt){let t=gt[e];if(!t)continue;let{isEnabled:n,Feature:i}=t;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){let r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Pt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<Mn.length;n++){let i=Mn[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r="on"+i,s=e[r];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=Us(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Se(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(jn(i)||Bn(i))?i=parseFloat(i):!Rs(i)&&oe.test(t)&&(i=zn(e,t)),this.setBaseTarget(e,F(i)?i.get():i)),F(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,i;if(typeof n=="string"||typeof n=="object"){let s=Pn(this.props,n,(t=this.presenceContext)===null||t===void 0?void 0:t.custom);s&&(i=s[e])}if(n&&i!==void 0)return i;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!F(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new On),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}},ci=class extends ui{constructor(){super(...arguments),this.KeyframeResolver=ei}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;F(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}},fi=(e,t)=>t&&typeof e=="number"?t.transform(e):e,zs={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$s=re.length;function qs(e,t,n){let i="",r=!0;for(let s=0;s<$s;s++){let a=re[s],o=e[a];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(a.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){let u=fi(o,Ct[a]);if(!l){r=!1;let c=zs[a]||a;i+=`${c}(${u}) `}n&&(t[a]=u)}}return i=i.trim(),n?i=n(t,r?"":i):r&&(i="none"),i}function di(e,t,n){let{style:i,vars:r,transformOrigin:s}=e,a=!1,o=!1;for(let l in t){let u=t[l];if(se.has(l)){a=!0;continue}else if(Zn(l)){r[l]=u;continue}else{let c=fi(u,Ct[l]);l.startsWith("origin")?(o=!0,s[l]=c):i[l]=c}}if(t.transform||(a||n?i.transform=qs(t,e.transform,n):i.transform&&(i.transform="none")),o){let{originX:l="50%",originY:u="50%",originZ:c=0}=s;i.transformOrigin=`${l} ${u} ${c}`}}function Vn(e,t,n){return typeof e=="string"?e:h.transform(t+n*e)}function js(e,t,n){let i=Vn(t,e.x,e.width),r=Vn(n,e.y,e.height);return`${i} ${r}`}var Ys={offset:"stroke-dashoffset",array:"stroke-dasharray"},Zs={offset:"strokeDashoffset",array:"strokeDasharray"};function Xs(e,t,n=1,i=0,r=!0){e.pathLength=1;let s=r?Ys:Zs;e[s.offset]=h.transform(-i);let a=h.transform(t),o=h.transform(n);e[s.array]=`${a} ${o}`}function Js(e,{attrX:t,attrY:n,attrScale:i,originX:r,originY:s,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...u},c,f){if(di(e,u,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:g,dimensions:v}=e;d.transform&&(v&&(g.transform=d.transform),delete d.transform),v&&(r!==void 0||s!==void 0||g.transform)&&(g.transformOrigin=js(v,r!==void 0?r:.5,s!==void 0?s:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),i!==void 0&&(d.scale=i),a!==void 0&&Xs(d,a,o,l,!1)}var hi=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Qs=e=>typeof e=="string"&&e.toLowerCase()==="svg";function pi(e,{style:t,vars:n},i,r){Object.assign(e.style,t,r&&r.getProjectionStyles(i));for(let s in n)e.style.setProperty(s,n[s])}function ea(e,t,n,i){pi(e,t,void 0,i);for(let r in t.attrs)e.setAttribute(hi.has(r)?r:bt(r),t.attrs[r])}var ta={};function na(e,{layout:t,layoutId:n}){return se.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ta[e]||e==="opacity")}function mi(e,t,n){var i;let{style:r}=e,s={};for(let a in r)(F(r[a])||t.style&&F(t.style[a])||na(a,e)||((i=n?.getValue(a))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(s[a]=r[a]);return s}function ia(e,t,n){let i=mi(e,t,n);for(let r in e)if(F(e[r])||F(t[r])){let s=re.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[s]=e[r]}return i}var ra=class extends ci{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Pt}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(se.has(t)){let n=Mt(t);return n&&n.default||0}return t=hi.has(t)?t:bt(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return ia(e,t,n)}build(e,t,n){Js(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,i){ea(e,t,n,i)}mount(e){this.isSVGTag=Qs(e.tagName),super.mount(e)}};function sa({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function aa(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function oa(e,t){return sa(aa(e.getBoundingClientRect(),t))}function la(e){return window.getComputedStyle(e)}var ua=class extends ci{constructor(){super(...arguments),this.type="html",this.renderInstance=pi}readValueFromInstance(e,t){if(se.has(t)){let n=Mt(t);return n&&n.default||0}else{let n=la(e),i=(Zn(t)?n.getPropertyValue(t):n[t])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return oa(e,t)}build(e,t,n){di(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return mi(e,t,n)}};function ca(e,t){return e in t}var fa=class extends ui{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(ca(t,e)){let n=e[t];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return Pt()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}};function da(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Is(e)?new ra(t):new ua(t);n.mount(e),ne.set(e,n)}function ha(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new fa(t);n.mount(e),ne.set(e,n)}function pa(e,t,n){let i=F(e)?e:Se(e);return i.start(ai("",i,t,n)),i.animation}function ma(e,t){return F(e)||typeof e=="number"||typeof e=="string"&&!Be(t)}function gi(e,t,n,i){let r=[];if(ma(e,t))r.push(pa(e,Be(t)&&t.default||t,n&&(n.default||n)));else{let s=it(e,t,i),a=s.length;k(!!a,"No valid elements provided.");for(let o=0;o<a;o++){let l=s[o],u=l instanceof Element?da:ha;ne.has(l)||u(l);let c=ne.get(l),f={...n};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(o,a)),r.push(...Ds(c,{...t,transition:f},{}))}}return r}function ga(e,t,n){let i=[];return st(e,t,n,{spring:yt}).forEach(({keyframes:s,transition:a},o)=>{i.push(...gi(o,s,a))}),i}function va(e){return Array.isArray(e)&&e.some(Array.isArray)}function ya(e){function t(n,i,r){let s=[];va(n)?s=ga(n,i,e):s=gi(n,i,r,e);let a=new ve(s);return e&&e.animations.push(a),a}return t}var za=ya();var ba={some:0,all:1};function vi(e,t,{root:n,margin:i,amount:r="some"}={}){let s=Le(e),a=new WeakMap,o=u=>{u.forEach(c=>{let f=a.get(c.target);if(c.isIntersecting!==!!f)if(c.isIntersecting){let d=t(c);typeof d=="function"?a.set(c.target,d):l.unobserve(c.target)}else typeof f=="function"&&(f(c),a.delete(c.target))})},l=new IntersectionObserver(o,{root:n,rootMargin:i,threshold:typeof r=="number"?r:ba[r]});return s.forEach(u=>l.observe(u)),()=>l.disconnect()}function wa(e,t){if(e==="first")return 0;{let n=t-1;return e==="last"?n:n/2}}function _t(e=.1,{startDelay:t=0,from:n=0,ease:i}={}){return(r,s)=>{let a=typeof n=="number"?n:wa(n,s),o=Math.abs(a-r),l=e*o;if(i){let u=s*e;l=mt(i)(l/u)*u}return t+l}}var $a=we.reduce((e,t)=>(e[t]=n=>He(n),e),{});var Ta=Symbol.for("preact-signals");function It(){if(le>1)le--;else{for(var e,t=!1;Ve!==void 0;){var n=Ve;for(Ve=void 0,Dt++;n!==void 0;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&wi(n))try{n.c()}catch(r){t||(e=r,t=!0)}n=i}}if(Dt=0,le--,t)throw e}}var C=void 0;var Ve=void 0,le=0,Dt=0,qe=0;function yi(e){if(C!==void 0){var t=e.n;if(t===void 0||t.t!==C)return t={i:0,S:e,p:C.s,n:void 0,t:C,e:void 0,x:void 0,r:t},C.s!==void 0&&(C.s.n=t),C.s=t,e.n=t,32&C.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=C.s,t.n=void 0,C.s.n=t,C.s=t),t}}function _(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}_.prototype.brand=Ta;_.prototype.h=function(){return!0};_.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};_.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}};_.prototype.subscribe=function(e){var t=this;return xa(function(){var n=t.value,i=C;C=void 0;try{e(n)}finally{C=i}})};_.prototype.valueOf=function(){return this.value};_.prototype.toString=function(){return this.value+""};_.prototype.toJSON=function(){return this.value};_.prototype.peek=function(){var e=C;C=void 0;try{return this.value}finally{C=e}};Object.defineProperty(_.prototype,"value",{get:function(){var e=yi(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Dt>100)throw new Error("Cycle detected");this.v=e,this.i++,qe++,le++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{It()}}}});function bi(e){return new _(e)}function wi(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Ti(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Si(e){for(var t=e.s,n=void 0;t!==void 0;){var i=t.p;t.i===-1?(t.S.U(t),i!==void 0&&(i.n=t.n),t.n!==void 0&&(t.n.p=i)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=i}e.s=n}function Ae(e){_.call(this,void 0),this.x=e,this.s=void 0,this.g=qe-1,this.f=4}(Ae.prototype=new _).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===qe))return!0;if(this.g=qe,this.f|=1,this.i>0&&!wi(this))return this.f&=-2,!0;var e=C;try{Ti(this),C=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return C=e,Si(this),this.f&=-2,!0};Ae.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}_.prototype.S.call(this,e)};Ae.prototype.U=function(e){if(this.t!==void 0&&(_.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Ae.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Ae.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=yi(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function xi(e){var t=e.u;if(e.u=void 0,typeof t=="function"){le++;var n=C;C=void 0;try{t()}catch(i){throw e.f&=-2,e.f|=8,Lt(e),i}finally{C=n,It()}}}function Lt(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,xi(e)}function Sa(e){if(C!==this)throw new Error("Out-of-order effect");Si(this),C=e,this.f&=-2,8&this.f&&Lt(this),It()}function Ee(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Ee.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};Ee.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,xi(this),Ti(this),le++;var e=C;return C=this,Sa.bind(this,e)};Ee.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ve,Ve=this)};Ee.prototype.d=function(){this.f|=8,1&this.f||Lt(this)};function xa(e){var t=new Ee(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var Ci=e=>{window.NudgeMoment=Object.assign(window.NudgeMoment||{},{custom:{...window.NudgeMoment?.custom,...e}})},R=e=>{$(document).ready(()=>{window.NudgeMoment.check().then(t=>{t&&e()})})};var Mi=".NDGMNT__FloatingFixedButton__floating-button-container",Ca=".NDGMNT__FloatingFixedButton__floating-menu",Ma=".NDGMNT__FloatingFixedButton__trigger-button",Va='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-users-round"><path d="M18 21a8 8 0 0 0-16 0"/><circle cx="10" cy="8" r="5"/><path d="M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3"/></svg>',Aa={naver:'<svg width="289" height="291" viewBox="0 0 289 291" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M247.979 34.7843V183.205C247.979 195.764 237.784 205.968 225.238 205.968H86.8376C83.8876 205.968 57.8875 206.368 46.775 219.818L40.3709 226.401L28.9917 238.093L16.2875 251.147C15.325 251.714 13.8 252.393 12.8042 252.393L12.6667 252.414C12.6583 252.405 11.3792 251.18 11.3792 245.534V34.7843C11.3792 22.2259 21.5834 12.0218 34.1417 12.0218H225.238C235.188 12.0218 243.567 18.4759 246.65 27.3926C247.459 29.7259 247.979 32.1843 247.979 34.7843ZM278.817 38.1176L278.859 38.0468L250.175 11.6093C243.95 4.90091 235.096 0.642578 225.238 0.642578H34.1417C15.325 0.642578 0 15.9509 0 34.7843V245.534C0 251.393 1.07917 255.755 3.26667 258.859C4.03334 259.951 4.9375 260.872 5.9625 261.609L33.3917 286.884C33.8292 287.347 34.2792 287.768 34.7584 288.143L34.9917 288.368L35.025 288.33C35.4792 288.651 35.9167 289.009 36.4 289.268C38.0209 290.093 39.8375 290.534 41.7959 290.534C46.8875 290.534 51.3334 287.576 52.175 286.984L84.2376 254.18C91.0334 245.959 109.325 244.13 115.821 244.114H254.225C273.046 244.114 288.359 228.797 288.359 209.976V61.5343C288.359 52.4093 284.7 44.2093 278.817 38.1176Z" fill="white"/><path d="M75.1167 71.9814C65.7084 71.9814 58.1125 79.6022 58.1125 88.9939V124.715C58.1125 134.111 65.7084 141.719 75.1167 141.719C84.5001 141.719 92.1251 134.111 92.1251 124.715V88.9939C92.1251 79.6022 84.5001 71.9814 75.1167 71.9814Z" fill="white"/><path d="M181.058 71.9814C171.663 71.9814 164.038 79.6022 164.038 88.9939V124.715C164.038 134.111 171.663 141.719 181.058 141.719C190.446 141.719 198.054 134.111 198.054 124.715V88.9939C198.054 79.6022 190.446 71.9814 181.058 71.9814Z" fill="white"/></svg>',kakao:'<svg width="18" height="17" viewBox="0 0 18 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.00002 0.0999756C4.02917 0.0999756 0 3.21293 0 7.05226C0 9.44 1.5584 11.5449 3.93152 12.7969L2.93303 16.4445C2.84481 16.7668 3.21341 17.0237 3.49646 16.8369L7.87334 13.9482C8.2427 13.9838 8.61808 14.0046 9.00002 14.0046C13.9705 14.0046 17.9999 10.8918 17.9999 7.05226C17.9999 3.21293 13.9705 0.0999756 9.00002 0.0999756Z" fill="black"/></svg>',youtube:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-youtube"><path d="M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17"/><path d="m10 15 5-3-5-3z"/></svg>',instagram:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-instagram"><rect width="20" height="20" x="2" y="2" rx="5" ry="5"/><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"/><line x1="17.5" x2="17.51" y1="6.5" y2="6.5"/></svg>',thread:`<svg width="413" height="480" viewBox="0 0 413 480" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M321.342 222.471C319.275 221.48 317.175 220.526 315.047 219.613C311.342 151.346 274.04 112.262 211.405 111.862C211.121 111.861 210.839 111.861 210.555 111.861C173.091 111.861 141.933 127.852 122.755 156.952L157.202 180.582C171.529 158.846 194.013 154.212 210.572 154.212C210.763 154.212 210.955 154.212 211.144 154.214C231.768 154.345 247.33 160.342 257.402 172.035C264.732 180.548 269.635 192.312 272.062 207.16C253.777 204.052 234.002 203.096 212.862 204.308C153.312 207.738 115.028 242.47 117.599 290.73C118.904 315.21 131.099 336.27 151.938 350.027C169.556 361.658 192.247 367.345 215.831 366.057C246.975 364.35 271.408 352.467 288.452 330.74C301.397 314.24 309.585 292.857 313.2 265.915C328.043 274.872 339.042 286.66 345.117 300.83C355.447 324.918 356.05 364.5 323.753 396.77C295.455 425.04 261.44 437.27 210.034 437.648C153.01 437.225 109.884 418.938 81.8452 383.293C55.5887 349.915 42.0192 301.705 41.513 240C42.0192 178.294 55.5887 130.084 81.8452 96.7068C109.884 61.0623 153.01 42.775 210.033 42.3512C267.47 42.7783 311.348 61.1535 340.46 96.97C354.735 114.534 365.497 136.622 372.592 162.376L412.96 151.605C404.36 119.906 390.827 92.5892 372.412 69.935C335.09 24.0167 280.505 0.48787 210.174 0H209.892C139.704 0.486175 85.7302 24.1045 49.4707 70.1982C17.2048 111.216 0.561 168.289 0.00174999 239.831L0 240L0.00174999 240.169C0.561 311.71 17.2048 368.785 49.4707 409.803C85.7302 455.895 139.704 479.515 209.892 480H210.174C272.575 479.568 316.56 463.23 352.795 427.028C400.202 379.665 398.775 320.298 383.15 283.853C371.94 257.717 350.568 236.49 321.342 222.471ZM213.601 323.768C187.501 325.238 160.386 313.522 159.049 288.43C158.058 269.825 172.29 249.065 215.203 246.592C220.117 246.309 224.94 246.17 229.678 246.17C245.265 246.17 259.848 247.684 273.105 250.583C268.16 312.337 239.155 322.365 213.601 323.768Z" fill="white"/></svg>
|
12
|
-
`},
|
11
|
+
"use strict";(()=>{var Ai=Object.defineProperty;var Di=(e,t,n)=>t in e?Ai(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var O=(e,t,n)=>Di(e,typeof t!="symbol"?t+"":t,n);var k=e=>e,ge=k,R=k,Z=(e,t,n)=>{let i=t-e;return i===0?1:(n-e)/i},Jt=(e,t,n)=>{let i=t-e;return((n-e)%i+i)%i+e};function Le(e){let t;return()=>(t===void 0&&(t=e()),t)}var Qt=Le(()=>window.ScrollTimeline!==void 0),Ni=class{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){let n=this.animations.map(i=>{if(Qt()&&i.attachTimeline)return i.attachTimeline(e);if(typeof t=="function")return t(i)});return()=>{n.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},ve=class extends Ni{then(e,t){return Promise.all(this.animations).then(e).catch(t)}},F=e=>e*1e3,P=e=>e/1e3;function Oe(e,t){return e?e[t]||e.default||e:void 0}function Pe(e,t,n){var i;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;t&&(s=t.current);let r=(i=n?.[e])!==null&&i!==void 0?i:s.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}var me=2e4;function Ie(e){let t=0,n=50,i=e.next(t);for(;!i.done&&t<me;)t+=n,i=e.next(t);return t>=me?1/0:t}function en(e,t=100,n){let i=n({...e,keyframes:[0,t]}),s=Math.min(Ie(i),me);return{type:"keyframes",ease:r=>i.next(s*r).value/t,duration:P(s)}}function J(e){return typeof e=="function"}function ke(e,t){e.timeline=t,e.onfinish=null}var Fi=class{constructor(e){this.animation=e}get duration(){var e,t,n;let i=((t=(e=this.animation)===null||e===void 0?void 0:e.effect)===null||t===void 0?void 0:t.getComputedTiming().duration)||((n=this.options)===null||n===void 0?void 0:n.duration)||300;return P(Number(i))}get time(){var e;return this.animation?P(((e=this.animation)===null||e===void 0?void 0:e.currentTime)||0):0}set time(e){this.animation&&(this.animation.currentTime=F(e))}get speed(){return this.animation?this.animation.playbackRate:1}set speed(e){this.animation&&(this.animation.playbackRate=e)}get state(){return this.animation?this.animation.playState:"finished"}get startTime(){return this.animation?this.animation.startTime:null}get finished(){return this.animation?this.animation.finished:Promise.resolve()}play(){this.animation&&this.animation.play()}pause(){this.animation&&this.animation.pause()}stop(){!this.animation||this.state==="idle"||this.state==="finished"||(this.animation.commitStyles&&this.animation.commitStyles(),this.cancel())}flatten(){var e;this.animation&&((e=this.animation.effect)===null||e===void 0||e.updateTiming({easing:"linear"}))}attachTimeline(e){return this.animation&&ke(this.animation,e),k}complete(){this.animation&&this.animation.finish()}cancel(){try{this.animation&&this.animation.cancel()}catch{}}},Li={linearEasing:void 0};function Oi(e,t){let n=Le(e);return()=>{var i;return(i=Li[t])!==null&&i!==void 0?i:n()}}var X=Oi(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Re=e=>Array.isArray(e)&&typeof e[0]=="number",Xe=(e,t,n=10)=>{let i="",s=Math.max(Math.round(t/n),2);for(let r=0;r<s;r++)i+=e(Z(0,s-1,r))+", ";return`linear(${i.substring(0,i.length-2)})`};function Ze(e){return!!(typeof e=="function"&&X()||!e||typeof e=="string"&&(e in Ye||X())||Re(e)||Array.isArray(e)&&e.every(Ze))}var pe=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,Ye={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pe([0,.65,.55,1]),circOut:pe([.55,0,1,.45]),backIn:pe([.31,.01,.66,-.59]),backOut:pe([.33,1.53,.69,.99])};function tn(e,t){if(e)return typeof e=="function"&&X()?Xe(e,t):Re(e)?pe(e):Array.isArray(e)?e.map(n=>tn(n,t)||Ye.easeOut):Ye[e]}function Je(e,t,n,{delay:i=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[t]:n};l&&(u.offset=l);let c=tn(a,s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:i,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}var ye=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),H=ye("deg"),q=ye("%"),f=ye("px"),nn=ye("vh"),sn=ye("vw"),Qe={...q,parse:e=>q.parse(e)/100,transform:e=>q.transform(e*100)},Fe={borderWidth:f,borderTopWidth:f,borderRightWidth:f,borderBottomWidth:f,borderLeftWidth:f,borderRadius:f,radius:f,borderTopLeftRadius:f,borderTopRightRadius:f,borderBottomRightRadius:f,borderBottomLeftRadius:f,width:f,maxWidth:f,height:f,maxHeight:f,top:f,right:f,bottom:f,left:f,padding:f,paddingTop:f,paddingRight:f,paddingBottom:f,paddingLeft:f,margin:f,marginTop:f,marginRight:f,marginBottom:f,marginLeft:f,backgroundPositionX:f,backgroundPositionY:f},Pi=e=>e!==null;function Q(e,{repeat:t,repeatType:n="loop"},i){let s=e.filter(Pi),r=t&&n!=="loop"&&t%2===1?0:s.length-1;return!r||i===void 0?s[r]:i}function Ii(e,t,n){e.style.setProperty(`--${t}`,n)}function ki(e,t,n){e.style[t]=n}var Ri=Le(()=>{try{document.createElement("div").animate({opacity:[1]})}catch{return!1}return!0}),et=Le(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ne=new WeakMap;function Bi(e,t,n){for(let i=0;i<t.length;i++)t[i]===null&&(t[i]=i===0?n():t[i-1]),typeof t[i]=="number"&&Fe[e]&&(t[i]=Fe[e].transform(t[i]));!Ri()&&t.length<2&&t.unshift(n())}var Ut="easeOut";function jt(e){let t=Ne.get(e)||new Map;return Ne.set(e,t),Ne.get(e)}var Hi=class extends Fi{constructor(e,t,n,i){let s=t.startsWith("--");R(typeof i.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "framer-motion"?`);let r=jt(e).get(t);r&&r.stop();let o=()=>t.startsWith("--")?e.style.getPropertyValue(t):window.getComputedStyle(e)[t];if(Array.isArray(n)||(n=[n]),Bi(t,n,o),J(i.type)){let u=en(i,100,i.type);i.ease=X()?u.ease:Ut,i.duration=F(u.duration),i.type="keyframes"}else i.ease=i.ease||Ut;let a=()=>{this.setValue(e,t,Q(n,i)),this.cancel(),this.resolveFinishedPromise()},l=()=>{this.setValue=s?Ii:ki,this.options=i,this.updateFinishedPromise(),this.removeAnimation=()=>{var u;return(u=Ne.get(e))===null||u===void 0?void 0:u.delete(t)}};et()?(super(Je(e,t,n,i)),l(),i.autoplay===!1&&this.animation.pause(),this.animation.onfinish=a,jt(e).set(t,this)):(super(),l(),a())}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}play(){this.state==="finished"&&this.updateFinishedPromise(),super.play()}cancel(){this.removeAnimation(),super.cancel()}};function rn(e,t,n,i){let s=Pe(e,i),r=s.length;R(!!r,"No valid element provided.");let o=[];for(let a=0;a<r;a++){let l=s[a],u={...n};typeof u.delay=="function"&&(u.delay=u.delay(a,r));for(let c in t){let d=t[c],h={...Oe(u,c)};h.duration=h.duration?F(h.duration):h.duration,h.delay=F(h.delay||0),o.push(new Hi(l,c,d,h))}}return o}var Gi=e=>{function t(n,i,s){return new ve(rn(n,i,s,e))}return t},be=Gi(),tt=e=>Array.isArray(e)&&typeof e[0]!="number",ee=(e,t,n)=>e+(t-e)*n;function on(e,t){let n=e[e.length-1];for(let i=1;i<=t;i++){let s=Z(0,t,i);e.push(ee(n,1,s))}}function nt(e){let t=[0];return on(t,e.length-1),t}function an(e,t){return tt(e)?e[Jt(0,e.length,t)]:e}var D=e=>!!(e&&e.getVelocity);function Be(e){return typeof e=="object"&&!Array.isArray(e)}function it(e,t,n,i){return typeof e=="string"&&Be(t)?Pe(e,n,i):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function Wi(e,t,n){return e*(t+1)}function Yt(e,t,n,i){var s;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(s=i.get(t))!==null&&s!==void 0?s:e}function ln(e,t){e.indexOf(t)===-1&&e.push(t)}function st(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ki(e,t,n){for(let i=0;i<e.length;i++){let s=e[i];s.at>t&&s.at<n&&(st(e,s),i--)}}function qi(e,t,n,i,s,r){Ki(e,s,r);for(let o=0;o<t.length;o++)e.push({value:t[o],at:ee(s,r,i[o]),easing:an(n,o)})}function $i(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function zi(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Ui="easeInOut",ji=20;function rt(e,{defaultTransition:t={},...n}={},i,s){let r=t.duration||.3,o=new Map,a=new Map,l={},u=new Map,c=0,d=0,h=0;for(let g=0;g<e.length;g++){let v=e[g];if(typeof v=="string"){u.set(v,d);continue}else if(!Array.isArray(v)){u.set(v.name,Yt(d,v.at,c,u));continue}let[w,b,p={}]=v;p.at!==void 0&&(d=Yt(d,p.at,c,u));let T=0,_=(M,m,S,E=0,y=0)=>{let x=Yi(M),{delay:Y=0,times:B=nt(x),type:je="keyframes",repeat:ce,repeatType:ko,repeatDelay:Ro=0,..._i}=m,{ease:W=t.ease||"easeOut",duration:I}=m,Gt=typeof Y=="function"?Y(E,y):Y,Wt=x.length,Kt=J(je)?je:s?.[je];if(Wt<=2&&Kt){let de=100;if(Wt===2&&Ji(x)){let he=x[1]-x[0];de=Math.abs(he)}let Ae={..._i};I!==void 0&&(Ae.duration=F(I));let De=en(Ae,de,Kt);W=De.ease,I=De.duration}I??(I=r);let qt=d+Gt;B.length===1&&B[0]===0&&(B[1]=1);let $t=B.length-x.length;if($t>0&&on(B,$t),x.length===1&&x.unshift(null),ce){R(ce<ji,"Repeat count too high, must be less than 20"),I=Wi(I,ce);let de=[...x],Ae=[...B];W=Array.isArray(W)?[...W]:[W];let De=[...W];for(let he=0;he<ce;he++){x.push(...de);for(let fe=0;fe<de.length;fe++)B.push(Ae[fe]+(he+1)),W.push(fe===0?"linear":an(De,fe-1))}$i(B,ce)}let zt=qt+I;qi(S,x,W,B,qt,zt),T=Math.max(Gt+I,T),h=Math.max(zt,h)};if(D(w)){let M=Xt(w,a);_(b,p,Zt("default",M))}else{let M=it(w,b,i,l),m=M.length;for(let S=0;S<m;S++){b=b,p=p;let E=M[S],y=Xt(E,a);for(let x in b)_(b[x],Xi(p,x),Zt(x,y),S,m)}}c=d,d+=T}return a.forEach((g,v)=>{for(let w in g){let b=g[w];b.sort(zi);let p=[],T=[],_=[];for(let m=0;m<b.length;m++){let{at:S,value:E,easing:y}=b[m];p.push(E),T.push(Z(0,h,S)),_.push(y||"easeOut")}T[0]!==0&&(T.unshift(0),p.unshift(p[0]),_.unshift(Ui)),T[T.length-1]!==1&&(T.push(1),p.push(null)),o.has(v)||o.set(v,{keyframes:{},transition:{}});let M=o.get(v);M.keyframes[w]=p,M.transition[w]={...t,duration:h,ease:_,times:T,...n}}}),o}function Xt(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Zt(e,t){return t[e]||(t[e]=[]),t[e]}function Yi(e){return Array.isArray(e)?e:[e]}function Xi(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Zi=e=>typeof e=="number",Ji=e=>e.every(Zi);var j=(e,t,n)=>n>t?t:n<e?e:n;function An(e,t){return t?e*(1e3/t):0}var Qi=5;function Dn(e,t,n){let i=Math.max(t-Qi,0);return An(n-e(i),t-i)}var V={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},un=.001;function es({duration:e=V.duration,bounce:t=V.bounce,velocity:n=V.velocity,mass:i=V.mass}){let s,r;ge(e<=F(V.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=j(V.minDamping,V.maxDamping,o),e=j(V.minDuration,V.maxDuration,P(e)),o<1?(s=u=>{let c=u*o,d=c*e,h=c-n,g=ut(u,o),v=Math.exp(-d);return un-h/g*v},r=u=>{let d=u*o*e,h=d*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-d),w=ut(Math.pow(u,2),o);return(-s(u)+un>0?-1:1)*((h-g)*v)/w}):(s=u=>{let c=Math.exp(-u*e),d=(u-n)*e+1;return-.001+c*d},r=u=>{let c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});let a=5/e,l=ns(s,r,a);if(e=F(e),isNaN(l))return{stiffness:V.stiffness,damping:V.damping,duration:e};{let u=Math.pow(l,2)*i;return{stiffness:u,damping:o*2*Math.sqrt(i*u),duration:e}}}var ts=12;function ns(e,t,n){let i=n;for(let s=1;s<ts;s++)i=i-e(i)/t(i);return i}function ut(e,t){return e*Math.sqrt(1-t*t)}var is=["duration","bounce"],ss=["stiffness","damping","mass"];function cn(e,t){return t.some(n=>e[n]!==void 0)}function rs(e){let t={velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:!1,...e};if(!cn(e,ss)&&cn(e,is))if(e.visualDuration){let n=e.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,r=2*j(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:V.mass,stiffness:s,damping:r}}else{let n=es(e);t={...t,...n,mass:V.mass},t.isResolvedFromDuration=!0}return t}function yt(e=V.visualDuration,t=V.bounce){let n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:s}=n,r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:d,velocity:h,isResolvedFromDuration:g}=rs({...n,velocity:-P(n.velocity||0)}),v=h||0,w=u/(2*Math.sqrt(l*c)),b=o-r,p=P(Math.sqrt(l/c)),T=Math.abs(b)<5;i||(i=T?V.restSpeed.granular:V.restSpeed.default),s||(s=T?V.restDelta.granular:V.restDelta.default);let _;if(w<1){let m=ut(p,w);_=S=>{let E=Math.exp(-w*p*S);return o-E*((v+w*p*b)/m*Math.sin(m*S)+b*Math.cos(m*S))}}else if(w===1)_=m=>o-Math.exp(-p*m)*(b+(v+p*b)*m);else{let m=p*Math.sqrt(w*w-1);_=S=>{let E=Math.exp(-w*p*S),y=Math.min(m*S,300);return o-E*((v+w*p*b)*Math.sinh(y)+m*b*Math.cosh(y))/m}}let M={calculatedDuration:g&&d||null,next:m=>{let S=_(m);if(g)a.done=m>=d;else{let E=0;w<1&&(E=m===0?F(v):Dn(_,m,S));let y=Math.abs(E)<=i,x=Math.abs(o-S)<=s;a.done=y&&x}return a.value=a.done?o:S,a},toString:()=>{let m=Math.min(Ie(M),me),S=Xe(E=>M.next(m*E).value,m,30);return m+"ms "+S}};return M}var ne=new WeakMap,se=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],re=new Set(se),Nn=new Set(["width","height","top","left","right","bottom",...se]),os=e=>Array.isArray(e),as=e=>os(e)?e[e.length-1]||0:e,ls={skipAnimations:!1,useManualTiming:!1};function us(e){let t=new Set,n=new Set,i=!1,s=!1,r=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(u){r.has(u)&&(l.schedule(u),e()),u(o)}let l={schedule:(u,c=!1,d=!1)=>{let g=d&&i?t:n;return c&&r.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(o=u,i){s=!0;return}i=!0,[t,n]=[n,t],t.forEach(a),t.clear(),i=!1,s&&(s=!1,l.process(u))}};return l}var we=["read","resolveKeyframes","update","preRender","render","postRender"],cs=40;function ds(e,t){let n=!1,i=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=we.reduce((p,T)=>(p[T]=us(r),p),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:h}=o,g=()=>{let p=performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(p-s.timestamp,cs),1),s.timestamp=p,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),d.process(s),h.process(s),s.isProcessing=!1,n&&t&&(i=!1,e(g))},v=()=>{n=!0,i=!0,s.isProcessing||e(g)};return{schedule:we.reduce((p,T)=>{let _=o[T];return p[T]=(M,m=!1,S=!1)=>(n||v(),_.schedule(M,m,S)),p},{}),cancel:p=>{for(let T=0;T<we.length;T++)o[we[T]].cancel(p)},state:s,steps:o}}var{schedule:G,cancel:We,state:Ke,steps:Yo}=ds(typeof requestAnimationFrame<"u"?requestAnimationFrame:k,!0),Ge;function hs(){Ge=void 0}var K={now:()=>(Ge===void 0&&K.set(Ke.isProcessing||ls.useManualTiming?Ke.timestamp:performance.now()),Ge),set:e=>{Ge=e,queueMicrotask(hs)}},Fn=class{constructor(){this.subscriptions=[]}add(e){return ln(this.subscriptions,e),()=>st(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,t,n);else for(let s=0;s<i;s++){let r=this.subscriptions[s];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var dn=30,fs=e=>!isNaN(parseFloat(e)),ps=class{constructor(e,t={}){this.version="11.18.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,i=!0)=>{let s=K.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=K.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=fs(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Fn);let n=this.events[e].add(t);return e==="change"?()=>{n(),G.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){!t||!this.passiveEffect?this.updateAndNotify(e,t):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=K.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>dn)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,dn);return An(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Se(e,t){return new ps(e,t)}function hn(e){let t=[{},{}];return e?.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function Ln(e,t,n,i){if(typeof t=="function"){let[s,r]=hn(i);t=t(n!==void 0?n:e.custom,s,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[s,r]=hn(i);t=t(n!==void 0?n:e.custom,s,r)}return t}function ms(e,t,n){let i=e.getProps();return Ln(i,t,i.custom,e)}function gs(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Se(n))}function vs(e,t){let n=ms(e,t),{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(let o in r){let a=as(r[o]);gs(e,o,a)}}function ys(e){return!!(D(e)&&e.add)}function bs(e,t){let n=e.getValue("willChange");if(ys(n))return n.add(t)}var bt=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ws="framerAppearId",Ts="data-"+bt(ws);function Ss(e){return e.props[Ts]}var On=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,xs=1e-7,Cs=12;function Ms(e,t,n,i,s){let r,o,a=0;do o=t+(n-t)/2,r=On(o,i,s)-e,r>0?n=o:t=o;while(Math.abs(r)>xs&&++a<Cs);return o}function Me(e,t,n,i){if(e===t&&n===i)return k;let s=r=>Ms(r,0,1,e,n);return r=>r===0||r===1?r:On(s(r),t,i)}var Pn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,In=e=>t=>1-e(1-t),kn=Me(.33,1.53,.69,.99),wt=In(kn),Rn=Pn(wt),Bn=e=>(e*=2)<1?.5*wt(e):.5*(2-Math.pow(2,-10*(e-1))),Tt=e=>1-Math.sin(Math.acos(e)),Es=In(Tt),Hn=Pn(Tt),Gn=e=>/^0[^.\s]+$/u.test(e);function Vs(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Gn(e):!0}var oe={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},xe={...oe,transform:e=>j(0,1,e)},He={...oe,default:1},Te=e=>Math.round(e*1e5)/1e5,St=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _s(e){return e==null}var As=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xt=(e,t)=>n=>!!(typeof n=="string"&&As.test(n)&&n.startsWith(e)||t&&!_s(n)&&Object.prototype.hasOwnProperty.call(n,t)),Wn=(e,t,n)=>i=>{if(typeof i!="string")return i;let[s,r,o,a]=i.match(St);return{[e]:parseFloat(s),[t]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Ds=e=>j(0,255,e),ot={...oe,transform:e=>Math.round(Ds(e))},z={test:xt("rgb","red"),parse:Wn("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+ot.transform(e)+", "+ot.transform(t)+", "+ot.transform(n)+", "+Te(xe.transform(i))+")"};function Ns(e){let t="",n="",i="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,i+=i,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}var ct={test:xt("#"),parse:Ns,transform:z.transform},te={test:xt("hsl","hue"),parse:Wn("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+q.transform(Te(t))+", "+q.transform(Te(n))+", "+Te(xe.transform(i))+")"},N={test:e=>z.test(e)||ct.test(e)||te.test(e),parse:e=>z.test(e)?z.parse(e):te.test(e)?te.parse(e):ct.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?z.transform(e):te.transform(e)},Fs=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ls(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(St))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Fs))===null||n===void 0?void 0:n.length)||0)>0}var Kn="number",qn="color",Os="var",Ps="var(",fn="${}",Is=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ce(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},s=[],r=0,a=t.replace(Is,l=>(N.test(l)?(i.color.push(r),s.push(qn),n.push(N.parse(l))):l.startsWith(Ps)?(i.var.push(r),s.push(Os),n.push(l)):(i.number.push(r),s.push(Kn),n.push(parseFloat(l))),++r,fn)).split(fn);return{values:n,split:a,indexes:i,types:s}}function $n(e){return Ce(e).values}function zn(e){let{split:t,types:n}=Ce(e),i=t.length;return s=>{let r="";for(let o=0;o<i;o++)if(r+=t[o],s[o]!==void 0){let a=n[o];a===Kn?r+=Te(s[o]):a===qn?r+=N.transform(s[o]):r+=s[o]}return r}}var ks=e=>typeof e=="number"?0:e;function Rs(e){let t=$n(e);return zn(e)(t.map(ks))}var ae={test:Ls,parse:$n,createTransformer:zn,getAnimatableNone:Rs},Bs=new Set(["brightness","contrast","saturate","opacity"]);function Hs(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[i]=n.match(St)||[];if(!i)return e;let s=n.replace(i,""),r=Bs.has(t)?1:0;return i!==n&&(r*=100),t+"("+r+s+")"}var Gs=/\b([a-z-]*)\(.*?\)/gu,dt={...ae,getAnimatableNone:e=>{let t=e.match(Gs);return t?t.map(Hs).join(" "):e}},Ws={rotate:H,rotateX:H,rotateY:H,rotateZ:H,scale:He,scaleX:He,scaleY:He,scaleZ:He,skew:H,skewX:H,skewY:H,distance:f,translateX:f,translateY:f,translateZ:f,x:f,y:f,z:f,perspective:f,transformPerspective:f,opacity:xe,originX:Qe,originY:Qe,originZ:f},pn={...oe,transform:Math.round},Ct={...Fe,...Ws,zIndex:pn,size:f,fillOpacity:xe,strokeOpacity:xe,numOctaves:pn},Ks={...Ct,color:N,backgroundColor:N,outlineColor:N,fill:N,stroke:N,borderColor:N,borderTopColor:N,borderRightColor:N,borderBottomColor:N,borderLeftColor:N,filter:dt,WebkitFilter:dt},Mt=e=>Ks[e];function Un(e,t){let n=Mt(e);return n!==dt&&(n=ae),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var qs=new Set(["auto","none","0"]);function $s(e,t,n){let i=0,s;for(;i<e.length&&!s;){let r=e[i];typeof r=="string"&&!qs.has(r)&&Ce(r).values.length&&(s=e[i]),i++}if(s&&n)for(let r of t)e[r]=Un(n,s)}var mn=e=>e===oe||e===f,gn=(e,t)=>parseFloat(e.split(", ")[t]),vn=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;let s=i.match(/^matrix3d\((.+)\)$/u);if(s)return gn(s[1],t);{let r=i.match(/^matrix\((.+)\)$/u);return r?gn(r[1],e):0}},zs=new Set(["x","y","z"]),Us=se.filter(e=>!zs.has(e));function js(e){let t=[];return Us.forEach(n=>{let i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}var ie={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:vn(4,13),y:vn(5,14)};ie.translateX=ie.x;ie.translateY=ie.y;var U=new Set,ht=!1,ft=!1;function jn(){if(ft){let e=Array.from(U).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{let s=js(i);s.length&&(n.set(i,s),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();let s=n.get(i);s&&s.forEach(([r,o])=>{var a;(a=i.getValue(r))===null||a===void 0||a.set(o)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}ft=!1,ht=!1,U.forEach(e=>e.complete()),U.clear()}function Yn(){U.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ft=!0)})}function Ys(){Yn(),jn()}var Et=class{constructor(e,t,n,i,s,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=s,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(U.add(this),ht||(ht=!0,G.read(Yn),G.resolveKeyframes(jn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;for(let s=0;s<e.length;s++)if(e[s]===null)if(s===0){let r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(n&&t){let a=n.readValue(t,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}else e[s]=e[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),U.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,U.delete(this))}resume(){this.isComplete||this.scheduleResolve()}},Xn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Zn=e=>t=>typeof t=="string"&&t.startsWith(e),Jn=Zn("--"),Xs=Zn("var(--"),Vt=e=>Xs(e)?Zs.test(e.split("/*")[0].trim()):!1,Zs=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Js=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Qs(e){let t=Js.exec(e);if(!t)return[,];let[,n,i,s]=t;return[`--${n??i}`,s]}var er=4;function Qn(e,t,n=1){R(n<=er,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,s]=Qs(e);if(!i)return;let r=window.getComputedStyle(t).getPropertyValue(i);if(r){let o=r.trim();return Xn(o)?parseFloat(o):o}return Vt(s)?Qn(s,t,n+1):s}var ei=e=>t=>t.test(e),tr={test:e=>e==="auto",parse:e=>e},ti=[oe,f,q,H,sn,nn,tr],yn=e=>ti.find(ei(e)),ni=class extends Et{constructor(e,t,n,i,s){super(e,t,n,i,s,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let a=0;a<e.length;a++){let l=e[a];if(typeof l=="string"&&(l=l.trim(),Vt(l))){let u=Qn(l,t.current);u!==void 0&&(e[a]=u),a===e.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Nn.has(n)||e.length!==2)return;let[i,s]=e,r=yn(i),o=yn(s);if(r!==o)if(mn(r)&&mn(o))for(let a=0;a<e.length;a++){let l=e[a];typeof l=="string"&&(e[a]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let i=0;i<e.length;i++)Vs(e[i])&&n.push(i);n.length&&$s(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ie[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];i!==void 0&&e.getValue(n,i).jump(i,!1)}measureEndState(){var e;let{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);let r=i.length-1,o=i[r];i[r]=ie[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}},bn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ae.test(e)||e==="0")&&!e.startsWith("url("));function nr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function ir(e,t,n,i){let s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;let r=e[e.length-1],o=bn(s,t),a=bn(r,t);return ge(o===a,`You are trying to animate ${t} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`),!o||!a?!1:nr(e)||(n==="spring"||J(n))&&i}var sr=40,ii=class{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:r="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=K.now(),this.options={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:s,repeatType:r,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>sr?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Ys(),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=K.now(),this.hasAttemptedResolve=!0;let{name:n,type:i,velocity:s,delay:r,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!ir(e,n,i,s))if(r)this.options.duration=0;else{a?.(Q(e,this.options,t)),o?.(),this.resolveFinishedPromise();return}let u=this.initPlayback(e,t);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}};function at(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 rr({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let s=0,r=0,o=0;if(!t)s=r=o=n;else{let a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=at(l,a,e+1/3),r=at(l,a,e),o=at(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:i}}function qe(e,t){return n=>n>0?t:e}var lt=(e,t,n)=>{let i=e*e,s=n*(t*t-i)+i;return s<0?0:Math.sqrt(s)},or=[ct,z,te],ar=e=>or.find(t=>t.test(e));function wn(e){let t=ar(e);if(ge(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===te&&(n=rr(n)),n}var Tn=(e,t)=>{let n=wn(e),i=wn(t);if(!n||!i)return qe(e,t);let s={...n};return r=>(s.red=lt(n.red,i.red,r),s.green=lt(n.green,i.green,r),s.blue=lt(n.blue,i.blue,r),s.alpha=ee(n.alpha,i.alpha,r),z.transform(s))},lr=(e,t)=>n=>t(e(n)),_t=(...e)=>e.reduce(lr),pt=new Set(["none","hidden"]);function ur(e,t){return pt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function cr(e,t){return n=>ee(e,t,n)}function At(e){return typeof e=="number"?cr:typeof e=="string"?Vt(e)?qe:N.test(e)?Tn:fr:Array.isArray(e)?si:typeof e=="object"?N.test(e)?Tn:dr:qe}function si(e,t){let n=[...e],i=n.length,s=e.map((r,o)=>At(r)(r,t[o]));return r=>{for(let o=0;o<i;o++)n[o]=s[o](r);return n}}function dr(e,t){let n={...e,...t},i={};for(let s in n)e[s]!==void 0&&t[s]!==void 0&&(i[s]=At(e[s])(e[s],t[s]));return s=>{for(let r in i)n[r]=i[r](s);return n}}function hr(e,t){var n;let i=[],s={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let o=t.types[r],a=e.indexes[o][s[o]],l=(n=e.values[a])!==null&&n!==void 0?n:0;i[r]=l,s[o]++}return i}var fr=(e,t)=>{let n=ae.createTransformer(t),i=Ce(e),s=Ce(t);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?pt.has(e)&&!s.values.length||pt.has(t)&&!i.values.length?ur(e,t):_t(si(hr(i,s),s.values),n):(ge(!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.`),qe(e,t))};function ri(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ee(e,t,n):At(e)(e,t)}function Sn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){let d=e[0],h={done:!1,value:d},g=y=>a!==void 0&&y<a||l!==void 0&&y>l,v=y=>a===void 0?l:l===void 0||Math.abs(a-y)<Math.abs(l-y)?a:l,w=n*t,b=d+w,p=o===void 0?b:o(b);p!==b&&(w=p-d);let T=y=>-w*Math.exp(-y/i),_=y=>p+T(y),M=y=>{let x=T(y),Y=_(y);h.done=Math.abs(x)<=u,h.value=h.done?p:Y},m,S,E=y=>{g(h.value)&&(m=y,S=yt({keyframes:[h.value,v(h.value)],velocity:Dn(_,y,h.value),damping:s,stiffness:r,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:y=>{let x=!1;return!S&&m===void 0&&(x=!0,M(y),E(y)),m!==void 0&&y>=m?S.next(y-m):(!x&&M(y),h)}}}var pr=Me(.42,0,1,1),mr=Me(0,0,.58,1),oi=Me(.42,0,.58,1),xn={linear:k,easeIn:pr,easeInOut:oi,easeOut:mr,circIn:Tt,circInOut:Hn,circOut:Es,backIn:wt,backInOut:Rn,backOut:kn,anticipate:Bn},mt=e=>{if(Re(e)){R(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,n,i,s]=e;return Me(t,n,i,s)}else if(typeof e=="string")return R(xn[e]!==void 0,`Invalid easing type '${e}'`),xn[e];return e};function gr(e,t,n){let i=[],s=n||ri,r=e.length-1;for(let o=0;o<r;o++){let a=s(e[o],e[o+1]);if(t){let l=Array.isArray(t)?t[o]||k:t;a=_t(l,a)}i.push(a)}return i}function vr(e,t,{clamp:n=!0,ease:i,mixer:s}={}){let r=e.length;if(R(r===t.length,"Both input and output ranges must be the same length"),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=gr(t,i,s),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);let h=Z(e[d],e[d+1],c);return a[d](h)};return n?c=>u(j(e[0],e[r-1],c)):u}function yr(e,t){return e.map(n=>n*t)}function br(e,t){return e.map(()=>t||oi).splice(0,e.length-1)}function $e({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){let s=tt(i)?i.map(mt):mt(i),r={done:!1,value:t[0]},o=yr(n&&n.length===t.length?n:nt(t),e),a=vr(o,t,{ease:Array.isArray(s)?s:br(t,s)});return{calculatedDuration:e,next:l=>(r.value=a(l),r.done=l>=e,r)}}var wr=e=>{let t=({timestamp:n})=>e(n);return{start:()=>G.update(t,!0),stop:()=>We(t),now:()=>Ke.isProcessing?Ke.timestamp:K.now()}},Tr={decay:Sn,inertia:Sn,tween:$e,keyframes:$e,spring:yt},Sr=e=>e/100,Dt=class extends ii{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:a}=this.options;a&&a()};let{name:t,motionValue:n,element:i,keyframes:s}=this.options,r=i?.KeyframeResolver||Et,o=(a,l)=>this.onKeyframesResolved(a,l);this.resolver=new r(s,o,t,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let{type:t="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:r=0}=this.options,o=J(t)?t:Tr[t]||$e,a,l;o!==$e&&typeof e[0]!="number"&&(a=_t(Sr,ri(e[0],e[1])),e=[0,100]);let u=o({...this.options,keyframes:e});s==="mirror"&&(l=o({...this.options,keyframes:[...e].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=Ie(u));let{calculatedDuration:c}=u,d=c+i,h=d*(n+1)-i;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:c,resolvedDuration:d,totalDuration:h}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:E}=this.options;return{done:!0,value:E[E.length-1]}}let{finalKeyframe:i,generator:s,mirroredGenerator:r,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(this.startTime===null)return s.next(0);let{delay:d,repeat:h,repeatType:g,repeatDelay:v,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let b=this.currentTime-d*(this.speed>=0?1:-1),p=this.speed>=0?b<0:b>u;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let T=this.currentTime,_=s;if(h){let E=Math.min(this.currentTime,u)/c,y=Math.floor(E),x=E%1;!x&&E>=1&&(x=1),x===1&&y--,y=Math.min(y,h+1),!!(y%2)&&(g==="reverse"?(x=1-x,v&&(x-=v/c)):g==="mirror"&&(_=r)),T=j(0,1,x)*c}let M=p?{done:!1,value:a[0]}:_.next(T);o&&(M.value=o(M.value));let{done:m}=M;!p&&l!==null&&(m=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&m);return S&&i!==void 0&&(M.value=Q(a,this.options,i)),w&&w(M.value),S&&this.finish(),M}get duration(){let{resolved:e}=this;return e?P(e.calculatedDuration):0}get time(){return P(this.currentTime)}set time(e){e=F(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=P(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=wr,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),t&&t();let i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}},xr=new Set(["opacity","clipPath","filter","transform"]),ze=10,Cr=2e4;function Mr(e){return J(e.type)||e.type==="spring"||!Ze(e.ease)}function Er(e,t){let n=new Dt({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),i={done:!1,value:e[0]},s=[],r=0;for(;!i.done&&r<Cr;)i=n.sample(r),s.push(i.value),r+=ze;return{times:void 0,keyframes:s,duration:r-ze,ease:"linear"}}var ai={anticipate:Bn,backInOut:Rn,circInOut:Hn};function Vr(e){return e in ai}var Cn=class extends ii{constructor(e){super(e);let{name:t,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new ni(s,(r,o)=>this.onKeyframesResolved(r,o),t,n,i),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:i=300,times:s,ease:r,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!(!((n=a.owner)===null||n===void 0)&&n.current))return!1;if(typeof r=="string"&&X()&&Vr(r)&&(r=ai[r]),Mr(this.options)){let{onComplete:d,onUpdate:h,motionValue:g,element:v,...w}=this.options,b=Er(e,w);e=b.keyframes,e.length===1&&(e[1]=e[0]),i=b.duration,s=b.times,r=b.ease,o="keyframes"}let c=Je(a.owner.current,l,e,{...this.options,duration:i,times:s,ease:r});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(ke(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:d}=this.options;a.set(Q(e,this.options,t)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:s,type:o,ease:r,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return P(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return P(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=F(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{let{resolved:t}=this;if(!t)return k;let{animation:n}=t;ke(n,e)}return k}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.playState==="finished"&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:i,type:s,ease:r,times:o}=e;if(t.playState==="idle"||t.playState==="finished")return;if(this.time){let{motionValue:l,onUpdate:u,onComplete:c,element:d,...h}=this.options,g=new Dt({...h,keyframes:n,duration:i,type:s,ease:r,times:o,isGenerator:!0}),v=F(this.time);l.setWithVelocity(g.sample(v-ze).value,g.sample(v).value,ze)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:i,repeatType:s,damping:r,type:o}=e;return et()&&n&&xr.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!i&&s!=="mirror"&&r!==0&&o!=="inertia"}},_r={type:"spring",stiffness:500,damping:25,restSpeed:10},Ar=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Dr={type:"keyframes",duration:.8},Nr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Fr=(e,{keyframes:t})=>t.length>2?Dr:re.has(e)?e.startsWith("scale")?Ar(t[1]):_r:Nr;function Lr({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}var li=(e,t,n,i={},s,r)=>o=>{let a=Oe(i,e)||{},l=a.delay||i.delay||0,{elapsed:u=0}=i;u=u-F(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:r?void 0:s};Lr(a)||(c={...c,...Fr(e,c)}),c.duration&&(c.duration=F(c.duration)),c.repeatDelay&&(c.repeatDelay=F(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!r&&t.get()!==void 0){let h=Q(c.keyframes,a);if(h!==void 0)return G.update(()=>{c.onUpdate(h),c.onComplete()}),new ve([])}return!r&&Cn.supports(c)?new Cn(c):new Dt(c)};function Or({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function Pr(e,t,{delay:n=0,transitionOverride:i,type:s}={}){var r;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;i&&(o=i);let u=[],c=s&&e.animationState&&e.animationState.getState()[s];for(let d in l){let h=e.getValue(d,(r=e.latestValues[d])!==null&&r!==void 0?r:null),g=l[d];if(g===void 0||c&&Or(c,d))continue;let v={delay:n,...Oe(o||{},d)},w=!1;if(window.MotionHandoffAnimation){let p=Ss(e);if(p){let T=window.MotionHandoffAnimation(p,d,G);T!==null&&(v.startTime=T,w=!0)}}bs(e,d),h.start(li(d,h,g,e.shouldReduceMotion&&Nn.has(d)?{type:!1}:v,e,w));let b=h.animation;b&&u.push(b)}return a&&Promise.all(u).then(()=>{G.update(()=>{a&&vs(e,a)})}),u}function Ir(e){return e instanceof SVGElement&&e.tagName!=="svg"}var Mn=()=>({min:0,max:0}),Nt=()=>({x:Mn(),y:Mn()}),En={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},gt={};for(let e in En)gt[e]={isEnabled:t=>En[e].some(n=>!!t[n])};var kr=typeof window<"u",vt={current:null},ui={current:!1};function Rr(){if(ui.current=!0,!!kr)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vt.current=e.matches;e.addListener(t),t()}else vt.current=!1}var Br=[...ti,N,ae],Hr=e=>Br.find(ei(e));function Gr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Wr(e){return typeof e=="string"||Array.isArray(e)}var Kr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],qr=["initial",...Kr];function ci(e){return Gr(e.animate)||qr.some(t=>Wr(e[t]))}function $r(e){return!!(ci(e)||e.variants)}function zr(e,t,n){for(let i in t){let s=t[i],r=n[i];if(D(s))e.addValue(i,s);else if(D(r))e.addValue(i,Se(s,{owner:e}));else if(r!==s)if(e.hasValue(i)){let o=e.getValue(i);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{let o=e.getStaticValue(i);e.addValue(i,Se(o!==void 0?o:s,{owner:e}))}}for(let i in n)t[i]===void 0&&e.removeValue(i);return t}var Vn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],di=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:s,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Et,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let h=K.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,G.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=r;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=ci(t),this.isVariantNode=$r(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let h in d){let g=d[h];a[h]!==void 0&&D(g)&&g.set(a[h],!1)}}mount(e){this.current=e,ne.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,n)=>this.bindToMotionValue(n,t)),ui.current||Rr(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:vt.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ne.delete(this.current),this.projection&&this.projection.unmount(),We(this.notifyUpdate),We(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=re.has(e),i=t.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&G.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=t.on("renderRequest",this.scheduleRender),r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),s(),r&&r(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in gt){let t=gt[e];if(!t)continue;let{isEnabled:n,Feature:i}=t;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){let s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Nt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<Vn.length;n++){let i=Vn[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s="on"+i,r=e[s];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=zr(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Se(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Xn(i)||Gn(i))?i=parseFloat(i):!Hr(i)&&ae.test(t)&&(i=Un(e,t)),this.setBaseTarget(e,D(i)?i.get():i)),D(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,i;if(typeof n=="string"||typeof n=="object"){let r=Ln(this.props,n,(t=this.presenceContext)===null||t===void 0?void 0:t.custom);r&&(i=r[e])}if(n&&i!==void 0)return i;let s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!D(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Fn),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}},hi=class extends di{constructor(){super(...arguments),this.KeyframeResolver=ni}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;D(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}},fi=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ur={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},jr=se.length;function Yr(e,t,n){let i="",s=!0;for(let r=0;r<jr;r++){let o=se[r],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){let u=fi(a,Ct[o]);if(!l){s=!1;let c=Ur[o]||o;i+=`${c}(${u}) `}n&&(t[o]=u)}}return i=i.trim(),n?i=n(t,s?"":i):s&&(i="none"),i}function pi(e,t,n){let{style:i,vars:s,transformOrigin:r}=e,o=!1,a=!1;for(let l in t){let u=t[l];if(re.has(l)){o=!0;continue}else if(Jn(l)){s[l]=u;continue}else{let c=fi(u,Ct[l]);l.startsWith("origin")?(a=!0,r[l]=c):i[l]=c}}if(t.transform||(o||n?i.transform=Yr(t,e.transform,n):i.transform&&(i.transform="none")),a){let{originX:l="50%",originY:u="50%",originZ:c=0}=r;i.transformOrigin=`${l} ${u} ${c}`}}function _n(e,t,n){return typeof e=="string"?e:f.transform(t+n*e)}function Xr(e,t,n){let i=_n(t,e.x,e.width),s=_n(n,e.y,e.height);return`${i} ${s}`}var Zr={offset:"stroke-dashoffset",array:"stroke-dasharray"},Jr={offset:"strokeDashoffset",array:"strokeDasharray"};function Qr(e,t,n=1,i=0,s=!0){e.pathLength=1;let r=s?Zr:Jr;e[r.offset]=f.transform(-i);let o=f.transform(t),a=f.transform(n);e[r.array]=`${o} ${a}`}function eo(e,{attrX:t,attrY:n,attrScale:i,originX:s,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(pi(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:h,style:g,dimensions:v}=e;h.transform&&(v&&(g.transform=h.transform),delete h.transform),v&&(s!==void 0||r!==void 0||g.transform)&&(g.transformOrigin=Xr(v,s!==void 0?s:.5,r!==void 0?r:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),i!==void 0&&(h.scale=i),o!==void 0&&Qr(h,o,a,l,!1)}var mi=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),to=e=>typeof e=="string"&&e.toLowerCase()==="svg";function gi(e,{style:t,vars:n},i,s){Object.assign(e.style,t,s&&s.getProjectionStyles(i));for(let r in n)e.style.setProperty(r,n[r])}function no(e,t,n,i){gi(e,t,void 0,i);for(let s in t.attrs)e.setAttribute(mi.has(s)?s:bt(s),t.attrs[s])}var io={};function so(e,{layout:t,layoutId:n}){return re.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!io[e]||e==="opacity")}function vi(e,t,n){var i;let{style:s}=e,r={};for(let o in s)(D(s[o])||t.style&&D(t.style[o])||so(o,e)||((i=n?.getValue(o))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(r[o]=s[o]);return r}function ro(e,t,n){let i=vi(e,t,n);for(let s in e)if(D(e[s])||D(t[s])){let r=se.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[r]=e[s]}return i}var oo=class extends hi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Nt}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(re.has(t)){let n=Mt(t);return n&&n.default||0}return t=mi.has(t)?t:bt(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return ro(e,t,n)}build(e,t,n){eo(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,i){no(e,t,n,i)}mount(e){this.isSVGTag=to(e.tagName),super.mount(e)}};function ao({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function lo(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function uo(e,t){return ao(lo(e.getBoundingClientRect(),t))}function co(e){return window.getComputedStyle(e)}var ho=class extends hi{constructor(){super(...arguments),this.type="html",this.renderInstance=gi}readValueFromInstance(e,t){if(re.has(t)){let n=Mt(t);return n&&n.default||0}else{let n=co(e),i=(Jn(t)?n.getPropertyValue(t):n[t])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return uo(e,t)}build(e,t,n){pi(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return vi(e,t,n)}};function fo(e,t){return e in t}var po=class extends di{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(fo(t,e)){let n=e[t];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return Nt()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}};function mo(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Ir(e)?new oo(t):new ho(t);n.mount(e),ne.set(e,n)}function go(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new po(t);n.mount(e),ne.set(e,n)}function vo(e,t,n){let i=D(e)?e:Se(e);return i.start(li("",i,t,n)),i.animation}function yo(e,t){return D(e)||typeof e=="number"||typeof e=="string"&&!Be(t)}function yi(e,t,n,i){let s=[];if(yo(e,t))s.push(vo(e,Be(t)&&t.default||t,n&&(n.default||n)));else{let r=it(e,t,i),o=r.length;R(!!o,"No valid elements provided.");for(let a=0;a<o;a++){let l=r[a],u=l instanceof Element?mo:go;ne.has(l)||u(l);let c=ne.get(l),d={...n};"delay"in d&&typeof d.delay=="function"&&(d.delay=d.delay(a,o)),s.push(...Pr(c,{...t,transition:d},{}))}}return s}function bo(e,t,n){let i=[];return rt(e,t,n,{spring:yt}).forEach(({keyframes:r,transition:o},a)=>{i.push(...yi(a,r,o))}),i}function wo(e){return Array.isArray(e)&&e.some(Array.isArray)}function To(e){function t(n,i,s){let r=[];wo(n)?r=bo(n,i,e):r=yi(n,i,s,e);let o=new ve(r);return e&&e.animations.push(o),o}return t}var Xo=To();var So={some:0,all:1};function bi(e,t,{root:n,margin:i,amount:s="some"}={}){let r=Pe(e),o=new WeakMap,a=u=>{u.forEach(c=>{let d=o.get(c.target);if(c.isIntersecting!==!!d)if(c.isIntersecting){let h=t(c);typeof h=="function"?o.set(c.target,h):l.unobserve(c.target)}else typeof d=="function"&&(d(c),o.delete(c.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:i,threshold:typeof s=="number"?s:So[s]});return r.forEach(u=>l.observe(u)),()=>l.disconnect()}function xo(e,t){if(e==="first")return 0;{let n=t-1;return e==="last"?n:n/2}}function Ft(e=.1,{startDelay:t=0,from:n=0,ease:i}={}){return(s,r)=>{let o=typeof n=="number"?n:xo(n,r),a=Math.abs(o-s),l=e*a;if(i){let u=r*e;l=mt(i)(l/u)*u}return t+l}}var Zo=we.reduce((e,t)=>(e[t]=n=>We(n),e),{});var Co=Symbol.for("preact-signals");function Ot(){if(le>1)le--;else{for(var e,t=!1;Ee!==void 0;){var n=Ee;for(Ee=void 0,Lt++;n!==void 0;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Si(n))try{n.c()}catch(s){t||(e=s,t=!0)}n=i}}if(Lt=0,le--,t)throw e}}var C=void 0;var Ee=void 0,le=0,Lt=0,Ue=0;function wi(e){if(C!==void 0){var t=e.n;if(t===void 0||t.t!==C)return t={i:0,S:e,p:C.s,n:void 0,t:C,e:void 0,x:void 0,r:t},C.s!==void 0&&(C.s.n=t),C.s=t,e.n=t,32&C.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=C.s,t.n=void 0,C.s.n=t,C.s=t),t}}function L(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}L.prototype.brand=Co;L.prototype.h=function(){return!0};L.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};L.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}};L.prototype.subscribe=function(e){var t=this;return Eo(function(){var n=t.value,i=C;C=void 0;try{e(n)}finally{C=i}})};L.prototype.valueOf=function(){return this.value};L.prototype.toString=function(){return this.value+""};L.prototype.toJSON=function(){return this.value};L.prototype.peek=function(){var e=C;C=void 0;try{return this.value}finally{C=e}};Object.defineProperty(L.prototype,"value",{get:function(){var e=wi(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Lt>100)throw new Error("Cycle detected");this.v=e,this.i++,Ue++,le++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ot()}}}});function Ti(e){return new L(e)}function Si(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function xi(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Ci(e){for(var t=e.s,n=void 0;t!==void 0;){var i=t.p;t.i===-1?(t.S.U(t),i!==void 0&&(i.n=t.n),t.n!==void 0&&(t.n.p=i)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=i}e.s=n}function Ve(e){L.call(this,void 0),this.x=e,this.s=void 0,this.g=Ue-1,this.f=4}(Ve.prototype=new L).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ue))return!0;if(this.g=Ue,this.f|=1,this.i>0&&!Si(this))return this.f&=-2,!0;var e=C;try{xi(this),C=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return C=e,Ci(this),this.f&=-2,!0};Ve.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}L.prototype.S.call(this,e)};Ve.prototype.U=function(e){if(this.t!==void 0&&(L.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Ve.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Ve.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=wi(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Mi(e){var t=e.u;if(e.u=void 0,typeof t=="function"){le++;var n=C;C=void 0;try{t()}catch(i){throw e.f&=-2,e.f|=8,Pt(e),i}finally{C=n,Ot()}}}function Pt(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Mi(e)}function Mo(e){if(C!==this)throw new Error("Out-of-order effect");Ci(this),C=e,this.f&=-2,8&this.f&&Pt(this),Ot()}function _e(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}_e.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};_e.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Mi(this),xi(this),le++;var e=C;return C=this,Mo.bind(this,e)};_e.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ee,Ee=this)};_e.prototype.d=function(){this.f|=8,1&this.f||Pt(this)};function Eo(e){var t=new _e(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var Ei=e=>{window.NudgeMoment=Object.assign(window.NudgeMoment||{},{custom:{...window.NudgeMoment?.custom,...e}})},A=e=>{$(document).ready(()=>{window.NudgeMoment.check().then(t=>{t&&e()})})};var Vi=".NDGMNT__FloatingFixedButton__floating-button-container",Vo=".NDGMNT__FloatingFixedButton__floating-menu",_o=".NDGMNT__FloatingFixedButton__trigger-button",Ao='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-users-round"><path d="M18 21a8 8 0 0 0-16 0"/><circle cx="10" cy="8" r="5"/><path d="M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3"/></svg>',Do={naver:'<svg width="289" height="291" viewBox="0 0 289 291" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M247.979 34.7843V183.205C247.979 195.764 237.784 205.968 225.238 205.968H86.8376C83.8876 205.968 57.8875 206.368 46.775 219.818L40.3709 226.401L28.9917 238.093L16.2875 251.147C15.325 251.714 13.8 252.393 12.8042 252.393L12.6667 252.414C12.6583 252.405 11.3792 251.18 11.3792 245.534V34.7843C11.3792 22.2259 21.5834 12.0218 34.1417 12.0218H225.238C235.188 12.0218 243.567 18.4759 246.65 27.3926C247.459 29.7259 247.979 32.1843 247.979 34.7843ZM278.817 38.1176L278.859 38.0468L250.175 11.6093C243.95 4.90091 235.096 0.642578 225.238 0.642578H34.1417C15.325 0.642578 0 15.9509 0 34.7843V245.534C0 251.393 1.07917 255.755 3.26667 258.859C4.03334 259.951 4.9375 260.872 5.9625 261.609L33.3917 286.884C33.8292 287.347 34.2792 287.768 34.7584 288.143L34.9917 288.368L35.025 288.33C35.4792 288.651 35.9167 289.009 36.4 289.268C38.0209 290.093 39.8375 290.534 41.7959 290.534C46.8875 290.534 51.3334 287.576 52.175 286.984L84.2376 254.18C91.0334 245.959 109.325 244.13 115.821 244.114H254.225C273.046 244.114 288.359 228.797 288.359 209.976V61.5343C288.359 52.4093 284.7 44.2093 278.817 38.1176Z" fill="white"/><path d="M75.1167 71.9814C65.7084 71.9814 58.1125 79.6022 58.1125 88.9939V124.715C58.1125 134.111 65.7084 141.719 75.1167 141.719C84.5001 141.719 92.1251 134.111 92.1251 124.715V88.9939C92.1251 79.6022 84.5001 71.9814 75.1167 71.9814Z" fill="white"/><path d="M181.058 71.9814C171.663 71.9814 164.038 79.6022 164.038 88.9939V124.715C164.038 134.111 171.663 141.719 181.058 141.719C190.446 141.719 198.054 134.111 198.054 124.715V88.9939C198.054 79.6022 190.446 71.9814 181.058 71.9814Z" fill="white"/></svg>',kakao:'<svg width="18" height="17" viewBox="0 0 18 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.00002 0.0999756C4.02917 0.0999756 0 3.21293 0 7.05226C0 9.44 1.5584 11.5449 3.93152 12.7969L2.93303 16.4445C2.84481 16.7668 3.21341 17.0237 3.49646 16.8369L7.87334 13.9482C8.2427 13.9838 8.61808 14.0046 9.00002 14.0046C13.9705 14.0046 17.9999 10.8918 17.9999 7.05226C17.9999 3.21293 13.9705 0.0999756 9.00002 0.0999756Z" fill="black"/></svg>',youtube:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-youtube"><path d="M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17"/><path d="m10 15 5-3-5-3z"/></svg>',instagram:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-instagram"><rect width="20" height="20" x="2" y="2" rx="5" ry="5"/><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"/><line x1="17.5" x2="17.51" y1="6.5" y2="6.5"/></svg>',thread:`<svg width="413" height="480" viewBox="0 0 413 480" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M321.342 222.471C319.275 221.48 317.175 220.526 315.047 219.613C311.342 151.346 274.04 112.262 211.405 111.862C211.121 111.861 210.839 111.861 210.555 111.861C173.091 111.861 141.933 127.852 122.755 156.952L157.202 180.582C171.529 158.846 194.013 154.212 210.572 154.212C210.763 154.212 210.955 154.212 211.144 154.214C231.768 154.345 247.33 160.342 257.402 172.035C264.732 180.548 269.635 192.312 272.062 207.16C253.777 204.052 234.002 203.096 212.862 204.308C153.312 207.738 115.028 242.47 117.599 290.73C118.904 315.21 131.099 336.27 151.938 350.027C169.556 361.658 192.247 367.345 215.831 366.057C246.975 364.35 271.408 352.467 288.452 330.74C301.397 314.24 309.585 292.857 313.2 265.915C328.043 274.872 339.042 286.66 345.117 300.83C355.447 324.918 356.05 364.5 323.753 396.77C295.455 425.04 261.44 437.27 210.034 437.648C153.01 437.225 109.884 418.938 81.8452 383.293C55.5887 349.915 42.0192 301.705 41.513 240C42.0192 178.294 55.5887 130.084 81.8452 96.7068C109.884 61.0623 153.01 42.775 210.033 42.3512C267.47 42.7783 311.348 61.1535 340.46 96.97C354.735 114.534 365.497 136.622 372.592 162.376L412.96 151.605C404.36 119.906 390.827 92.5892 372.412 69.935C335.09 24.0167 280.505 0.48787 210.174 0H209.892C139.704 0.486175 85.7302 24.1045 49.4707 70.1982C17.2048 111.216 0.561 168.289 0.00174999 239.831L0 240L0.00174999 240.169C0.561 311.71 17.2048 368.785 49.4707 409.803C85.7302 455.895 139.704 479.515 209.892 480H210.174C272.575 479.568 316.56 463.23 352.795 427.028C400.202 379.665 398.775 320.298 383.15 283.853C371.94 257.717 350.568 236.49 321.342 222.471ZM213.601 323.768C187.501 325.238 160.386 313.522 159.049 288.43C158.058 269.825 172.29 249.065 215.203 246.592C220.117 246.309 224.94 246.17 229.678 246.17C245.265 246.17 259.848 247.684 273.105 250.583C268.16 312.337 239.155 322.365 213.601 323.768Z" fill="white"/></svg>
|
12
|
+
`},No={naver:{backgroundColor:"#03C75A",borderColor:"#03C75A"},kakao:{backgroundColor:"#FAE100",borderColor:"#FAE100"},youtube:{backgroundColor:"#ff0000",borderColor:"#ff0000"},instagram:{backgroundColor:"transparent",borderColor:"",backgroundImage:"linear-gradient(45deg, #833AB4 0%, #FD1D1D 50%, #F77737 100%)"},thread:{backgroundColor:"#121212",borderColor:"#121212"}},It=class{constructor(t){O(this,"container");O(this,"menu");O(this,"trigger");O(this,"options");O(this,"isOpenSignal",Ti(!1));let n=t.containerSelector??Vi,i=t.triggerContent??Ao;this.options={containerSelector:n,triggerContent:i,snsConfigs:t.snsConfigs},this.container=document.querySelector(n),this.menu=this.container.querySelector(Vo),this.trigger=this.container.querySelector(_o),this.isOpenSignal.subscribe(s=>{s?this.handleOpen():this.handleClose()}),typeof this.options.triggerContent=="string"?this.trigger.innerHTML=this.options.triggerContent:this.options.triggerContent instanceof HTMLElement&&this.trigger.appendChild(this.options.triggerContent),this.initialize()}initialize(){this.menu.innerHTML="",this.options.snsConfigs.forEach(t=>{let n=document.createElement("li"),i=document.createElement("button");i.innerHTML=Do[t.sns];let s=No[t.sns];i.style.borderColor=s.borderColor,i.style.backgroundColor=s.backgroundColor,i.style.backgroundImage=s.backgroundImage??"",i.style.color=t.sns==="kakao"?"#000000":"#FFFFFF",i.dataset.hoverBg=s.backgroundColor||"",n.appendChild(i),this.menu.appendChild(n),i.addEventListener("click",()=>{window.open(t.link,"_blank"),this.isOpenSignal.value=!1})}),this.trigger.addEventListener("click",()=>this.toggle()),document.addEventListener("click",t=>this.handleClickOutside(t)),setTimeout(()=>{$(Vi).addClass("visible")},800)}toggle(){this.isOpenSignal.value=!this.isOpenSignal.value}handleOpen(){this.menu.setAttribute("data-visible","true");let t=this.menu.querySelectorAll("li");t.length>0&&be(t,{opacity:1,transform:"translateY(0)"},{delay:Ft(.1,{from:"last"}),duration:.3,ease:"easeInOut"})}handleClose(){let t=this.menu.querySelectorAll("li");t.length>0?be(t,{opacity:0,transform:"translateY(5px)"},{delay:Ft(.1,{from:"first"}),duration:.3,ease:"easeInOut",onComplete:()=>{this.menu.setAttribute("data-visible","false")}}):this.menu.setAttribute("data-visible","false")}handleClickOutside(t){this.container.contains(t.target)||(this.isOpenSignal.value=!1)}};A(()=>{Ei({FloatingFixedButton:It}),window.NudgeMoment.net.emit("template__FloatingFixedButton")});function Fo(){let e=document.createElement("div");e.className="NDGMNT__header__scroll-progress";let t=$("#inline_header_mobile").is(":visible"),n=document.querySelector(t?"#inline_header_mobile":"#inline_header_normal");if(!n)throw new Error("[NDGMNT] header element \uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");n.appendChild(e);function i(){let s=window.scrollY,r=document.documentElement.scrollHeight-window.innerHeight,o=s/r;s>100?e.classList.add("visible"):e.classList.remove("visible"),e.style.transform=`scaleX(${o})`}window.addEventListener("scroll",i)}A(()=>{Fo()});var ue={IMWEB_SLIDE_MENU_WRAP:"#mobile_slide_menu_wrap",IMWEB_SLIDE_MENU:"#mobile_slide_menu",MOBILE_MENU_DIMMED:"NDGMNT__mobile-top-nav__dimmed",MOBILE_MENU_CONTAINER:"NDGMNT__mobile-top-nav__container",MOBILE_MENU_LIST:"NDGMNT__mobile-top-nav__list"};function Lo(){let e=document.querySelector(ue.IMWEB_SLIDE_MENU_WRAP);if(!e)throw new Error(`${ue.IMWEB_SLIDE_MENU_WRAP} \uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.`);let t=e.classList.contains("slide_open"),n=document.createElement("div");n.className=ue.MOBILE_MENU_DIMMED;let i=document.createElement("div");i.className=ue.MOBILE_MENU_CONTAINER;let s=document.createElement("ul");s.className=ue.MOBILE_MENU_LIST,document.querySelectorAll(`${ue.IMWEB_SLIDE_MENU} li[data-code]`).forEach(a=>{let l=a.cloneNode(!0);s.appendChild(l)}),i.appendChild(s),document.body.appendChild(n),document.body.appendChild(i),new MutationObserver(a=>{let l=e.classList.contains("slide_open");l!==t&&(l?(n.classList.add("visible"),setTimeout(()=>{n.classList.add("active"),i.classList.add("open")},10)):(n.classList.remove("active"),i.classList.remove("open"),document.body.style.overflowY="initial",setTimeout(()=>{n.classList.remove("visible")},300)),t=l)}).observe(e,{attributes:!0,attributeFilter:["class"]}),n.addEventListener("click",()=>{e.classList.remove("slide_open")})}A(()=>{$("#mobile_slide_menu_wrap").css("display","none"),Lo()});var Oo={TYPING_TEXT:".NDGMNT-home__hero-section__typing-text"},kt=class{constructor(t,n={}){O(this,"element");O(this,"originalText");O(this,"duration");O(this,"delay");O(this,"started");this.element=t,this.originalText=t.textContent,this.duration=n.duration||100,this.delay=parseInt(t.dataset.delay||String(n.delay||0)),this.element.textContent="",this.started=!1,this.init()}init(){bi(this.element,t=>{t.isIntersecting&&!this.started&&setTimeout(()=>{this.element.style.position="static",this.element.style.opacity="1",this.startTyping()},this.delay)},{amount:.1})}startTyping(){this.started=!0;let t=0,n=setInterval(()=>{t<this.originalText.length?(this.element.textContent=this.originalText.substring(0,t+1),t++):clearInterval(n)},this.duration)}};A(()=>{document.querySelectorAll(Oo.TYPING_TEXT).forEach(e=>{new kt(e,{duration:200,delay:0})})});var Rt=class{constructor(t,n={}){this.container=t,this.beforeImage=t.querySelector("#before-image"),this.afterImage=t.querySelector("#after-image"),this.slider=t.querySelector("#slider"),this.isDragging=!1,this.enableHover=n.enableHover||!1,this.position=50,this.init(),this.toastTimeout=null,this.createToast()}init(){let t=()=>{this.beforeImage.style.clipPath=`inset(0 0 0 ${this.position}%)`,this.afterImage.style.clipPath=`inset(0 ${100-this.position}% 0 0)`,this.slider.style.left=`${this.position}%`;let s=document.querySelector(".NDGMNT-home__hero-section__tooltip-container");console.log("_tooltipEl",s),s&&s.style.display!=="none"&&(s.style.display="none");let r=document.querySelector(".hero-diff-frame");this.position===50?r.style.borderColor="white":this.position<50?(r.style.borderColor="#ff0054",this.showToast("Bad","bad")):(r.style.borderColor="#33ca7f",this.showToast("Good","good"))},n=s=>{if(!this.isDragging&&!this.enableHover)return;let r=this.container.getBoundingClientRect(),o="touches"in s?s.touches[0].clientX-r.left:s.clientX-r.left;this.position=Math.min(Math.max(o/r.width*100,0),100),t()};this.container.addEventListener("mousemove",n),this.container.addEventListener("touchmove",n),this.container.addEventListener("mousedown",()=>{this.enableHover||(this.isDragging=!0)}),this.container.addEventListener("touchstart",()=>{this.enableHover||(this.isDragging=!0)});let i=()=>{this.enableHover||(this.isDragging=!1)};this.container.addEventListener("mouseup",i),this.container.addEventListener("mouseleave",i),this.container.addEventListener("touchend",i),t(),this.container.style.opacity="100%"}createToast(){let t=document.createElement("div");t.style.cssText=`
|
13
|
+
position: absolute;
|
14
|
+
top: -50px;
|
15
|
+
left: 50%;
|
16
|
+
transform: translateX(-50%);
|
17
|
+
padding: 8px 16px;
|
18
|
+
border-radius: 4px;
|
19
|
+
color: white;
|
20
|
+
font-weight: bold;
|
21
|
+
opacity: 0;
|
22
|
+
transition: all 0.3s ease-in-out;
|
23
|
+
z-index: 100;
|
24
|
+
`,this.toast=t,this.container.parentElement.appendChild(t)}showToast(t,n){this.toastTimeout&&clearTimeout(this.toastTimeout),this.toast.textContent=t,this.toast.style.backgroundColor=n==="good"?"#33ca7f":"#ff0054",this.toast.style.opacity="1",this.toast.style.top="10px",this.toastTimeout=setTimeout(()=>{this.toast.style.opacity="0",this.toast.style.top="-50px"},2e3)}};A(()=>{let e=document.querySelector(".NDGMNT__home__image-comparison");new Rt(e,{enableHover:!1})});function Po(e="NDGMNT__home__image-comparison"){let t=`
|
25
|
+
<div class="NDGMNT-home__hero-section__tooltip-container">
|
26
|
+
<div class="NDGMNT-home__hero-section__tooltip-wrapper NDGMNT-home__hero-section__tooltip--bounce">
|
27
|
+
<div class="NDGMNT-home__hero-section__tooltip-bubble">\uC88C\uC6B0\uB85C \uC6C0\uC9C1\uC774\uC138\uC694</div>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
`,n=document.querySelector(`.${e}`);if(n){let s=function(){let r=n.querySelector(".NDGMNT-home__hero-section__tooltip-wrapper");r.classList.remove("NDGMNT-home__hero-section__tooltip--bounce"),setTimeout(()=>{r.classList.add("NDGMNT-home__hero-section__tooltip--bounce")},100)};var i=s;n.style.position="relative",n.insertAdjacentHTML("beforeend",t),setInterval(s,1e4)}}A(()=>{Po()});var Bt=class{constructor(t,n={}){this.container=t,this.beforeImage=t.querySelector("#mobile__before-image"),this.afterImage=t.querySelector("#mobile__after-image"),this.slider=t.querySelector("#mobile__slider"),this.isDragging=!1,this.enableHover=n.enableHover||!1,this.position=50,this.init(),this.toastTimeout=null,this.createToast()}init(){let t=()=>{let s=document.querySelector(".NDGMNT__mobile-hero-section__tooltip-container");s&&s.style.display!=="none"&&(s.style.display="none"),this.beforeImage.style.clipPath=`inset(0 0 0 ${this.position}%)`,this.afterImage.style.clipPath=`inset(0 ${100-this.position}% 0 0)`,this.slider.style.left=`${this.position}%`;let r=document.querySelector(".mobile__hero-diff-frame");this.position===50?r.style.borderColor="white":this.position<50?(r.style.borderColor="#ff0054",this.showToast("Bad","bad")):(r.style.borderColor="#33ca7f",this.showToast("Good","good"))},n=s=>{if(!this.isDragging&&!this.enableHover)return;let r=this.container.getBoundingClientRect(),o="touches"in s?s.touches[0].clientX-r.left:s.clientX-r.left;this.position=Math.min(Math.max(o/r.width*100,0),100),t()};this.container.addEventListener("mousemove",n),this.container.addEventListener("touchmove",n),this.container.addEventListener("mousedown",()=>{this.enableHover||(this.isDragging=!0)}),this.container.addEventListener("touchstart",()=>{this.enableHover||(this.isDragging=!0)});let i=()=>{this.enableHover||(this.isDragging=!1)};this.container.addEventListener("mouseup",i),this.container.addEventListener("mouseleave",i),this.container.addEventListener("touchend",i),t(),this.container.style.opacity="100%"}createToast(){let t=document.createElement("div");t.style.cssText=`
|
31
|
+
position: absolute;
|
32
|
+
top: -50px;
|
33
|
+
left: 50%;
|
34
|
+
transform: translateX(-50%);
|
35
|
+
padding: 8px 16px;
|
36
|
+
border-radius: 4px;
|
37
|
+
color: white;
|
38
|
+
font-weight: bold;
|
39
|
+
opacity: 0;
|
40
|
+
transition: all 0.3s ease-in-out;
|
41
|
+
z-index: 100;
|
42
|
+
`,this.toast=t,this.container.parentElement.appendChild(t)}showToast(t,n){this.toastTimeout&&clearTimeout(this.toastTimeout),this.toast.textContent=t,this.toast.style.backgroundColor=n==="good"?"#33ca7f":"#ff0054",this.toast.style.opacity="1",this.toast.style.top="10px",this.toastTimeout=setTimeout(()=>{this.toast.style.opacity="0",this.toast.style.top="-50px"},2e3)}};A(()=>{let e=document.querySelector(".NDGMNT__home__image-comparison-mobile");new Bt(e,{enableHover:!1})});function Io(e="NDGMNT__home__image-comparison-mobile"){let t=`
|
43
|
+
<div class="NDGMNT__mobile-hero-section__tooltip-container">
|
44
|
+
<div class="NDGMNT__mobile-hero-section__tooltip-wrapper NDGMNT__mobile-hero-section__tooltip--bounce">
|
45
|
+
<div class="NDGMNT__mobile-hero-section__tooltip-bubble">\uC88C\uC6B0\uB85C \uC6C0\uC9C1\uC774\uC138\uC694</div>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
`,n=document.querySelector(`.${e}`);if(n){let s=function(){let r=n.querySelector(".NDGMNT__mobile-hero-section__tooltip-wrapper");r.classList.remove("NDGMNT__mobile-hero-section__tooltip--bounce"),setTimeout(()=>{r.classList.add("NDGMNT__mobile-hero-section__tooltip--bounce")},100)};var i=s;n.style.position="relative",n.insertAdjacentHTML("beforeend",t),setInterval(s,1e4)}}A(()=>{Io()});var Ht=class{constructor(t={}){this.text=t.text||"Default text for animation",this.container=document.getElementById("text-content"),this.words=this.text.split(""),this.init(),this.setupScrollHandler()}init(){let t=this.text.split(`
|
49
|
+
`);this.totalCharCount=0,t.forEach((n,i)=>{let s=Array.from(n);this.totalCharCount+=s.length;let r=document.createElement("span");r.className="word-container";let o=document.createElement("span");o.className="word-shadow";let a=document.createElement("span");a.className="word-reveal",s.forEach((l,u)=>{let c=document.createElement("span");c.textContent=l,c.style.opacity="0",c.dataset.index=String(this.totalCharCount-s.length+u),a.appendChild(c);let d=document.createElement("span");d.textContent=l,o.appendChild(d)}),r.appendChild(o),r.appendChild(a),this.container.appendChild(r),i<t.length-1&&this.container.appendChild(document.createElement("br"))})}setupScrollHandler(){window.addEventListener("scroll",()=>{requestAnimationFrame(()=>this.handleScroll())})}handleScroll(){let n=document.getElementById("text-reveal-container").getBoundingClientRect(),i=window.innerHeight/2,s=n.top+n.height/2,r=Math.max(0,Math.min(1,(i-s)/(i/2)));document.querySelectorAll(".word-reveal span").forEach(a=>{let u=parseInt(a.dataset.index)/this.totalCharCount,c=this.totalCharCount/2,d=Math.max(0,Math.min(1,(r-u)*c));Motion.animate(a,{opacity:d},{duration:.4,easing:"ease-out"})})}};A(()=>{new Ht({text:`\uACE0\uAC1D\uC758 \uC2DC\uC120\uC774 \uBA38\uBB34\uB294 \uD648\uD398\uC774\uC9C0 \uC81C\uC791\uC744 \uC704\uD574
|
50
|
+
\uC5B4\uB5BB\uAC8C \uB9CC\uB4E4\uC5B4\uC57C \uD560\uAE4C\uC694?`})});})();
|
package/dist/style.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* @license
|
3
|
-
* NudgeMoment v0.0.
|
3
|
+
* NudgeMoment v0.0.6
|
4
4
|
* Copyright (c) 2025 NudgeMoment. All Rights Reserved.
|
5
5
|
*
|
6
6
|
* This source code is licensed under a proprietary license (All Rights Reserved).
|
@@ -8,4 +8,4 @@
|
|
8
8
|
* via any medium, is strictly prohibited without express written permission.
|
9
9
|
* Legal action will be taken against unauthorized use.
|
10
10
|
*/
|
11
|
-
li.depth-01{font-weight:700;font-size:18px;text-align:center;margin:18px auto;border-radius:12px;transition:all .3s ease-out;cursor:pointer}li.depth-01:hover{background-color:#f8f9fa}li.depth-01 a{width:100%;display:inline-block;height:100%;padding:12px 0}li.depth-01:last-child{background-color:#fd9a36}li.depth-01:last-child:hover{opacity:.8;background-color:#fd9a36}li.depth-01:last-child a{color:#fff}.NDGMNT__mobile-top-nav__dimmed{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.7);opacity:0;transition:opacity .3s ease;z-index:1000;display:none}.NDGMNT__mobile-top-nav__dimmed.visible{display:block}.NDGMNT__mobile-top-nav__dimmed.active{opacity:1}.NDGMNT__mobile-top-nav__container{position:fixed;top:0;left:50%;transform:translateX(-50%) translateY(-100%);width:100%;height:auto;max-height:80vh;background:#fff;border-radius:0 0 16px 16px;padding:20px;box-shadow:0 4px 6px rgba(0,0,0,.1);transition:transform .3s ease;z-index:1001;overflow-y:auto}.NDGMNT__mobile-top-nav__container.open{transform:translateX(-50%) translateY(0)}.NDGMNT__mobile-top-nav__list{list-style:none;padding:0;margin:0}header{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);-webkit-user-select:none;-moz-user-select:none;user-select:none;border-bottom:1px solid rgba(0,27,55,.1)}#doz_header_wrap{position:sticky;top:0;width:100%}.NDGMNT__header__scroll-progress{position:absolute;bottom:0;left:0;right:0;height:3px;transform-origin:left;background:linear-gradient(to right,#fff1e6,#fd9a36,#ffbd6f);border-top-right-radius:6px;border-bottom-right-radius:6px;z-index:1000;opacity:0;transition:opacity .5s ease-in-out}.NDGMNT__header__scroll-progress.visible{opacity:1}.NDGMNT__FloatingFixedButton__floating-button-container{position:relative;display:flex;flex-direction:column;align-items:center;opacity:0;transform:translateY(15px);transition-duration:.8s;transition-timing-function:ease-out}.NDGMNT__FloatingFixedButton__floating-button-container.visible{opacity:100;transform:translateY(0)}.NDGMNT__FloatingFixedButton__floating-menu{position:absolute;bottom:56px;display:flex;flex-direction:column;align-items:center;gap:8px;list-style:none;padding:0;margin:0;opacity:0;pointer-events:none;transition:opacity .3s ease}.NDGMNT__FloatingFixedButton__floating-menu[data-visible=true]{opacity:1;pointer-events:all}.NDGMNT__FloatingFixedButton__floating-menu li{opacity:0;transform:translateY(5px)}.NDGMNT__FloatingFixedButton__floating-menu li button{width:44px;height:44px;border:1px solid;border-radius:50%;background:0 0;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:8px;transition:all .3s ease}.NDGMNT__FloatingFixedButton__floating-menu li button:hover{opacity:.8}.NDGMNT__FloatingFixedButton__floating-menu li button svg{width:20px;height:20px;transition-duration:150ms;transition-timing-function:ease-out}.NDGMNT__FloatingFixedButton__floating-menu li button:hover svg{transform:scale(1.1)}.NDGMNT__FloatingFixedButton__trigger-button{transition:all .3s ease;background-color:#000;box-shadow:rgba(0,0,0,.24) 0 3px 8px;padding:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:50%;width:44px;height:44px}.NDGMNT__FloatingFixedButton__trigger-button:hover{background-color:rgba(0,0,0,.8)}.NDGMNT__FloatingFixedButton__trigger-button svg{width:24px;height:24px;color:#fff}.NDGMNT-home__hero-section__typing-text{position:absolute;opacity:0}.NDGMNT-home__mobile-hero-section__typing-text{position:absolute;opacity:0}
|
11
|
+
li.depth-01{font-weight:700;font-size:18px;text-align:center;margin:18px auto;border-radius:12px;transition:all .3s ease-out;cursor:pointer}li.depth-01:hover{background-color:#f8f9fa}li.depth-01 a{width:100%;display:inline-block;height:100%;padding:12px 0}li.depth-01:last-child{background-color:#fd9a36}li.depth-01:last-child:hover{opacity:.8;background-color:#fd9a36}li.depth-01:last-child a{color:#fff}.NDGMNT__mobile-top-nav__dimmed{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.7);opacity:0;transition:opacity .3s ease;z-index:1000;display:none}.NDGMNT__mobile-top-nav__dimmed.visible{display:block}.NDGMNT__mobile-top-nav__dimmed.active{opacity:1}.NDGMNT__mobile-top-nav__container{position:fixed;top:0;left:50%;transform:translateX(-50%) translateY(-100%);width:100%;height:auto;max-height:80vh;background:#fff;border-radius:0 0 16px 16px;padding:20px;box-shadow:0 4px 6px rgba(0,0,0,.1);transition:transform .3s ease;z-index:1001;overflow-y:auto}.NDGMNT__mobile-top-nav__container.open{transform:translateX(-50%) translateY(0)}.NDGMNT__mobile-top-nav__list{list-style:none;padding:0;margin:0}header{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);-webkit-user-select:none;-moz-user-select:none;user-select:none;border-bottom:1px solid rgba(0,27,55,.1)}#doz_header_wrap{position:sticky;top:0;width:100%}.NDGMNT__header__scroll-progress{position:absolute;bottom:0;left:0;right:0;height:3px;transform-origin:left;background:linear-gradient(to right,#fff1e6,#fd9a36,#ffbd6f);border-top-right-radius:6px;border-bottom-right-radius:6px;z-index:1000;opacity:0;transition:opacity .5s ease-in-out}.NDGMNT__header__scroll-progress.visible{opacity:1}.NDGMNT__FloatingFixedButton__floating-button-container{position:relative;display:flex;flex-direction:column;align-items:center;opacity:0;transform:translateY(15px);transition-duration:.8s;transition-timing-function:ease-out}.NDGMNT__FloatingFixedButton__floating-button-container.visible{opacity:100;transform:translateY(0)}.NDGMNT__FloatingFixedButton__floating-menu{position:absolute;bottom:56px;display:flex;flex-direction:column;align-items:center;gap:8px;list-style:none;padding:0;margin:0;opacity:0;pointer-events:none;transition:opacity .3s ease}.NDGMNT__FloatingFixedButton__floating-menu[data-visible=true]{opacity:1;pointer-events:all}.NDGMNT__FloatingFixedButton__floating-menu li{opacity:0;transform:translateY(5px)}.NDGMNT__FloatingFixedButton__floating-menu li button{width:44px;height:44px;border:1px solid;border-radius:50%;background:0 0;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:8px;transition:all .3s ease}.NDGMNT__FloatingFixedButton__floating-menu li button:hover{opacity:.8}.NDGMNT__FloatingFixedButton__floating-menu li button svg{width:20px;height:20px;transition-duration:150ms;transition-timing-function:ease-out}.NDGMNT__FloatingFixedButton__floating-menu li button:hover svg{transform:scale(1.1)}.NDGMNT__FloatingFixedButton__trigger-button{transition:all .3s ease;background-color:#000;box-shadow:rgba(0,0,0,.24) 0 3px 8px;padding:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:50%;width:44px;height:44px}.NDGMNT__FloatingFixedButton__trigger-button:hover{background-color:rgba(0,0,0,.8)}.NDGMNT__FloatingFixedButton__trigger-button svg{width:24px;height:24px;color:#fff}.NDGMNT-home__hero-section__typing-text{position:absolute;opacity:0}.hero-diff-frame{transition:all .3s ease-in-out}.NDGMNT__home__image-comparison{width:100%;position:relative;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0;transition:opacity .5s ease-in-out}.NDGMNT__home__image{position:absolute;inset:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.NDGMNT__home__slider{position:absolute;top:0;bottom:0;width:2px;background:#fff;cursor:ew-resize;transition:background-color .3s ease-in-out;--after-content:''}.NDGMNT__home__slider::after{content:var(--after-content);position:absolute;width:40px;height:40px;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff;border-radius:50%;transition:background-color .3s ease-in-out;display:flex;justify-content:center;align-items:center}.NDGMNT-home__mobile-hero-section__typing-text{position:absolute;opacity:0}
|