@ndgmnt/client--nudgemoment 0.0.6 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @license
3
- * NudgeMoment v0.0.5
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,8 +8,8 @@
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 _i=Object.defineProperty;var Ai=(e,t,n)=>t in e?_i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var O=(e,t,n)=>Ai(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},Zt=(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 Jt=Le(()=>window.ScrollTimeline!==void 0),Di=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(Jt()&&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 Di{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 Qt(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 Ni=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{}}},Fi={linearEasing:void 0};function Li(e,t){let n=Le(e);return()=>{var i;return(i=Fi[t])!==null&&i!==void 0?i:n()}}var X=Li(()=>{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 en(e,t){if(e)return typeof e=="function"&&X()?Xe(e,t):Re(e)?pe(e):Array.isArray(e)?e.map(n=>en(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=en(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}`}),G=ye("deg"),q=ye("%"),h=ye("px"),tn=ye("vh"),nn=ye("vw"),Qe={...q,parse:e=>q.parse(e)/100,transform:e=>q.transform(e*100)},Fe={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},Oi=e=>e!==null;function Q(e,{repeat:t,repeatType:n="loop"},i){let s=e.filter(Oi),r=t&&n!=="loop"&&t%2===1?0:s.length-1;return!r||i===void 0?s[r]:i}function Pi(e,t,n){e.style.setProperty(`--${t}`,n)}function Ii(e,t,n){e.style[t]=n}var ki=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 Ri(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]));!ki()&&t.length<2&&t.unshift(n())}var zt="easeOut";function Ut(e){let t=Ne.get(e)||new Map;return Ne.set(e,t),Ne.get(e)}var Bi=class extends Ni{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=Ut(e).get(t);r&&r.stop();let o=()=>t.startsWith("--")?e.style.getPropertyValue(t):window.getComputedStyle(e)[t];if(Array.isArray(n)||(n=[n]),Ri(t,n,o),J(i.type)){let u=Qt(i,100,i.type);i.ease=X()?u.ease:zt,i.duration=F(u.duration),i.type="keyframes"}else i.ease=i.ease||zt;let a=()=>{this.setValue(e,t,Q(n,i)),this.cancel(),this.resolveFinishedPromise()},l=()=>{this.setValue=s?Pi:Ii,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,Ut(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 sn(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],f={...Oe(u,c)};f.duration=f.duration?F(f.duration):f.duration,f.delay=F(f.delay||0),o.push(new Bi(l,c,d,f))}}return o}var Gi=e=>{function t(n,i,s){return new ve(sn(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 rn(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 rn(t,e.length-1),t}function on(e,t){return tt(e)?e[Zt(0,e.length,t)]:e}var A=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 Hi(e,t,n){return e*(t+1)}function jt(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 an(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 Wi(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 Ki(e,t,n,i,s,r){Wi(e,s,r);for(let o=0;o<t.length;o++)e.push({value:t[o],at:ee(s,r,i[o]),easing:on(n,o)})}function qi(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function $i(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var zi="easeInOut",Ui=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,f=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,jt(d,v.at,c,u));continue}let[T,b,p={}]=v;p.at!==void 0&&(d=jt(d,p.at,c,u));let w=0,_=(M,m,S,E=0,y=0)=>{let x=ji(M),{delay:Y=0,times:B=nt(x),type:je="keyframes",repeat:ce,repeatType:Io,repeatDelay:ko=0,...Vi}=m,{ease:W=t.ease||"easeOut",duration:I}=m,Gt=typeof Y=="function"?Y(E,y):Y,Ht=x.length,Wt=J(je)?je:s?.[je];if(Ht<=2&&Wt){let de=100;if(Ht===2&&Zi(x)){let fe=x[1]-x[0];de=Math.abs(fe)}let Ae={...Vi};I!==void 0&&(Ae.duration=F(I));let De=Qt(Ae,de,Wt);W=De.ease,I=De.duration}I??(I=r);let Kt=d+Gt;B.length===1&&B[0]===0&&(B[1]=1);let qt=B.length-x.length;if(qt>0&&rn(B,qt),x.length===1&&x.unshift(null),ce){R(ce<Ui,"Repeat count too high, must be less than 20"),I=Hi(I,ce);let de=[...x],Ae=[...B];W=Array.isArray(W)?[...W]:[W];let De=[...W];for(let fe=0;fe<ce;fe++){x.push(...de);for(let he=0;he<de.length;he++)B.push(Ae[he]+(fe+1)),W.push(he===0?"linear":on(De,he-1))}qi(B,ce)}let $t=Kt+I;Ki(S,x,W,B,Kt,$t),w=Math.max(Gt+I,w),f=Math.max($t,f)};if(A(T)){let M=Yt(T,a);_(b,p,Xt("default",M))}else{let M=it(T,b,i,l),m=M.length;for(let S=0;S<m;S++){b=b,p=p;let E=M[S],y=Yt(E,a);for(let x in b)_(b[x],Yi(p,x),Xt(x,y),S,m)}}c=d,d+=w}return a.forEach((g,v)=>{for(let T in g){let b=g[T];b.sort($i);let p=[],w=[],_=[];for(let m=0;m<b.length;m++){let{at:S,value:E,easing:y}=b[m];p.push(E),w.push(Z(0,f,S)),_.push(y||"easeOut")}w[0]!==0&&(w.unshift(0),p.unshift(p[0]),_.unshift(zi)),w[w.length-1]!==1&&(w.push(1),p.push(null)),o.has(v)||o.set(v,{keyframes:{},transition:{}});let M=o.get(v);M.keyframes[T]=p,M.transition[T]={...t,duration:f,ease:_,times:w,...n}}}),o}function Yt(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Xt(e,t){return t[e]||(t[e]=[]),t[e]}function ji(e){return Array.isArray(e)?e:[e]}function Yi(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Xi=e=>typeof e=="number",Zi=e=>e.every(Xi);var j=(e,t,n)=>n>t?t:n<e?e:n;function _n(e,t){return t?e*(1e3/t):0}var Ji=5;function An(e,t,n){let i=Math.max(t-Ji,0);return _n(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},ln=.001;function Qi({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,f=c-n,g=ut(u,o),v=Math.exp(-d);return ln-f/g*v},r=u=>{let d=u*o*e,f=d*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-d),T=ut(Math.pow(u,2),o);return(-s(u)+ln>0?-1:1)*((f-g)*v)/T}):(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=ts(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 es=12;function ts(e,t,n){let i=n;for(let s=1;s<es;s++)i=i-e(i)/t(i);return i}function ut(e,t){return e*Math.sqrt(1-t*t)}var ns=["duration","bounce"],is=["stiffness","damping","mass"];function un(e,t){return t.some(n=>e[n]!==void 0)}function ss(e){let t={velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:!1,...e};if(!un(e,is)&&un(e,ns))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=Qi(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:f,isResolvedFromDuration:g}=ss({...n,velocity:-P(n.velocity||0)}),v=f||0,T=u/(2*Math.sqrt(l*c)),b=o-r,p=P(Math.sqrt(l/c)),w=Math.abs(b)<5;i||(i=w?V.restSpeed.granular:V.restSpeed.default),s||(s=w?V.restDelta.granular:V.restDelta.default);let _;if(T<1){let m=ut(p,T);_=S=>{let E=Math.exp(-T*p*S);return o-E*((v+T*p*b)/m*Math.sin(m*S)+b*Math.cos(m*S))}}else if(T===1)_=m=>o-Math.exp(-p*m)*(b+(v+p*b)*m);else{let m=p*Math.sqrt(T*T-1);_=S=>{let E=Math.exp(-T*p*S),y=Math.min(m*S,300);return o-E*((v+T*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;T<1&&(E=m===0?F(v):An(_,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),Dn=new Set(["width","height","top","left","right","bottom",...se]),rs=e=>Array.isArray(e),os=e=>rs(e)?e[e.length-1]||0:e,as={skipAnimations:!1,useManualTiming:!1};function ls(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 Te=["read","resolveKeyframes","update","preRender","render","postRender"],us=40;function cs(e,t){let n=!1,i=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Te.reduce((p,w)=>(p[w]=ls(r),p),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=o,g=()=>{let p=performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(p-s.timestamp,us),1),s.timestamp=p,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),d.process(s),f.process(s),s.isProcessing=!1,n&&t&&(i=!1,e(g))},v=()=>{n=!0,i=!0,s.isProcessing||e(g)};return{schedule:Te.reduce((p,w)=>{let _=o[w];return p[w]=(M,m=!1,S=!1)=>(n||v(),_.schedule(M,m,S)),p},{}),cancel:p=>{for(let w=0;w<Te.length;w++)o[Te[w]].cancel(p)},state:s,steps:o}}var{schedule:H,cancel:We,state:Ke,steps:jo}=cs(typeof requestAnimationFrame<"u"?requestAnimationFrame:k,!0),He;function ds(){He=void 0}var K={now:()=>(He===void 0&&K.set(Ke.isProcessing||as.useManualTiming?Ke.timestamp:performance.now()),He),set:e=>{He=e,queueMicrotask(ds)}},Nn=class{constructor(){this.subscriptions=[]}add(e){return an(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 cn=30,fs=e=>!isNaN(parseFloat(e)),hs=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 Nn);let n=this.events[e].add(t);return e==="change"?()=>{n(),H.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>cn)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,cn);return _n(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 hs(e,t)}function dn(e){let t=[{},{}];return e?.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function Fn(e,t,n,i){if(typeof t=="function"){let[s,r]=dn(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]=dn(i);t=t(n!==void 0?n:e.custom,s,r)}return t}function ps(e,t,n){let i=e.getProps();return Fn(i,t,i.custom,e)}function ms(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Se(n))}function gs(e,t){let n=ps(e,t),{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(let o in r){let a=os(r[o]);ms(e,o,a)}}function vs(e){return!!(A(e)&&e.add)}function ys(e,t){let n=e.getValue("willChange");if(vs(n))return n.add(t)}var bt=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),bs="framerAppearId",Ts="data-"+bt(bs);function ws(e){return e.props[Ts]}var Ln=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ss=1e-7,xs=12;function Cs(e,t,n,i,s){let r,o,a=0;do o=t+(n-t)/2,r=Ln(o,i,s)-e,r>0?n=o:t=o;while(Math.abs(r)>Ss&&++a<xs);return o}function Me(e,t,n,i){if(e===t&&n===i)return k;let s=r=>Cs(r,0,1,e,n);return r=>r===0||r===1?r:Ln(s(r),t,i)}var On=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Pn=e=>t=>1-e(1-t),In=Me(.33,1.53,.69,.99),Tt=Pn(In),kn=On(Tt),Rn=e=>(e*=2)<1?.5*Tt(e):.5*(2-Math.pow(2,-10*(e-1))),wt=e=>1-Math.sin(Math.acos(e)),Ms=Pn(wt),Bn=On(wt),Gn=e=>/^0[^.\s]+$/u.test(e);function Es(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)},Ge={...oe,default:1},we=e=>Math.round(e*1e5)/1e5,St=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Vs(e){return e==null}var _s=/^(?:#[\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"&&_s.test(n)&&n.startsWith(e)||t&&!Vs(n)&&Object.prototype.hasOwnProperty.call(n,t)),Hn=(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}},As=e=>j(0,255,e),ot={...oe,transform:e=>Math.round(As(e))},z={test:xt("rgb","red"),parse:Hn("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+ot.transform(e)+", "+ot.transform(t)+", "+ot.transform(n)+", "+we(xe.transform(i))+")"};function Ds(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:Ds,transform:z.transform},te={test:xt("hsl","hue"),parse:Hn("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+q.transform(we(t))+", "+q.transform(we(n))+", "+we(xe.transform(i))+")"},D={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)},Ns=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Fs(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(Ns))===null||n===void 0?void 0:n.length)||0)>0}var Wn="number",Kn="color",Ls="var",Os="var(",fn="${}",Ps=/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(Ps,l=>(D.test(l)?(i.color.push(r),s.push(Kn),n.push(D.parse(l))):l.startsWith(Os)?(i.var.push(r),s.push(Ls),n.push(l)):(i.number.push(r),s.push(Wn),n.push(parseFloat(l))),++r,fn)).split(fn);return{values:n,split:a,indexes:i,types:s}}function qn(e){return Ce(e).values}function $n(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===Wn?r+=we(s[o]):a===Kn?r+=D.transform(s[o]):r+=s[o]}return r}}var Is=e=>typeof e=="number"?0:e;function ks(e){let t=qn(e);return $n(e)(t.map(Is))}var ae={test:Fs,parse:qn,createTransformer:$n,getAnimatableNone:ks},Rs=new Set(["brightness","contrast","saturate","opacity"]);function Bs(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=Rs.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(Bs).join(" "):e}},Hs={rotate:G,rotateX:G,rotateY:G,rotateZ:G,scale:Ge,scaleX:Ge,scaleY:Ge,scaleZ:Ge,skew:G,skewX:G,skewY:G,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},hn={...oe,transform:Math.round},Ct={...Fe,...Hs,zIndex:hn,size:h,fillOpacity:xe,strokeOpacity:xe,numOctaves:hn},Ws={...Ct,color:D,backgroundColor:D,outlineColor:D,fill:D,stroke:D,borderColor:D,borderTopColor:D,borderRightColor:D,borderBottomColor:D,borderLeftColor:D,filter:dt,WebkitFilter:dt},Mt=e=>Ws[e];function zn(e,t){let n=Mt(e);return n!==dt&&(n=ae),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Ks=new Set(["auto","none","0"]);function qs(e,t,n){let i=0,s;for(;i<e.length&&!s;){let r=e[i];typeof r=="string"&&!Ks.has(r)&&Ce(r).values.length&&(s=e[i]),i++}if(s&&n)for(let r of t)e[r]=zn(n,s)}var pn=e=>e===oe||e===h,mn=(e,t)=>parseFloat(e.split(", ")[t]),gn=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;let s=i.match(/^matrix3d\((.+)\)$/u);if(s)return mn(s[1],t);{let r=i.match(/^matrix\((.+)\)$/u);return r?mn(r[1],e):0}},$s=new Set(["x","y","z"]),zs=se.filter(e=>!$s.has(e));function Us(e){let t=[];return zs.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:gn(4,13),y:gn(5,14)};ie.translateX=ie.x;ie.translateY=ie.y;var U=new Set,ft=!1,ht=!1;function Un(){if(ht){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=Us(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)})}ht=!1,ft=!1,U.forEach(e=>e.complete()),U.clear()}function jn(){U.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ht=!0)})}function js(){jn(),Un()}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),ft||(ft=!0,H.read(jn),H.resolveKeyframes(Un))):(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()}},Yn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Xn=e=>t=>typeof t=="string"&&t.startsWith(e),Zn=Xn("--"),Ys=Xn("var(--"),Vt=e=>Ys(e)?Xs.test(e.split("/*")[0].trim()):!1,Xs=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Zs=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Js(e){let t=Zs.exec(e);if(!t)return[,];let[,n,i,s]=t;return[`--${n??i}`,s]}var Qs=4;function Jn(e,t,n=1){R(n<=Qs,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,s]=Js(e);if(!i)return;let r=window.getComputedStyle(t).getPropertyValue(i);if(r){let o=r.trim();return Yn(o)?parseFloat(o):o}return Vt(s)?Jn(s,t,n+1):s}var Qn=e=>t=>t.test(e),er={test:e=>e==="auto",parse:e=>e},ei=[oe,h,q,G,nn,tn,er],vn=e=>ei.find(Qn(e)),ti=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=Jn(l,t.current);u!==void 0&&(e[a]=u),a===e.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Dn.has(n)||e.length!==2)return;let[i,s]=e,r=vn(i),o=vn(s);if(r!==o)if(pn(r)&&pn(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++)Es(e[i])&&n.push(i);n.length&&qs(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()}},yn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ae.test(e)||e==="0")&&!e.startsWith("url("));function tr(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 nr(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=yn(s,t),a=yn(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:tr(e)||(n==="spring"||J(n))&&i}var ir=40,ni=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>ir?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&js(),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&&!nr(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 sr({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)},rr=[ct,z,te],or=e=>rr.find(t=>t.test(e));function bn(e){let t=or(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=sr(n)),n}var Tn=(e,t)=>{let n=bn(e),i=bn(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))},ar=(e,t)=>n=>t(e(n)),_t=(...e)=>e.reduce(ar),pt=new Set(["none","hidden"]);function lr(e,t){return pt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ur(e,t){return n=>ee(e,t,n)}function At(e){return typeof e=="number"?ur:typeof e=="string"?Vt(e)?qe:D.test(e)?Tn:fr:Array.isArray(e)?ii:typeof e=="object"?D.test(e)?Tn:cr:qe}function ii(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 cr(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 dr(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?lr(e,t):_t(ii(dr(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 si(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ee(e,t,n):At(e)(e,t)}function wn({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],f={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,T=n*t,b=d+T,p=o===void 0?b:o(b);p!==b&&(T=p-d);let w=y=>-T*Math.exp(-y/i),_=y=>p+w(y),M=y=>{let x=w(y),Y=_(y);f.done=Math.abs(x)<=u,f.value=f.done?p:Y},m,S,E=y=>{g(f.value)&&(m=y,S=yt({keyframes:[f.value,v(f.value)],velocity:An(_,y,f.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),f)}}}var hr=Me(.42,0,1,1),pr=Me(0,0,.58,1),ri=Me(.42,0,.58,1),Sn={linear:k,easeIn:hr,easeInOut:ri,easeOut:pr,circIn:wt,circInOut:Bn,circOut:Ms,backIn:Tt,backInOut:kn,backOut:In,anticipate:Rn},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(Sn[e]!==void 0,`Invalid easing type '${e}'`),Sn[e];return e};function mr(e,t,n){let i=[],s=n||si,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 gr(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=mr(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 f=Z(e[d],e[d+1],c);return a[d](f)};return n?c=>u(j(e[0],e[r-1],c)):u}function vr(e,t){return e.map(n=>n*t)}function yr(e,t){return e.map(()=>t||ri).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=vr(n&&n.length===t.length?n:nt(t),e),a=gr(o,t,{ease:Array.isArray(s)?s:yr(t,s)});return{calculatedDuration:e,next:l=>(r.value=a(l),r.done=l>=e,r)}}var br=e=>{let t=({timestamp:n})=>e(n);return{start:()=>H.update(t,!0),stop:()=>We(t),now:()=>Ke.isProcessing?Ke.timestamp:K.now()}},Tr={decay:wn,inertia:wn,tween:$e,keyframes:$e,spring:yt},wr=e=>e/100,Dt=class extends ni{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(wr,si(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,f=d*(n+1)-i;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:c,resolvedDuration:d,totalDuration:f}}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:f,repeatType:g,repeatDelay:v,onUpdate:T}=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 w=this.currentTime,_=s;if(f){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,f+1),!!(y%2)&&(g==="reverse"?(x=1-x,v&&(x-=v/c)):g==="mirror"&&(_=r)),w=j(0,1,x)*c}let M=p?{done:!1,value:a[0]}:_.next(w);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)),T&&T(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=br,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)}},Sr=new Set(["opacity","clipPath","filter","transform"]),ze=10,xr=2e4;function Cr(e){return J(e.type)||e.type==="spring"||!Ze(e.ease)}function Mr(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<xr;)i=n.sample(r),s.push(i.value),r+=ze;return{times:void 0,keyframes:s,duration:r-ze,ease:"linear"}}var oi={anticipate:Rn,backInOut:kn,circInOut:Bn};function Er(e){return e in oi}var xn=class extends ni{constructor(e){super(e);let{name:t,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new ti(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()&&Er(r)&&(r=oi[r]),Cr(this.options)){let{onComplete:d,onUpdate:f,motionValue:g,element:v,...T}=this.options,b=Mr(e,T);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,...f}=this.options,g=new Dt({...f,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&&Sr.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!i&&s!=="mirror"&&r!==0&&o!=="inertia"}},Vr={type:"spring",stiffness:500,damping:25,restSpeed:10},_r=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ar={type:"keyframes",duration:.8},Dr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Nr=(e,{keyframes:t})=>t.length>2?Ar:re.has(e)?e.startsWith("scale")?_r(t[1]):Vr:Dr;function Fr({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 ai=(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:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:r?void 0:s};Fr(a)||(c={...c,...Nr(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 f=Q(c.keyframes,a);if(f!==void 0)return H.update(()=>{c.onUpdate(f),c.onComplete()}),new ve([])}return!r&&xn.supports(c)?new xn(c):new Dt(c)};function Lr({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function Or(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 f=e.getValue(d,(r=e.latestValues[d])!==null&&r!==void 0?r:null),g=l[d];if(g===void 0||c&&Lr(c,d))continue;let v={delay:n,...Oe(o||{},d)},T=!1;if(window.MotionHandoffAnimation){let p=ws(e);if(p){let w=window.MotionHandoffAnimation(p,d,H);w!==null&&(v.startTime=w,T=!0)}}ys(e,d),f.start(ai(d,f,g,e.shouldReduceMotion&&Dn.has(d)?{type:!1}:v,e,T));let b=f.animation;b&&u.push(b)}return a&&Promise.all(u).then(()=>{H.update(()=>{a&&gs(e,a)})}),u}function Pr(e){return e instanceof SVGElement&&e.tagName!=="svg"}var Cn=()=>({min:0,max:0}),Nt=()=>({x:Cn(),y:Cn()}),Mn={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 Mn)gt[e]={isEnabled:t=>Mn[e].some(n=>!!t[n])};var Ir=typeof window<"u",vt={current:null},li={current:!1};function kr(){if(li.current=!0,!!Ir)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vt.current=e.matches;e.addListener(t),t()}else vt.current=!1}var Rr=[...ei,D,ae],Br=e=>Rr.find(Qn(e));function Gr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Hr(e){return typeof e=="string"||Array.isArray(e)}var Wr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Kr=["initial",...Wr];function ui(e){return Gr(e.animate)||Kr.some(t=>Hr(e[t]))}function qr(e){return!!(ui(e)||e.variants)}function $r(e,t,n){for(let i in t){let s=t[i],r=n[i];if(A(s))e.addValue(i,s);else if(A(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 En=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ci=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 f=K.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,H.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=ui(t),this.isVariantNode=qr(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let f in d){let g=d[f];a[f]!==void 0&&A(g)&&g.set(a[f],!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)),li.current||kr(),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&&H.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<En.length;n++){let i=En[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=$r(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"&&(Yn(i)||Gn(i))?i=parseFloat(i):!Br(i)&&ae.test(t)&&(i=zn(e,t)),this.setBaseTarget(e,A(i)?i.get():i)),A(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=Fn(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&&!A(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 Nn),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}},di=class extends ci{constructor(){super(...arguments),this.KeyframeResolver=ti}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;A(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}},fi=(e,t)=>t&&typeof e=="number"?t.transform(e):e,zr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ur=se.length;function jr(e,t,n){let i="",s=!0;for(let r=0;r<Ur;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=zr[o]||o;i+=`${c}(${u}) `}n&&(t[o]=u)}}return i=i.trim(),n?i=n(t,s?"":i):s&&(i="none"),i}function hi(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(Zn(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=jr(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 Vn(e,t,n){return typeof e=="string"?e:h.transform(t+n*e)}function Yr(e,t,n){let i=Vn(t,e.x,e.width),s=Vn(n,e.y,e.height);return`${i} ${s}`}var Xr={offset:"stroke-dashoffset",array:"stroke-dasharray"},Zr={offset:"strokeDashoffset",array:"strokeDasharray"};function Jr(e,t,n=1,i=0,s=!0){e.pathLength=1;let r=s?Xr:Zr;e[r.offset]=h.transform(-i);let o=h.transform(t),a=h.transform(n);e[r.array]=`${o} ${a}`}function Qr(e,{attrX:t,attrY:n,attrScale:i,originX:s,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(hi(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:g,dimensions:v}=e;f.transform&&(v&&(g.transform=f.transform),delete f.transform),v&&(s!==void 0||r!==void 0||g.transform)&&(g.transformOrigin=Yr(v,s!==void 0?s:.5,r!==void 0?r:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),i!==void 0&&(f.scale=i),o!==void 0&&Jr(f,o,a,l,!1)}var pi=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"]),eo=e=>typeof e=="string"&&e.toLowerCase()==="svg";function mi(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 to(e,t,n,i){mi(e,t,void 0,i);for(let s in t.attrs)e.setAttribute(pi.has(s)?s:bt(s),t.attrs[s])}var no={};function io(e,{layout:t,layoutId:n}){return re.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!no[e]||e==="opacity")}function gi(e,t,n){var i;let{style:s}=e,r={};for(let o in s)(A(s[o])||t.style&&A(t.style[o])||io(o,e)||((i=n?.getValue(o))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(r[o]=s[o]);return r}function so(e,t,n){let i=gi(e,t,n);for(let s in e)if(A(e[s])||A(t[s])){let r=se.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[r]=e[s]}return i}var ro=class extends di{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=pi.has(t)?t:bt(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return so(e,t,n)}build(e,t,n){Qr(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,i){to(e,t,n,i)}mount(e){this.isSVGTag=eo(e.tagName),super.mount(e)}};function oo({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function ao(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 lo(e,t){return oo(ao(e.getBoundingClientRect(),t))}function uo(e){return window.getComputedStyle(e)}var co=class extends di{constructor(){super(...arguments),this.type="html",this.renderInstance=mi}readValueFromInstance(e,t){if(re.has(t)){let n=Mt(t);return n&&n.default||0}else{let n=uo(e),i=(Zn(t)?n.getPropertyValue(t):n[t])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return lo(e,t)}build(e,t,n){hi(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return gi(e,t,n)}};function fo(e,t){return e in t}var ho=class extends ci{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 po(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Pr(e)?new ro(t):new co(t);n.mount(e),ne.set(e,n)}function mo(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new ho(t);n.mount(e),ne.set(e,n)}function go(e,t,n){let i=A(e)?e:Se(e);return i.start(ai("",i,t,n)),i.animation}function vo(e,t){return A(e)||typeof e=="number"||typeof e=="string"&&!Be(t)}function vi(e,t,n,i){let s=[];if(vo(e,t))s.push(go(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?po:mo;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(...Or(c,{...t,transition:d},{}))}}return s}function yo(e,t,n){let i=[];return rt(e,t,n,{spring:yt}).forEach(({keyframes:r,transition:o},a)=>{i.push(...vi(a,r,o))}),i}function bo(e){return Array.isArray(e)&&e.some(Array.isArray)}function To(e){function t(n,i,s){let r=[];bo(n)?r=yo(n,i,e):r=vi(n,i,s,e);let o=new ve(r);return e&&e.animations.push(o),o}return t}var Yo=To();var wo={some:0,all:1};function yi(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 f=t(c);typeof f=="function"?o.set(c.target,f):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:wo[s]});return r.forEach(u=>l.observe(u)),()=>l.disconnect()}function So(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:So(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 Xo=Te.reduce((e,t)=>(e[t]=n=>We(n),e),{});var xo=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)&&wi(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 bi(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=xo;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 Mo(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=bi(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 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 Si(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 xi(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&&!wi(this))return this.f&=-2,!0;var e=C;try{Si(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,xi(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=bi(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Ci(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,Ci(e)}function Co(e){if(C!==this)throw new Error("Out-of-order effect");xi(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,Ci(this),Si(this),le++;var e=C;return C=this,Co.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 Mo(e){var t=new _e(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var Mi=e=>{window.NudgeMoment=Object.assign(window.NudgeMoment||{},{custom:{...window.NudgeMoment?.custom,...e}})},N=e=>{$(document).ready(()=>{window.NudgeMoment.check().then(t=>{t&&e()})})};var Ei=".NDGMNT__FloatingFixedButton__floating-button-container",Eo=".NDGMNT__FloatingFixedButton__floating-menu",Vo=".NDGMNT__FloatingFixedButton__trigger-button",_o='<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>',Ao={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
- `},Do={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??Ei,i=t.triggerContent??_o;this.options={containerSelector:n,triggerContent:i,snsConfigs:t.snsConfigs},this.container=document.querySelector(n),this.menu=this.container.querySelector(Eo),this.trigger=this.container.querySelector(Vo),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=Ao[t.sns];let s=Do[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(()=>{$(Ei).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)}};N(()=>{Mi({FloatingFixedButton:It}),window.NudgeMoment.net.emit("template__FloatingFixedButton")});function No(){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)}N(()=>{No()});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 Fo(){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")})}N(()=>{$("#mobile_slide_menu_wrap").css("display","none"),Fo()});var Lo={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(){yi(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)}};N(()=>{document.querySelectorAll(Lo.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=`
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
13
  position: absolute;
14
14
  top: -50px;
15
15
  left: 50%;
@@ -21,13 +21,13 @@
21
21
  opacity: 0;
22
22
  transition: all 0.3s ease-in-out;
23
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)}};N(()=>{let e=document.querySelector(".NDGMNT__home__image-comparison");new Rt(e,{enableHover:!1})});function Oo(e="NDGMNT__home__image-comparison"){let t=`
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
25
  <div class="NDGMNT-home__hero-section__tooltip-container">
26
26
  <div class="NDGMNT-home__hero-section__tooltip-wrapper NDGMNT-home__hero-section__tooltip--bounce">
27
27
  <div class="NDGMNT-home__hero-section__tooltip-bubble">\uC88C\uC6B0\uB85C \uC6C0\uC9C1\uC774\uC138\uC694</div>
28
28
  </div>
29
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)}}N(()=>{Oo()});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=`
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
31
  position: absolute;
32
32
  top: -50px;
33
33
  left: 50%;
@@ -39,10 +39,12 @@
39
39
  opacity: 0;
40
40
  transition: all 0.3s ease-in-out;
41
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)}};N(()=>{let e=document.querySelector(".NDGMNT__home__image-comparison-mobile");new Bt(e,{enableHover:!1})});function Po(e="NDGMNT__home__image-comparison-mobile"){let t=`
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
43
  <div class="NDGMNT__mobile-hero-section__tooltip-container">
44
44
  <div class="NDGMNT__mobile-hero-section__tooltip-wrapper NDGMNT__mobile-hero-section__tooltip--bounce">
45
45
  <div class="NDGMNT__mobile-hero-section__tooltip-bubble">\uC88C\uC6B0\uB85C \uC6C0\uC9C1\uC774\uC138\uC694</div>
46
46
  </div>
47
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)}}N(()=>{Po()});})();
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.5
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).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndgmnt/client--nudgemoment",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"