@ndgmnt/client--nudgemoment 0.0.3 → 0.0.5

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