PageSourceSearch

https://gpphanthiet.org/_next/static/chunks/bd1a647f.ff5cc71a41aea62b.js

js gpphanthiet.org collected 2026-10-03 00:32:21 UTC 137,399 bytes, 9 lines download raw bytes

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

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.