1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88576,t=>{"use strict";let e,i,r,n,s,o,a,l;var u,h=t.i(43476),d=t.i(71645),c=t.i(47167);let p=()=>{},m=()=>{};function f(t,e){-1===t.indexOf(e)&&t.push(e)}function g(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}c.default;let y=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],v=new Set([...y,"pathRotation"]),b=new Set(["width","height","top","left","right","bottom",...y]);class x{constructor(){this.subscriptions=[]}add(t){return f(this.subscriptions,t),()=>this.remove(t)}remove(t){g(this.subscriptions,t)}notify(t,e,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,i);else for(let n=0;n<r;n++){let r=this.subscriptions[n];r&&r(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let w=(t,e)=>e?1e3/e*t:0,k={},T=t=>t,A=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function S(t,e){let i=!1,r=!0,n={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,r=!1,n=!1,s=new Set,o={delta:0,timestamp:0,isProcessing:!1};function a(e){s.has(e)&&(i.add(e),t()),e(o)}let l={schedule:(t,n=!1,o=!1)=>{let a=o&&r?e:i;return n&&s.add(t),a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(o=t,r){n=!0;return}r=!0;let s=e;e=i,i=s,e.forEach(a),e.clear(),r=!1,n&&(n=!1,l.process(t))}};return l}(s),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:d,preRender:c,render:p,postRender:m}=o,f=()=>{let s=k.useManualTiming,o=s?n.timestamp:performance.now();i=!1,s||(n.delta=r?1e3/60:Math.max(Math.min(o-n.timestamp,40),1)),n.timestamp=o,n.isProcessing=!0,a.process(n),l.process(n),u.process(n),h.process(n),d.process(n),c.process(n),p.process(n),m.process(n),n.isProcessing=!1,i&&e&&(r=!1,t(f))};return{schedule:A.reduce((e,s)=>{let a=o[s];return e[s]=(e,s=!1,o=!1)=>(!i&&(i=!0,r=!0,n.isProcessing||t(f)),a.schedule(e,s,o)),e},{}),cancel:t=>{for(let e=0;e<A.length;e++)o[A[e]].cancel(t)},state:n,steps:o}}let{schedule:P,cancel:E,state:M,steps:C}=S("u">typeof requestAnimationFrame?requestAnimationFrame:T,!0);function V(){e=void 0}let R={now:()=>(void 0===e&&R.set(M.isProcessing||k.useManualTiming?M.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(V)}},D={current:void 0};class j{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=R.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=R.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){var i;return"change"===t?this.onChangeSubscribe(e):((i=this.events)[t]||(i[t]=new x)).add(e)}onChangeSubscribe(t){let{events:e}=this;return e.change||this.changeSubscriber?(e.change||(e.change=new x,e.change.add(this.changeSubscriber),this.changeSubscriber=void 0),e.change.add(t)):this.changeSubscriber=t,()=>{this.changeSubscriber===t?this.changeSubscriber=void 0:e.change?.remove(t),this.stopIfUnobserved()}}stopIfUnobserved(){P.read(()=>{this.changeSubscriber||this.events.change?.getSize()||this.stop()})}clearListeners(){for(let t in this.changeSubscriber=void 0,this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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()}dirty(){this.notifyChange()}notifyChange(){let{current:t,changeSubscriber:e}=this;e?e(t):this.events.change?.notify(t)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return D.current&&D.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=R.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return w(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{let i;this.hasAnimated=!0;let r=!1;i=t(()=>{r=!0,this.events.animationComplete?.notify(),this.animation===i&&this.clearAnimation(),e()}),r||(this.animation=i),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function L(t,e){return new j(t,e)}let B=t=>1e3*t,O=(...t)=>t.reduce((t,e)=>i=>e(t(i))),F=(t,e,i)=>i>e?e:i<t?t:i,I=t=>Math.round(1e5*t)/1e5,z=t=>e=>"string"==typeof e&&e.startsWith(t),$=z("--"),N=z("var(--"),U=t=>!!N(t)&&W.test(t.split("/*")[0].trim()),W=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Y(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let X={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},_={...X,transform:t=>F(0,1,t)},G={...X,default:1},H=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,K=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,q=(t,e)=>i=>!!("string"==typeof i&&K.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),Z=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[n,s,o,a]=r.match(H);return{[t]:parseFloat(n),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},Q={...X,transform:t=>Math.round(F(0,255,t))},J={test:q("rgb","red"),parse:Z("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+Q.transform(t)+", "+Q.transform(e)+", "+Q.transform(i)+", "+I(_.transform(r))+")"},tt={test:q("#"),parse:function(t){let e="",i="",r="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),r=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,r+=r,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(r,16),alph
1a:n?parseInt(n,16)/255:1}},transform:J.transform},te=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),ti=te("deg"),tr=te("%"),tn=te("px"),ts=te("vh"),to=te("vw"),ta={...tr,parse:t=>tr.parse(t)/100,transform:t=>tr.transform(100*t)},tl={test:q("hsl","hue"),parse:Z("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:r=1})=>"hsla("+Math.round(t)+", "+tr.transform(I(e))+", "+tr.transform(I(i))+", "+I(_.transform(r))+")"},tu={test:t=>J.test(t)||tt.test(t)||tl.test(t),parse:t=>J.test(t)?J.parse(t):tl.test(t)?tl.parse(t):tt.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?J.transform(t):tl.transform(t),getAnimatableNone:t=>{let e=tu.parse(t);return e.alpha=0,tu.transform(e)}},th=new RegExp(H.source),td=RegExp(/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu.source,"i"),tc="number",tp="color",tm=/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 tf(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},n=[],s=0,o=e.replace(tm,t=>(tu.test(t)?(r.color.push(s),n.push(tp),i.push(tu.parse(t))):t.startsWith("var(")?(r.var.push(s),n.push("var"),i.push(t)):(r.number.push(s),n.push(tc),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:r,types:n}}function tg({split:t,types:e}){let i=t.length;return r=>{let n="";for(let s=0;s<i;s++)if(n+=t[s],void 0!==r[s]){let t=e[s];t===tc?n+=I(r[s]):t===tp?n+=tu.transform(r[s]):n+=r[s]}return n}}let ty={test:function(t){return isNaN(t)&&"string"==typeof t&&(th.test(t)||td.test(t))},parse:function(t){return tf(t).values},createTransformer:function(t){return tg(tf(t))},getAnimatableNone:function(t){let e=tf(t);return tg(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:tu.test(t)?tu.getAnimatableNone(t):t)(t,e.split[i])))}};function tv(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 tb(t,e){return i=>i>0?e:t}let tx=(t,e,i)=>t+(e-t)*i,tw=(t,e,i)=>{let r=t*t,n=i*(e*e-r)+r;return n<0?0:Math.sqrt(n)},tk=[tt,J,tl];function tT(t){let e=tk.find(e=>e.test(t));if(!e)return p(`'${t}' is not an animatable color. Use the equivalent color code instead.`),!1;let i=e.parse(t);return e===tl&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let n=0,s=0,o=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,a=2*i-r;n=tv(a,r,t+1/3),s=tv(a,r,t),o=tv(a,r,t-1/3)}else n=s=o=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*o),alpha:r}}(i)),i}let tA=(t,e)=>{let i=tT(t),r=tT(e);if(!i||!r)return tb(t,e);let n={...i};return t=>(n.red=tw(i.red,r.red,t),n.green=tw(i.green,r.green,t),n.blue=tw(i.blue,r.blue,t),n.alpha=tx(i.alpha,r.alpha,t),J.transform(n))},tS=new Set(["none","hidden"]);function tP(t,e){return i=>tx(t,e,i)}function tE(t){return"number"==typeof t?tP:"string"==typeof t?U(t)?tb:tu.test(t)?tA:tV:Array.isArray(t)?tM:"object"==typeof t?tu.test(t)?tA:tC:tb}function tM(t,e){let i=[...t],r=i.length,n=t.map((t,i)=>tE(t)(t,e[i]));return t=>{for(let e=0;e<r;e++)i[e]=n[e](t);return i}}function tC(t,e){let i={...t,...e},r={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(r[n]=tE(t[n])(t[n],e[n]));return t=>{for(let e in r)i[e]=r[e](t);return i}}let tV=(t,e)=>{let i=ty.createTransformer(e),r=tf(t),n=tf(e);if(!(r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length))return p(`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.`),tb(t,e);if(tS.has(t)&&!n.values.length||tS.has(e)&&!r.values.length)return tS.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return O(tM(function(t,e){let i=[],r={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let s=e.types[n],o=t.indexes[s][r[s]],a=t.values[o]??0;i[n]=a,r[s]++}
1return i}(r,n),n.values),i)},tR=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function tD(t,e,i){if("number"==typeof t&&"number"==typeof e&&"number"==typeof i)return tx(t,e,i);if("string"==typeof t&&"string"==typeof e){let i=function(t,e){let i=tR.exec(t);if(!i)return;let r=tR.exec(e);if(!r||i[2]!==r[2])return;let n=i[2],s=parseFloat(i[1]),o=parseFloat(r[1]);return t=>I(tx(s,o,t))+n}(t,e);if(i)return i}return tE(t)(t,e)}let tj=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>P.update(e,t),stop:()=>E(e),now:()=>M.isProcessing?M.timestamp:R.now()}},tL=(t,e,i=10)=>{let r="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)r+=Math.round(1e4*t(e/(n-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`};function tB(t,e=50,i=2e4,r){let n=0,s=t.next(n);for(r?.push(s.value);!s.done&&n<i;)n+=e,s=t.next(n),r?.push(s.value);return n>=i?1/0:n}function tO(t,e=100,i){let r=i({...t,keyframes:[0,e]}),n=Math.min(tB(r),2e4);return{type:"keyframes",ease:t=>r.next(n*t).value/e,duration:n/1e3}}let tF=.01,tI=2,tz=.005,t$=.5;function tN(t,e){return t*Math.sqrt(1-e*e)}let tU=["duration","bounce"],tW=["stiffness","damping","mass"];function tY(t,e){return e.some(e=>void 0!==t[e])}function tX(t=.3,e=.3){let i,r,n,s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,o=s.keyframes[0],a=s.keyframes[s.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:d,duration:c,velocity:m,isResolvedFromDuration:f}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!tY(t,tW)&&tY(t,tU))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),r=i*i,n=2*F(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:1,stiffness:r,damping:n}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:r=1}){let n,s;p(B(10));let o=1-e;o=F(.05,1,o),t=F(.01,10,t/1e3),o<1?(n=e=>{let r=e*o,n=r*t;return .001-(r-i)/tN(e,o)*Math.exp(-n)},s=e=>{let r=e*o*t,s=o*o*e*e*t,a=Math.exp(-r),l=tN(e*e,o);return(r*i+i-s)*a*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(n,s,5/t);if(t=B(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=a*a*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...s,velocity:-((s.velocity||0)/1e3)}),g=h/(2*Math.sqrt(u*d)),y=Math.sqrt(u/d)/1e3,v=g*y,b={target:a,delta:a-o,velocity:m||0,restSpeed:0,restDelta:0},x=()=>{let t=5>Math.abs(b.delta);b.restSpeed=s.restSpeed||(t?tF:tI),b.restDelta=s.restDelta||(t?tz:t$)};if(x(),g<1){let t=tN(y,g),e={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};n=()=>{e.A=(b.velocity+v*b.delta)/t,e.sinC=v*e.A+b.delta*t,e.cosC=v*b.delta-e.A*t};let s=i=>{i!==e.t&&(e.t=i,e.env=Math.exp(-v*i),e.sin=Math.sin(t*i),e.cos=Math.cos(t*i))};i=t=>(s(t),b.target-e.env*(e.A*e.sin+b.delta*e.cos)),r=t=>(s(t),e.env*(e.sinC*e.sin+e.cosC*e.cos))}else if(1===g){i=t=>b.target-Math.exp(-y*t)*(b.delta+(b.velocity+y*b.delta)*t);let t={C:0};n=()=>{t.C=b.velocity+y*b.delta},r=e=>Math.exp(-y*e)*(y*t.C*e-b.velocity)}else{let t=y*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-v*e),r=Math.min(t*e,300);return b.target-i*((b.velocity+v*b.delta)*Math.sinh(r)+t*b.delta*Math.cosh(r))/t};let e={P:0,sinh:0,cosh:0};n=()=>{e.P=(b.velocity+v*b.delta)/t,e.sinh=v*e.P-b.delta*t,e.cosh=v*b.delta-e.P*t},r=i=>{let r=Math.exp(-v*i),n=Math.min(t*i,300);return r*(e.sinh*Math.sinh(n)+e.cosh*Math.cosh(n))}}n();let w=!tY(s,tW)&&tY(s,tU),k=f&&c||null,T={calculatedDuration:k,retarget:(t,e)=>{b.target=t[t.length-1],b.delta=b.target-t[0],b.velocity=w?0:-(e/1e3),s.restSpeed&&s.restDelta||x(),T.calculatedDuration=k,l.done=!1,n()},velocity:t=>B(r(t)),next:t=>{let e=i(t);return f?l.done=t>=c:l.done=Math.abs(B(r(t)))<=b.restSpeed&&Math.abs(b.target-e)<=b.restDelta,l.value=l.done?b.target:e,l},toString:()=>{let t=Math.min(tB(T),2e4),e=tL(e=>T.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return T}function t_({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===o?g:o(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/r),b=t=>{let e=v(t);m.done=Math.abs(e)<=u,m.value=m.done?y:y+e},x=t=>{let e;if((e=m.value)<a||e>l){var i;d=t,c=tX({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:-v(t)/r*1e3,damping:n,stiffness:s,restDelta:u,restSpeed:h})}};return x(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,b(t),x(t)),void 0!==d&&t>=d)?c.next(t-d):(e||b(t),m)}}}tX.applyToOptions=t=>{let e=tO(t,100,tX);return t.ease=e.ease,t.duration=B(e.duration),t.type="keyframes",t};let tG=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;
1function tH(t,e,i,r){return t===e&&i===r?T:n=>0===n||1===n?n:tG(function(t,e,i,r,n){let s,o,a=0;do(s=tG(o=e+(i-e)/2,r,n)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12)return o}(n,0,1,t,i),e,r)}let tK=tH(.42,0,1,1),tq=tH(0,0,.58,1),tZ=tH(.42,0,.58,1),tQ=t=>Array.isArray(t)&&"number"!=typeof t[0],tJ=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,t0=t=>e=>1-t(1-e),t1=tH(.33,1.53,.69,.99),t2=t0(t1),t5=tJ(t2),t3=t=>t>=1?1:(t*=2)<1?.5*t2(t):.5*(2-Math.pow(2,-10*(t-1))),t9=t=>1-Math.sin(Math.acos(t)),t4=t0(t9),t6=tJ(t9),t7=t=>Array.isArray(t)&&"number"==typeof t[0],t8={linear:T,easeIn:tK,easeInOut:tZ,easeOut:tq,circIn:t9,circInOut:t6,circOut:t4,backIn:t2,backInOut:t5,backOut:t1,anticipate:t3},et=t=>{if(t7(t)){m(t.length);let[e,i,r,n]=t;return tH(e,i,r,n)}return"string"==typeof t?(m(t8[t],`Invalid easing type '${t}'`),t8[t]):t},ee=(t,e,i)=>{let r=e-t;return r?(i-t)/r:1};function ei(t,e,{clamp:i=!0,ease:r,mixer:n}={}){let s=t.length;if(m(e.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 r=[],n=i||k.mix||tD,s=t.length-1;for(let i=0;i<s;i++){let s=n(t[i],t[i+1]);e&&(s=O(Array.isArray(e)?e[i]||T:e,s)),r.push(s)}return r}(e,r,n),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let r=0;if(l>1)for(;r<t.length-2&&!(i<t[r+1]);r++);let n=ee(t[r],t[r+1],i);return a[r](n)};return i?e=>u(F(t[0],t[s-1],e)):u}function er(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let n=ee(0,e,r);t.push(tx(i,1,n))}}function en(t){let e=[0];return er(e,t.length-1),e}function es({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){var n;let s=tQ(r)?r.map(et):et(r),o={done:!1,value:e[0]};if(2===e.length&&!Array.isArray(s)&&(!i||2!==i.length||0===i[0]&&1===i[1])){let[i,r]=e,n=i===r?void 0:(k.mix||tD)(i,r);return{calculatedDuration:t,next:e=>(o.value=n?n(s(t>0?F(0,1,e/t):1)):r,o.done=e>=t,o)}}let a=ei((n=i&&i.length===e.length?i:en(e),n.map(e=>e*t)),e,{ease:Array.isArray(s)?s:e.map(()=>s||tZ).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}let eo=t=>null!==t;function ea(t,{repeat:e,repeatType:i="loop"},r,n=1){let s=t.filter(eo),o=n<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==r?r:s[o]}let el={decay:t_,inertia:t_,tween:es,keyframes:es,spring:tX};function eu(t){"string"==typeof t.type&&(t.type=el[t.type])}function eh(t,e){return{kind:t,animation:e,timestamp:R.now(),frameTimestamp:M.timestamp,frameIsProcessing:M.isProcessing}}function ed(t,e,i){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...eh("animation-start",t),options:i?{...e,...i}:e})}catch{}}class ec{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(t=>{this._resolve=t})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(t,e){return this.finished.then(t,e)}}let ep=t=>t/100;class em extends ec{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==R.now()&&this.tick(R.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause(),ed(this,this.options)}initAnimation(){let{options:t}=this;eu(t);let{type:e=es,repeat:i=0,repeatDelay:r=0,repeatType:n,velocity:s=0}=t,{keyframes:o}=t,a=e||es;a!==es&&"number"!=typeof o[0]&&(this.mixKeyframes=O(ep,tD(o[0],o[1])),o=[0,100]);let l=a(o===t.keyframes?t:{...t,keyframes:o});"mirror"===n&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=tB(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(i+1)-r,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:r,totalDuration:n,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return r.next(0);let{delay:u=0,keyframes:h,repeat:d,repeatType:c,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let b=this.currentTime,x=r;if(d){let t=Math.min(this.currentTime,n)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===c?(i=1-i,p&&(i-=p/a)):"mirror"===c&&(x=o)),b=F(0,1,i)*a}v?(this.delayState.value=h[0],i=this.delayState):i=x.next(b),s&&!v&&(i.value=s(i.value));let{done:w}=i;v||null===l||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return k&&m!==t_&&(i.value=ea(h,this.options,g,this.speed)),f&&f(i.value),k&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=B(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}
1getGeneratorVelocity(){return function(t,e,i=0){var r,n;let s;return e<=0?i:t.velocity?t.velocity(e):(r=e=>t.next(e).value,n=t.next(e).value,w(n-r(s=Math.max(e-5,0)),e-s))}(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(R.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=tj,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(R.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let ef=new Set(["brightness","contrast","saturate","opacity"]);function eg(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(H)||[];if(!r)return t;let n=i.replace(r,""),s=+!!ef.has(e);return r!==i&&(s*=100),e+"("+s+n+")"}let ey=/\b([a-z-]*)\(.*?\)/gu,ev={...ty,getAnimatableNone:t=>{let e=t.match(ey);return e?e.map(eg).join(" "):t}},eb={...ty,getAnimatableNone:t=>{let e=ty.parse(t);return ty.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},ex={...X,transform:Math.round},ew={rotate:ti,pathRotation:ti,rotateX:ti,rotateY:ti,rotateZ:ti,scale:G,scaleX:G,scaleY:G,scaleZ:G,skew:ti,skewX:ti,skewY:ti,distance:tn,translateX:tn,translateY:tn,translateZ:tn,x:tn,y:tn,z:tn,perspective:tn,transformPerspective:tn,opacity:_,originX:ta,originY:ta,originZ:tn},ek={borderWidth:tn,borderTopWidth:tn,borderRightWidth:tn,borderBottomWidth:tn,borderLeftWidth:tn,borderRadius:tn,borderTopLeftRadius:tn,borderTopRightRadius:tn,borderBottomRightRadius:tn,borderBottomLeftRadius:tn,width:tn,maxWidth:tn,height:tn,maxHeight:tn,top:tn,right:tn,bottom:tn,left:tn,inset:tn,insetBlock:tn,insetBlockStart:tn,insetBlockEnd:tn,insetInline:tn,insetInlineStart:tn,insetInlineEnd:tn,padding:tn,paddingTop:tn,paddingRight:tn,paddingBottom:tn,paddingLeft:tn,paddingBlock:tn,paddingBlockStart:tn,paddingBlockEnd:tn,paddingInline:tn,paddingInlineStart:tn,paddingInlineEnd:tn,margin:tn,marginTop:tn,marginRight:tn,marginBottom:tn,marginLeft:tn,marginBlock:tn,marginBlockStart:tn,marginBlockEnd:tn,marginInline:tn,marginInlineStart:tn,marginInlineEnd:tn,fontSize:tn,backgroundPositionX:tn,backgroundPositionY:tn,...ew,zIndex:ex,fillOpacity:_,strokeOpacity:_,numOctaves:ex},eT={...ek,color:tu,backgroundColor:tu,outlineColor:tu,fill:tu,stroke:tu,borderColor:tu,borderTopColor:tu,borderRightColor:tu,borderBottomColor:tu,borderLeftColor:tu,filter:ev,WebkitFilter:ev,mask:eb,WebkitMask:eb},eA=t=>eT[t],eS=new Set([ev,eb]);function eP(t,e){let i=eA(t);return eS.has(i)||(i=ty),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let eE=t=>180*t/Math.PI,eM=t=>eV(eE(Math.atan2(t[1],t[0]))),eC={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:eM,rotateZ:eM,skewX:t=>eE(Math.atan(t[1])),skewY:t=>eE(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},eV=t=>((t%=360)<0&&(t+=360),t),eR=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),eD=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),ej={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:eR,scaleY:eD,scale:t=>(eR(t)+eD(t))/2,rotateX:t=>eV(eE(Math.atan2(t[6],t[5]))),rotateY:t=>eV(eE(Math.atan2(-t[2],t[0]))),rotateZ:eM,rotate:eM,skewX:t=>eE(Math.atan(t[4])),skewY:t=>eE(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function eL(t){return+!!t.includes("scale")}function eB(t,e){let i,r;if(!t||"none"===t)return eL(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=ej,r=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=eC,r=e}if(!r)return eL(e);let s=i[e],o=r[1].split(",").map(eF);return"function"==typeof s?s(o):o[s]}let eO=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return eB(i,e)};function eF(t){return parseFloat(t.trim())}let eI=t=>t===X||t===tn,ez=new Set(["x","y","z"]),e$=y.filter(t=>!ez.has(t)),eN=new Set(["bottom","right"]);function eU(t,e,i,r,n,s){let o=parseFloat(t);if(!isNaN(o))return o;let{min:a,max:l}=e()[i],u=l-a;return"border-box"===s?u:u-parseFloat(r)-parseFloat(n)}let eW={width:({width:t,paddingLeft:e="0",paddingRight:i="0",boxSizing:r},n)=>eU(t,n,"x",e,i,r),height:({height:t,paddingTop:e="0",paddingBottom:i="0",boxSizing:r},n)=>eU(t,n,"y",e,i,r),top:({top:t})=>parseFloat(t),left:({left:t})=>parseFloat(t),bottom:({top:t},e)=>{let{y:i}=e();return parseFloat(t)+(i.max-i.min)},right:({left:t},e)=>{let{x:i}=e();return parseFloat(t)+(i.max-i.min)},x:({transform:t})=>eB(t,"x"),y:({transform:t})=>eB(t,"y")};eW.translateX=eW.x,eW.translateY=eW.y;let eY=new Set,eX=!1,e_=!1,eG=!1;function eH(){if(e_){let t=[],e=new Set,i=new Set;eY.forEach(r=>{r.needsMeasurement&&(t.push(r),e.add(r.element),eN.has(r.name)&&i.add(r.element))});let r=new Map;
1i.forEach(t=>{let e,i=(e=[],e$.forEach(i=>{let r=t.getValue(i);if(void 0!==r){let t=r.get(),n=+!!i.startsWith("scale");if(t===n)return;e.push([i,t]),r.set(n)}}),e);i.length&&(r.set(t,i),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=r.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}e_=!1,eX=!1,eY.forEach(t=>t.complete(eG)),eY.clear()}function eK(){eY.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(e_=!0)})}class eq{constructor(t,e,i,r,n,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(eY.add(this),eX||(eX=!0,P.read(eK),P.resolveKeyframes(eH))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:r}=this;if(null===t[0]){let n=r?.get(),s=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let r=function(t,e,i){if("string"==typeof t){if(/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)||/^0[^.\s]+$/u.test(t))return parseFloat(t);if(!ty.test(t)&&ty.test(i))return eP(e,i)}return t??void 0}(i.readValue(e,s),e,s);void 0!==r&&(t[0]=r)}void 0===t[0]&&(t[0]=s),r&&void 0===n&&r.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),eY.delete(this)}cancel(){"scheduled"===this.state&&(eY.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}function eZ(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function eQ(t){let e;return()=>(void 0===e&&(e=t()),e)}let eJ={};function e0(t,e){let i=eQ(t);return()=>eJ[e]??i()}let e1=e0(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),e2=e0(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),e5=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,e3={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:e5([0,.65,.55,1]),circOut:e5([.55,0,1,.45]),backIn:e5([.31,.01,.66,-.59]),backOut:e5([.33,1.53,.69,.99])};function e9(t){return"function"==typeof t&&"applyToOptions"in t}class e4 extends ec{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:r,pseudoElement:n,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!n,this.allowFlatten=s,this.options=t,m(t.type);const l=function({type:t,...e}){return e9(t)&&e2()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:r=0,duration:n=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?e2()?tL(e,i):"ease-out":t7(e)?e5(e):Array.isArray(e)?e.map(e=>t(e,i)||e3.easeOut):e3[e]}(a,n);Array.isArray(d)&&(h.easing=d);let c={delay:r,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};return u&&(c.pseudoElement=u),t.animate(h,c)}(e,i,r,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=ea(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),eZ(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()},ed(this,t,l)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=B(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&e1())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),T):r(this)}}let e6={anticipate:t3,backInOut:t5,circInOut:t6};class e7 extends e4{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in e6&&(t.ease=e6[t.ease])}(t),eu(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:r,element:n,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new em({...s,autoplay:!1}),a=Math.max(10,R.now()-this.startTime),l=F(0,10,a-10),u=o.sample(a).value,{name:h}=this.options;n&&h&&eZ(n,h,u),e.setWithVelocity(o.sample(Math.max(0,a-l)).value,u,l),o.stop()}}let e8=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(ty.test(t)||"0"===t)&&!t.startsWith("url("));function it(t){t.duration=0,t.type="keyframes"}let ie=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ii=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,ir=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),is=eQ(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class io extends ec{constructor(t){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=R.now();const{keyframes:e,name:i,motionValue:r,element:n}=t;
1t.autoplay??(t.autoplay=!0),t.delay??(t.delay=0),t.type??(t.type="keyframes"),t.repeat??(t.repeat=0),t.repeatDelay??(t.repeatDelay=0),t.repeatType??(t.repeatType="loop");const s=n?.KeyframeResolver||eq;this.keyframeResolver=new s(e,(e,i,r)=>this.onKeyframesResolved(e,i,t,!r),i,r,n),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,r){let n;this.keyframeResolver=void 0;let{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:h}=i;this.resolvedAt=R.now();let d=!0;!function(t,e,i,r){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=e8(n,e),a=e8(s,e);return 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||e9(i))&&r:(o!==a&&p(`You are trying to animate ${e} from "${n}" to "${s}". "${o?s:n}" is not an animatable value.`),!1)}(t,s,o,a)&&(d=!1,(k.instantAnimations||!l)&&h?.(ea(t,i,e)),t[0]=t[t.length-1],it(i),i.repeat=0);let c=r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,{onComplete:m}=i;if(i.startTime??(i.startTime=c),i.finalKeyframe=e,i.keyframes=t,i.onComplete=()=>{m?.(),this.notifyFinished()},d&&!u&&function(t){let{motionValue:e,name:i,repeatDelay:r,repeatType:n,damping:s,type:o,keyframes:a}=t;if(!i||!(ie.has(i)||ir.has(i)))return!1;let l=e?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:h}=e.owner.getProps();return is()&&(ie.has(i)||ir.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&ii.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!h)&&!u&&!r&&"mirror"!==n&&0!==s&&"inertia"!==o}(i)){i.element=i.motionValue?.owner?.current;try{n=new e7(i)}catch{n=new em(i)}}else n=new em(i);this.pendingTimeline&&(this.stopTimeline=n.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=n}get finished(){return this._animation?this._animation.finished:super.finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eG=!0,eK(),eH(),eG=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function ia(t,e){if(t?.inherit&&e){let{inherit:i,...r}=t;return{...e,...r}}return t}function il(t,e){let i=t?.[e]??t?.default??t;return i!==t?ia(i,t):i}let iu={type:"spring",stiffness:500,damping:25,restSpeed:10},ih={type:"keyframes",duration:.8},id={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ic=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),ip=(t,e,i,r={},n,s)=>o=>{let a=il(r,t)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u-=B(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:n};!function(t){for(let e in t)if(!ic.has(e))return!0;return!1}(a)&&Object.assign(h,((t,{keyframes:e})=>e.length>2?ih:v.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:iu:id)(t,h)),h.duration&&(h.duration=B(h.duration)),h.repeatDelay&&(h.repeatDelay=B(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(it(h),0===h.delay&&(d=!0)),(k.instantAnimations||k.skipAnimations||n?.shouldSkipAnimations||a.skipAnimations)&&(d=!0,it(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,d&&!s&&void 0!==e.get()){let t=ea(h.keyframes,a);if(void 0!==t)return void P.update(()=>{h.onUpdate(t),h.onComplete()})}return a.isSync?new em(h):new io(h)},im=[];function ig(t){g(im,t)}function iy(t,e,i={},r){let n=[],{velocity:s}=i,o=i.reduceMotion??r?.shouldReduceMotion;for(let a in e){if("transition"===a||"transitionEnd"===a)continue;let l=e[a];if(void 0===l)continue;let u=t(a),h=u.get();if(void 0!==h&&!u.isAnimating()&&!Array.isArray(l)&&l===h&&!s){P.update(()=>u.set(l));continue}u.start(ip(a,u,l,o&&b.has(a)?{type:!1}:i,r)),u.animation&&n.push(u.animation)}let{transitionEnd:a}=e;if(a){let e=()=>P.update(()=>{for(let e in a)t(e).set(a[e])});n.length?Promise.all(n).then(e):e()}return n}function iv(t,e,i,r,n){return iy(r=>{let s=t.get(e,r);if(!s){let a;if(!n){var o;let n,s=i[r];a=(null===(n=Array.isArray(o=s)?o[0]:void 0)?void 0:n)??t.read(e,r,s),m(`"${r}" can't be read from the animated subject. Provide [from, to] keyframes.`)}t(e,{[r]:s=L(a,{owner:n})})}return s},i,r,n)}class ib{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t){let e=this.animations.map(e=>e.attachTimeline(t));return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return ix(this.animations,"duration")}get iterationDuration(){return ix(this.animations,"iterationDuration")}
1runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function ix(t,e){let i=0;for(let r=0;r<t.length;r++){let n=t[r][e];null!==n&&n>i&&(i=n)}return i}class iw extends ib{then(t,e){return this.finished.finally(t).then(()=>{})}}let ik=t=>!!(t&&t.getVelocity);function iT(t,e){var i;let r;return tQ(t)?t[i=t.length,((e-0)%(r=i-0)+r)%r+0]:t}function iA(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let r=document;e&&(r=e.current);let n=i?.[t]??r.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t).filter(t=>null!=t)}function iS(t){return"object"==typeof t&&!Array.isArray(t)}function iP(t,e,i,r){return null==t?[]:"string"==typeof t&&iS(e)?iA(t,i,r):t instanceof NodeList?Array.from(t):Array.isArray(t)?t.filter(t=>null!=t):[t]}function iE(t,e,i,r){return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?i:e.startsWith("<")?Math.max(0,i+parseFloat(e.slice(1))):r.get(e)??t}function iM(t,e){return t.at!==e.at?t.at-e.at:null===t.value?1:null===e.value?-1:0}function iC(t,e){return e.has(t)||e.set(t,{}),e.get(t)}function iV(t,e){return e[t]||(e[t]=[]),e[t]}let iR=t=>"number"==typeof t,iD=t=>t.every(iR);function ij(t,e,i){let r=ik(t)?t:L(t);return r.start(ip("",r,e,i)),r.animation}let iL=t=>"object"==typeof t&&null!==t;function iB(t){return iL(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}function iO(t){return iL(t)&&"ownerSVGElement"in t}let iF=(t,e)=>e&&"number"==typeof t?e.transform(t):t;class iI{constructor(t=P.render){this.step=t,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:t,numPending:e}=this;this.numPending=0;for(let i=0;i<e;i++)t[i]()}}set(t,e,i,r){if(this.values.get(t)?.onRemove(),r)for(let t of this.values.values())t.value===r&&(i=t.render);let n=()=>i&&this.schedule(i);void 0!==e.get()&&n();let s=e.on("change",n),o=()=>{s(),i&&!r&&this.cancel(i),this.values.delete(t)};return this.values.set(t,{value:e,render:r?void 0:i,onRemove:o}),o}get(t){return this.values.get(t)?.value}release(){let t=new Map;return this.values.forEach((e,i)=>{t.set(i,e.value),e.onRemove()}),this.transformKeys=this.transformValues=void 0,t}schedule(t){let{pending:e,numPending:i}=this;for(let r=0;r<i;r++)if(e[r]===t)return;i||this.step(this.flush),e[this.numPending++]=t}cancel(t){let{pending:e}=this;for(let i=0;i<this.numPending;i++)if(e[i]===t){e[i]=e[--this.numPending];return}}}function iz(t,{step:e,...i}={}){let r=new WeakMap;return Object.assign((i,n)=>{let s=r.get(i)??new iI(e);r.set(i,s);let o=[];for(let e in n){let r=n[e],a=t(i,s,e,r);o.push(a)}return()=>{for(let t of o)t()}},i,{get:(t,e)=>r.get(t)?.get(e),flush:t=>r.get(t)?.flush(),state:t=>r.get(t)})}let i$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iN={},iU=new Set(["originX","originY","originZ"]),iW=(t,e)=>iF(t.get(e)?.get(),ek[e]),iY=(t,e,i,r)=>{let n,s;if(v.has(i)){if("pathRotation"!==i){let t=e.transformKeys??(e.transformKeys=[]);(e.transformValues??(e.transformValues={}))[i]=r,t.includes(i)||(t.push(i),t.sort((t,e)=>y.indexOf(t)-y.indexOf(e)))}e.get("transform")||(iB(t)||e.get("transformBox")||iY(t,e,"transformBox",new j("fill-box")),e.set("transform",new j("none"),()=>{t.style.transform=function(t){let e="",{transformKeys:i=[],transformValues:r={}}=t;for(let t=0;t<i.length;t++){let n=i[t],s=r[n].get();void 0!==s&&("number"==typeof s?s:parseFloat(s))!==+!!n.startsWith("scale")&&(e+=(e&&" ")+(iN[n]||(iN[n]=(i$[n]||n)+"("))+iF(s,ew[n])+")")}let n=t.get("pathRotation")?.get();return n&&(e+=(e&&" ")+"rotate("+iF(n,ew.pathRotation)+")"),e||"none"}(e)})),s=e.get("transform")}else iU.has(i)?(e.get("transformOrigin")||e.set("transformOrigin",new j(""),()=>{let i=iW(e,"originX")??"50%",r=iW(e,"originY")??"50%",n=iW(e,"originZ")??0;t.style.transformOrigin=`${i} ${r} ${n}`}),s=e.get("transformOrigin")):n=i.startsWith("--")?()=>{t.style.setProperty(i,r.get())}:()=>{t.style[i]=iF(r.get(),ek[i])};return e.set(i,r,n,s)},iX=(t,e)=>{if(v.has(e))return eO(t,e);
1let i=getComputedStyle(t),r=e.startsWith("--")?i.getPropertyValue(e):i[e];return"string"==typeof r&&r.trim()||0},i_=iz(iY,{test:t=>iB(t)||iO(t),read:iX});function iG(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let iH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iK=y.length;function iq(t,e,i){let{style:r,vars:n,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(v.has(t)){o=!0;continue}if($(t)){n[t]=i;continue}{let e=iF(i,ek[t]);t.startsWith("origin")?(a=!0,s[t]=e):r[t]=e}}if(!e.transform&&(o||i?r.transform=function(t,e,i){let r="",n=!0;for(let s=0;s<iK;s++){let o=y[s],a=t[o];if(void 0===a)continue;let l=!0;if("number"==typeof a)l=a===+!!o.startsWith("scale");else{let t=parseFloat(a);l=o.startsWith("scale")?1===t:0===t}if(!l||i){let t=iF(a,ek[o]);if(!l){n=!1;let e=iH[o]||o;r+=`${e}(${t}) `}i&&(e[o]=t)}}let s=t.pathRotation;return s&&(n=!1,r+=`rotate(${iF(s,ek.pathRotation)}) `),r=r.trim(),i?r=i(e,n?"":r):n&&(r="none"),r}(e,t.transform,i):r.transform&&(r.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;r.transformOrigin=`${t} ${e} ${i}`}}let iZ={offset:"stroke-dashoffset",array:"stroke-dasharray"},iQ={offset:"strokeDashoffset",array:"strokeDasharray"},iJ=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function i0(t,{attrX:e,attrY:i,attrScale:r,pathLength:n,pathSpacing:s=1,pathOffset:o=0,...a},l,u,h){if(iq(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;for(let t of iJ)void 0!==d[t]&&(c[t]=d[t],delete d[t]);(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=h?.transformBox??"fill-box",delete d.transformBox),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==r&&(d.scale=r),void 0!==n&&function(t,e,i=1,r=0,n=!0){t.pathLength=1;let s=n?iZ:iQ;t[s.offset]=`${-r}`,t[s.array]=`${e} ${i}`}(d,n,s,o,!1)}let i1=(t,e,i,r,n=i)=>{let s=function(t,e){if(!(e in t))return!1;let i=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),e)||Object.getOwnPropertyDescriptor(t,e);return i&&"function"==typeof i.set}(t,n);!s&&(n.startsWith("data")||n.startsWith("aria"))&&(n=iG(n));let o=ek[i]||ek[n],a=s?()=>{t[n]=iF(r.get(),ek[i])}:()=>{let e=iF(r.get(),o);null==e?t.removeAttribute(n):t.setAttribute(n,String(e))};return e.set(i,r,a)},i2=iz((t,e,i,r)=>{if(i.startsWith("path"))return(P.render(()=>t.setAttribute("pathLength","1")),"pathOffset"===i)?e.set(i,r,()=>{let e=r.get();t.setAttribute("stroke-dashoffset",`${-e}`)}):(e.get("stroke-dasharray")||e.set("stroke-dasharray",new j("1 1"),()=>{let i=e.get("pathLength")?.get()??1,r=e.get("pathSpacing")?.get();t.setAttribute("stroke-dasharray",`${i} ${r??1-Number(i)}`)}),e.set(i,r,void 0,e.get("stroke-dasharray")));return i.startsWith("attr")?i1(t,e,i,r,i5(i)):(i in t.style?iY:i1)(t,e,i,r)},{test:iO,read:(t,e)=>v.has(e)?ek[e]?.default||0:iJ.includes(e)?iX(t,e):(e=i5(e),t.getAttribute(iG(e))??t.getAttribute(e)??void 0)});function i5(t){return t.replace(/^attr([A-Z])/,(t,e)=>e.toLowerCase())}function i3({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}function i9(t){return void 0===t||1===t}function i4({scale:t,scaleX:e,scaleY:i}){return!i9(t)||!i9(e)||!i9(i)}function i6(t){return i4(t)||i7(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function i7(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function i8(t,e,i,r,n){return void 0!==n&&(t=r+n*(t-r)),r+i*(t-r)+e}function rt(t,e=0,i=1,r,n){t.min=i8(t.min,e,i,r,n),t.max=i8(t.max,e,i,r,n)}function re(t,{x:e,y:i}){rt(t.x,e.translate,e.scale,e.originPoint),rt(t.y,i.translate,i.scale,i.originPoint)}function ri(t,e){t.min+=e,t.max+=e}function rr(t,e,i,r,n=.5){let s=tx(t.min,t.max,n);rt(t,e,i,s,r)}function rn(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function rs(t,e,i){let r=i??t;rr(t.x,rn(e.x,r.x),e.scaleX,e.scale,e.originX),rr(t.y,rn(e.y,r.y),e.scaleY,e.scale,e.originY)}function ro(t,e){return i3(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let ra=[X,tn,tr,ti,to,ts,{test:t=>"auto"===t,parse:t=>t}],rl=t=>ra.find(e=>e.test(t)),ru=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,rh=new Set(["auto","
1none","0"]);class rd extends eq{constructor(t,e,i,r,n){super(t,e,i,r,n,!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 r=t[i];if("string"==typeof r&&U(r=r.trim())){let n=function t(e,i,r=1){m(`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,s]=function(t){let e=ru.exec(t);if(!e)return[,];let[,i,r,n]=e;return[`--${i??r}`,n]}(e);if(!n)return;let o=window.getComputedStyle(i).getPropertyValue(n);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return U(s)?t(s,i,r+1):s}(r,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!b.has(i)||2!==t.length)return;let[r,n]=t;if("number"==typeof r&&"number"==typeof n)return;let s=rl(r),o=rl(n);if(Y(r)!==Y(n)&&eW[i]){this.needsMeasurement=!0;return}if(s!==o)if(eI(s)&&eI(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else eW[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let r,n=0;for(;n<t.length&&!r;){let e=t[n];"string"==typeof e&&!rh.has(e)&&function(t){let e=t.toString();return th.test(e)||td.test(e)}(e)&&(r=t[n]),n++}if(r&&i)for(let n of e)t[n]!==r&&(t[n]=eP(i,r))}(t,i,e)}measure(){let{element:t,name:e}=this;return eW[e](window.getComputedStyle(t.current),()=>t.measureViewportBox())}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),e[0]=this.measuredOrigin;let r=e[e.length-1];void 0!==r&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:t,unresolvedKeyframes:e}=this;if(!t||!t.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let i=e.length-1,r=e[i];e[i]=this.measure(),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let rc={};class rp{constructor(t,e){this.effect=t,this.current=e,this.KeyframeResolver=rd}getValue(t){return this.effect.get(this.current,t)}readValue(t,e){return this.effect.read(this.current,t,e)}render(){this.effect.flush(this.current)}measureViewportBox(){return ro(this.current)}getProps(){return rc}}let rm=new WeakMap,rf=iz((t,e,i,r)=>e.set(i,r,()=>{t[i]=r.get()}),{test:t=>iL(t),read:(t,e)=>{let i=t[e];return"string"==typeof i||"number"==typeof i?i:void 0}});function rg(t,e,i,r){let n=[];if(ik(t)||"number"==typeof t||"string"==typeof t&&!iS(e))n.push(ij(t,iS(e)&&e.default||e,i&&i.default||i));else{if(null==t)return n;let s=iP(t,e,r),o=s.length;m();for(let t=0;t<o;t++){let r=s[t],a={...i};"delay"in a&&"function"==typeof a.delay&&(a.delay=a.delay(t,o)),r instanceof Element?n.push(...function(t,e,i,r){if(r)return iy(t=>r.getValue(t,null),e,i,r);let n=iO(t)?i2:i_;return iv(n,t,e,i,new rp(n,t))}(r,e,a,rm.get(r))):n.push(...iv(function(t){return im.find(e=>e.test(t))}(r)??rf,r,e,a))}}return n}let ry=Object.assign(function(t={}){let{scope:e,reduceMotion:i,skipAnimations:r}=t;return function(t,n,s){var o;let a,l=[],u={};if(void 0!==i&&(u.reduceMotion=i),void 0!==r&&(u.skipAnimations=r),Array.isArray(t)&&t.some(Array.isArray)){let i,{onComplete:r,...s}=n||{};"function"==typeof r&&(a=r),o={...u,...s},i=[],(function(t,{defaultTransition:e={},...i}={},r,n){let s=e.duration||.3,o=new Map,a=new Map,l={},u=new Map,h=0,d=0,c=0;for(let i=0;i<t.length;i++){let o=t[i];if("string"==typeof o){u.set(o,d);continue}if(!Array.isArray(o)){u.set(o.name,iE(d,o.at,h,u));continue}let[y,v,b={}]=o;void 0!==b.at&&(d=iE(d,b.at,h,u));let x=0,w=(t,i,r,o=0,a=0)=>{var l;let u=Array.isArray(l=t)?l:[l],{delay:h=0,times:m=en(u),type:f=e.type||"keyframes",repeat:y,repeatType:v,repeatDelay:b=0,...w}=i,{ease:k=e.ease||"easeOut",duration:T}=i,A="function"==typeof h?h(o,a):h,S=u.length,P=e9(f)?f:n?.[f||"keyframes"];if(S<=2&&P){let t=100;2===S&&iD(u)&&(t=Math.abs(u[1]-u[0]));let i={...e,...w};void 0!==T&&(i.duration=B(T));let r=tO(i,t,P);k=r.ease,T=r.duration}T??(T=s);let E=d+A;1===m.length&&0===m[0]&&(m[1]=1);let M=m.length-u.length;if(M>0&&er(m,M),1===u.length&&u.unshift(null),y&&p(`Sequence segments can't repeat ${y} times — ignoring repeat option. Use a value below 20 or apply repeat at the sequence level instead.`),y&&y<20){let t=T>0?b/T:0;T=T*(y+1)+b*y;let e=[...u],i=[...m],r=[...k=Array.isArray(k)?[...k]:[k]],n="reverse"===v||"mirror"===v,s=e,o=r;n&&(s=[...e].reverse(),"reverse"===v&&(o=[...r].reverse().map(t=>"function"==typeof t?t0(t):t)));for(let a=0;a<y;a++){let l=n&&a%2==0,h=l?s:e,d=l?o:r,c=(a+1)*(1+t);t>0&&(u.push(u[u.length-1]),m.push(c),k.push("linear")),u.push(...h);for(let t=0;t<h.length;t++)m.push(i[t]+c),k.push(0===t?"linear":iT(d,t-1))}!function(t,e,i=0){let r=e+1+e*i;for(let e=0;e<t.length;e++)t[e]=t[e]/r}(m,y,t)}let C=E+T;!function(t,e,i,r,n,s){for(let e=0;e<t.length;e++){let i=t[e];i.at>n&&i.at<s&&(g(t,i),e--)}for(let o=0;o<e.length;o++)t.push({value:e[o],at:tx(n,s,r[o]),easing:iT(i,o)})}(r,u,k,m,E,C),x=Math.max(A+T,x),c=Math.max(C,c)};if(ik(y))w(v,b,iV("default",iC(y,a)));else{let t=iP(y,v,r,l),e=t.length;for(let i=0;i<e;i++){let r=iC(t[i],a);for(let t in v){var m,f;w(v[t],(m=b,f=t,m&&m[f]?{...m,...m[f]}:{...m}),iV(t,r),i,e)}}}h=d,d+=x}return a.forEach((t,r)=>{for(let n in t){let s=t[n];s.sort(iM);let a=[],l=[],u=[];for(let t=0;t<s.length;t++){let{at:e,value:i,easing:r}=s[t];a.push(i),l.push(ee(0,c,e)),u.push(r||"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(r)||o.set(r,{keyframes:{},transition:{}});let h=o.get(r);h.keyframes[n]=a;let{type:d,...p}=e;h.transition[n]={...p,duration:c,ease:u,times:l,...i}}}),o})(t.map(t=>{if(Array.isArray(t)&&"function"==typeof t[0]){let e=t[0],i=L(0);return(i.on("change",e),1===t.length)?[i,[0,1]]:2===t.length?[i,[0,1],t[1]]:[i,t[1],t[2]]}return t}),o,e,{spring:tX}).forEach(({keyframes:t,transition:e},r)=>{i.push(...rg(r,t,e))}),l=i}else{let{onComplete:i,...r}=s||{};"function"==typeof i&&(a=i),l=rg(t,n,{...u,...r},e)}let h=new iw(l);return a&&h.finished.then(a),e&&(e.animations.push(h),h.finished.then(()=>{g(e.animations,h)})),h}}(),{addEffect:function(t){m("function"==typeof t.test&&t.read),ig(t),im.unshift(t)},removeEffect:ig}),rv=()=>({translate:0,scale:1,origin:0,originPoint:0}),rb=()=>({x:rv(),y:rv()}),rx=()=>({min:0,max:0}),rw=()=>({x:rx(),y:rx()}),{schedule:rk}=S(queueMicrotask,!1);function rT(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function rA(t){return"string"==typeof t||Array.isArray(t)}let rS=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],rP=["initial",...rS];function rE(t){if(rT(t.animate))return!0;for(let e=0;e<rP.length;e++)if(rA(t[rP[e]]))return!0;return!1}function rM(t){return!!(rE(t)||t.variants)}let rC={current:null},rV={current:!1},rR="u">typeof window;function rD(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function rj(t,e,i,r){if("function"==typeof e){let[n,s]=rD(r);e=e(void 0!==i?i:t.custom,n,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,s]=rD(r);e=e(void 0!==i?i:t.custom,n,s)}return e}let rL=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rB={};class rO{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,skipAnimations:n,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=eq,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=R.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,P.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=n,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=rE(e),this.isVariantNode=rM(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in d){const e=d[t];void 0!==l[t]&&ik(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,rm.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)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(rV.current||function(){if(rV.current=!0,rR)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>rC.current=t.matches;t.addEventListener("change",e),e()}else rC.current=!1}(),this.shouldReduceMotion=rC.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),E(this.notifyUpdate),E(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&ie.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:r,times:n,ease:s,duration:o}=e.accelerate,a=new e4({element:this.current,name:t,keyframes:r,times:n,ease:s,duration:B(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let r=v.has(t);r&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&P.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),i&&i()})}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 rB){let e=rB[t];if(!e)continue;let{isEnabled:i,Feature:r}=e;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){let e=this.features[t];
1e.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):rw()}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<rL.length;e++){let i=rL[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(t,e,i){for(let r in e){let n=e[r],s=i[r];if(ik(n))t.addValue(r,n);else if(ik(s))t.addValue(r,L(n,{owner:t}));else if(s!==n)if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(r);t.addValue(r,L(void 0!==e?e:n,{owner:t}))}}for(let r in i)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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}addVariantChild(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=L(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let r,n;"string"==typeof i&&(r=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(n=i,/^0[^.\s]+$/u.test(n)))?i=parseFloat(i):"number"!=typeof i&&!ty.test(i)&&ty.test(e)&&(i=eP(t,e)),this.setBaseTarget(t,ik(i)?i.get():i)}return ik(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let r=rj(this.props,i,this.presenceContext?.custom);r&&(e=r[t])}if(i&&void 0!==e)return e;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||ik(r)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new x),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){rk.render(this.render)}}class rF extends rO{constructor(){super(...arguments),this.KeyframeResolver=rd}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[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;ik(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let rI=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"]),rz=t=>"string"==typeof t&&"svg"===t.toLowerCase();function r$(t,{style:e,vars:i},r,n){let s,o=t.style;for(s in e)o[s]=e[s];for(s in n?.applyProjectionStyles(o,r),i)o.setProperty(s,i[s])}let rN=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function rU(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let rW={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tn.test(t))return t;else t=parseFloat(t);let i=rU(t,e.target.x),r=rU(t,e.target.y);return`${i}% ${r}%`}},rY={borderRadius:{...rW,applyTo:[...rN]},borderTopLeftRadius:rW,borderTopRightRadius:rW,borderBottomLeftRadius:rW,borderBottomRightRadius:rW,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=ty.parse(t);if(r.length>5)return t;let n=ty.createTransformer(t),s=+("number"!=typeof r[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;r[0+s]/=o,r[1+s]/=a;let l=tx(o,a,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}};function rX(t,{layout:e,layoutId:i}){return v.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!rY[t]||"opacity"===t)}function r_(t,e,i){let r=t.style,n=e?.style,s={};if(!r)return s;for(let e in r)(ik(r[e])||n&&ik(n[e])||rX(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(s[e]=r[e]);return s}function rG(t,e,i){let r=r_(t,e,i);for(let i in t)(ik(t[i])||ik(e[i]))&&(r[-1!==y.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return r}class rH extends rF{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rw}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(v.has(e)){let t=eA(e);return t&&t.default||0}if(iJ.includes(e)){let i=getComputedStyle(t)[e];if("string"==typeof i&&i)return i.trim()}return e=rI.has(e)?e:iG(e),t.getAttribute(e)}
1scrapeMotionValuesFromProps(t,e,i){return rG(t,e,i)}build(t,e,i){i0(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,r){for(let i in r$(t,e,void 0,r),e.attrs)t.setAttribute(rI.has(i)?i:iG(i),e.attrs[i])}mount(t){this.isSVGTag=rz(t.tagName),super.mount(t)}}class rK extends rF{constructor(){super(...arguments),this.type="html",this.renderInstance=r$}mount(t){m(t.style),super.mount(t)}readValueFromInstance(t,e){if(v.has(e))return this.projection?.isProjecting?eL(e):eO(t,e);{let i=window.getComputedStyle(t),r=($(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return ro(t,e)}build(t,e,i){iq(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return r_(t,e,i)}}let rq=["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 rZ(t){if("string"!=typeof t||t.includes("-"));else if(rq.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let rQ=(0,d.createContext)({}),rJ=(0,d.createContext)({strict:!1}),r0=(0,d.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),r1=(0,d.createContext)({});function r2(t){return Array.isArray(t)?t.join(" "):t}let r5=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function r3(t,e,i){for(let r in e)ik(e[r])||rX(r,i)||(t[r]=e[r])}let r9=()=>({...r5(),attrs:{}}),r4=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","propagate","ignoreStrict","viewport"]);function r6(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||r4.has(t)}function r7(t){return ik(t)?t.get():t}let r8=(0,d.createContext)(null);function nt(t){let e=(0,d.useRef)(null);return null===e.current&&(e.current=t()),e.current}let ne=t=>(e,i)=>{let r=(0,d.useContext)(r1),n=(0,d.useContext)(r8),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,r,n){return{latestValues:function(t,e,i,r){let n={},s=r(t,{});for(let t in s)n[t]=r7(s[t]);let{initial:o,animate:a}=t,l=rE(t),u=rM(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,d=(h=h||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!rT(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let r=rj(t,e[i]);if(r){let{transitionEnd:t,transition:e,...i}=r;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&&(n[t]=e)}for(let e in t)n[e]=t[e]}}}return n}(i,r,n,t),renderState:e()}})(t,e,r,n);return i?s():nt(s)},ni=ne({scrapeMotionValuesFromProps:r_,createRenderState:r5}),nr=ne({scrapeMotionValuesFromProps:rG,createRenderState:r9}),nn={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ns=!1;function no(){return!function(){if(ns)return;let t={};for(let e in nn)t[e]={isEnabled:t=>nn[e].some(e=>!!t[e])};rB=t,ns=!0}(),rB}let na=Symbol.for("motionComponentSymbol"),nl="data-"+iG("framerAppearId"),nu=(0,d.createContext)({});function nh(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let nd="u">typeof window?d.useLayoutEffect:d.useEffect;function nc(t,{forwardMotionProps:e=!1,type:i}={},r,n){r&&function(t){let e=no();for(let i in t)e[i]={...e[i],...t[i]};rB=e}(r);let s=i?"svg"===i:rZ(t),o=s?nr:ni;function a(i,r){var a;
1let l,u,c,p={...(0,d.useContext)(r0),...i,layoutId:function({layoutId:t}){let e=(0,d.useContext)(rQ).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:m,isValidProp:f}=p,g=function(t){let{initial:e,animate:i}=function(t,e){if(rE(t)){let{initial:e,animate:i}=t;return{initial:!1===e||rA(e)?e:void 0,animate:rA(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,d.useContext)(r1));return(0,d.useMemo)(()=>({initial:e,animate:i}),[r2(e),r2(i)])}(i),y=o(i,m);if(!m&&"u">typeof window){(0,d.useContext)(rJ).strict;let e=function(t){let{drag:e,layout:i}=no();if(!e&&!i)return{};let r={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(p);l=e.MeasureLayout,g.visualElement=function(t,e,i,r,n,s){let{visualElement:o}=(0,d.useContext)(r1),a=(0,d.useContext)(rJ),l=(0,d.useContext)(r8),u=(0,d.useContext)(r0),h=u.reducedMotion,c=u.skipAnimations,p=(0,d.useRef)(null),m=(0,d.useRef)(!1);r=r||a.renderer,!p.current&&r&&(p.current=r(t,{visualState:e,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:h,skipAnimations:c,isSVG:s}),m.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let f=p.current,g=(0,d.useContext)(nu);f&&!f.projection&&n&&("html"===f.type||"svg"===f.type)&&function(t,e,i,r){let{layoutId:n,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:d}=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:n,layout:s,alwaysMeasureLayout:!!o||a&&nh(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(p.current,i,n,g);let y=(0,d.useRef)(!1);(0,d.useInsertionEffect)(()=>{f&&y.current&&f.update(i,l)});let v=i[nl],b=(0,d.useRef)(!!v&&"u">typeof window&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return nd(()=>{m.current=!0,f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),b.current&&f.animationState&&f.animationState.animateChanges())}),(0,d.useEffect)(()=>{f&&(!b.current&&f.animationState&&f.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),b.current=!1),f.enteringChildren=void 0)}),f}(t,y,p,n,e.ProjectionNode,s)}return(0,h.jsxs)(r1.Provider,{value:g,children:[l&&g.visualElement?(0,h.jsx)(l,{visualElement:g.visualElement,...p}):null,function(t,e,i,{latestValues:r},n,s=!1,o,a){let l=(o??rZ(t)?function(t,e,i,r){let n=(0,d.useMemo)(()=>{let i=r9();return i0(i,e,rz(r),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};r3(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i,r,n={},s=(i=t.style||{},r3(r={},i,t),Object.assign(r,function({transformTemplate:t},e){return(0,d.useMemo)(()=>{let i=r5();return iq(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),r);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n})(e,r,n,t),u=function(t,e,i,r){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&!ik(t[s])&&((s.startsWith("on")?!r6(s):r?.(s)??!r6(s))||!0===i&&r6(s)||!e&&!r6(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,s,a),h=t!==d.Fragment?{...u,...l,ref:i}:{},{children:c}=e,p=(0,d.useMemo)(()=>ik(c)?c.get():c,[c]);return(0,d.createElement)(t,{...h,children:p})}(t,i,(a=g.visualElement,u=(0,d.useRef)(r),(0,d.useInsertionEffect)(()=>{u.current=r}),c=(0,d.useRef)(null),(0,d.useCallback)(t=>{t&&y.onMount?.(t),a&&(t?a.mount(t):a.unmount());let e=u.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(c.current=i)}else c.current?(c.current(),c.current=null):e(t);else e&&(e.current=t)},[a])),y,m,e,s,f)]})}a.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let l=(0,d.forwardRef)(a);return l[na]=t,l}class np{constructor(t){this.isMounted=!1,this.node=t}update(){}}function nm(t,e,i){let r=t.getProps();return rj(r,e,void 0!==i?i:r.custom,t)}let nf=t=>Array.isArray(t);function ng(t,e){let i=t.getValue("willChange");if(ik(i)&&i.add)return i.add(e);if(!i&&k.WillChange){let i=new k.WillChange("auto");
1t.addValue("willChange",i),i.add(e)}}let ny="u">typeof window;function nv(t,e,{delay:i=0,transitionOverride:r,type:n}={}){let{transition:s,transitionEnd:o,...a}=e,l=t.getDefaultTransition();s=s?ia(s,l):l;let u=s?.reduceMotion,h=s?.skipAnimations;r&&(s=r);let d=[],c=n&&t.animationState&&t.animationState.getState()[n],p=s?.path;for(let e in p&&p.animateVisualElement(t,a,s,i,d),a){let r=t.getValue(e,t.latestValues[e]??null),n=a[e];if(void 0===n||c&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(c,e))continue;let o={delay:i,...il(s||{},e)};h&&(o.skipAnimations=!0);let l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(n)&&n===l&&!o.velocity){P.update(()=>r.set(n));continue}let p=!1;if(ny&&window.MotionHandoffAnimation){let i=t.props[nl];if(i){let t=window.MotionHandoffAnimation(i,e,P);null!==t&&(o.startTime=t,p=!0)}}ng(t,e);let m=u??t.shouldReduceMotion;r.start(ip(e,r,n,m&&b.has(e)?{type:!1}:o,t,p));let f=r.animation;f&&d.push(f)}if(o){let e=()=>P.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:r={},...n}=nm(t,e)||{};for(let e in n={...n,...i}){var s;let i=nf(s=n[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,L(i))}}(t,o)});d.length?Promise.all(d).then(e):e()}return d}function nb(t,e,i,r=0,n=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*r;return"function"==typeof i?i(s,o):1===n?s*r:a-s*r}function nx(t,e,i={}){let r=nm(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let s=r?()=>Promise.all(nv(t,r,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=n;return function(t,e,i=0,r=0,n=0,s=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nx(l,e,{...o,delay:i+("function"==typeof r?0:r)+nb(t.variantChildren,l,r,n,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,r,s,o,a,i)}:()=>Promise.resolve(),{when:a}=n;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}let nw=rP.length;function nk(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(e[r]!==t[r])return!1;return!0}let nT=[...rS].reverse(),nA=rS.length;function nS(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nP(){return{animate:nS(!0),whileInView:nS(),whileHover:nS(),whileTap:nS(),whileDrag:nS(),whileFocus:nS(),exit:nS()}}let nE=0;function nM(t){return[t("x"),t("y")]}function nC(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)}let nV={x:!1,y:!1};function nR(t){return t.max-t.min}function nD(t,e,i,r=.5){t.origin=r,t.originPoint=tx(e.min,e.max,t.origin),t.scale=nR(i)/nR(e),t.translate=tx(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 nj(t,e,i,r){nD(t.x,e.x,i.x,r?r.originX:void 0),nD(t.y,e.y,i.y,r?r.originY:void 0)}function nL(t,e,i,r=0){t.min=(r?tx(i.min,i.max,r):i.min)+e.min,t.max=t.min+nR(e)}function nB(t,e,i,r=0){let n=r?tx(i.min,i.max,r):i.min;t.min=e.min-n,t.max=t.min+nR(e)}function nO(t,e,i,r){nB(t.x,e.x,i.x,r?.x),nB(t.y,e.y,i.y,r?.y)}let nF=new WeakMap,nI=(t,e,i)=>(r,n)=>n&&n[0]?n[0][t+"Size"]:iO(r)&&"getBBox"in r?r.getBBox()[e]:r[i],nz=nI("inline","width","offsetWidth"),n$=nI("block","height","offsetHeight");function nN({target:t,borderBoxSize:e}){nF.get(t)?.forEach(i=>{i(t,{get width(){return nz(t,e)},get height(){return n$(t,e)}})})}function nU(t){t.forEach(nN)}let nW=new Set;function nY(t,e){let n;return"function"==typeof t?(nW.add(t),r||(r=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};nW.forEach(e=>e(t))},window.addEventListener("resize",r)),()=>{nW.delete(t),nW.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(nU)),(n=iA(t)).forEac
1h(t=>{let r=nF.get(t);r||(r=new Set,nF.set(t,r)),r.add(e),i?.observe(t)}),()=>{n.forEach(t=>{let r=nF.get(t);r?.delete(e),r?.size||i?.unobserve(t)})})}let nX=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),n_=new Set(["INPUT","SELECT","TEXTAREA"]),nG=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function nH(t){return{point:{x:t.pageX,y:t.pageY}}}function nK(t,e,i,r){return nC(t,e,t=>nG(t)&&i(t,nH(t)),r)}let nq=({current:t})=>t?t.ownerDocument.defaultView:null,nZ=(t,e)=>Math.abs(t-e),nQ=new Set(["auto","scroll"]);class nJ{constructor(t,e,{transformPagePoint:i,contextWindow:r=window,dragSnapToOrigin:n=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=n0(this.lastRawMoveEventInfo,this.transformPagePoint));let i=n2(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(nZ(t.x,e.x)**2+nZ(t.y,e.y)**2)>=this.distanceThreshold);if(!r&&!n)return;let{point:s}=i,{timestamp:o}=M;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=n0(e,this.transformPagePoint),P.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=n2("pointercancel"===t.type?this.lastMoveEventInfo:n0(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),r&&r(t,s)},!nG(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=r||window;const a=n0(nH(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=M;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=e;h&&h(t,n2(a,this.history));const d={passive:!0,capture:!0};this.removeListeners=O(nK(this.contextWindow,"pointermove",this.handlePointerMove,d),nK(this.contextWindow,"pointerup",this.handlePointerUp,d),nK(this.contextWindow,"pointercancel",this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(nQ.has(t.overflowX)||nQ.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,r=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:r.x-e.x,y:r.y-e.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,r),P.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),E(this.updatePoint)}}function n0(t,e){return e?{point:e(t.point)}:t}function n1(t,e){return{x:t.x-e.x,y:t.y-e.y}}function n2({point:t},e){return{point:t,delta:n1(t,n5(e)),offset:n1(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,r=n5(t);for(;e>=0&&(i=t[e],!(r.timestamp-i.timestamp>B(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&r.timestamp-i.timestamp>
12*B(.1)&&(i=t[1]);let n=(r.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let s={x:(r.x-i.x)/n,y:(r.y-i.y)/n};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e)}}function n5(t){return t[t.length-1]}function n3(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 n9(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,r]=[r,i]),{min:i,max:r}}function n4(t,e,i){return{min:n6(t,e),max:n6(t,i)}}function n6(t,e){return"number"==typeof t?t:t[e]||0}let n7=new WeakMap;class n8{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=rw(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let n=t=>{e&&this.snapToCursor(nH(t).point),this.stopAnimation()},s=(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nV[t])return null;else return nV[t]=!0,()=>{nV[t]=!1};return nV.x||nV.y?null:(nV.x=nV.y=!0,()=>{nV.x=nV.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nM(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tr.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];r&&(e=nR(r)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&P.update(()=>n(t,e),!1,!0),ng(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(r&&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&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&P.update(()=>s(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new nJ(t,{onSessionStart:n,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:nq(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,r=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!r||!i)return;let{velocity:s}=r;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&P.postRender(()=>o(i,r))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:r}=this.getProps();if(!i||!se(t,r,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},r){return void 0!==e&&t<e?t=r?tx(e,t,r.min):Math.max(t,e):void 0!==i&&t>i&&(t=r?tx(i,t,r.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&nh(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:r,right:n}){return{x:n3(t.x,i,n),y:n3(t.y,e,r)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:n4(t,"left","right"),y:n4(t,"top","bottom")}}(e),r!==this.constraints&&!nh(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&nM(t=>{var e,r;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],r=this.constraints[t],n={},void 0!==r.min&&(n.min=r.min-e.min),void 0!==r.max&&(n.max=r.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!nh(e))return!1;let r=e.current;m();let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;n.root&&(n.root.scroll=void 0,n.root.updateScroll());
1let s=function(t,e,i){let r=ro(t,i),{scroll:n}=e;return n&&(ri(r.x,n.offset.x),ri(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),o=(t=n.layout.layoutBox,{x:n9(t.x,s.x),y:n9(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=i3(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(nM(o=>{if(!se(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===s||s===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return ng(this.visualElement,t),i.start(ip(t,i,0,e,this.visualElement,!1))}stopAnimation(){nM(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){nM(e=>{let{drag:i}=this.getProps();if(!se(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[e],o=n.get()||0;n.set(t[e]-tx(i,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!nh(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};nM(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let s,o,a,l=e.get();r[t]=(i={min:l,max:l},n=this.constraints[t],s=.5,o=nR(i),(a=nR(n))>o?s=ee(n.min,n.max-o,i.min):o>a&&(s=ee(i.min,i.max-a,n.min)),F(0,1,s))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),nM(e=>{if(!se(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:s}=this.constraints[e];i.set(tx(n,s,r[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;n7.set(this.visualElement,this);let e=this.visualElement.current,i=nK(e,"pointerdown",t=>{let{drag:i,dragListener:r=!0}=this.getProps(),n=t.target,s=n!==e&&(n_.has(n.tagName)||!0===n.isContentEditable);i&&r&&!s&&this.start(t)}),r=()=>{var i,r,n;let s,o,{dragConstraints:a}=this.getProps();nh(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,r=a.current,s=nY(i,st(n=()=>this.scalePositionWithinConstraints())),o=nY(r,st(n)),t=()=>{s(),o()}))},{projection:n}=this.visualElement,s=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),P.read(r);let o=nC(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nM(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),s(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:o}}}function st(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function se(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let si=t=>(e,i)=>{t&&P.update(()=>t(e,i),!1,!0)},sr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var sn=d;let ss=!1;class so extends sn.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=t;n&&(e.group&&e.group.add(n),i&&i.register&&r&&i.register(n),ss&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),sr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:r,isPresent:n}=this.props,{projection:s}=i;return s&&(s.isPresent=n,t.layoutDependency!==e&&s.setOptions({...s.options,layoutDependency:e}),ss=!0,r||t.layoutDependency!==e||void 0===e||t.isPresent!==n?s.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?s.promote():s.relegate()||P.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),rk.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;ss=!0,r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sa(t){let[e,i]=function(t=!0){let e=(0,d.useContext)(r8);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:n}=e,s=(0,d.useId)();(0,d.useEffect)(()=>
1{if(t)return n(s)},[t]);let o=(0,d.useCallback)(()=>t&&r&&r(s),[s,r,t]);return!i&&r?[!1,o]:[!0]}(),r=(0,sn.useContext)(rQ);return(0,h.jsx)(so,{...t,layoutGroup:r,switchLayoutGroup:(0,sn.useContext)(nu),isPresent:e,safeToRemove:i})}let sl=rN.length,su=t=>"string"==typeof t?parseFloat(t):t,sh=t=>"number"==typeof t||tn.test(t);function sd(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let sc=sm(0,.5,t4),sp=sm(.5,.95,T);function sm(t,e,i){return r=>r<t?0:r>e?1:i(ee(t,e,r))}function sf(t,e){t.min=e.min,t.max=e.max}function sg(t,e){sf(t.x,e.x),sf(t.y,e.y)}function sy(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sv(t,e,i,r,n){return t-=e,t=r+1/i*(t-r),void 0!==n&&(t=r+1/n*(t-r)),t}function sb(t,e,[i,r,n],s,o){!function(t,e=0,i=1,r=.5,n,s=t,o=t){if(tr.test(e)&&(e=parseFloat(e),e=tx(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=tx(s.min,s.max,r);t===s&&(a-=e),t.min=sv(t.min,e,i,a,n),t.max=sv(t.max,e,i,a,n)}(t,e[i],e[r],e[n],e.scale,s,o)}let sx=["x","scaleX","originX"],sw=["y","scaleY","originY"];function sk(t,e,i,r){sb(t.x,e,sx,i?i.x:void 0,r?r.x:void 0),sb(t.y,e,sw,i?i.y:void 0,r?r.y:void 0)}function sT(t){return 0===t.translate&&1===t.scale}function sA(t){return sT(t.x)&&sT(t.y)}function sS(t,e){return t.min===e.min&&t.max===e.max}function sP(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function sE(t,e){return sP(t.x,e.x)&&sP(t.y,e.y)}function sM(t){return nR(t.x)/nR(t.y)}function sC(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sV{constructor(){this.members=[]}add(t){f(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let r=i.instance;r&&!1!==r.isConnected||i.snapshot||(g(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(g(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){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:r}=i.options,{layoutDependency:n}=t.options;(void 0===r||r!==n)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let sR=(t,e)=>t.depth-e.depth;class sD{constructor(){this.children=[],this.isDirty=!1}add(t){f(this.children,t),this.isDirty=!0}remove(t){g(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(sR),this.isDirty=!1,this.children.forEach(t)}}let sj=["","X","Y","Z"],sL=0;function sB(t,e,i,r){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),r&&(r[t]=0))}function sO({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=sL++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
1{this.projectionUpdateScheduled=!1,this.nodes.forEach(sz),this.nodes.forEach(sH),this.nodes.forEach(sK),this.nodes.forEach(s$)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=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 sD)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new x),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){if(this.instance)return;this.isSVG=iO(e)&&!(iO(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:r,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||i)&&(this.isLayoutDirty=!0),t){let i,r=0,n=()=>this.root.updateBlockedByResize=!1;P.read(()=>{r=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==r){let e,s;r=t,this.root.updateBlockedByResize=!0,i&&i(),e=R.now(),s=({timestamp:t})=>{let i=t-e;i>=250&&(E(s),n())},P.setup(s,!0),i=()=>E(s),sr.hasAnimatedSinceResize&&(sr.hasAnimatedSinceResize=!1,this.nodes.forEach(sG))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||n.getDefaultTransition()||s1,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!sE(this.targetLayout,r),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...il(s,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u,e.path)}else e||sG(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}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,this.eventHandlers.clear(),E(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(sq),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 r=i.props[nl];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",P,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(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,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEac
1h(sW),this.nodes.forEach(sU);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(sY);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sX),this.nodes.forEach(s_),this.nodes.forEach(sF),this.nodes.forEach(sI)):this.nodes.forEach(sY),this.clearAllSnapshots();let t=R.now();M.delta=F(0,1e3/60,t-M.timestamp),M.timestamp=t,M.isProcessing=!0,C.update.process(M),C.preRender.process(M),C.render.process(M),M.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,rk.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sN),this.sharedNodes.forEach(sZ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,P.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){P.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nR(this.snapshot.measuredBox.x)||nR(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=rw()),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&&this.instance){let e=r(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(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!sA(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;t&&this.instance&&(e||i6(this.latestValues)||s)&&(n(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),r=this.removeElementScroll(i);return t&&(r=this.removeTransform(r)),s3((e=r).x),s3(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return rw();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(s4))){let{scroll:t}=this.root;t&&(ri(e.x,t.offset.x),ri(e.y,t.offset.y))}return e}removeElementScroll(t){let e=rw();if(sg(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let r=this.path[i],{scroll:n,options:s}=r;r!==this.root&&n&&s.layoutScroll&&(n.wasRoot&&sg(e,t),ri(e.x,n.offset.x),ri(e.y,n.offset.y))}return e}applyTransform(t,e=!1,i){let r=i||rw();sg(r,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(ri(r.x,-i.scroll.offset.x),ri(r.y,-i.scroll.offset.y)),i6(i.latestValues)&&rs(r,i.latestValues,i.layout?.layoutBox)}return i6(this.latestValues)&&rs(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(t){let e=rw();sg(e,t);for(let t=0;t<this.path.length;t++){let i,r=this.path[t];i6(r.latestValues)&&(r.instance&&(i4(r.latestValues)&&r.updateSnapshot(),sg(i=rw(),r.measurePageBox())),sk(e,r.latestValues,r.snapshot?.layoutBox,i))}return i6(this.latestValues)&&sk(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!==M.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:n}=this.options;if(!this.layout||!(r||n))return;this.resolvedRelativeTargetAt=M.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=rw(),this.targetWithTransforms=rw()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,nL(o.x,a.x,l.x,u?.x),nL(o.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):sg(this.target,this.layout.layoutBox),re(this.target,this.targetDelta)):sg(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||i4(this.parent.latestValues)||i7(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rw(),this.relativeTargetOrigin=rw(),nO(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),sg(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===M.timestamp&&(i=!1),i)return;let{layout:r,layoutId:n}=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||n))return;sg(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,r=!1){let n,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(ri(t.x,-n.scroll.offset.x),ri(t.y,-n.scroll.offset.y)),s&&(e.x*=s.x.scale,e.y*=s.y.scale,re(t,s)),r&&i6(n.latestValues)&&rs(t,n.latestValues,n.layout?.layoutBox))}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,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=rw());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(sy(this.prevProjectionDelta.x,this.projectionDelta.x),sy(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nj(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&sC(this.projectionDelta.x,this.prevProjectionDelta.x)&&sC(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=rb(),this.projectionDelta=rb(),this.projectionDeltaWithTransform=rb()}setAnimationOrigin(t,e=!1,i){let r,n=this.snapshot,s=n?n.latestValues:{},o={...this.latestValues},a=rb();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=rw(),u=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),d=!h||h.members.length<=1,c=!!(u&&!d&&!0===this.options.crossfade&&!this.path.some(s0));this.animationProgress=0;let p=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,n=p?.(i);if(n?(a.x.translate=n.x,a.x.scale=tx(t.x.scale,1,i),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=n.y,a.y.scale=tx(t.y.scale,1,i),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(sQ(a.x,t.x,i),sQ(a.y,t.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,m,f,g,y,v;nO(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,g=this.relativeTargetOrigin,y=l,v=i,sJ(f.x,g.x,y.x,v),sJ(f.y,g.y,y.y,v),r&&(h=this.relativeTarget,m=r,sS(h.x,m.x)&&sS(h.y,m.y))&&(this.isProjectionDirty=!1),r||(r=rw()),sg(r,this.relativeTarget)}u&&(this.animationValues=o,function(t,e,i,r,n,s){n?(t.opacity=tx(0,i.opacity??1,sc(r)),t.opacityExit=tx(e.opacity??1,0,sp(r))):s&&(t.opacity=tx(e.opacity??1,i.opacity??1,r));for(let n=0;n<sl;n++){let s=rN[n],o=sd(e,s),a=sd(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||sh(o)===sh(a)?(t[s]=Math.max(tx(su(o),su(a),r),0),(tr.test(a)||tr.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=tx(e.rotate||0,i.rotate||0,r))}(o,s,this.latestValues,i,c,d)),n&&void 0!==n.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=n.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(E(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=P.update(()=>{sr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=L(0)),this.motionValue.jump(0,!1),this.currentAnimation=ij(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),function(t,e){let i=globalThis.__MOTION_INSPECT__;if(i)try{i({...eh("layout-animation-start",t),node:e})}catch{}}(this.currentAnimation,this),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,layout:i,latestValues:r}=t,{target:n}=t;
1if(e&&n&&i){if(this!==t&&this.layout&&i&&s9(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||rw();let e=nR(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let i=nR(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}sg(e,n),rs(e,r),nj(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new sV),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.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 r=this.getStack();r&&r.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 r={};i.z&&sB("z",t,r,this.animationValues);for(let e=0;e<sj.length;e++)sB(`rotate${sj[e]}`,t,r,this.animationValues),sB(`skew${sj[e]}`,t,r,this.animationValues);for(let e in t.render(),r)t.setStaticValue(e,r[e]),this.animationValues&&(this.animationValues[e]=r[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=r7(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=r7(e?.pointerEvents)||""),this.hasProjected&&!i6(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=r.animationValues||r.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let r="",n=t.x.translate/e.x,s=t.y.translate/e.y,o=i?.z||0;if((n||s||o)&&(r=`translate3d(${n}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,pathRotation:n,rotateX:s,rotateY:o,skewX:a,skewY:l}=i;t&&(r=`perspective(${t}px) ${r}`),e&&(r+=`rotate(${e}deg) `),n&&(r+=`rotate(${n}deg) `),s&&(r+=`rotateX(${s}deg) `),o&&(r+=`rotateY(${o}deg) `),a&&(r+=`skewX(${a}deg) `),l&&(r+=`skewY(${l}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(s=i(n,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,r.animationValues?t.opacity=r===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=r===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,rY){if(void 0===n[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=rY[e],l="none"===s?n[e]:i(n[e],r);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=r===this?r7(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(sU),this.root.sharedNodes.clear()}}}function sF(t){t.updateLayout()}function sI(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:r}=t.layout,{animationType:n}=t.options,s=e.source!==t.layout.source;if("size"===n)nM(t=>{let r=s?e.measuredBox[t]:e.layoutBox[t],n=nR(r);r.min=i[t].min,r.max=r.min+n});else if("x"===n||"y"===n){let t="x"===n?"y":"x";sf(s?e.measuredBox[t]:e.layoutBox[t],i[t])}else s9(n,e.layoutBox,i)&&nM(r=>{let n=s?e.measuredBox[r]:e.layoutBox[r],o=nR(i[r]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=rb();nj(o,i,e.layoutBox);let a=rb();s?nj(a,t.applyTransform(r,!0),e.measuredBox):nj(a,i,e.layoutBox);let l=!sA(o),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let o=t.options.layoutAnchor||void 0,a=rw();nO(a,e.layoutBox,n.layoutBox,o);let l=rw();nO(l,i,s.layoutBox,o),sE(a,l)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function sz(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function s$(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function sN(t){t.clearSnapshot()}function sU(t){t.clearMeasurements()}function sW(t){t.isLayoutDirty=!0,t.updateLayout()}function sY(t){t.isLayoutDirty=!1}function sX(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function s_(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function sG(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function sH(t){t.resolveTargetDelta()}function sK(t){t.calcProjection()}function sq(t){t.resetSkewAndRotation()}function sZ(t){t.removeLeadSnapshot()}function sQ(t,e,i){t.translate=tx(e.translate,0,i),t.scale=tx(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function sJ(t,e,i,r){t.min=tx(e.min,i.min,r),t.max=tx(e.max,i.max,r)}function s0(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let s1={duration:.45,ease:[.4,0,.1,1]},s2=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),s5=s2("applewebkit/")&&!s2("chrome/")?Math.round:T;function s3(t){t.min=s5(t.min),t.max=s5(t.max)}function s9(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(sM(e)-sM(i)))}function s4(t){return t!==t.root&&t.scroll?.wasRoot}let s6=sO({attachResizeListener:(t,e)=>nC(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),s7={current:void 0},s8=sO({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!s7.current){let t=new s6({});t.mount(window),t.setOptions({layoutScroll:!0}),s7.current=t}return s7.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function ot(t,e){let i=iA(t),r=new AbortController;return[i,{passive:!0,...e,signal:r.signal},()=>r.abort()]}function oe(t,e,i){let{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=r["onHover"+i];n&&P.postRender(()=>n(e,nH(e)))}let oi=(t,e)=>!!e&&(t===e||oi(t,e.parentElement)),or=new WeakSet;function on(t){return e=>{"Enter"===e.key&&t(e)}}function os(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function oo(t){return nG(t)&&!(nV.x||nV.y)}let oa=new WeakSet;function ol(t,e,i){let{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=r["onTap"+("End"===i?"":i)];n&&P.postRender(()=>n(e,nH(e)))}let ou=new WeakMap,oh=new WeakMap,od=t=>{let e=ou.get(t.target);e&&e(t)},oc=t=>{t.forEach(od)},op={some:0,all:1},om=function(t,e){if("u"<typeof Proxy)return nc;let i=new Map,r=(i,r)=>nc(i,r,t,e);return new Proxy((t,e)=>r(t,e),{get:(n,s)=>"create"===s?r:(i.has(s)||i.set(s,nc(s,void 0,t,e)),i.get(s))})}({animation:{Feature:class extends np{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>nx(t,e,i)));else if("string"==typeof e)r=nx(t,e,i);else{let n="function"==typeof e?nm(t,e,i.custom):e;r=Promise.all(nv(t,n,i))}return r.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nP(),r=!0,n=!1,s=e=>(i,r)=>{let n=nm(t,r,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...r}=n;i={...i,...r,...e}}return i};function o(o){let{props:a}=t,l=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<nw;t++){let r=rP[t],n=e.props[r];(rA(n)||!1===n)&&(i[r]=n)}return i}(t.parent)||{},u=[],h=new Set,d={},c=1/0;for(let e=0;e<nA;e++){var p,m;let f=nT[e],g=i[f],y=void 0!==a[f]?a[f]:l[f],v=rA(y),b=f===o?g.isActive:null;!1===b&&(c=e);let x=y===l[f]&&y!==a[f]&&v;if(x&&(r||n)&&t.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...d},!g.isActive&&null===b||!y&&!g.prevProp||rT(y)||"boolean"==typeof y)continue;if("exit"===f&&g.isActive&&!0!==b){g.prevResolvedValues&&(d={...d,...g.prevResolvedValues});continue}let w=(p=g.prevProp,"string"==typeof(m=y)?m!==p:!!Array.isArray(m)&&!nk(m,p)),k=w||f===o&&g.isActive&&!x&&v||e>c&&v,T=!1,A=Array.isArray(y)?y:[y],S=A.reduce(s(f),{});!1===b&&(S={});let{prevResolvedValues:P={}}=g,E={...P,...S},M=e=>{k=!0,h.has(e)&&(T=!0,h.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in E){let e=S[t],i=P[t];if(!d.hasOwnProperty(t))(nf(e)&&nf(i)?!nk(e,i)||w:e!==i)?null!=e?M(t):h.add(t):void 0!==e&&h.has(t)?M(t):g.protectedKeys[t]=!0}g.prevProp=y,g.prevResolvedValues=S,g.isActive&&(d={...d,...S}),(r||n)&&t.blockInitialAnimation&&(k=!1);let C=x&&w,V=!C||T;k&&V&&u.push(...A.map(e=>{let i={type:f};if("string"==typeof e&&(r||n)&&!C&&t.manuallyAnimateOnMount&&t.parent){let{parent:r}=t,n=nm(r,e);if(r.enteringChildren&&n){let{delayChildren:e}=n.transition||{};i.delay=nb(r.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=nm(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let r=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=r??null}),u.push({animation:e})}let f=!!u.length;return r&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),r=!1,n=!1,f?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,r){if(i[e].isActive===r)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,r)),i[e].isActive=r;let n=o(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nP(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();rT(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(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends np{constructor(){super(...arguments),this.id=nE++,this.isExitComplete=!1}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;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let i=nm(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...r}=i;for(let t in r)this.node.getValue(t)?.jump(r[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends np{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:o}=i,a={root:r?r.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:op[s]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),n=e?i:r;n&&n(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;oh.has(i)||oh.set(i,{});let r=oh.get(i),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(oc,{root:t,...e})),r[n]}(a),ou.set(t,l),e.observe(t),()=>{ou.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends np{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[r,n,s]=ot(t,i),o=t=>{let r=t.currentTarget;if(!oo(t)||oa.has(t))return;or.add(r),i.stopPropagation&&oa.add(t);let s=e(r,t),o={...n,capture:!0},a=(t,e)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",u,o),or.has(r)&&or.delete(r),oo(t)&&"function"==typeof s&&s(t,{success:e})},l=t=>{a(t,r===window||r===document||i.useGlobalTarget||oi(r,t.target))},u=t=>{a(t,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",u,o)};return r.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,n),iB(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let r=on(()=>{if(or.has(i))return;os(i,"down");let t=on(()=>{os(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>os(i,"cancel"),e)});i.addEventListener("keydown",r,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),e)})(t,n)),nX.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(ol(this.node,e,"Start"),(t,{success:e})=>ol(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends np{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=O(nC(this.node.current,"focus",()=>this.onFocus()),nC(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends np{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,n,s]=ot(t,i);return r.forEach(t=>{let i,r=!1,s=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{r=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),s&&(s=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(r){s=!0;return}o(t)}};t.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||nV.x||nV.y)return;s=!1;let o=e(t,r);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,n))},n),t.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",a,n)},n)}),s}(t,(t,e)=>(oe(this.node,e,"Start"),t=>oe(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends np{constructor(){super(...arguments),this.removePointerDownListener=T}onPointerDown(t){this.session=new nJ(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nq(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:si(t),onStart:si(e),onMove:si(i),onEnd:(t,e)=>{delete this.session,r&&P.postRender(()=>r(t,e))}}}mount(){this.removePointerDownListener=nK(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 np{constructor(t){super(t),this.removeGroupControls=T,this.removeListeners=T,this.controls=new n8(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||T}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:s8,MeasureLayout:sa},layout:{ProjectionNode:s8,MeasureLayout:sa}},(t,e)=>e.isSVG??rZ(t)?new rH(e):new rK(e,{allowProjection:t!==d.Fragment}));function of(t){let e=nt(()=>L(t)),{isStatic:i}
1=(0,d.useContext)(r0);if(i){let[,i]=(0,d.useState)(t);(0,d.useEffect)(()=>e.on("change",i),[])}return e}function og(t,e){let i=of(e()),r=()=>i.set(e());return r(),nd(()=>{let e=()=>P.preRender(r,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),E(r)}}),i}function oy(t,e,i,r){if("function"==typeof t){let e;return D.current=[],t(),e=og(D.current,t),D.current=void 0,e}if(void 0!==i&&!Array.isArray(i)&&"function"!=typeof e){var n=t,s=e,o=i,a=r;let l=nt(()=>Object.keys(o)),u=nt(()=>({}));for(let t of l)u[t]=oy(n,s,o[t],a);return u}let l="function"==typeof e?e:function(...t){let e=!Array.isArray(t[0]),i=e?0:-1,r=t[0+i],n=ei(t[1+i],t[2+i],t[3+i]);return e?n(r):n}(e,i,r),u=Array.isArray(t)?ov(t,l):ov([t],([t])=>l(t)),h=Array.isArray(t)?void 0:t.accelerate;return h&&!h.isTransformed&&"function"!=typeof e&&Array.isArray(i)&&r?.clamp!==!1&&(u.accelerate={...h,times:e,keyframes:i,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),u}function ov(t,e){let i=nt(()=>[]);return og(t,()=>{i.length=0;let r=t.length;for(let e=0;e<r;e++)i[e]=t[e].get();return e(i)})}let ob=(t=new Map,e=null,i)=>({nextPart:t,validators:e,classGroupId:i}),ox=[],ow=(t,e,i)=>{if(0==t.length-e)return i.classGroupId;let r=t[e],n=i.nextPart.get(r);if(n){let i=ow(t,e+1,n);if(i)return i}let s=i.validators;if(null===s)return;let o=0===e?t.join("-"):t.slice(e).join("-"),a=s.length;for(let t=0;t<a;t++){let e=s[t];if(e.validator(o))return e.classGroupId}},ok=(t,e)=>{let i=ob();for(let r in t)oT(t[r],i,r,e);return i},oT=(t,e,i,r)=>{let n=t.length;for(let s=0;s<n;s++)oA(t[s],e,i,r)},oA=(t,e,i,r)=>{"string"==typeof t?oS(t,e,i):"function"==typeof t?oP(t,e,i,r):oE(t,e,i,r)},oS=(t,e,i)=>{(""===t?e:oM(e,t)).classGroupId=i},oP=(t,e,i,r)=>{oC(t)?oT(t(r),e,i,r):(null===e.validators&&(e.validators=[]),e.validators.push({classGroupId:i,validator:t}))},oE=(t,e,i,r)=>{let n=Object.entries(t),s=n.length;for(let t=0;t<s;t++){let[s,o]=n[t];oT(o,oM(e,s),i,r)}},oM=(t,e)=>{let i=t,r=e.split("-"),n=r.length;for(let t=0;t<n;t++){let e=r[t],n=i.nextPart.get(e);n||(n=ob(),i.nextPart.set(e,n)),i=n}return i},oC=t=>"isThemeGetter"in t&&!0===t.isThemeGetter,oV=[],oR=(t,e,i,r,n)=>({modifiers:t,hasImportantModifier:e,baseClassName:i,maybePostfixModifierPosition:r,isExternal:n}),oD=/\s+/,oj=t=>{let e;if("string"==typeof t)return t;let i="";for(let r=0;r<t.length;r++)t[r]&&(e=oj(t[r]))&&(i&&(i+=" "),i+=e);return i},oL=[],oB=t=>{let e=e=>e[t]||oL;return e.isThemeGetter=!0,e},oO=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,oF=/^\((?:(\w[\w-]*):)?(.+)\)$/i,oI=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,oz=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,o$=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,oN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,oU=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oW=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oY=t=>oI.test(t),oX=t=>!!t&&!Number.isNaN(Number(t)),o_=t=>!!t&&Number.isInteger(Number(t)),oG=t=>t.endsWith("%")&&oX(t.slice(0,-1)),oH=t=>oz.test(t),oK=()=>!0,oq=t=>o$.test(t)&&!oN.test(t),oZ=()=>!1,oQ=t=>oU.test(t),oJ=t=>oW.test(t),o0=t=>!o2(t)&&!at(t),o1=t=>al(t,ac,oZ),o2=t=>oO.test(t),o5=t=>al(t,ap,oq),o3=t=>al(t,am,oX),o9=t=>al(t,ag,oK),o4=t=>al(t,af,oZ),o6=t=>al(t,ah,oZ),o7=t=>al(t,ad,oJ),o8=t=>al(t,ay,oQ),at=t=>oF.test(t),ae=t=>au(t,ap),ai=t=>au(t,af),ar=t=>au(t,ah),an=t=>au(t,ac),as=t=>au(t,ad),ao=t=>au(t,ay,!0),aa=t=>au(t,ag,!0),al=(t,e,i)=>{let r=oO.exec(t);return!!r&&(r[1]?e(r[1]):i(r[2]))},au=(t,e,i=!1)=>{let r=oF.exec(t);return!!r&&(r[1]?e(r[1]):i)},ah=t=>"position"===t||"percentage"===t,ad=t=>"image"===t||"url"===t,ac=t=>"length"===t||"size"===t||"bg-size"===t,ap=t=>"length"===t,am=t=>"number"===t,af=t=>"family-name"===t,ag=t=>"number"===t||"weight"===t,ay=t=>"shadow"===t,av=(u=()=>{let t=oB("color"),e=oB("font"),i=oB("text"),r=oB("font-weight"),n=oB("tracking"),s=oB("leading"),o=oB("breakpoint"),a=oB("container"),l=oB("spacing"),u=oB("radius"),h=oB("shadow"),d=oB("inset-shadow"),c=oB("text-shadow"),p=oB("drop-shadow"),m=oB("blur"),f=oB("perspective"),g=oB("aspect"),y=oB("ease"),v=oB("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...x(),at,o2],k=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],A=()=>[at,o2,l],S=()=>[oY,"full","auto",...A()],P=()=>[o_,"none","subgrid",at,o2],E=()=>["auto",{span:["full",o_,at,o2]},o_,at,o2],M=()=>[o_,"auto",at,o2],C=()=>["auto","min","max","fr",at,o2],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],R=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...A()],j=()=>[oY,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],L=()=>[oY,"screen","full","dvw","lvw","svw","min","max","fit",...A()],B=()=>[oY,"screen","full","lh","dvh","lvh","svh","min","max","fit",...A()],O=()=>[t,at,o2],F=()=>[...x(),ar,o6,{position:[at,o2]}],I=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z=()=>["auto","cover","contain",an,o1,{size:[at,o2]}],$=()=>[oG,ae,o5],N=()=>["","none","full",u,at,o2],U=()=>["",oX,ae,o5],W=()=>["solid","dashed","dotted","double"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>[oX,oG,ar,o6],_=()=>["","none",m,at,o2],G=()=>["none",oX,at,o2],H=()=>["none",oX,at,o2],K=()=>[oX,at,o2],q=()=>[oY,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[oH],breakpoint:[oH],color:[oK],container:[oH],"drop-shadow":[oH],ease:["in","out","in-out"],font:[o0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[oH],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[oH],shadow:[oH],spacing:["px",oX],text:[oH],"text-shadow":[oH],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",oY,o2,at,g]}
vendor: 6,090 bytes, line 1
1],container:["container"],columns:[{columns:[oX,o2,at,a]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{"inset-s":S(),start:S()}],end:[{"inset-e":S(),end:S()}],"inset-bs":[{"inset-bs":S()}],"inset-be":[{"inset-be":S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:["visible","invisible","collapse"],z:[{z:[o_,"auto",at,o2]}],basis:[{basis:[oY,"full","auto",a,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[oX,oY,"auto","initial","none",o2]}],grow:[{grow:["",oX,at,o2]}],shrink:[{shrink:["",oX,at,o2]}],order:[{order:[o_,"first","last","none",at,o2]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...R(),"normal"]}],"justify-self":[{"justify-self":["auto",...R()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...R(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...R(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...R(),"baseline"]}],"place-self":[{"place-self":["auto",...R()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pbs:[{pbs:A()}],pbe:[{pbe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],"inline-size":[{inline:["auto",...L()]}],"min-inline-size":[{"min-inline":["auto",...L()]}],"max-inline-size":[{"max-inline":["none",...L()]}],"block-size":[{block:["auto",...B()]}],"min-block-size":[{"min-block":["auto",...B()]}],"max-block-size":[{"max-block":["none",...B()]}],w:[{w:[a,"screen",...j()]}],"min-w":[{"min-w":[a,"screen","none",...j()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",i,ae,o5]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,aa,o9]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",oG,o2]}],"font-family":[{font:[ai,o4,e]}],"font-features":[{"font-features":[o2]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,at,o2]}],"line-clamp":[{"line-clamp":[oX,"none",at,o3]}],leading:[{leading:[s,...A()]}],"list-image":[{"list-image":["none",at,o2]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",at,o2]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[oX,"from-font","auto",at,o5]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[oX,"auto",at,o2]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",at,o2]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",at,o2]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:I()}],"bg-size":[{bg:z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},o_,at,o2],radial:["",at,o2],conic:[o_,at,o2]},as,o7]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:$()}
vendor: 7,330 bytes, line 1
1],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-bs":[{"border-bs":U()}],"border-w-be":[{"border-be":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-bs":[{"border-bs":O()}],"border-color-be":[{"border-be":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[oX,at,o2]}],"outline-w":[{outline:["",oX,ae,o5]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",h,ao,o8]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",d,ao,o8]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[oX,o5]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",c,ao,o8]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[oX,at,o2]}],"mix-blend":[{"mix-blend":[...Y(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Y()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[oX]}],"mask-image-linear-from-pos":[{"mask-linear-from":X()}],"mask-image-linear-to-pos":[{"mask-linear-to":X()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":X()}],"mask-image-t-to-pos":[{"mask-t-to":X()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":X()}],"mask-image-r-to-pos":[{"mask-r-to":X()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":X()}],"mask-image-b-to-pos":[{"mask-b-to":X()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":X()}],"mask-image-l-to-pos":[{"mask-l-to":X()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":X()}],"mask-image-x-to-pos":[{"mask-x-to":X()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":X()}],"mask-image-y-to-pos":[{"mask-y-to":X()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[at,o2]}],"mask-image-radial-from-pos":[{"mask-radial-from":X()}],"mask-image-radial-to-pos":[{"mask-radial-to":X()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[oX]}],"mask-image-conic-from-pos":[{"mask-conic-from":X()}],"mask-image-conic-to-pos":[{"mask-conic-to":X()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:I()}],"mask-size":[{mask:z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",at,o2]}],filter:[{filter:["","none",at,o2]}],blur:[{blur:_()}],brightness:[{brightness:[oX,at,o2]}],contrast:[{contrast:[oX,at,o2]}],"drop-shadow":[{"drop-shadow":["","none",p,ao,o8]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",oX,at,o2]}],"hue-rotate":[{"hue-rotate":[oX,at,o2]}],invert:[{invert:["",oX,at,o2]}],saturate:[{saturate:[oX,at,o2]}],sepia:[{sepia:["",oX,at,o2]}],"backdrop-filter":[{"backdrop-filter":["","none",at,o2]}],"backdrop-blur":[{"backdrop-blur":_()}],"backdrop-brightness":[{"backdrop-brightness":[oX,at,o2]}],"backdrop-contrast":[{"backdrop-contrast":[oX,at,o2]}],"backdrop-grayscale":[{"backdrop-grayscale":["",oX,at,o2]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[oX,at,o2]}],"backdrop-invert":[{"backdrop-invert":["",oX,at,o2]}],"backdrop-opacity":[{"backdrop-opacity":[oX,at,o2]}],"backdrop-saturate":[{"backdrop-saturate":[oX,at,o2]}],"backdrop-sepia":[{"backdrop-sepia":["",oX,at,o2]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",at,o2]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[oX,"initial",at,o2]}],ease:[{ease:["linear","initial",y,at,o2]}],delay:[{delay:[oX,at,o2]}],animate:[{animate:["none",v,at,o2]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,at,o2]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:G()}],"rotate-x":[{"rotate-x":G()}],"rotate-y":[{"rotate-y":G()}],"rotate-z":[{"rotate-z":G()}],scale:[{scale:H()}],"scale-x":[{"scale-x":H()}],"scale-y":[{"scale-y":H()}],"scale-z":[{"scale-z":H()}],"scale-3d":["scale-3d"],skew:[{skew:K()}],"skew-x":[{"skew-x":K()}],"skew-y":[{"skew-y":K()}],transform:[{transform:[at,o2,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:q()}],"translate-x":[{"translate-x":q()}],"translate-y":[{"translate-y":q()}],"translate-z":[{"translate-z":q()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}
1],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",at,o2]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mbs":[{"scroll-mbs":A()}],"scroll-mbe":[{"scroll-mbe":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pbs":[{"scroll-pbs":A()}],"scroll-pbe":[{"scroll-pbe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",at,o2]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[oX,ae,o5,o3]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},l=t=>{let e=s(t);if(e)return e;let i=((t,e)=>{let{parseClassName:i,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:s}=e,o=[],a=t.trim().split(oD),l="";for(let t=a.length-1;t>=0;t-=1){let e=a[t],{isExternal:u,modifiers:h,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:p}=i(e);if(u){l=e+(l.length>0?" "+l:l);continue}let m=!!p,f=r(m?c.substring(0,p):c);if(!f){if(!m||!(f=r(c))){l=e+(l.length>0?" "+l:l);continue}m=!1}let g=0===h.length?"":1===h.length?h[0]:s(h).join(":"),y=d?g+"!":g,v=y+f;if(o.indexOf(v)>-1)continue;o.push(v);let b=n(f,m);for(let t=0;t<b.length;++t){let e=b[t];o.push(y+e)}l=e+(l.length>0?" "+l:l)}return l})(t,n);return o(t,i),i},a=t=>{var e;let i;return s=(n={cache:(t=>{if(t<1)return{get:()=>void 0,set:()=>{}};let e=0,i=Object.create(null),r=Object.create(null),n=(n,s)=>{i[n]=s,++e>t&&(e=0,r=i,i=Object.create(null))};return{get(t){let e=i[t];return void 0!==e?e:void 0!==(e=r[t])?(n(t,e),e):void 0},set(t,e){t in i?i[t]=e:n(t,e)}}})((e=[].reduce((t,e)=>
1e(t),u())).cacheSize),parseClassName:(t=>{let{prefix:e,experimentalParseClassName:i}=t,r=t=>{let e,i=[],r=0,n=0,s=0,o=t.length;for(let a=0;a<o;a++){let o=t[a];if(0===r&&0===n){if(":"===o){i.push(t.slice(s,a)),s=a+1;continue}if("/"===o){e=a;continue}}"["===o?r++:"]"===o?r--:"("===o?n++:")"===o&&n--}let a=0===i.length?t:t.slice(s),l=a,u=!1;return a.endsWith("!")?(l=a.slice(0,-1),u=!0):a.startsWith("!")&&(l=a.slice(1),u=!0),oR(i,u,l,e&&e>s?e-s:void 0)};if(e){let t=e+":",i=r;r=e=>e.startsWith(t)?i(e.slice(t.length)):oR(oV,!1,e,void 0,!0)}if(i){let t=r;r=e=>i({className:e,parseClassName:t})}return r})(e),sortModifiers:(i=new Map,e.orderSensitiveModifiers.forEach((t,e)=>{i.set(t,1e6+e)}),t=>{let e=[],r=[];for(let n=0;n<t.length;n++){let s=t[n],o="["===s[0],a=i.has(s);o||a?(r.length>0&&(r.sort(),e.push(...r),r=[]),e.push(s)):r.push(s)}return r.length>0&&(r.sort(),e.push(...r)),e}),...(t=>{let e=(t=>{let{theme:e,classGroups:i}=t;return ok(i,e)})(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:t=>{if(t.startsWith("[")&&t.endsWith("]")){var i;let e,r,n;return -1===(i=t).slice(1,-1).indexOf(":")?void 0:(r=(e=i.slice(1,-1)).indexOf(":"),(n=e.slice(0,r))?"arbitrary.."+n:void 0)}let r=t.split("-"),n=+(""===r[0]&&r.length>1);return ow(r,n,e)},getConflictingClassGroupIds:(t,e)=>{if(e){let e=r[t],n=i[t];if(e){if(n){let t=Array(n.length+e.length);for(let e=0;e<n.length;e++)t[e]=n[e];for(let i=0;i<e.length;i++)t[n.length+i]=e[i];return t}return e}return n||ox}return i[t]||ox}}})(e)}).cache.get,o=n.cache.set,a=l,l(t)},(...t)=>a(((...t)=>{let e,i,r=0,n="";for(;r<t.length;)(e=t[r++])&&(i=oj(e))&&(n&&(n+=" "),n+=i);return n})(...t))),ab={d:"",width:0,height:0,startX:0,startY:0,endX:0,endY:0};function ax({className:t,containerRef:e,fromRef:i,toRef:r,curvature:n=0,reverse:s=!1,duration:o=1.5,delay:a=0,repeatDelay:l=0,pathColor:u="var(--border)",pathWidth:c=1.5,pathOpacity:p=1,gradientStartColor:m="#2E60A9",gradientStopColor:f="#2E60A9",startXOffset:g=0,startYOffset:y=0,endXOffset:v=0,endYOffset:b=0,fromAnchor:x="center",toAnchor:w="center",beamLength:k=48,playing:T=!0}){let A=(0,d.useId)(),[S,P]=(0,d.useState)(ab),E=of(0),M=(0,d.useRef)(T),C=(0,d.useRef)(null);(0,d.useEffect)(()=>{M.current=T},[T]),(0,d.useEffect)(()=>{let t=()=>{if(!e.current||!i.current||!r.current)return;let t=e.current.getBoundingClientRect(),s=i.current.getBoundingClientRect(),o=r.current.getBoundingClientRect(),a=s.left-t.left+s.width/2+g,l=s.top-t.top+aw(s.height,x)+y,u=o.left-t.left+o.width/2+v,h=o.top-t.top+aw(o.height,w)+b,d=Math.abs(h-l)>=Math.abs(u-a),c=d?a+n:(a+u)/2,p=d?(l+h)/2:l-n;P({d:`M ${a},${l} Q ${c},${p} ${u},${h}`,width:t.width,height:t.height,startX:a,startY:l,endX:u,endY:h})},s=new ResizeObserver(t);return e.current&&s.observe(e.current),i.current&&s.observe(i.current),r.current&&s.observe(r.current),t(),()=>s.disconnect()},[e,i,r,n,g,y,v,b,x,w]);let V=S.endX-S.startX,R=S.endY-S.startY,D=Math.hypot(V,R)||1,j=(s?-V:V)/D,L=(s?-R:R)/D,B=s?S.endX:S.startX,O=s?S.endY:S.startY,F=s?S.startX:S.endX,I=s?S.startY:S.endY,z=oy(E,[0,1],[B-j*k,F]),$=oy(E,[0,1],[B,F+j*k]),N=oy(E,[0,1],[O-L*k,I]),U=oy(E,[0,1],[O,I+L*k]);return(0,d.useEffect)(()=>{let t=ry(E,[0,1],{delay:a,duration:o,ease:[.16,1,.3,1],repeat:1/0,repeatDelay:l});return C.current=t,M.current||t.pause(),()=>{t.stop(),C.current=null,E.set(0)}},[E,a,o,l]),(0,d.useEffect)(()=>{let t=C.current;t&&(T?t.play():t.pause())},[T]),(0,h.jsxs)("svg",{fill:"none",width:S.width,height:S.height,xmlns:"http://www.w3.org/2000/svg",className:function(...t){return av(function(){for(var t,e,i=0,r="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=function t(e){var i,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(i=0;i<s;i++)e[i]&&(r=t(e[i]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}(t))&&(r&&(r+=" "),r+=e);return r}(t))}("pointer-events-none absolute top-0 left-0 transform-gpu",t),viewBox:`0 0 ${S.width} ${S.height}`,children:[(0,h.jsx)("path",{d:S.d,stroke:u,strokeWidth:c,strokeOpacity:p,strokeLinecap:"round"}),(0,h.jsx)("path",{d:S.d,strokeWidth:c+.5,stroke:`url(#${A})`,strokeOpacity:+!!T,strokeLinecap:"round"}),(0,h.jsx)("defs",{children:(0,h.jsxs)(om.linearGradient,{className:"transform-gpu",id:A,gradientUnits:"userSpaceOnUse",x1:z,x2:$,y1:N,y2:U,children:[(0,h.jsx)("stop",{stopColor:m,stopOpacity:"0"}),(0,h.jsx)("stop",{stopColor:m}),(0,h.jsx)("stop",{offset:"32.5%",stopColor:f}),(0,h.jsx)("stop",{offset:"100%",stopColor:f,stopOpacity:"0"})]})})]})}function aw(t,e){return"top"===e?0:"bottom"===e?t:t/2}let ak=["Research question","Collection experiments","Model evaluation","Validated methods"];t.s(["CollectionFlow",0,function(){let t=(0,d.useRef)(null),e=(0,d.useRef)(null),i=(0,d.useRef)(null),r=(0,d.useRef)(null),n=(0,d.useRef)(null),[s,o]=(0,d.useState)(!1),[a,l]=(0,d.useState)(!1),[u,c]=(0,d.useState)(!0),p=s&&a&&u;return(0,d.useEffect)(()=>{let t=window.matchMedia("(prefers-reduced-motion: reduce)"),e=()=>
1o(!t.matches),i=()=>c(!document.hidden);return e(),i(),t.addEventListener("change",e),document.addEventListener("visibilitychange",i),()=>{t.removeEventListener("change",e),document.removeEventListener("visibilitychange",i)}},[]),(0,d.useEffect)(()=>{if(!t.current)return;let e=new IntersectionObserver(([t])=>l(t.isIntersecting&&t.intersectionRatio>=.25),{threshold:.25});return e.observe(t.current),()=>e.disconnect()},[]),(0,h.jsxs)("div",{ref:t,"data-playing":p,className:"collection-flow relative w-full max-w-[280px] select-none sm:max-w-[300px]",children:[(0,h.jsx)("ol",{"aria-label":"Data research process",className:"relative m-0 flex list-none flex-col gap-11 p-0",children:ak.map((t,s)=>(0,h.jsx)("li",{className:"relative z-10",children:(0,h.jsxs)("div",{ref:0===s?e:1===s?i:2===s?r:n,style:{"--step-index":s},className:"collection-flow-step",children:[(0,h.jsx)("span",{className:"font-mono text-[11px] tracking-[0.08em] text-muted-foreground",children:String(s+1).padStart(2,"0")}),(0,h.jsx)("span",{children:t}),(0,h.jsx)("span",{"aria-hidden":"true",className:"collection-flow-highlight"})]})},t))}),(0,h.jsx)(ax,{containerRef:t,fromRef:e,toRef:i,fromAnchor:"bottom",toAnchor:"top",duration:.75,delay:.75,repeatDelay:5.25,playing:p}),(0,h.jsx)(ax,{containerRef:t,fromRef:i,toRef:r,fromAnchor:"bottom",toAnchor:"top",duration:.75,delay:2.25,repeatDelay:5.25,playing:p}),(0,h.jsx)(ax,{containerRef:t,fromRef:r,toRef:n,fromAnchor:"bottom",toAnchor:"top",duration:.75,delay:3.75,repeatDelay:5.25,playing:p}),(0,h.jsx)("button",{type:"button",onClick:()=>o(t=>!t),"aria-pressed":p,"aria-label":p?"Pause research animation":"Play research animation",className:"absolute inset-0 z-20 cursor-pointer"})]})}],88576)},24482,t=>{"use strict";var e=t.i(43476),i=t.i(71645),r=t.i(16774);let n="https://github.com/google-deepmind/mujoco_menagerie/tree/8161bba264d7fa7c99ca301e91e7fb44737676ad",s=[{id:"panda",title:"Franka Panda",category:"Robot arm",color:"#A45122",description:"A Franka Panda robot arm reaching and opening its gripper",source:`${n}/franka_emika_panda`},{id:"go2",title:"Unitree Go2",category:"Quadruped",color:"#2E60A9",description:"A four-legged Unitree Go2 robot trotting in place",source:`${n}/unitree_go2`},{id:"g1",title:"Unitree G1",category:"Humanoid",color:"#6550A6",description:"A Unitree G1 humanoid moving its arms and legs in a walking cycle",source:`${n}/unitree_g1`},{id:"shadow-hand",title:"Shadow Hand",category:"Robot hand",color:"#9A4869",description:"A Shadow robotic hand curling and extending its fingers",source:`${n}/shadow_hand`},{id:"ur5e",title:"UR5e",category:"Industrial arm",color:"#247A95",description:"A Universal Robots UR5e arm moving its shoulder, elbow, and wrist",source:`${n}/universal_robots_ur5e`},{id:"tidybot",title:"TidyBot",category:"Mobile robot",color:"#526F9C",description:"A TidyBot mobile robot turning its wheeled base and reaching with its arm",source:`${n}/stanford_tidybot`},{id:"robonaut",title:"Robonaut 2",category:"Robonaut",color:"#A46B1E",description:"NASA's Robonaut 2 moving its head and hands",source:"https://images.nasa.gov/details/ksc_082710_robonaut"}];function o({robot:t,animation:i,frame:r,leaving:n=!1,textRef:s}){return(0,e.jsx)("div",{className:n?"robot-layer robot-layer-out":"robot-layer robot-layer-in",style:i?{"--robot-columns":i.columns,"--robot-rows":i.rows}:void 0,children:i?(0,e.jsx)("pre",{ref:s,className:"robot-frames",style:{color:t.color},"aria-hidden":"true",children:r??i.frames[0]}):(0,e.jsx)("div",{"aria-hidden":"true",className:"robot-poster",style:{backgroundColor:t.color,maskImage:`url(/ascii-robots/${t.id}-poster.svg)`,maskSize:"contain",maskPosition:"center",maskRepeat:"no-repeat"}})})}t.s(["RobotAscii",0,function(){let{open:t}=(0,r.useContact)(),n=(0,i.useRef)(null),a=(0,i.useRef)(null),l=(0,i.useRef)(0),u=(0,i.useRef)({}),h=(0,i.useRef)(s[0]),d=(0,i.useRef)(void 0),[c,p]=(0,i.useState)(0),[m,f]=(0,i.useState)({}),[g,y]=(0,i.useState)(null),[v,b]=(0,i.useState)(!1),[x,w]=(0,i.useState)(!1),[k,T]=(0,i.useState)(!0),A=s[c],S=m[A.id],P=s[(c+1)%s.length];return(0,i.useEffect)(()=>{u.current=m,h.current=A,d.current=S},[S,m,A]),(0,i.useEffect)(()=>{l.current=0},[A.id]),(0,i.useEffect)(()=>{let t=[A.id,P.id],e=new AbortController;for(let i of t)u.current[i]||fetch(`/ascii-robots/${i}.json`,{signal:e.signal}).then(t=>{if(!t.ok)throw Error("Robot animation unavailable");return t.json()}).then(t=>{e.signal.aborted||f(e=>e[i]?e:{...e,[i]:t})}).catch(()=>{});return()=>e.abort()},[A.id,P.id]),(0,i.useEffect)(()=>{let t=window.matchMedia("(prefers-reduced-motion: reduce)"),e=()=>b(!t.matches),i=()=>T(!document.hidden);return e(),i(),t.addEventListener("change",e),document.addEventListener("visibilitychange",i
1),()=>{t.removeEventListener("change",e),document.removeEventListener("visibilitychange",i)}},[]),(0,i.useEffect)(()=>{if(!n.current)return;let t=new IntersectionObserver(([t])=>w(t.isIntersecting),{threshold:.05});return t.observe(n.current),()=>t.disconnect()},[]),(0,i.useEffect)(()=>{let t;if(!S||!v||!x||!k)return;let e=1e3/S.fps,i="loop"===S.playback?S.frames.length:2*S.frames.length-2,r=performance.now(),n=s=>{let o=s-r;if(o>=e&&a.current){l.current=(l.current+Math.floor(o/e))%i;let t=l.current<S.frames.length?l.current:i-l.current;a.current.textContent=S.frames[t],r=s-o%e}t=requestAnimationFrame(n)};return t=requestAnimationFrame(n),()=>cancelAnimationFrame(t)},[S,v,x,k]),(0,i.useEffect)(()=>{if(!S||!v||!x||!k)return;let t=window.setTimeout(()=>{let t=d.current;y({robot:h.current,animation:t,frame:a.current?.textContent??t?.frames[0]}),p(t=>(t+1)%s.length)},4e3);return()=>window.clearTimeout(t)},[S,v,x,k]),(0,i.useEffect)(()=>{if(!g)return;let t=window.setTimeout(()=>y(null),520);return()=>window.clearTimeout(t)},[g]),(0,e.jsxs)("figure",{className:"relative min-w-0","aria-label":"Robot animations",children:[(0,e.jsxs)("div",{ref:n,className:"robot-stage",role:"img","aria-label":`ASCII animation: ${A.description}`,children:[g?(0,e.jsx)(o,{robot:g.robot,animation:g.animation,frame:g.frame,leaving:!0}):null,(0,e.jsx)(o,{robot:A,animation:S,textRef:t=>{a.current=t}},A.id)]}),(0,e.jsx)("button",{type:"button",onClick:()=>t(),"aria-label":"Get Data",className:"absolute inset-0 cursor-pointer"})]})}],24482)}]);
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.