1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3020],{6702:(t,e,i)=>{let n,r,s,o,a;Object.defineProperty(e,"__esModule",{value:!0});var l,u=i(75038),h=i(76430),c=i(64039),d=i(94691),p=(l=Object.create(null),h&&Object.keys(h).forEach(function(t){if("default"!==t){var e=Object.getOwnPropertyDescriptor(h,t);Object.defineProperty(l,t,e.get?e:{enumerable:!0,get:function(){return h[t]}})}}),l.default=h,Object.freeze(l));let f=h.createContext({});function m(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let g=t=>Array.isArray(t);function v(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function y(t){return"string"==typeof t||Array.isArray(t)}function x(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function w(t,e,i,n){if("function"==typeof e){let[r,s]=x(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=x(n);e=e(void 0!==i?i:t.custom,r,s)}return e}function P(t,e,i){let n=t.getProps();return w(n,e,void 0!==i?i:n.custom,t)}let T=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],S=["initial",...T],b={skipAnimations:!1,useManualTiming:!1},A=["read","resolveKeyframes","update","preRender","render","postRender"];function M(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=A.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,r=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){s.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,r=!1,o=!1)=>{let a=o&&n?e:i;return r&&s.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(o=t,n){r=!0;return}n=!0,[e,i]=[i,e],e.forEach(a),e.clear(),n=!1,r&&(r=!1,l.process(t))}};return l}(s),t),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:c,postRender:d}=o,p=()=>{let s=b.useManualTiming?r.timestamp:performance.now();i=!1,r.delta=n?1e3/60:Math.max(Math.min(s-r.timestamp,40),1),r.timestamp=s,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),c.process(r),d.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(p))};return{schedule:A.reduce((e,s)=>{let a=o[s];return e[s]=(e,s=!1,o=!1)=>(!i&&(i=!0,n=!0,r.isProcessing||t(p)),a.schedule(e,s,o)),e},{}),cancel:t=>{for(let e=0;e<A.length;e++)o[A[e]].cancel(t)},state:r,steps:o}}let{schedule:E,cancel:C,state:V,steps:R}=M("u">typeof requestAnimationFrame?requestAnimationFrame:c.noop,!0),D=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],k=new Set(D),j=new Set(["width","height","top","left","right","bottom",...D]),L=t=>g(t)?t[t.length-1]||0:t;function F(){n=void 0}let B={now:()=>(void 0===n&&B.set(V.isProcessing||b.useManualTiming?V.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(F)}};function O(t,e){-1===t.indexOf(e)&&t.push(e)}function I(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class U{constructor(){this.subscriptions=[]}add(t){return O(this.subscriptions,t),()=>I(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function W(t,e){return e?1e3/e*t:0}let N={current:void 0};class ${constructor(t,e={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=B.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=B.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new U);let i=this.events[t].add(e);return"change"===t?()=>{i(),E.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return N.current&&N.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=B.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return W(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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 z(t,e){return new $(t,e)}function H(t,e){let{transitionEnd:i={},transition:n={},...r}=P(t,e)||{};for(let e in r={...r,...i}){let i=L(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,z(i))}}let G=t=>!!(t&&t.getVelocity);function Y(t,e){let i=t.getValue("willChange");if(G(i)&&i.add)return i.add(e)}let X=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),K="framerAppearId",_="data-"+X(K);function q(t){return t.props[_]}let Z={current:!1},J=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function Q(t,e,i,n){return t===e&&i===n?c.noop:r=>
10===r||1===r?r:J(function(t,e,i,n,r){let s,o,a=0;do(s=J(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o}(r,0,1,t,i),e,n)}let tt=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,te=t=>e=>1-t(1-e),ti=Q(.33,1.53,.69,.99),tn=te(ti),tr=tt(tn),ts=t=>(t*=2)<1?.5*tn(t):.5*(2-Math.pow(2,-10*(t-1))),to=t=>1-Math.sin(Math.acos(t)),ta=te(to),tl=tt(to),tu=(t,e,i)=>i>e?e:i<t?t:i,th={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},tc={...th,transform:t=>tu(0,1,t)},td={...th,default:1},tp=t=>Math.round(1e5*t)/1e5,tf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tm=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tg=(t,e)=>i=>!!("string"==typeof i&&tm.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tv=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(tf);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},ty={...th,transform:t=>Math.round(tu(0,255,t))},tx={test:tg("rgb","red"),parse:tv("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+ty.transform(t)+", "+ty.transform(e)+", "+ty.transform(i)+", "+tp(tc.transform(n))+")"},tw={test:tg("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:tx.transform},tP=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tT=tP("deg"),tS=tP("%"),tb=tP("px"),tA=tP("vh"),tM=tP("vw"),tE={...tS,parse:t=>tS.parse(t)/100,transform:t=>tS.transform(100*t)},tC={test:tg("hsl","hue"),parse:tv("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+tS.transform(tp(e))+", "+tS.transform(tp(i))+", "+tp(tc.transform(n))+")"},tV={test:t=>tx.test(t)||tw.test(t)||tC.test(t),parse:t=>tx.test(t)?tx.parse(t):tC.test(t)?tC.parse(t):tw.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tx.transform(t):tC.transform(t)},tR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tD="number",tk="color",tj=/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 tL(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(tj,t=>(tV.test(t)?(n.color.push(s),r.push(tk),i.push(tV.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(tD),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function tF(t){return tL(t).values}function tB(t){let{split:e,types:i}=tL(t),n=e.length;return t=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],void 0!==t[s]){let e=i[s];e===tD?r+=tp(t[s]):e===tk?r+=tV.transform(t[s]):r+=t[s]}return r}}let tO=t=>"number"==typeof t?0:t,tI={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(tf))?void 0:e.length)||0)+((null==(i=t.match(tR))?void 0:i.length)||0)>0},parse:tF,createTransformer:tB,getAnimatableNone:function(t){let e=tF(t);return tB(t)(e.map(tO))}},tU=new Set(["brightness","contrast","saturate","opacity"]);function tW(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(tf)||[];if(!n)return t;let r=i.replace(n,""),s=+!!tU.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let tN=/\b([a-z-]*)\(.*?\)/gu,t$={...tI,getAnimatableNone:t=>{let e=t.match(tN);return e?e.map(tW).join(" "):t}},tz={borderWidth:tb,borderTopWidth:tb,borderRightWidth:tb,borderBottomWidth:tb,borderLeftWidth:tb,borderRadius:tb,radius:tb,borderTopLeftRadius:tb,borderTopRightRadius:tb,borderBottomRightRadius:tb,borderBottomLeftRadius:tb,width:tb,maxWidth:tb,he
1ight:tb,maxHeight:tb,top:tb,right:tb,bottom:tb,left:tb,padding:tb,paddingTop:tb,paddingRight:tb,paddingBottom:tb,paddingLeft:tb,margin:tb,marginTop:tb,marginRight:tb,marginBottom:tb,marginLeft:tb,backgroundPositionX:tb,backgroundPositionY:tb},tH={...th,transform:Math.round},tG={...tz,rotate:tT,rotateX:tT,rotateY:tT,rotateZ:tT,scale:td,scaleX:td,scaleY:td,scaleZ:td,skew:tT,skewX:tT,skewY:tT,distance:tb,translateX:tb,translateY:tb,translateZ:tb,x:tb,y:tb,z:tb,perspective:tb,transformPerspective:tb,opacity:tc,originX:tE,originY:tE,originZ:tb,zIndex:tH,size:tb,fillOpacity:tc,strokeOpacity:tc,numOctaves:tH},tY={...tG,color:tV,backgroundColor:tV,outlineColor:tV,fill:tV,stroke:tV,borderColor:tV,borderTopColor:tV,borderRightColor:tV,borderBottomColor:tV,borderLeftColor:tV,filter:t$,WebkitFilter:t$},tX=t=>tY[t];function tK(t,e){let i=tX(t);return i!==t$&&(i=tI),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let t_=new Set(["auto","none","0"]),tq=t=>t===th||t===tb,tZ=(t,e)=>parseFloat(t.split(", ")[e]),tJ=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/u);if(r)return tZ(r[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?tZ(e[1],t):0}},tQ=new Set(["x","y","z"]),t0=D.filter(t=>!tQ.has(t)),t1={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:tJ(4,13),y:tJ(5,14)};t1.translateX=t1.x,t1.translateY=t1.y;let t2=new Set,t5=!1,t3=!1;function t9(){if(t3){let t=Array.from(t2).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],t0.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e);n.length&&(i.set(t,n),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var n;null==(n=t.getValue(e))||n.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}t3=!1,t5=!1,t2.forEach(t=>t.complete()),t2.clear()}function t4(){t2.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(t3=!0)})}class t6{constructor(t,e,i,n,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(t2.add(this),t5||(t5=!0,E.read(t4),E.resolveKeyframes(t9))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let r=0;r<t.length;r++)if(null===t[r])if(0===r){let r=null==n?void 0:n.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}else t[r]=t[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),t2.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,t2.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let t8=t=>e=>"string"==typeof e&&e.startsWith(t),t7=t8("--"),et=t8("var(--"),ee=t=>!!et(t)&&ei.test(t.split("/*")[0].trim()),ei=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,en=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,er=t=>e=>e.test(t),es=[th,tb,tS,tT,tM,tA,{test:t=>"auto"===t,parse:t=>t}],eo=t=>es.find(er(t));class ea extends t6{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&ee(n=n.trim())){let r=function t(e,i,n=1){c.invariant(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,s]=function(t){let e=en.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${null!=i?i:n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);
1if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return ee(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!j.has(i)||2!==t.length)return;let[n,r]=t,s=eo(n),o=eo(r);if(s!==o)if(tq(s)&&tq(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)})(t[e])&&i.push(e);i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!t_.has(e)&&tL(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=tK(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=t1[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let s=n.length-1,o=n[s];n[s]=t1[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let el=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tI.test(t)||"0"===t)&&!t.startsWith("url(")),eu=t=>null!==t;function eh(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(eu),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return s&&void 0!==n?n:r[s]}class ec{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=B.now(),this.options={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(t4(),t9()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=B.now(),this.hasAttemptedResolve=!0;let{name:i,type:n,velocity:r,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=el(r,e),a=el(s,e);return c.warning(o===a,`You are trying to animate ${e} 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.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||d.isGenerator(i))&&n)}(t,i,n,r))if(Z.current||!s){a&&a(eh(t,this.options,e)),o&&o(),this.resolveFinishedPromise();return}else this.options.duration=0;let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}let ed=(t,e,i)=>t+(e-t)*i;function ep(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function ef(t,e){return i=>i>0?e:t}let em=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},eg=[tw,tx,tC];function ev(t){let e=eg.find(e=>e.test(t));if(c.warning(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tC&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=ep(a,n,t+1/3),s=ep(a,n,t),o=ep(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let ey=(t,e)=>{let i=ev(t),n=ev(e);
1if(!i||!n)return ef(t,e);let r={...i};return t=>(r.red=em(i.red,n.red,t),r.green=em(i.green,n.green,t),r.blue=em(i.blue,n.blue,t),r.alpha=ed(i.alpha,n.alpha,t),tx.transform(r))},ex=(t,e)=>i=>e(t(i)),ew=(...t)=>t.reduce(ex),eP=new Set(["none","hidden"]);function eT(t,e){return i=>ed(t,e,i)}function eS(t){return"number"==typeof t?eT:"string"==typeof t?ee(t)?ef:tV.test(t)?ey:eM:Array.isArray(t)?eb:"object"==typeof t?tV.test(t)?ey:eA:ef}function eb(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>eS(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function eA(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=eS(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let eM=(t,e)=>{let i=tI.createTransformer(e),n=tL(t),r=tL(e);if(!(n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length))return c.warning(!0,`Complex values '${t}' and '${e}' 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.`),ef(t,e);if(eP.has(t)&&!r.values.length||eP.has(e)&&!n.values.length)return eP.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return ew(eb(function(t,e){var i;let n=[],r={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let o=e.types[s],a=t.indexes[o][r[o]],l=null!=(i=t.values[a])?i:0;n[s]=l,r[o]++}return n}(n,r),r.values),i)};function eE(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?ed(t,e,i):eS(t)(t,e)}function eC(t,e,i){let n=Math.max(e-5,0);return W(i-t(n),e-n)}let eV=.01,eR=2,eD=.005,ek=.5;function ej({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let r,s;c.warning(t<=c.secondsToMilliseconds(10),"Spring duration must be 10 seconds or less");let o=1-e;o=tu(.05,1,o),t=tu(.01,10,c.millisecondsToSeconds(t)),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/eL(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=eL(Math.pow(e,2),o);return(n*i+i-s)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=c.secondsToMilliseconds(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}function eL(t,e){return t*Math.sqrt(1-e*e)}let eF=["duration","bounce"],eB=["stiffness","damping","mass"];function eO(t,e){return e.some(e=>void 0!==t[e])}function eI(t=.3,e=.3){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:s}=n,o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:p,duration:f,velocity:m,isResolvedFromDuration:g}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!eO(t,eB)&&eO(t,eF))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*tu(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:r}}else{let i=ej(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...n,velocity:-c.millisecondsToSeconds(n.velocity||0)}),v=m||0,y=h/(2*Math.sqrt(u*p)),x=a-o,w=c.millisecondsToSeconds(Math.sqrt(u/p)),P=5>Math.abs(x);if(r||(r=P?eV:eR),s||(s=P?eD:ek),y<1){let t=eL(w,y);i=e=>a-Math.exp(-y*w*e)*((v+y*w*x)/t*Math.sin(t*e)+x*Math.cos(t*e))}else if(1===y)i=t=>a-Math.exp(-w*t)*(x+(v+w*x)*t);else{let t=w*Math.sqrt(y*y-1);i=e=>{let i=Math.exp(-y*w*e),n=Math.min(t*e,300);return a-i*((v+y*w*x)*Math.sinh(n)+t*x*Math.cosh(n))/t}}let T={calculatedDuration:g&&f||null,next:t=>{let e=i(t);if(g)l.done=t>=f;else{let n=0;y<1&&(n=0===t?c.secondsToMilliseconds(v):eC(i,t,e));let o=Math.abs(a-e)<=s;l.done=Math.abs(n)<=r&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(d.calcGeneratorDuration(T),d.maxGeneratorDuration),e=d.generateLinearEasing(e=>T.next(t*e).value,t,30);return t+"ms "+e}};return T}function eU({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],f={done:!1,value:p},m=i*e,g=p+m,v=void 0===o?g:o(g);v!==g&&(m=v-p);let y=t=>-m*Math.exp(-t/n),x=t=>v+y(t),w=t=>{let e=y(t),i=x(t);f.done=Math.abs(e)<=u,f.value=f.done?v:i},P=t=>{let e;if(e=f.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=eI({keyframes:[f.value,(i=f.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:eC(x,t,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:h})}};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,w(t),P(t)),void 0!==c&&t>=c)?d.next(t-c):(e||w(t),f)}}}let eW=Q(.42,0,1,1),eN=Q(0,0,.58,1),e$=Q(.42,0,.58,1),ez=t=>Array.isArray(t)&&"number"!=typeof t[0],eH={linear:c.noop,easeIn:eW,easeInOut:e$,easeOut:eN,circIn:to,circInOut:tl,circOut:ta,backIn:tn,backInOut:tr,backOut:ti,anticipate:ts},eG=t=>
1{if(d.isBezierDefinition(t)){c.invariant(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return Q(e,i,n,r)}return"string"==typeof t?(c.invariant(void 0!==eH[t],`Invalid easing type '${t}'`),eH[t]):t};function eY(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if(c.invariant(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],r=i||eE,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=ew(Array.isArray(e)?e[i]||c.noop:e,s)),n.push(s)}return n}(e,n,r),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=c.progress(t[n],t[n+1],i);return a[n](r)};return i?e=>u(tu(t[0],t[s-1],e)):u}function eX(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=c.progress(0,e,n);t.push(ed(i,1,r))}}function eK(t){let e=[0];return eX(e,t.length-1),e}function e_({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var r;let s=ez(n)?n.map(eG):eG(n),o={done:!1,value:e[0]},a=eY((r=i&&i.length===e.length?i:eK(e),r.map(e=>e*t)),e,{ease:Array.isArray(s)?s:e.map(()=>s||e$).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}let eq=t=>{let e=({timestamp:e})=>t(e);return{start:()=>E.update(e,!0),stop:()=>C(e),now:()=>V.isProcessing?V.timestamp:B.now()}},eZ={decay:eU,inertia:eU,tween:e_,keyframes:e_,spring:eI},eJ=t=>t/100;class eQ extends ec{constructor(t){super(t),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,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};const{name:e,motionValue:i,element:n,keyframes:r}=this.options,s=(null==n?void 0:n.KeyframeResolver)||t6,o=(t,e)=>this.onKeyframesResolved(t,e);this.resolver=new s(r,o,e,i,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,l=d.isGenerator(n)?n:eZ[n]||e_;l!==e_&&"number"!=typeof t[0]&&(e=ew(eJ,eE(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=d.calcGeneratorDuration(u));let{calculatedDuration:h}=u,c=h+s;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(r+1)-s}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:r,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return r.next(0);let{delay:c,repeat:d,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-c*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=r;if(d){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,f&&(i-=f/h)):"mirror"===p&&(x=s)),y=tu(0,1,i)*h}let w=v?{done:!1,value:a[0]}:x.next(y);o&&(w.value=o(w.value));let{done:P}=w;v||null===l||(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return T&&void 0!==n&&(w.value=eh(a,this.options,n)),m&&m(w.value),T&&this.finish(),w}get duration(){let{resolved:t}=this;return t?c.millisecondsToSeconds(t.calculatedDuration):0}
1get time(){return c.millisecondsToSeconds(this.currentTime)}set time(t){t=c.secondsToMilliseconds(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=c.millisecondsToSeconds(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=eq,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(t=this.currentTime)?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&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(t){return this.startTime=0,this.tick(t,!0)}}function e0(t){return new eQ(t)}let e1=new Set(["opacity","clipPath","filter","transform"]);function e2(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=d.mapEasingToNativeEasing(a,r);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}let e5=c.memo(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),e3={anticipate:ts,backInOut:tr,circInOut:tl};class e9 extends ec{constructor(t){super(t);const{name:e,motionValue:i,element:n,keyframes:r}=this.options;this.resolver=new ea(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:n=300,times:r,ease:s,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof s&&d.supportsLinearEasing()&&s in e3&&(s=e3[s]),i=this.options,d.isGenerator(i.type)||"spring"===i.type||!d.isWaapiSupportedEasing(i.ease)){let{onComplete:e,onUpdate:i,motionValue:a,element:l,...u}=this.options,h=function(t,e){let i=new eQ({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},r=[],s=0;for(;!n.done&&s<2e4;)r.push((n=i.sample(s)).value),s+=10;return{times:void 0,keyframes:r,duration:s-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),n=h.duration,r=h.times,s=h.ease,o="keyframes"}let h=e2(a.owner.current,l,t,{...this.options,duration:n,times:r,ease:s});return h.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(d.attachTimeline(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;a.set(eh(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:n,times:r,type:o,ease:s,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return c.millisecondsToSeconds(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return c.millisecondsToSeconds(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=c.secondsToMilliseconds(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return c.noop;let{animation:i}=e;d.attachTimeline(i,t)}else this.pendingTimeline=t;return c.noop}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;
1"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:n,type:r,ease:s,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new eQ({...u,keyframes:i,duration:n,type:r,ease:s,times:o,isGenerator:!0}),d=c.secondsToMilliseconds(this.time);t.setWithVelocity(h.sample(d-10).value,h.sample(d).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return e5()&&i&&e1.has(i)&&!a&&!l&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}}let e4={type:"spring",stiffness:500,damping:25,restSpeed:10},e6={type:"keyframes",duration:.8},e8={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},e7=(t,e,i,n={},r,s)=>o=>{let a=d.getValueTransition(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=c.secondsToMilliseconds(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(h={...h,...((t,{keyframes:e})=>e.length>2?e6:k.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:e4:e8)(t,h)}),h.duration&&(h.duration=c.secondsToMilliseconds(h.duration)),h.repeatDelay&&(h.repeatDelay=c.secondsToMilliseconds(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let p=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0===h.delay&&(p=!0)),(Z.current||b.skipAnimations)&&(p=!0,h.duration=0,h.delay=0),p&&!s&&void 0!==e.get()){let t=eh(h.keyframes,a);if(void 0!==t)return E.update(()=>{h.onUpdate(t),h.onComplete()}),new d.GroupPlaybackControls([])}return!s&&e9.supports(h)?new e9(h):new eQ(h)};function it(t,e,{delay:i=0,transitionOverride:n,type:r}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;n&&(o=n);let u=[],h=r&&t.animationState&&t.animationState.getState()[r];for(let e in l){let n=t.getValue(e,null!=(s=t.latestValues[e])?s:null),r=l[e];if(void 0===r||h&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(h,e))continue;let a={delay:i,...d.getValueTransition(o||{},e)},c=!1;if(window.MotionHandoffAnimation){let i=q(t);if(i){let t=window.MotionHandoffAnimation(i,e,E);null!==t&&(a.startTime=t,c=!0)}}Y(t,e),n.start(e7(e,n,r,t.shouldReduceMotion&&j.has(e)?{type:!1}:a,t,c));let p=n.animation;p&&u.push(p)}return a&&Promise.all(u).then(()=>{E.update(()=>{a&&H(t,a)})}),u}function ie(t,e,i={}){var n;let r=P(t,e,"exit"===i.type?null==(n=t.presenceContext)?void 0:n.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(s=i.transitionOverride);let o=r?()=>Promise.all(it(t,r,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(ii).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(ie(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+n,o,a,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function ii(t,e){return t.sortNodePosition(e)}function ir(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>ie(t,e,i)));else if("string"==typeof e)n=ie(t,e,i);else{let r="function"==typeof e?P(t,e,i.custom):e;n=Promise.all(it(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})}let is=S.length,io=[...T].reverse(),ia=T.length;function il(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iu(){return{animate:il(!0),whileInView:il(),whileHover:il(),whileTap:il(),whileDrag:il(),whileFocus:il(),exit:il()}}class ih{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ic extends ih{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>ir(t,e,i))),i=iu(),n=!0,r=e=>(i,n)=>{var r;let s=P(t,n,"exit"===e?null==(r=t.presenceContext)?void 0:r.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function s(s){let{props:o}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<is;t++){let n=S[t],r=e.props[n];(y(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},l=[],u=new Set,h={},c=1/0;for(let e=0;e<ia;e++){var d,p;let f=io[e],x=i[f],w=void 0!==o[f]?o[f]:a[f],P=y(w),T=f===s?x.isActive:null;!1===T&&(c=e);let S=w===a[f]&&w!==o[f]&&P;if(S&&n&&t.manuallyAnimateOnMount&&(S=!1),x.protectedKeys={...h},!x.isActive&&null===T||!w&&!x.prevProp||m(w)||"boolean"==typeof w)continue;let b=(d=x.prevProp,"string"==typeof(p=w)?p!==d:!!Array.isArray(p)&&!v(p,d)),A=b||f===s&&x.isActive&&!S&&P||e>c&&P,M=!1,E=Array.isArray(w)?w:[w],C=E.reduce(r(f),{});!1===T&&(C={});let{prevResolvedValues:V={}}=x,R={...V,...C},D=e=>{A=!0,u.has(e)&&(M=!0,u.delete(e)),x.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in R){let e=C[t],i=V[t];if(!h.hasOwnProperty(t))(g(e)&&g(i)?v(e,i):e===i)?void 0!==e&&u.has(t)?D(t):x.protectedKeys[t]=!0:null!=e?D(t):u.add(t)}x.prevProp=w,x.prevResolvedValues=C,x.isActive&&(h={...h,...C}),n&&t.blockInitialAnimation&&(A=!1);let k=!(S&&b)||M;A&&k&&l.push(...E.map(t=>({animation:t,options:{type:f}})))}if(u.size){let e={};u.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=n?n:null}),l.push({animation:e})}let f=!!l.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,f?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,n){var r;if(i[e].isActive===n)return Promise.resolve();null==(r=t.variantChildren)||r.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,n)}),i[e].isActive=n;let o=s(e);for(let t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=iu(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();m(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}let id=0;class ip extends ih{constructor(){super(...arguments),this.id=id++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let im={animation:{Feature:ic},exit:{Feature:ip}},ig=h.createContext({}),iv=()=>({translate:0,scale:1,origin:0,originPoint:0}),iy=()=>({x:iv(),y:iv()}),ix=()=>({min:0,max:0}),iw=()=>({x:ix(),y:ix()});function iP(t){return t.max-t.min}function iT(t,e,i,n=.5){t.origin=n,t.originPoint=ed(e.min,e.max,t.origin),t.scale=iP(i)/iP(e),t.translate=ed(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function iS(t,e,i,n){iT(t.x,e.x,i.x,n?n.originX:void 0),iT(t.y,e.y,i.y,n?n.originY:void 0)}function ib(t,e,i){t.min=i.min+e.min,t.max=t.min+iP(e)}function iA(t,e,i){t.min=e.min-i.min,t.max=t.min+iP(e)}function iM(t,e,i){iA(t.x,e.x,i.x),iA(t.y,e.y,i.y)}let iE=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function iC(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||iE.has(t)}let iV=t=>!iC(t);function iR(t){t&&(iV=e=>e.startsWith("on")?!iC(e):t(e))}try{iR(i(15376).A)}catch(t){}function iD(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(iV(r)||!0===i&&iC(r)||!e&&!iC(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}let ik=h.createContext(null);function ij(t){return m(t.animate)||S.some(e=>y(t[e]))}function iL(t){return!!(ij(t)||t.variants)}function iF(t){let e=h.useRef(null);return null===e.current&&(e.current=t()),e.current}function iB(t){let e=G(t)?t.get():t;return e&&"object"==typeof e&&e.mix&&e.toValue?e.toValue():e}let iO=t=>(e,i)=>{let n=h.useContext(ig),r=h.useContext(ik),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},n,r,s){let o={latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=iB(s[t]);let{initial:o,animate:a}=t,l=ij(t),u=iL(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!m(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=w(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(n,r,s,t),renderState:e()};return i&&(o.onMount=t=>i({props:n,current:t,...o}
1),o.onUpdate=t=>i(t)),o})(t,e,n,r);return i?s():iF(s)};function iI(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function iU(t){return{point:{x:t.pageX,y:t.pageY}}}let iW=t=>e=>d.isPrimaryPointer(e)&&t(e,iU(e));function iN(t,e,i,n){return iI(t,e,iW(i),n)}let i$="u">typeof window;function iz(t){return h.useEffect(()=>()=>t(),[])}let iH=i$?h.useLayoutEffect:h.useEffect;function iG(){let t,e=(t=h.useRef(!1),iH(()=>(t.current=!0,()=>{t.current=!1}),[]),t),[i,n]=h.useState(0),r=h.useCallback(()=>{e.current&&n(i+1)},[i]);return[h.useCallback(()=>E.postRender(r),[r]),i]}let iY=h.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class iX extends p.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function iK({children:t,isPresent:e}){let i=h.useId(),n=h.useRef(null),r=h.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=h.useContext(iY);return h.useInsertionEffect(()=>{let{width:t,height:o,top:a,left:l}=r.current;if(e||!n.current||!t||!o)return;n.current.dataset.motionPopId=i;let u=document.createElement("style");return s&&(u.nonce=s),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` 2 [data-motion-pop-id="${i}"] { 3 position: absolute !important; 4 width: ${t}px !important; 5 height: ${o}px !important; 6 top: ${a}px !important; 7 left: ${l}px !important; 8 } 9 `),()=>{document.head.removeChild(u)}},[e]),u.jsx(iX,{isPresent:e,childRef:n,sizeRef:r,children:p.cloneElement(t,{ref:n})})}let i_=({children:t,initial:e,isPresent:i,onExitComplete:n,custom:r,presenceAffectsLayout:s,mode:o})=>{let a=iF(iq),l=h.useId(),c=h.useCallback(t=>{for(let e of(a.set(t,!0),a.values()))if(!e)return;n&&n()},[a,n]),d=h.useMemo(()=>({id:l,initial:e,isPresent:i,custom:r,onExitComplete:c,register:t=>(a.set(t,!1),()=>a.delete(t))}),s?[Math.random(),c]:[i,c]);return h.useMemo(()=>{a.forEach((t,e)=>a.set(e,!1))},[i]),p.useEffect(()=>{i||a.size||!n||n()},[i]),"popLayout"===o&&(t=u.jsx(iK,{isPresent:i,children:t})),u.jsx(ik.Provider,{value:d,children:t})};function iq(){return new Map}function iZ(t=!0){let e=h.useContext(ik);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=e,s=h.useId();h.useEffect(()=>{t&&r(s)},[t]);let o=h.useCallback(()=>t&&n&&n(s),[s,n,t]);return!i&&n?[!1,o]:[!0]}let iJ=t=>t.key||"";function iQ(t){let e=[];return h.Children.forEach(t,t=>{h.isValidElement(t)&&e.push(t)}),e}let i0=h.createContext(null);function i1(t,e,i){let n=G(t)?t:z(t);return n.start(e7("",n,e,i)),n.animation}let i2=(t,e,i)=>{let n=e-t;return((i-t)%n+n)%n+t};function i5(t,e){return ez(t)?t[i2(0,t.length,e)]:t}function i3(t){return"object"==typeof t&&!Array.isArray(t)}function i9(t,e,i,n){return"string"==typeof t&&i3(e)?d.resolveElements(t,i,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function i4(t,e,i,n){var r;return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?i:null!=(r=n.get(e))?r:t}function i6(t,e){return t.at!==e.at?t.at-e.at:null===t.value?1:null===e.value?-1:0}function i8(t,e){return e.has(t)||e.set(t,{}),e.get(t)}function i7(t,e){return e[t]||(e[t]=[]),e[t]}let nt=t=>"number"==typeof t,ne=t=>t.every(nt),ni=new WeakMap;function nn(t){return t instanceof SVGElement&&"svg"!==t.tagName}let nr={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"]},ns={};for(let t in nr)ns[t]={isEnabled:e=>nr[t].some(t=>!!e[t])};let no={current:null},na={current:!1};function nl(){if(na.current=!0,i$)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>no.current=t.matches;t.addListener(e),e()}else no.current=!1}let nu=[...es,tV,tI],nh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];
9class nc{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=t6,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 t=B.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,E.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:u}=s;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=ij(e),this.isVariantNode=iL(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in c){const e=c[t];void 0!==a[t]&&G(e)&&e.set(a[t],!1)}}mount(t){this.current=t,ni.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),na.current||nl(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||no.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in ni.delete(this.current),this.projection&&this.projection.unmount(),C(this.notifyUpdate),C(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=k.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&E.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ns){let e=ns[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iw()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<nh.length;e++){let i=nh[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(G(r))t.addValue(n,r);else if(G(s))t.addValue(n,z(r,{owner:t}));else if(s!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,z(void 0!==e?e:r,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
9addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=z(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=n){let i,r;if("string"==typeof n&&(i=n,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i)||(r=n,/^0[^.\s]+$/u.test(r))))n=parseFloat(n);else{let i;i=n,!nu.find(er(i))&&tI.test(e)&&(n=tK(t,e))}this.setBaseTarget(t,G(n)?n.get():n)}return G(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=w(this.props,n,null==(e=this.presenceContext)?void 0:e.custom);r&&(i=r[t])}if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||G(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new U),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class nd extends nc{constructor(){super(...arguments),this.KeyframeResolver=ea}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;G(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let np=(t,e)=>e&&"number"==typeof t?e.transform(t):t,nf={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nm=D.length;function ng(t,e,i){let n="",r=!0;for(let s=0;s<nm;s++){let o=D[s],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!o.startsWith("scale"):0===parseFloat(a))||i){let t=np(a,tG[o]);if(!l){r=!1;let e=nf[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}function nv(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(k.has(t)){o=!0;continue}if(t7(t)){r[t]=i;continue}{let e=np(i,tG[t]);t.startsWith("origin")?(a=!0,s[t]=e):n[t]=e}}if(!e.transform&&(o||i?n.transform=ng(e,t.transform,i):n.transform&&(n.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;n.transformOrigin=`${t} ${e} ${i}`}}let ny={offset:"stroke-dashoffset",array:"stroke-dasharray"},nx={offset:"strokeDashoffset",array:"strokeDasharray"};function nw(t,e,i){return"string"==typeof t?t:tb.transform(e+i*t)}function nP(t,{attrX:e,attrY:i,attrScale:n,originX:r,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,c){let d,p;if(nv(t,u,c),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:f,style:m,dimensions:g}=t;f.transform&&(g&&(m.transform=f.transform),delete f.transform),g&&(void 0!==r||void 0!==s||m.transform)&&(d=nw(void 0!==r?r:.5,g.x,g.width),p=nw(void 0!==s?s:.5,g.y,g.height),m.transformOrigin=`${d} ${p}`),void 0!==e&&(f.x=e),void 0!==i&&(f.y=i),void 0!==n&&(f.scale=n),void 0!==o&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?ny:nx;t[s.offset]=tb.transform(-n);let o=tb.transform(e),a=tb.transform(i);t[s.array]=`${o} ${a}`}(f,o,a,l,!1)}let nT=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"]),nS=t=>"string"==typeof t&&"svg"===t.toLowerCase();function nb(t,{style:e,vars:i},n,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(s,i[s])}function nA(t,e,i,n){for(let i in nb(t,e,void 0,n),e.attrs)t.setAttribute(nT.has(i)?i:X(i),e.attrs[i])}let nM={};function nE(t){Object.assign(nM,t)}function nC(t,{layout:e,layoutId:i}){return k.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!nM[t]||"opacity"===t)}function nV(t,e,i){var n;let{style:r}=t,s={};for(let o in r)(G(r[o])||e.style&&G(e.style[o])||nC(o,t)||(null==(n=null==i?void 0:i.getValue(o))?void 0:n.liveStyle)!==void 0)&&(s[o]=r[o]);return s}function nR(t,e,i){let n=nV(t,e,i);for(let i in t)(G(t[i])||G(e[i]))&&(n[-1!==D.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class nD extends nd{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iw}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(k.has(e)){let t=tX(e);return t&&t.default||0}return e=nT.has(e)?e:X(e),t.getAttribute(e)}
9scrapeMotionValuesFromProps(t,e,i){return nR(t,e,i)}build(t,e,i){nP(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){nA(t,e,i,n)}mount(t){this.isSVGTag=nS(t.tagName),super.mount(t)}}function nk({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function nj(t){return void 0===t||1===t}function nL({scale:t,scaleX:e,scaleY:i}){return!nj(t)||!nj(e)||!nj(i)}function nF(t){return nL(t)||nB(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function nB(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function nO(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function nI(t,e=0,i=1,n,r){t.min=nO(t.min,e,i,n,r),t.max=nO(t.max,e,i,n,r)}function nU(t,{x:e,y:i}){nI(t.x,e.translate,e.scale,e.originPoint),nI(t.y,i.translate,i.scale,i.originPoint)}function nW(t,e){t.min=t.min+e,t.max=t.max+e}function nN(t,e,i,n,r=.5){let s=ed(t.min,t.max,r);nI(t,e,i,s,n)}function n$(t,e){nN(t.x,e.x,e.scaleX,e.scale,e.originX),nN(t.y,e.y,e.scaleY,e.scale,e.originY)}function nz(t,e){return nk(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class nH extends nd{constructor(){super(...arguments),this.type="html",this.renderInstance=nb}readValueFromInstance(t,e){if(k.has(e)){let t=tX(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=(t7(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return nz(t,e)}build(t,e,i){nv(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return nV(t,e,i)}}class nG extends nc{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(e in t){let i=t[e];if("string"==typeof i||"number"==typeof i)return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return iw()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}function nY(t){let e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=nn(t)?new nD(e):new nH(e);i.mount(t),ni.set(t,i)}function nX(t){let e=new nG({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),ni.set(t,e)}function nK(t,e,i,n){let r=[];if(G(t)||"number"==typeof t||"string"==typeof t&&!i3(e))r.push(i1(t,i3(e)&&e.default||e,i&&i.default||i));else{let s=i9(t,e,n),o=s.length;c.invariant(!!o,"No valid elements provided.");for(let t=0;t<o;t++){let n=s[t],a=n instanceof Element?nY:nX;ni.has(n)||a(n);let l=ni.get(n),u={...i};"delay"in u&&"function"==typeof u.delay&&(u.delay=u.delay(t,o)),r.push(...it(l,{...e,transition:u},{}))}}return r}function n_(t){return function(e,i,n){let r=[];if(Array.isArray(e)&&e.some(Array.isArray)){let n;n=[],(function(t,{defaultTransition:e={},...i}={},n,r){let s=e.duration||.3,o=new Map,a=new Map,l={},u=new Map,h=0,p=0,f=0;for(let i=0;i<t.length;i++){let o=t[i];if("string"==typeof o){u.set(o,p);continue}if(!Array.isArray(o)){u.set(o.name,i4(p,o.at,h,u));continue}let[v,y,x={}]=o;void 0!==x.at&&(p=i4(p,x.at,h,u));let w=0,P=(t,i,n,o=0,a=0)=>{var l;let u=Array.isArray(l=t)?l:[l],{delay:h=0,times:m=eK(u),type:g="keyframes",repeat:v,repeatType:y,repeatDelay:x=0,...P}=i,{ease:T=e.ease||"easeOut",duration:S}=i,b="function"==typeof h?h(o,a):h,A=u.length,M=d.isGenerator(g)?g:null==r?void 0:r[g];if(A<=2&&M){let t=100;2===A&&ne(u)&&(t=Math.abs(u[1]-u[0]));let e={...P};void 0!==S&&(e.duration=c.secondsToMilliseconds(S));let i=d.createGeneratorEasing(e,t,M);T=i.ease,S=i.duration}null!=S||(S=s);let E=p+b;1===m.length&&0===m[0]&&(m[1]=1);let C=m.length-u.length;if(C>0&&eX(m,C),1===u.length&&u.unshift(null),v){c.invariant(v<20,"Repeat count too high, must be less than 20"),S*=v+1;let t=[...u],e=[...m],i=[...T=Array.isArray(T)?[...T]:[T]];for(let n=0;n<v;n++){u.push(...t);for(let r=0;r<t.length;r++)m.push(e[r]+(n+1)),T.push(0===r?"linear":i5(i,r-1))}for(let t=0;t<m.length;t++)m[t]=m[t]/(v+1)}let V=E+S;
9!function(t,e,i,n,r,s){for(let e=0;e<t.length;e++){let i=t[e];i.at>r&&i.at<s&&(I(t,i),e--)}for(let o=0;o<e.length;o++)t.push({value:e[o],at:ed(r,s,n[o]),easing:i5(i,o)})}(n,u,T,m,E,V),w=Math.max(b+S,w),f=Math.max(V,f)};if(G(v))P(y,x,i7("default",i8(v,a)));else{let t=i9(v,y,n,l),e=t.length;for(let i=0;i<e;i++){let n=i8(t[i],a);for(let t in y){var m,g;P(y[t],(m=x,g=t,m&&m[g]?{...m,...m[g]}:{...m}),i7(t,n),i,e)}}}h=p,p+=w}return a.forEach((t,n)=>{for(let r in t){let s=t[r];s.sort(i6);let a=[],l=[],u=[];for(let t=0;t<s.length;t++){let{at:e,value:i,easing:n}=s[t];a.push(i),l.push(c.progress(0,f,e)),u.push(n||"easeOut")}0!==l[0]&&(l.unshift(0),a.unshift(a[0]),u.unshift("easeInOut")),1!==l[l.length-1]&&(l.push(1),a.push(null)),o.has(n)||o.set(n,{keyframes:{},transition:{}});let h=o.get(n);h.keyframes[r]=a,h.transition[r]={...e,duration:f,ease:u,times:l,...i}}}),o})(e,i,t,{spring:eI}).forEach(({keyframes:t,transition:e},i)=>{n.push(...nK(i,t,e))}),r=n}else r=nK(e,i,n,t);let s=new d.GroupPlaybackControls(r);return t&&t.animations.push(s),s}}let nq=n_();function nZ(t,e,i){t.style.setProperty(`--${e}`,i)}function nJ(t,e,i){t.style[e]=i}let nQ=c.memo(()=>{try{document.createElement("div").animate({opacity:[1]})}catch(t){return!1}return!0}),n0=new WeakMap,n1="easeOut";function n2(t){let e=n0.get(t)||new Map;return n0.set(t,e),n0.get(t)}class n5 extends d.NativeAnimationControls{constructor(t,e,i,n){const r=e.startsWith("--");c.invariant("string"!=typeof n.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "framer-motion"?');const s=n2(t).get(e);if(s&&s.stop(),Array.isArray(i)||(i=[i]),!function(t,e,i){for(let n=0;n<e.length;n++)null===e[n]&&(e[n]=0===n?i():e[n-1]),"number"==typeof e[n]&&tz[t]&&(e[n]=tz[t].transform(e[n]));!nQ()&&e.length<2&&e.unshift(i())}(e,i,()=>e.startsWith("--")?t.style.getPropertyValue(e):window.getComputedStyle(t)[e]),d.isGenerator(n.type)){const t=d.createGeneratorEasing(n,100,n.type);n.ease=d.supportsLinearEasing()?t.ease:n1,n.duration=c.secondsToMilliseconds(t.duration),n.type="keyframes"}else n.ease=n.ease||n1;const o=()=>{this.setValue(t,e,eh(i,n)),this.cancel(),this.resolveFinishedPromise()},a=()=>{this.setValue=r?nZ:nJ,this.options=n,this.updateFinishedPromise(),this.removeAnimation=()=>{let i=n0.get(t);i&&i.delete(e)}};e5()?(super(e2(t,e,i,n)),a(),!1===n.autoplay&&this.animation.pause(),this.animation.onfinish=o,n2(t).set(e,this)):(super(),a(),o())}then(t,e){return this.currentFinishedPromise.then(t,e)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}play(){"finished"===this.state&&this.updateFinishedPromise(),super.play()}cancel(){this.removeAnimation(),super.cancel()}}let n3=t=>function(e,i,n){return new d.GroupPlaybackControls(function(t,e,i,n){let r=d.resolveElements(t,n),s=r.length;c.invariant(!!s,"No valid element provided.");let o=[];for(let t=0;t<s;t++){let n=r[t],a={...i};for(let i in"function"==typeof a.delay&&(a.delay=a.delay(t,s)),e){let t=e[i],r={...d.getValueTransition(a,i)};r.duration=r.duration?c.secondsToMilliseconds(r.duration):r.duration,r.delay=c.secondsToMilliseconds(r.delay||0),o.push(new n5(n,i,t,r))}}return o}(e,i,n,t))},n9=n3();function n4(t,e){let i,n=()=>{let{currentTime:n}=e,r=(null===n?0:n.value)/100;i!==r&&t(r),i=r};return E.update(n,!0),()=>C(n)}let n6=new WeakMap;function n8({target:t,contentRect:e,borderBoxSize:i}){var n;null==(n=n6.get(t))||n.forEach(n=>{n({target:t,contentSize:e,get size(){return function(t,e){if(e){let{inlineSize:t,blockSize:i}=e[0];return{width:t,height:i}}return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}(t,i)}})})}function n7(t){t.forEach(n8)}let rt=new Set,re=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),ri={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function rn(t,e,i,n){let r=i[e],{length:s,position:o}=ri[e],a=r.current,l=i.time;r.current=t[`scroll${o}`],r.scrollLength=t[`scroll${s}`]-t[`client${s}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=c.progress(0,r.scrollLength,r.current);let u=n-l;r.velocity=u>50?0:W(r.current-a,u)}let rr={start:0,center:.5,end:1};function rs(t,e,i=0){let n=0;if(t in rr&&(t=rr[t]),"string"==typeof t){let e=parseFloat(t);t.endsWith("px")?n=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?n=e/100*document.documentElement.clientWidth:t.endsWith("vh")?n=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(n=e*t),i+n}let ro=[0,0],ra=[[0,0],[1,1]],rl={x:0,y:0},ru=new WeakMap,rh=new WeakMap,rc=new WeakMap,rd=t=>t===document.documentElement?window:t;function rp(t,{container:e=document.documentElement,...i}={}){let n=rc.get(e);n||(n=new Set,rc.set(e,n));
9let o=function(t,e,i,n={}){return{measure:()=>(function(t,e=t,i){if(i.x.targetOffset=0,i.y.targetOffset=0,e!==t){let n=e;for(;n&&n!==t;)i.x.targetOffset+=n.offsetLeft,i.y.targetOffset+=n.offsetTop,n=n.offsetParent}i.x.targetLength=e===t?e.scrollWidth:e.clientWidth,i.y.targetLength=e===t?e.scrollHeight:e.clientHeight,i.x.containerLength=t.clientWidth,i.y.containerLength=t.clientHeight})(t,n.target,i),update:e=>{rn(t,"x",i,e),rn(t,"y",i,e),i.time=e,(n.offset||n.target)&&function(t,e,i){let{offset:n=ra}=i,{target:r=t,axis:s="y"}=i,o="y"===s?"height":"width",a=r!==t?function(t,e){let i={x:0,y:0},n=t;for(;n&&n!==e;)if(n instanceof HTMLElement)i.x+=n.offsetLeft,i.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let t=n.getBoundingClientRect(),e=(n=n.parentElement).getBoundingClientRect();i.x+=t.left-e.left,i.y+=t.top-e.top}else if(n instanceof SVGGraphicsElement){let{x:t,y:e}=n.getBBox();i.x+=t,i.y+=e;let r=null,s=n.parentNode;for(;!r;)"svg"===s.tagName&&(r=s),s=n.parentNode;n=r}else break;return i}(r,t):rl,l=r===t?{width:t.scrollWidth,height:t.scrollHeight}:"getBBox"in r&&"svg"!==r.tagName?r.getBBox():{width:r.clientWidth,height:r.clientHeight},u={width:t.clientWidth,height:t.clientHeight};e[s].offset.length=0;let h=!e[s].interpolate,c=n.length;for(let t=0;t<c;t++){let i=function(t,e,i,n){let r=Array.isArray(t)?t:ro,s=0;return"number"==typeof t?r=[t,t]:"string"==typeof t&&(r=(t=t.trim()).includes(" ")?t.split(" "):[t,rr[t]?t:"0"]),(s=rs(r[0],i,n))-rs(r[1],e)}(n[t],u[o],l[o],a[s]);h||i===e[s].interpolatorOffsets[t]||(h=!0),e[s].offset[t]=i}h&&(e[s].interpolate=eY(e[s].offset,eK(n),{clamp:!1}),e[s].interpolatorOffsets=[...e[s].offset]),e[s].progress=tu(0,1,e[s].interpolate(e[s].current))}(t,i,n)},notify:()=>e(i)}}(e,t,{time:0,x:re(),y:re()},i);if(n.add(o),!ru.has(e)){let t,i=()=>{for(let t of n)t.measure()},o=()=>{for(let t of n)t.update(V.timestamp)},a=()=>{for(let t of n)t.notify()},l=()=>{E.read(i,!1,!0),E.read(o,!1,!0),E.update(a,!1,!0)};ru.set(e,l);let u=rd(e);window.addEventListener("resize",l,{passive:!0}),e!==document.documentElement&&rh.set(e,"function"==typeof e?(rt.add(e),s||(s=()=>{let t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};rt.forEach(t=>t(e))},window.addEventListener("resize",s)),()=>{rt.delete(e),!rt.size&&s&&(s=void 0)}):(!r&&"u">typeof ResizeObserver&&(r=new ResizeObserver(n7)),(t=d.resolveElements(e)).forEach(t=>{let e=n6.get(t);e||(e=new Set,n6.set(t,e)),e.add(l),null==r||r.observe(t)}),()=>{t.forEach(t=>{let e=n6.get(t);null==e||e.delete(l),(null==e?void 0:e.size)||null==r||r.unobserve(t)})})),u.addEventListener("scroll",l,{passive:!0})}let a=ru.get(e);return E.read(a,!1,!0),()=>{var t;C(a);let i=rc.get(e);if(!i||(i.delete(o),i.size))return;let n=ru.get(e);ru.delete(e),n&&(rd(e).removeEventListener("scroll",n),null==(t=rh.get(e))||t(),window.removeEventListener("resize",n))}}let rf=new Map;function rm({source:t,container:e=document.documentElement,axis:i="y"}={}){t&&(e=t),rf.has(e)||rf.set(e,{});let n=rf.get(e);return n[i]||(n[i]=d.supportsScrollTimeline()?new ScrollTimeline({source:e,axis:i}):function({source:t,container:e,axis:i="y"}){t&&(e=t);let n={value:0},r=rp(t=>{n.value=100*t[i].progress},{container:e,axis:i});return{currentTime:n,cancel:r}}({source:e,axis:i})),n[i]}function rg(t){return t&&(t.target||t.offset)}function rv(t,{axis:e="y",...i}={}){var n,r;let s={axis:e,...i};return"function"==typeof t?(n=t,r=s,2===n.length||rg(r)?rp(t=>{n(t[r.axis].progress,t)},r):n4(n,rm(r))):function(t,e){if(t.flatten(),rg(e))return t.pause(),rp(i=>{t.time=t.duration*i[e.axis].progress},e);{let i=rm(e);return t.attachTimeline?t.attachTimeline(i,t=>(t.pause(),n4(e=>{t.time=t.duration*e},i))):c.noop}}(t,s)}let ry={some:0,all:1};function rx(t,e,{root:i,margin:n,amount:r="some"}={}){let s=d.resolveElements(t),o=new WeakMap,a=new IntersectionObserver(t=>{t.forEach(t=>{let i=o.get(t.target);if(!!i!==t.isIntersecting)if(t.isIntersecting){let i=e(t);"function"==typeof i?o.set(t.target,i):a.unobserve(t.target)}else"function"==typeof i&&(i(t),o.delete(t.target))})},{root:i,rootMargin:n,threshold:"number"==typeof r?r:ry[r]});
9return s.forEach(t=>a.observe(t)),()=>a.disconnect()}function rw(t,e){let i=B.now(),n=({timestamp:r})=>{let s=r-i;s>=e&&(C(n),t(s-e))};return E.read(n,!0),()=>C(n)}let rP=(t,e)=>Math.abs(t-e);function rT(t,e){return Math.sqrt(rP(t.x,e.x)**2+rP(t.y,e.y)**2)}function rS(...t){var e;let i,n=!Array.isArray(t[0]),r=n?0:-1,s=t[0+r],o=t[1+r],a=t[2+r],l=t[3+r],u=eY(o,a,{mixer:(i=e=a[0])&&"object"==typeof i&&i.mix?e.mix:void 0,...l});return n?u(s):u}let rb=A.reduce((t,e)=>(t[e]=t=>C(t),t),{}),{schedule:rA,cancel:rM}=M(queueMicrotask,!1),rE=(t,e)=>t.depth-e.depth;class rC{constructor(){this.children=[],this.isDirty=!1}add(t){O(this.children,t),this.isDirty=!0}remove(t){I(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rE),this.isDirty=!1,this.children.forEach(t)}}let rV=["TopLeft","TopRight","BottomLeft","BottomRight"],rR=rV.length,rD=t=>"string"==typeof t?parseFloat(t):t,rk=t=>"number"==typeof t||tb.test(t);function rj(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rL=rB(0,.5,ta),rF=rB(.5,.95,c.noop);function rB(t,e,i){return n=>n<t?0:n>e?1:i(c.progress(t,e,n))}function rO(t,e){t.min=e.min,t.max=e.max}function rI(t,e){rO(t.x,e.x),rO(t.y,e.y)}function rU(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rW(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function rN(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(tS.test(e)&&(e=parseFloat(e),e=ed(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=ed(s.min,s.max,n);t===s&&(a-=e),t.min=rW(t.min,e,i,a,r),t.max=rW(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let r$=["x","scaleX","originX"],rz=["y","scaleY","originY"];function rH(t,e,i,n){rN(t.x,e,r$,i?i.x:void 0,n?n.x:void 0),rN(t.y,e,rz,i?i.y:void 0,n?n.y:void 0)}function rG(t){return 0===t.translate&&1===t.scale}function rY(t){return rG(t.x)&&rG(t.y)}function rX(t,e){return t.min===e.min&&t.max===e.max}function rK(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function r_(t,e){return rK(t.x,e.x)&&rK(t.y,e.y)}function rq(t){return iP(t.x)/iP(t.y)}function rZ(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rJ{constructor(){this.members=[]}add(t){O(this.members,t),t.scheduleRender()}remove(t){if(I(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rQ(t){return[t("x"),t("y")]}let r0={hasAnimatedSinceResize:!0,hasEverUpdated:!1},r1={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},r2="u">typeof window&&void 0!==window.MotionDebug,r5=["","X","Y","Z"],r3={visibility:"hidden"},r9=0;function r4(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function r6({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=r9++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,r2&&(r1.totalNodes=r1.resolvedTargetDeltas=r1.recalculatedProjection=0),this.nodes.forEac
vendor: 4,111 bytes, line 9
9h(st),this.nodes.forEach(sa),this.nodes.forEach(sl),this.nodes.forEach(se),r2&&window.MotionDebug.record(r1)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rC)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new U),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=nn(e),this.instance=e;let{layoutId:n,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||n)&&(this.isLayoutDirty=!0),t){let i,n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=rw(n,250),r0.hasAnimatedSinceResize&&(r0.hasAnimatedSinceResize=!1,this.nodes.forEach(so))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||sf,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!r_(this.targetLayout,n)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...d.getValueTransition(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||so(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,C(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(su),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=q(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",E,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(sn);return}this.isUpdating||this.nodes.forEach(sr),this.isUpdating=!1,this.nodes.forEach(ss),this.nodes.forEach(r8),this.nodes.forEac
9h(r7),this.clearAllSnapshots();let t=B.now();V.delta=tu(0,1e3/60,t-V.timestamp),V.timestamp=t,V.isProcessing=!0,R.update.process(V),R.preRender.process(V),R.render.process(V),V.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,rA.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(si),this.sharedNodes.forEach(sh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,E.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){E.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=iw(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rY(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&(e||nF(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),sv((e=n).x),sv(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return iw();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(sx))){let{scroll:t}=this.root;t&&(nW(i.x,t.offset.x),nW(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=iw();if(rI(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&rI(i,t),nW(i.x,r.offset.x),nW(i.y,r.offset.y))}return i}applyTransform(t,e=!1){let i=iw();rI(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&n$(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),nF(n.latestValues)&&n$(i,n.latestValues)}return nF(this.latestValues)&&n$(i,this.latestValues),i}removeTransform(t){let e=iw();rI(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!nF(i.latestValues))continue;nL(i.latestValues)&&i.updateSnapshot();let n=iw();rI(n,i.measurePageBox()),rH(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return nF(this.latestValues)&&rH(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==V.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,n,r;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
9haredProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=V.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iw(),this.relativeTargetOrigin=iw(),iM(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rI(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=iw(),this.targetWithTransforms=iw()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,n=this.relativeTarget,r=this.relativeParent.target,ib(i.x,n.x,r.x),ib(i.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rI(this.target,this.layout.layoutBox),nU(this.target,this.targetDelta)):rI(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iw(),this.relativeTargetOrigin=iw(),iM(this.relativeTargetOrigin,this.target,t.target),rI(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}r2&&r1.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||nL(this.parent.latestValues)||nB(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===V.timestamp&&(n=!1),n)return;let{layout:r,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||s))return;rI(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let r,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&n$(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,nU(t,s)),n&&nF(r.latestValues)&&n$(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=iw());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rU(this.prevProjectionDelta.x,this.projectionDelta.x),rU(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iS(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&rZ(this.projectionDelta.x,this.prevProjectionDelta.x)&&rZ(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),r2&&r1.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=iy(),this.projectionDelta=iy(),this.projectionDeltaWithTransform=iy()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=iy();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=iw(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&
9!0===this.options.crossfade&&!this.path.some(sp));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(sc(o.x,t.x,n),sc(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f,m,g;iM(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,m=a,g=n,sd(p.x,f.x,m.x,g),sd(p.y,f.y,m.y,g),i&&(u=this.relativeTarget,d=i,rX(u.x,d.x)&&rX(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=iw()),rI(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=ed(0,void 0!==i.opacity?i.opacity:1,rL(n)),t.opacityExit=ed(void 0!==e.opacity?e.opacity:1,0,rF(n))):s&&(t.opacity=ed(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<rR;r++){let s=`border${rV[r]}Radius`,o=rj(e,s),a=rj(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rk(o)===rk(a)?(t[s]=Math.max(ed(rD(o),rD(a),n),0),(tS.test(a)||tS.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=ed(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(C(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=E.update(()=>{r0.hasAnimatedSinceResize=!0,this.currentAnimation=i1(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&sy(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||iw();let e=iP(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=iP(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}rI(e,i),n$(e,r),iS(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rJ),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&r4("z",t,n,this.animationValues);for(let e=0;e<r5.length;e++)r4(`rotate${r5[e]}`,t,n,this.animationValues),r4(`skew${r5[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return r3;let n={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=iB(null==t?void 0:t.pointerEvents)||"",n.transform=r?r(this.latestValues,""):"none",n;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=iB(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!n
9F(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;this.applyTransformsToTarget(),n.transform=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),r&&(n.transform=r(o,n.transform));let{x:a,y:l}=this.projectionDelta;for(let t in n.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?n.opacity=s===this?null!=(i=null!=(e=o.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:n.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,nM){if(void 0===o[t])continue;let{correct:e,applyTo:i}=nM[t],r="none"===n.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)n[i[e]]=r}else n[t]=r}return this.options.layoutId&&(n.pointerEvents=s===this?iB(null==t?void 0:t.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(sn),this.root.sharedNodes.clear()}}}function r8(t){t.updateLayout()}function r7(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?rQ(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=iP(n);n.min=e[t].min,n.max=n.min+r}):sy(r,i.layoutBox,e)&&rQ(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=iP(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=iy();iS(o,e,i.layoutBox);let a=iy();s?iS(a,t.applyTransform(n,!0),i.measuredBox):iS(a,e,i.layoutBox);let l=!rY(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=iw();iM(o,i.layoutBox,r.layoutBox);let a=iw();iM(a,e,s.layoutBox),r_(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function st(t){r2&&r1.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function se(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function si(t){t.clearSnapshot()}function sn(t){t.clearMeasurements()}function sr(t){t.isLayoutDirty=!1}function ss(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function so(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function sa(t){t.resolveTargetDelta()}function sl(t){t.calcProjection()}function su(t){t.resetSkewAndRotation()}function sh(t){t.removeLeadSnapshot()}function sc(t,e,i){t.translate=ed(e.translate,0,i),t.scale=ed(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function sd(t,e,i,n){t.min=ed(e.min,i.min,n),t.max=ed(e.max,i.max,n)}function sp(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sf={duration:.45,ease:[.4,0,.1,1]},sm=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),sg=sm("applewebkit/")&&!sm("chrome/")?Math.round:c.noop;function sv(t){t.min=sg(t.min),t.max=sg(t.max)}function sy(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rq(e)-rq(i)))}function sx(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let sw=r6({attachResizeListener:(t,e)=>iI(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sP={current:void 0},sT=r6({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sP.current){let t=new sw({});t.mount(window),t.setOptions({layoutScroll:!0}),sP.current=t}return sP.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),sS=t=>!t.isLayoutDirty&&t.willUpdate(!1);
9function sb(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let sA={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tb.test(t))return t;else t=parseFloat(t);let i=sb(t,e.target.x),n=sb(t,e.target.y);return`${i}% ${n}%`}},sM=({children:t,id:e,inherit:i=!0})=>{let n=h.useContext(f),r=h.useContext(i0),[s,o]=iG(),a=h.useRef(null),l=n.id||r;if(null===a.current){let t,r,s,o;(!0==(!0===(o=i))||"id"===o)&&l&&(e=e?l+"-"+e:l),a.current={id:e,group:!0===i&&n.group||(t=new Set,r=new WeakMap,{add:e=>{t.add(e),r.set(e,e.addEventListener("willUpdate",s))},remove:e=>{t.delete(e);let i=r.get(e);i&&(i(),r.delete(e)),s()},dirty:s=()=>t.forEach(sS)})}}let c=h.useMemo(()=>({...a.current,forceRender:s}),[o]);return u.jsx(f.Provider,{value:c,children:t})},sE=h.createContext({strict:!1});function sC(t){for(let e in t)ns[e]={...ns[e],...t[e]}}function sV(t){return"function"==typeof t}let sR=h.createContext(null);function sD(t){if("u"<typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}class sk{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=sF(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=rT(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=V;this.history.push({...n,timestamp:r});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=sj(e,this.transformPagePoint),E.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=sF("pointercancel"===t.type?this.lastMoveEventInfo:sj(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!d.isPrimaryPointer(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;const s=sj(iU(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=V;this.history=[{...o,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,sF(s,this.history)),this.removeListeners=ew(iN(this.contextWindow,"pointermove",this.handlePointerMove),iN(this.contextWindow,"pointerup",this.handlePointerUp),iN(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),C(this.updatePoint)}}function sj(t,e){return e?{point:e(t.point)}:t}function sL(t,e){return{x:t.x-e.x,y:t.y-e.y}}function sF({point:t},e){return{point:t,delta:sL(t,sB(e)),offset:sL(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=sB(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>c.secondsToMilliseconds(.1)));)e--;if(!i)return{x:0,y:0};let r=c.millisecondsToSeconds(n.timestamp-i.timestamp);if(0===r)return{x:0,y:0};let s={x:(n.x-i.x)/r,y:(n.y-i.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e)}}function sB(t){return t[t.length-1]}function sO(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function sI(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function sU(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function sW(t,e,i){return{min:sN(t,e),max:sN(t,i)}}function sN(t,e){return"number"==typeof t?t:t[e]||0}let s$=({current:t})=>t?t.ownerDocument.defaultView:null,sz=new WeakMap;class sH{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=iw(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let n=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(iU(t).point)},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=d.setDragLock(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rQ(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tS.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];
9n&&(e=iP(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&E.postRender(()=>r(t,e)),Y(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},s=(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},o=(t,e)=>this.stop(t,e),a=()=>rQ(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new sk(t,{onSessionStart:n,onStart:r,onMove:s,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:s$(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&E.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!sG(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?ed(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?ed(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,r=this.constraints;e&&sO(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:sI(t.x,i,r),y:sI(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:sW(t,"left","right"),y:sW(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&rQ(t=>{var e,i;let r;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=n.layoutBox[t],i=this.constraints[t],r={},void 0!==i.min&&(r.min=i.min-e.min),void 0!==i.max&&(r.max=i.max-e.min),r))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!sO(e))return!1;let n=e.current;c.invariant(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=function(t,e,i){let n=nz(t,i),{scroll:r}=e;return r&&(nW(n.x,r.offset.x),nW(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:sU(t.x,s.x),y:sU(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=nk(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(rQ(o=>{if(!sG(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return Y(this.visualElement,t),i.start(e7(t,i,0,e,this.visualElement,!1))}stopAnimation(){rQ(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rQ(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){rQ(e=>{let{drag:i}=this.getProps();if(!sG(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-ed(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!sO(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};rQ(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,r;let s,o,a,l=e.get();n[t]=(i={min:l,max:l},r=this.constraints[t],s=.5,o=iP(i),(a=iP(r))>o?s=c.progress(r.min,r.max-o,i.min):o>a&&(s=c.progress(i.min,i.max-a,r.min)),tu(0,1,s))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),rQ(e=>{if(!sG(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(ed(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;sz.set(this.visualElement,this);let t=iN(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();sO(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),E.read(e);let r=iI(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(rQ(e=>{let i=this.getAxisMotionValue(e);
9i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function sG(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class sY extends ih{constructor(t){super(t),this.removeGroupControls=c.noop,this.removeListeners=c.noop,this.controls=new sH(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||c.noop}unmount(){this.removeGroupControls(),this.removeListeners()}}let sX=t=>(e,i)=>{t&&E.postRender(()=>t(e,i))};class sK extends ih{constructor(){super(...arguments),this.removePointerDownListener=c.noop}onPointerDown(t){this.session=new sk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:s$(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:sX(t),onStart:sX(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&E.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=iN(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let s_=h.createContext({});class sq extends h.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;nE(sJ),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),r0.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||E.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),rA.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sZ(t){let[e,i]=iZ(),n=h.useContext(f);return u.jsx(sq,{...t,layoutGroup:n,switchLayoutGroup:h.useContext(s_),isPresent:e,safeToRemove:i})}let sJ={borderRadius:{...sA,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sA,borderTopRightRadius:sA,borderBottomLeftRadius:sA,borderBottomRightRadius:sA,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tI.parse(t);if(n.length>5)return t;let r=tI.createTransformer(t),s=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=ed(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}},sQ={pan:{Feature:sK},drag:{Feature:sY,ProjectionNode:sT,MeasureLayout:sZ}};function s0(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&E.postRender(()=>r(e,iU(e)))}class s1 extends ih{mount(){let{current:t}=this.node;t&&(this.unmount=d.hover(t,t=>(s0(this.node,t,"Start"),t=>s0(this.node,t,"End"))))}unmount(){}}class s2 extends ih{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ew(iI(this.node.current,"focus",()=>this.onFocus()),iI(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function s5(t,e,i){let{props:n}=t;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&E.postRender(()=>r(e,iU(e)))}class s3 extends ih{mount(){let{current:t}=this.node;t&&(this.unmount=d.press(t,t=>(s5(this.node,t,"Start"),(t,{success:e})=>s5(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let s9=new WeakMap,s4=new WeakMap,s6=t=>{let e=s9.get(t.target);e&&e(t)}
9,s8=t=>{t.forEach(s6)},s7={some:0,all:1};class ot extends ih{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:o}=i,a={root:n?n.current:void 0,rootMargin:r,threshold:"number"==typeof s?s:s7[s]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;r&&r(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;s4.has(i)||s4.set(i,{});let n=s4.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(s8,{root:t,...e})),n[r]}(a),s9.set(t,l),e.observe(t),()=>{s9.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let oe={inView:{Feature:ot},tap:{Feature:s3},focus:{Feature:s2},hover:{Feature:s1}},oi={layout:{ProjectionNode:sT,MeasureLayout:sZ}};function on(t){return Array.isArray(t)?t.join(" "):t}let or=Symbol.for("motionComponentSymbol");function os({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:n,Component:r}){var s,o;function a(t,s){var o;let a,l={...h.useContext(iY),...t,layoutId:function({layoutId:t}){let e=h.useContext(f).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:c}=l,d=function(t){let{initial:e,animate:i}=function(t,e){if(ij(t)){let{initial:e,animate:i}=t;return{initial:!1===e||y(e)?e:void 0,animate:y(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,h.useContext(ig));return h.useMemo(()=>({initial:e,animate:i}),[on(e),on(i)])}(t),p=n(t,c);if(!c&&i$){h.useContext(sE).strict;let t=function(t){let{drag:e,layout:i}=ns;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(l);a=t.MeasureLayout,d.visualElement=function(t,e,i,n,r){var s,o;let{visualElement:a}=h.useContext(ig),l=h.useContext(sE),u=h.useContext(ik),c=h.useContext(iY).reducedMotion,d=h.useRef(null);n=n||l.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));let p=d.current,f=h.useContext(s_);p&&!p.projection&&r&&("html"===p.type||"svg"===p.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&sO(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(d.current,i,r,f);let m=h.useRef(!1);h.useInsertionEffect(()=>{p&&m.current&&p.update(i,u)});let g=i[_],v=h.useRef(!!g&&!(null==(s=window.MotionHandoffIsComplete)?void 0:s.call(window,g))&&(null==(o=window.MotionHasOptimisedAnimation)?void 0:o.call(window,g)));return iH(()=>{p&&(m.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),rA.render(p.render),v.current&&p.animationState&&p.animationState.animateChanges())}),h.useEffect(()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,g)}),v.current=!1))}),p}(r,p,l,e,t.ProjectionNode)}return u.jsxs(ig.Provider,{value:d,children:[a&&d.visualElement?u.jsx(a,{visualElement:d.visualElement,...l}):null,i(r,t,(o=d.visualElement,h.useCallback(t=>{t&&p.onMount&&p.onMount(t),o&&(t?o.mount(t):o.unmount()),s&&("function"==typeof s?s(t):sO(s)&&(s.current=t))},[o])),p,c,d.visualElement)]})}t&&sC(t),a.displayName=`motion.${"string"==typeof r?r:`create(${null!=(o=null!=(s=r.displayName)?s:r.name)?o:""})`}`;let l=h.forwardRef(a);return l[or]=r,l}let oo=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function oa(t){if("string"!=typeof t||t.includes("-"));else if(oo.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let ol=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),ou=()=>({...ol(),attrs:{}}),oh=["x","y","width","height","cx","cy","r"],oc={useVisualState:iO({scrapeMotionValuesFromProps:nR,createRenderState:ou,onUpdate:({props:t,prevProps:e,current:i,renderState:n,latestValues:r})=>{if(!i)return;let s=!!t.drag;if(!s){for(let t in r)if(k.has(t)){s=!0;break}}if(!s)return;let o=!e;if(e)for(let i=0;i<oh.length;i++){let n=oh[i];t[n]!==e[n]&&(o=!0)}o&&E.read(()=>{try{n.dimensions="function"==typeof i.getBBox?i.getBBox():i.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}E.render(()=>{nP(n,r,nS(i.tagName),t.transformTemplate),nA(i,n)})})}})},od={useVisualState:iO({scrapeMotionValuesFromProps:nV,createRenderState:ol})};function op(t,e,i){for(let n in e)G(e[n])||nC(n,i)||(t[n]=e[n])}function of(t,e){return function(i,{forwardMotionProps:n}={forwardMotionProps:!1}){return os({...oa(i)?oc:od,preloadedFeatures:t,useRender:function(t=!1){return(e,i,n,{latestValues:r},s)=>
9{let o=(oa(e)?function(t,e,i,n){let r=h.useMemo(()=>{let i=ou();return nP(i,e,nS(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};op(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i,n,r={},s=(i=t.style||{},op(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return h.useMemo(()=>{let i=ol();return nv(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=s,r})(i,r,s,e),a=iD(i,"string"==typeof e,t),l=e!==h.Fragment?{...a,...o,ref:n}:{},{children:u}=i,c=h.useMemo(()=>G(u)?u.get():u,[u]);return h.createElement(e,{...l,children:c})}}(n),createVisualElement:e,Component:i})}}let om=(t,e)=>oa(t)?new nD(e):new nH(e,{allowProjection:t!==h.Fragment}),og=sD(of({...im,...oe,...sQ,...oi},om));function ov(t){return t.value}function oy(t,e){return t.layout.min-e.layout.min}function ox(t){let e=iF(()=>z(t)),{isStatic:i}=h.useContext(iY);if(i){let[,i]=h.useState(t);h.useEffect(()=>e.on("change",i),[])}return e}function ow(t,e){let i=ox(e()),n=()=>i.set(e());return n(),iH(()=>{let e=()=>E.preRender(n,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),C(n)}}),i}function oP(t,e,i,n){if("function"==typeof t){let e;return N.current=[],t(),e=ow(N.current,t),N.current=void 0,e}let r="function"==typeof e?e:rS(e,i,n);return Array.isArray(t)?oT(t,r):oT([t],([t])=>r(t))}function oT(t,e){let i=iF(()=>[]);return ow(t,()=>{i.length=0;let n=t.length;for(let e=0;e<n;e++)i[e]=t[e].get();return e(i)})}function oS(t,e=0){return G(t)?t:ox(e)}var ob=Object.freeze({__proto__:null,Group:h.forwardRef(function({children:t,as:e="ul",axis:i="y",onReorder:n,values:r,...s},o){let a=iF(()=>og[e]),l=[],d=h.useRef(!1);return c.invariant(!!r,"Reorder.Group must be provided a values prop"),h.useEffect(()=>{d.current=!1}),u.jsx(a,{...s,ref:o,ignoreStrict:!0,children:u.jsx(sR.Provider,{value:{axis:i,registerItem:(t,e)=>{let n=l.findIndex(e=>t===e.value);-1!==n?l[n].layout=e[i]:l.push({value:t,layout:e[i]}),l.sort(oy)},updateOrder:(t,e,i)=>{if(d.current)return;let s=function(t,e,i,n){if(!n)return t;let r=t.findIndex(t=>t.value===e);if(-1===r)return t;let s=n>0?1:-1,o=t[r+s];if(!o)return t;let a=t[r],l=o.layout,u=ed(l.min,l.max,.5);return 1===s&&a.layout.max+i>u||-1===s&&a.layout.min+i<u?function([...t],e,i){let n=e<0?t.length+e:e;if(n>=0&&n<t.length){let n=i<0?t.length+i:i,[r]=t.splice(e,1);t.splice(n,0,r)}return t}(t,r,r+s):t}(l,t,e,i);l!==s&&(d.current=!0,n(s.map(ov).filter(t=>-1!==r.indexOf(t))))}},children:t})})}),Item:h.forwardRef(function({children:t,style:e={},value:i,as:n="li",onDrag:r,layout:s=!0,...o},a){let l=iF(()=>og[n]),d=h.useContext(sR),p={x:oS(e.x),y:oS(e.y)},f=oP([p.x,p.y],([t,e])=>t||e?1:"unset");c.invariant(!!d,"Reorder.Item must be a child of Reorder.Group");let{axis:m,registerItem:g,updateOrder:v}=d;return u.jsx(l,{drag:m,...o,dragSnapToOrigin:!0,style:{...e,x:p.x,y:p.y,zIndex:f},layout:s,onDrag:(t,e)=>{let{velocity:n}=e;n[m]&&v(i,p[m].get(),n[m]),r&&r(t,e)},onLayoutMeasure:t=>g(i,t),ref:a,ignoreStrict:!0,children:t})})});let oA=sD(of()),oM={renderer:om,...im,...oe},oE={...oM,...sQ,...oi},oC={renderer:om,...im};function oV(t,e,i){h.useInsertionEffect(()=>t.on(e,i),[t,e,i])}function oR(t,e){c.warning(!!(!e||e.current),`You have defined a ${t} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}let oD=()=>({scrollX:z(0),scrollY:z(0),scrollXProgress:z(0),scrollYProgress:z(0)});function ok({container:t,target:e,layoutEffect:i=!0,...n}={}){let r=iF(oD);return(i?iH:h.useEffect)(()=>(oR("target",e),oR("container",t),rv((t,{x:e,y:i})=>{r.scrollX.set(e.current),r.scrollXProgress.set(e.progress),r.scrollY.set(i.current),r.scrollYProgress.set(i.progress)},{...n,container:(null==t?void 0:t.current)||void 0,target:(null==e?void 0:e.current)||void 0})),[t,e,JSON.stringify(n.offset)]),r}function oj(t){return"number"==typeof t?t:parseFloat(t)}function oL(t){let e=h.useRef(0),{isStatic:i}=h.useContext(iY);h.useEffect(()=>{if(i)return;let n=({timestamp:i,delta:n})=>{e.current||(e.current=i),t(i-e.current,n)};return E.update(n,!0),()=>C(n)},[t])}class oF extends ${constructor(){super(...arguments),this.values=[]}add(t){let e=k.has(t)?"transform":e1.has(t)?X(t):void 0;e&&(O(this.values,e),this.update())}update(){this.set(this.values.length?this.values.join(", "):"auto")}}function oB(){na.current||nl();let[t]=h.useState(no.current);return t}
9function oO(t,e){[...e].reverse().forEach(i=>{let n=t.getVariant(i);n&&H(t,n),t.variantChildren&&t.variantChildren.forEach(t=>{oO(t,e)})})}function oI(){let t=!1,e=new Set,i={subscribe:t=>(e.add(t),()=>void e.delete(t)),start(i,n){c.invariant(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let r=[];return e.forEach(t=>{r.push(ir(t,i,{transitionOverride:n}))}),Promise.all(r)},set:i=>(c.invariant(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(t=>{var e,n;e=t,Array.isArray(n=i)?oO(e,n):"string"==typeof n?oO(e,[n]):H(e,n)})),stop(){e.forEach(t=>{t.values.forEach(t=>t.stop())})},mount:()=>(t=!0,()=>{t=!1,i.stop()})};return i}function oU(){let t=iF(oI);return iH(t.mount,[]),t}class oW{constructor(){this.componentControls=new Set}subscribe(t){return this.componentControls.add(t),()=>this.componentControls.delete(t)}start(t,e){this.componentControls.forEach(i=>{i.start(t.nativeEvent||t,e)})}}let oN=()=>new oW;function o$(t){return null!==t&&"object"==typeof t&&or in t}function oz(t){sP.current&&(sP.current.isUpdating=!1,sP.current.blockUpdate(),t&&t())}let oH=(t,e)=>{let i=k.has(e)?"transform":e;return`${t}: ${i}`},oG=new Map,oY=new Map;function oX(t,e,i){var n;let r=oH(t,e),s=oG.get(r);if(!s)return null;let{animation:o,startTime:a}=s;function l(){var n;null==(n=window.MotionCancelOptimisedAnimation)||n.call(window,t,e,i)}return(o.onfinish=l,null===a||(null==(n=window.MotionHandoffIsComplete)?void 0:n.call(window,t)))?(l(),null):a}let oK=new Set;function o_(){oK.forEach(t=>{t.animation.play(),t.animation.startTime=t.startTime}),oK.clear()}let oq=()=>({});class oZ extends nc{constructor(){super(...arguments),this.measureInstanceViewportBox=iw}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return oq()}getBaseTargetFromProps(){}readValueFromInstance(t,e,i){return i.initialState[e]||0}sortInstanceNodePosition(){return 0}}let oJ=iO({scrapeMotionValuesFromProps:oq,createRenderState:oq}),oQ=0,o0=t=>t>.001?1/t:1e5,o1=!1;Object.defineProperty(e,"invariant",{enumerable:!0,get:function(){return c.invariant}}),Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return c.noop}}),Object.defineProperty(e,"progress",{enumerable:!0,get:function(){return c.progress}}),Object.defineProperty(e,"isDragActive",{enumerable:!0,get:function(){return d.isDragActive}}),e.AcceleratedAnimation=e9,e.AnimatePresence=({children:t,custom:e,initial:i=!0,onExitComplete:n,presenceAffectsLayout:r=!0,mode:s="sync",propagate:o=!1})=>{let[a,l]=iZ(o),c=h.useMemo(()=>iQ(t),[t]),d=o&&!a?[]:c.map(iJ),p=h.useRef(!0),m=h.useRef(c),g=iF(()=>new Map),[v,y]=h.useState(c),[x,w]=h.useState(c);iH(()=>{p.current=!1,m.current=c;for(let t=0;t<x.length;t++){let e=iJ(x[t]);d.includes(e)?g.delete(e):!0!==g.get(e)&&g.set(e,!1)}},[x,d.length,d.join("-")]);let P=[];if(c!==v){let t=[...c];for(let e=0;e<x.length;e++){let i=x[e],n=iJ(i);d.includes(n)||(t.splice(e,0,i),P.push(i))}"wait"===s&&P.length&&(t=P),w(iQ(t)),y(c);return}let{forceRender:T}=h.useContext(f);return u.jsx(u.Fragment,{children:x.map(t=>{let h=iJ(t),f=(!o||!!a)&&(c===x||d.includes(h));return u.jsx(i_,{isPresent:f,initial:(!p.current||!!i)&&void 0,custom:f?void 0:e,presenceAffectsLayout:r,mode:s,onExitComplete:f?void 0:()=>{if(!g.has(h))return;g.set(h,!0);let t=!0;g.forEach(e=>{e||(t=!1)}),t&&(null==T||T(),w(m.current),o&&(null==l||l()),n&&n())},children:t},h)})})},e.AnimateSharedLayout=({children:t})=>(p.useEffect(()=>{c.invariant(!1,"AnimateSharedLayout is deprecated: https://www.framer.com/docs/guide-upgrade/##shared-layout-animations")},[]),u.jsx(sM,{id:iF(()=>`asl-${oQ++}`),children:t})),e.DeprecatedLayoutGroupContext=i0,e.DragControls=oW,e.FlatTree=rC,e.LayoutGroup=sM,e.LayoutGroupContext=f,e.LazyMotion=function({children:t,features:e,strict:i=!1}){let[,n]=h.useState(!sV(e)),r=h.useRef(void 0);if(!sV(e)){let{renderer:t,...i}=e;r.current=t,sC(i)}return h.useEffect(()=>{sV(e)&&e().then(({renderer:t,...e})=>{sC(e),r.current=t,n(!0)})},[]),u.jsx(sE.Provider,{value:{renderer:r.current,strict:i},children:t})},e.MotionConfig=function({children:t,isValidProp:e,...i}){e&&iR(e),(i={...h.useContext(iY),...i}).isStatic=iF(()=>i.isStatic);let n=h.useMemo(()=>i,[JSON.stringify(i.transition),i.transformPagePoint,i.reducedMotion]);return u.jsx(iY.Provider,{value:n,children:t})},e.MotionConfigContext=iY,e.MotionContext=ig,e.MotionGlobalConfig=b,e.MotionValue=$,e.PresenceContext=ik,e.Reorder=ob,e.SwitchLayoutGroupContext=s_,e.VisualElement=nc,e.addPointerEvent=iN,e.addPointerInfo=iW,e.addScaleCorrector=nE,e.animate=nq,e.animateMini=n9,e.animateValue=e0,e.animateVisualElement=ir,e.animationControls=oI,e.animations=im,e.anticipate=ts,e.backIn=tn,e.backInOut=tr,e.backOut=ti,e.buildTransform=ng,e.calcLength=iP,e.cancelFrame=C,e.cancelSync=rb,e.circIn=to,e.circInOut=tl,e.circOut=ta,e.clamp=tu,e.color=tV,e.complex=tI,e.createBox=iw,e.createRendererMotionComponent=os,e.createScopedAnimate=n_,e.cubicBezier=Q,e.delay=rw,e.disableInstantTransitions=function(){Z.current=!1},e.distance=rP,e.distance2D=rT,e.domAnimation=oM,e.domMax=oE,e.domMin=oC,e.easeIn=eW,e.easeInOut=e$,e.easeOut=eN,e.filterProps=iD,e.findSpring=ej,e.frame=E,e.frameData=V,e.frameSteps=R,e.inView=rx,e.inertia=eU,e.interpolate=eY,e.isBrowser=i$,e.isMotionComponent=o$,e.isMotionValue=G,e.isValidMotionProp=iC,e.keyframes=e_,e.m=oA,e.makeUseVisualState=iO,e.mirrorEasing=tt,e.mix=eE,e.motion=og,e.motionValue=z,e.optimizedAppearDataAttribute=_,e.pipe=ew,e.px=tb,e.resolveMotionValue=iB,e.reverseEasing=te,e.scroll=rv,e.scrollInfo=rp,e.spring=eI,e.stagger=function(t=.1,{startDelay:e=0,from:i=0,ease:n}={}){return(r,s)=>{let o=t*Math.abs(("number"==typeof i?i:function(t,e){if("first"===t)return 0;{let i=e-1;return"last"===t?i:i/2}}(i,s))-r);if(n){let e=s*t;o=eG(n)(o/e)*e}return e+o}}
9,e.startOptimizedAppearAnimation=function(t,e,i,n,r){if(window.MotionIsMounted)return;let s=t.dataset[K];if(!s)return;window.MotionHandoffAnimation=oX;let l=oH(s,e);a||(a=e2(t,e,[i[0],i[0]],{duration:1e4,ease:"linear"}),oG.set(l,{animation:a,startTime:null}),window.MotionHandoffAnimation=oX,window.MotionHasOptimisedAnimation=(t,e)=>{if(!t)return!1;if(!e)return oY.has(t);let i=oH(t,e);return!!oG.get(i)},window.MotionHandoffMarkAsComplete=t=>{oY.has(t)&&oY.set(t,!0)},window.MotionHandoffIsComplete=t=>!0===oY.get(t),window.MotionCancelOptimisedAnimation=(t,e,i,n)=>{let r=oH(t,e),s=oG.get(r);s&&(i&&void 0===n?i.postRender(()=>{i.postRender(()=>{s.animation.cancel()})}):s.animation.cancel(),i&&n?(oK.add(s),i.render(o_)):(oG.delete(r),oG.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(t,e,i)=>{var n,r;let s=q(t);if(!s)return;let o=null==(n=window.MotionHasOptimisedAnimation)?void 0:n.call(window,s,e),a=null==(r=t.props.values)?void 0:r[e];if(!o||!a)return;let l=i.on("change",t=>{var i;a.get()!==t&&(null==(i=window.MotionCancelOptimisedAnimation)||i.call(window,s,e),l())});return l});let u=()=>{a.cancel();let s=e2(t,e,i,n);void 0===o&&(o=performance.now()),s.startTime=o,oG.set(l,{animation:s,startTime:o}),r&&r(s)};oY.set(s,!1),a.ready?a.ready.then(u).catch(c.noop):u()},e.steps=function(t,e="end"){return i=>{let n=(i="end"===e?Math.min(i,.999):Math.max(i,.001))*t;return tu(0,1,("end"===e?Math.floor(n):Math.ceil(n))/t)}},e.sync=E,e.time=B,e.transform=rS,e.unwrapMotionComponent=function(t){if(o$(t))return t[or]},e.useAnimate=function(){let t=iF(()=>({current:null,animations:[]})),e=iF(()=>n_(t));return iz(()=>{t.animations.forEach(t=>t.stop())}),[t,e]},e.useAnimateMini=function(){let t=iF(()=>({current:null,animations:[]})),e=iF(()=>n3(t));return iz(()=>{t.animations.forEach(t=>t.stop())}),[t,e]},e.useAnimation=oU,e.useAnimationControls=oU,e.useAnimationFrame=oL,e.useCycle=function(...t){let e=h.useRef(0),[i,n]=h.useState(t[e.current]);return[i,h.useCallback(i=>{e.current="number"!=typeof i?i2(0,t.length,e.current+1):i,n(t[e.current])},[t.length,...t])]},e.useDeprecatedAnimatedState=function(t){let[e,i]=h.useState(t),n=oJ({},!1),r=iF(()=>new oZ({props:{onUpdate:t=>{i({...t})}},visualState:n,presenceContext:null},{initialState:t}));return h.useLayoutEffect(()=>(r.mount({}),()=>r.unmount()),[r]),[e,iF(()=>t=>ir(r,t))]},e.useDeprecatedInvertedScale=function(t){let e=ox(1),i=ox(1),{visualElement:n}=h.useContext(ig);return c.invariant(!!(t||n),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),c.warning(o1,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),o1=!0,t?(e=t.scaleX||e,i=t.scaleY||i):n&&(e=n.getValue("scaleX",1),i=n.getValue("scaleY",1)),{scaleX:oP(e,o0),scaleY:oP(i,o0)}},e.useDomEvent=function(t,e,i,n){h.useEffect(()=>{let r=t.current;if(i&&r)return iI(r,e,i,n)},[t,e,i,n])},e.useDragControls=function(){return iF(oN)},e.useElementScroll=function(t){return ok({container:t})},e.useForceUpdate=iG,e.useInView=function(t,{root:e,margin:i,amount:n,once:r=!1}={}){let[s,o]=h.useState(!1);return h.useEffect(()=>{if(!t.current||r&&s)return;let a={root:e&&e.current||void 0,margin:i,amount:n};return rx(t.current,()=>(o(!0),r?void 0:()=>o(!1)),a)},[e,t,i,r,n]),s},e.useInstantLayoutTransition=function(){return oz},e.useInstantTransition=function(){let[t,e]=iG(),i=h.useRef(-1);return h.useEffect(()=>{E.postRender(()=>E.postRender(()=>{e===i.current&&(Z.current=!1)}))},[e]),n=>{oz(()=>{Z.current=!0,t(),n(),i.current=e+1})}},e.useIsPresent=function(){var t;return null===(t=h.useContext(ik))||t.isPresent},e.useIsomorphicLayoutEffect=iH,e.useMotionTemplate=function(t,...e){let i=t.length;return ow(e.filter(G),function(){let n="";for(let r=0;r<i;r++){n+=t[r];let i=e[r];i&&(n+=G(i)?i.get():i)}return n})},e.useMotionValue=ox,e.useMotionValueEvent=oV,e.usePresence=iZ,e.useReducedMotion=oB,e.useReducedMotionConfig=function(){let t=oB(),{reducedMotion:e}=h.useContext(iY);return"never"!==e&&("always"===e||t)},e.useResetProjection=function(){return h.useCallback(()=>{let t=sP.current;t&&t.resetTree()},[])},e.useScroll=ok,e.useSpring=function(t,e={}){let{isStatic:i}=h.useContext(iY),n=h.useRef(null),r=ox(G(t)?oj(t.get()):t),s=h.useRef(r.get()),o=h.useRef(()=>{}),a=()=>{let t=n.current;t&&0===t.time&&t.sample(V.delta),l(),n.current=e0({keyframes:[r.get(),s.current],velocity:r.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...e,onUpdate:o.current})},l=()=>{n.current&&n.current.stop()};return h.useInsertionEffect(()=>r.attach((t,e)=>i?e(t):(s.current=t,o.current=e,E.update(a),r.get()),l),[JSON.stringify(e)]),iH(()=>
9{if(G(t))return t.on("change",t=>r.set(oj(t)))},[r]),r},e.useTime=function(){let t=ox(0);return oL(e=>t.set(e)),t},e.useTransform=oP,e.useUnmountEffect=iz,e.useVelocity=function(t){let e=ox(t.getVelocity()),i=()=>{let n=t.getVelocity();e.set(n),n&&E.update(i)};return oV(t,"change",()=>{E.update(i,!1,!0)}),e},e.useViewportScroll=function(){return ok()},e.useWillChange=function(){return iF(()=>new oF("auto"))},e.visualElementStore=ni,e.wrap=i2}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.