openlearn-next 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AdminDirectoryView-Cai0cQqi.js → AdminDirectoryView-CD7tW4mc.js} +1 -1
- package/dist/assets/BatchPickerModal-Bt8Qx0Av.js +1 -0
- package/dist/assets/{ClassesView-Cxgfcrx1.js → ClassesView-B1B3wlkx.js} +2 -2
- package/dist/assets/CloudDriveModal-BSZaWIex.js +1 -0
- package/dist/assets/{ComputerLabView-CUCO2VIV.js → ComputerLabView-B6-twB0u.js} +1 -1
- package/dist/assets/CourseManagement-Bnezm9Vv.js +1 -0
- package/dist/assets/CourseWizardModal-BvfTvcQT.js +3 -0
- package/dist/assets/{CoursewareHubPanel-CAaf22Qm.js → CoursewareHubPanel-Cb1mAqHS.js} +1 -1
- package/dist/assets/{Dashboard-vSYAYoji.js → Dashboard-DQ91dQio.js} +2 -2
- package/dist/assets/ExportWeightModal-al1iIVxb.js +1 -0
- package/dist/assets/{HelpTour-ZgEkRnin.js → HelpTour-DwM9UBiA.js} +1 -1
- package/dist/assets/{HelpView-D3WIxMoB.js → HelpView-DLAKVpwf.js} +5 -5
- package/dist/assets/ImportLessonsModal-DwhvqzY_.js +1 -0
- package/dist/assets/{ImportModal-mkWuDoAN.js → ImportModal-CmUt1YeX.js} +1 -1
- package/dist/assets/InteractiveCoursewareViewer-DWnzq20c.js +1 -0
- package/dist/assets/{InteractiveWhiteboard-bmT1LKD6.js → InteractiveWhiteboard-CQ-4meYj.js} +12 -12
- package/dist/assets/{LazyCourseware-Bcxn_20f.js → LazyCourseware-g7b8EXR_.js} +1 -1
- package/dist/assets/{LazyWhiteboard-CJA7aRIM.js → LazyWhiteboard-B6rDWBFb.js} +1 -1
- package/dist/assets/{LessonEditorView-hdJblhmb.js → LessonEditorView-DixwX1Kw.js} +1 -1
- package/dist/assets/{LiveClassroomView-ByyIOLJC.js → LiveClassroomView-j93YOxSh.js} +1 -1
- package/dist/assets/NotificationDetailModal-CQ9PIqkD.js +1 -0
- package/dist/assets/{PluginView-B3ZolNGQ.js → PluginView-DCY4yi2h.js} +1 -1
- package/dist/assets/{ProcessLogsModal-8mVp07ic.js → ProcessLogsModal-B-PY780w.js} +1 -1
- package/dist/assets/QuizGeneratorModal-BvTcmD68.js +1 -0
- package/dist/assets/StudentAssignmentView-4R0WxStx.js +1 -0
- package/dist/assets/StudentLessonView-DZ0i9-tX.js +1 -0
- package/dist/assets/StudentPreviewModal-CfsB1dPY.js +1 -0
- package/dist/assets/StudentView-D7GtUiYR.js +2 -0
- package/dist/assets/SystemResourceLibraryModal-Ilnthwpw.js +1 -0
- package/dist/assets/TeacherView-DjnjsQ_3.js +2 -0
- package/dist/assets/{TimetableView-zce3okQn.js → TimetableView-BMsjwi-s.js} +3 -3
- package/dist/assets/index-D8x6bUeG.js +150 -0
- package/dist/assets/{index-CDTw8wSY.js → index-wdWIWwbg.js} +1 -1
- package/dist/assets/{vendor-icons-BvCtGbt1.js → vendor-icons-_c3xpwjZ.js} +1 -1
- package/dist/assets/vendor-motion-DjY2czvL.js +1 -0
- package/dist/index.html +1 -1
- package/dist/server.cjs +72 -20
- package/package.json +1 -1
- package/dist/assets/BatchPickerModal-CKQyeY6R.js +0 -1
- package/dist/assets/CloudDriveModal-TFWlPh8x.js +0 -1
- package/dist/assets/CourseManagement-DSCOjuIC.js +0 -1
- package/dist/assets/CourseWizardModal-B3QnFxvj.js +0 -3
- package/dist/assets/ExportWeightModal-BlS2auLs.js +0 -1
- package/dist/assets/ImportLessonsModal-BZZRDBRU.js +0 -1
- package/dist/assets/InteractiveCoursewareViewer-01PS40_x.js +0 -1
- package/dist/assets/NotificationDetailModal-dndFrE7p.js +0 -1
- package/dist/assets/QuizGeneratorModal-DpTFYbVJ.js +0 -1
- package/dist/assets/StudentAssignmentView-DDY7C092.js +0 -1
- package/dist/assets/StudentLessonView-BcQ7q4QF.js +0 -1
- package/dist/assets/StudentPreviewModal-ETJBF1Vc.js +0 -1
- package/dist/assets/StudentView-BOqPntx-.js +0 -1
- package/dist/assets/SystemResourceLibraryModal-tg8xnblT.js +0 -1
- package/dist/assets/TeacherView-CrbllHIm.js +0 -2
- package/dist/assets/index-BrEBeWAQ.js +0 -14
- package/dist/assets/index-eXp-qZdm.js +0 -129
- package/dist/assets/vendor-motion-Dz5URUo4.js +0 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function Ts(t,e){t.indexOf(e)===-1&&t.push(e)}function Le(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}const vt=(t,e,i)=>i>e?e:i<t?t:i;let vs=()=>{};const Vt={},lo=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),co=t=>typeof t=="object"&&t!==null,uo=t=>/^0[^.\s]+$/u.test(t);function ho(t){let e;return()=>(e===void 0&&(e=t()),e)}const wt=t=>t,xs=(...t)=>t.reduce((e,i)=>s=>i(e(s))),bs=(t,e,i)=>{const s=e-t;return s?(i-t)/s:1};let As=class{constructor(){this.subscriptions=[]}add(e){return Ts(this.subscriptions,e),()=>Le(this.subscriptions,e)}notify(e,i,s){const n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](e,i,s);else for(let o=0;o<n;o++){const r=this.subscriptions[o];r&&r(e,i,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const ct=t=>t*1e3,at=t=>t/1e3,fo=(t,e)=>e?t*(1e3/e):0,nc=(t,e,i)=>{const s=e-t;return((i-t)%s+s)%s+t},po=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t,rc=1e-7,oc=12;function ac(t,e,i,s,n){let o,r,a=0;do r=e+(i-e)/2,o=po(r,s,n)-t,o>0?i=r:e=r;while(Math.abs(o)>rc&&++a<oc);return r}function me(t,e,i,s){if(t===e&&i===s)return wt;const n=o=>ac(o,0,1,t,i);return o=>o===0||o===1?o:po(n(o),e,s)}const mo=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,yo=t=>e=>1-t(1-e),go=me(.33,1.53,.69,.99),Vs=yo(go),To=mo(Vs),vo=t=>t>=1?1:(t*=2)<1?.5*Vs(t):.5*(2-Math.pow(2,-10*(t-1))),Ss=t=>1-Math.sin(Math.acos(t)),xo=yo(Ss),bo=mo(Ss),lc=me(.42,0,1,1),cc=me(0,0,.58,1),Ao=me(.42,0,.58,1),Vo=t=>Array.isArray(t)&&typeof t[0]!="number";function My(t,e){return Vo(t)?t[nc(0,t.length,e)]:t}const So=t=>Array.isArray(t)&&typeof t[0]=="number",uc={linear:wt,easeIn:lc,easeInOut:Ao,easeOut:cc,circIn:Ss,circInOut:bo,circOut:xo,backIn:Vs,backInOut:To,backOut:go,anticipate:vo},hc=t=>typeof t=="string",rn=t=>{if(So(t)){vs(t.length===4);const[e,i,s,n]=t;return me(e,i,s,n)}else if(hc(t))return uc[t];return t},ve=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function fc(t,e){let i=new Set,s=new Set,n=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(l){r.has(l)&&(u.schedule(l),t()),l(a)}const u={schedule:(l,h=!1,f=!1)=>{const p=f&&n?i:s;return h&&r.add(l),p.add(l),l},cancel:l=>{s.delete(l),r.delete(l)},process:l=>{if(a=l,n){o=!0;return}n=!0;const h=i;i=s,s=h,i.forEach(c),i.clear(),n=!1,o&&(o=!1,u.process(l))}};return u}const dc=40;function wo(t,e){let i=!1,s=!0;const n={delta:0,timestamp:0,isProcessing:!1},o=()=>i=!0,r=ve.reduce((T,v)=>(T[v]=fc(o),T),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:l,update:h,preRender:f,render:d,postRender:p}=r,m=()=>{const T=Vt.useManualTiming,v=T?n.timestamp:performance.now();i=!1,T||(n.delta=s?1e3/60:Math.max(Math.min(v-n.timestamp,dc),1)),n.timestamp=v,n.isProcessing=!0,a.process(n),c.process(n),u.process(n),l.process(n),h.process(n),f.process(n),d.process(n),p.process(n),n.isProcessing=!1,i&&e&&(s=!1,t(m))},y=()=>{i=!0,s=!0,n.isProcessing||t(m)};return{schedule:ve.reduce((T,v)=>{const V=r[v];return T[v]=(P,$=!1,A=!1)=>(i||y(),V.schedule(P,$,A)),T},{}),cancel:T=>{for(let v=0;v<ve.length;v++)r[ve[v]].cancel(T)},state:n,steps:r}}const{schedule:z,cancel:It,state:Y,steps:ii}=wo(typeof requestAnimationFrame<"u"?requestAnimationFrame:wt,!0);let Ve;function pc(){Ve=void 0}const q={now:()=>(Ve===void 0&&q.set(Y.isProcessing||Vt.useManualTiming?Y.timestamp:performance.now()),Ve),set:t=>{Ve=t,queueMicrotask(pc)}},$o=t=>e=>typeof e=="string"&&e.startsWith(t),Po=$o("--"),mc=$o("var(--"),ws=t=>mc(t)?yc.test(t.split("/*")[0].trim()):!1,yc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function on(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Zt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},de={...Zt,transform:t=>vt(0,1,t)},xe={...Zt,default:1},ae=t=>Math.round(t*1e5)/1e5,$s=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function gc(t){return t==null}const Tc=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ps=(t,e)=>i=>!!(typeof i=="string"&&Tc.test(i)&&i.startsWith(t)||e&&!gc(i)&&Object.prototype.hasOwnProperty.call(i,e)),Do=(t,e,i)=>s=>{if(typeof s!="string")return s;const[n,o,r,a]=s.match($s);return{[t]:parseFloat(n),[e]:parseFloat(o),[i]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},vc=t=>vt(0,255,t),si={...Zt,transform:t=>Math.round(vc(t))},Ct={test:Ps("rgb","red"),parse:Do("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+si.transform(t)+", "+si.transform(e)+", "+si.transform(i)+", "+ae(de.transform(s))+")"};function xc(t){let e="",i="",s="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,s+=s,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:n?parseInt(n,16)/255:1}}const Di={test:Ps("#"),parse:xc,transform:Ct.transform},ye=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),mt=ye("deg"),gt=ye("%"),S=ye("px"),bc=ye("vh"),Ac=ye("vw"),an={...gt,parse:t=>gt.parse(t)/100,transform:t=>gt.transform(t*100)},jt={test:Ps("hsl","hue"),parse:Do("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+gt.transform(ae(e))+", "+gt.transform(ae(i))+", "+ae(de.transform(s))+")"},j={test:t=>Ct.test(t)||Di.test(t)||jt.test(t),parse:t=>Ct.test(t)?Ct.parse(t):jt.test(t)?jt.parse(t):Di.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Ct.transform(t):jt.transform(t),getAnimatableNone:t=>{const e=j.parse(t);return e.alpha=0,j.transform(e)}},Vc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Sc(t){return isNaN(t)&&typeof t=="string"&&(t.match($s)?.length||0)+(t.match(Vc)?.length||0)>0}const Mo="number",Ro="color",wc="var",$c="var(",ln="${}",Pc=/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 Ht(t){const e=t.toString(),i=[],s={color:[],number:[],var:[]},n=[];let o=0;const a=e.replace(Pc,c=>(j.test(c)?(s.color.push(o),n.push(Ro),i.push(j.parse(c))):c.startsWith($c)?(s.var.push(o),n.push(wc),i.push(c)):(s.number.push(o),n.push(Mo),i.push(parseFloat(c))),++o,ln)).split(ln);return{values:i,split:a,indexes:s,types:n}}function Dc(t){return Ht(t).values}function Co({split:t,types:e}){const i=t.length;return s=>{let n="";for(let o=0;o<i;o++)if(n+=t[o],s[o]!==void 0){const r=e[o];r===Mo?n+=ae(s[o]):r===Ro?n+=j.transform(s[o]):n+=s[o]}return n}}function Mc(t){return Co(Ht(t))}const Rc=t=>typeof t=="number"?0:j.test(t)?j.getAnimatableNone(t):t,Cc=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:Rc(t);function Bc(t){const e=Ht(t);return Co(e)(e.values.map((s,n)=>Cc(s,e.split[n])))}const ut={test:Sc,parse:Dc,createTransformer:Mc,getAnimatableNone:Bc};function ni(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function kc({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,e/=100,i/=100;let n=0,o=0,r=0;if(!e)n=o=r=i;else{const a=i<.5?i*(1+e):i+e-i*e,c=2*i-a;n=ni(c,a,t+1/3),o=ni(c,a,t),r=ni(c,a,t-1/3)}return{red:Math.round(n*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Fe(t,e){return i=>i>0?e:t}const k=(t,e,i)=>t+(e-t)*i,ri=(t,e,i)=>{const s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},Ec=[Di,Ct,jt],Lc=t=>Ec.find(e=>e.test(t));function cn(t){const e=Lc(t);if(!e)return!1;let i=e.parse(t);return e===jt&&(i=kc(i)),i}const un=(t,e)=>{const i=cn(t),s=cn(e);if(!i||!s)return Fe(t,e);const n={...i};return o=>(n.red=ri(i.red,s.red,o),n.green=ri(i.green,s.green,o),n.blue=ri(i.blue,s.blue,o),n.alpha=k(i.alpha,s.alpha,o),Ct.transform(n))},Mi=new Set(["none","hidden"]);function Fc(t,e){return Mi.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}function Ic(t,e){return i=>k(t,e,i)}function Ds(t){return typeof t=="number"?Ic:typeof t=="string"?ws(t)?Fe:j.test(t)?un:Nc:Array.isArray(t)?Bo:typeof t=="object"?j.test(t)?un:Oc:Fe}function Bo(t,e){const i=[...t],s=i.length,n=t.map((o,r)=>Ds(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)i[r]=n[r](o);return i}}function Oc(t,e){const i={...t,...e},s={};for(const n in i)t[n]!==void 0&&e[n]!==void 0&&(s[n]=Ds(t[n])(t[n],e[n]));return n=>{for(const o in s)i[o]=s[o](n);return i}}function jc(t,e){const i=[],s={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){const o=e.types[n],r=t.indexes[o][s[o]],a=t.values[r]??0;i[n]=a,s[o]++}return i}const Nc=(t,e)=>{const i=ut.createTransformer(e),s=Ht(t),n=Ht(e);return s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length?Mi.has(t)&&!n.values.length||Mi.has(e)&&!s.values.length?Fc(t,e):xs(Bo(jc(s,n),n.values),i):Fe(t,e)};function ko(t,e,i){return typeof t=="number"&&typeof e=="number"&&typeof i=="number"?k(t,e,i):Ds(t)(t,e)}const Uc=t=>{const e=({timestamp:i})=>t(i);return{start:(i=!0)=>z.update(e,i),stop:()=>It(e),now:()=>Y.isProcessing?Y.timestamp:q.now()}},Eo=(t,e,i=10)=>{let s="";const n=Math.max(Math.round(e/i),2);for(let o=0;o<n;o++)s+=Math.round(t(o/(n-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Ie=2e4;function Ms(t){let e=0;const i=50;let s=t.next(e);for(;!s.done&&e<Ie;)e+=i,s=t.next(e);return e>=Ie?1/0:e}function Kc(t,e=100,i){const s=i({...t,keyframes:[0,e]}),n=Math.min(Ms(s),Ie);return{type:"keyframes",ease:o=>s.next(n*o).value/e,duration:at(n)}}const L={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Ri(t,e){return t*Math.sqrt(1-e*e)}const Wc=12;function zc(t,e,i){let s=i;for(let n=1;n<Wc;n++)s=s-t(s)/e(s);return s}const oi=.001;function Xc({duration:t=L.duration,bounce:e=L.bounce,velocity:i=L.velocity,mass:s=L.mass}){let n,o,r=1-e;r=vt(L.minDamping,L.maxDamping,r),t=vt(L.minDuration,L.maxDuration,at(t)),r<1?(n=u=>{const l=u*r,h=l*t,f=l-i,d=Ri(u,r),p=Math.exp(-h);return oi-f/d*p},o=u=>{const h=u*r*t,f=h*i+i,d=Math.pow(r,2)*Math.pow(u,2)*t,p=Math.exp(-h),m=Ri(Math.pow(u,2),r);return(-n(u)+oi>0?-1:1)*((f-d)*p)/m}):(n=u=>{const l=Math.exp(-u*t),h=(u-i)*t+1;return-oi+l*h},o=u=>{const l=Math.exp(-u*t),h=(i-u)*(t*t);return l*h});const a=5/t,c=zc(n,o,a);if(t=ct(t),isNaN(c))return{stiffness:L.stiffness,damping:L.damping,duration:t};{const u=Math.pow(c,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const _c=["duration","bounce"],Hc=["stiffness","damping","mass"];function hn(t,e){return e.some(i=>t[i]!==void 0)}function Yc(t){let e={velocity:L.velocity,stiffness:L.stiffness,damping:L.damping,mass:L.mass,isResolvedFromDuration:!1,...t};if(!hn(t,Hc)&&hn(t,_c))if(e.velocity=0,t.visualDuration){const i=t.visualDuration,s=2*Math.PI/(i*1.2),n=s*s,o=2*vt(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:L.mass,stiffness:n,damping:o}}else{const i=Xc({...t,velocity:0});e={...e,...i,mass:L.mass},e.isResolvedFromDuration=!0}return e}function Oe(t=L.visualDuration,e=L.bounce){const i=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:n}=i;const o=i.keyframes[0],r=i.keyframes[i.keyframes.length-1],a={done:!1,value:o},{stiffness:c,damping:u,mass:l,duration:h,velocity:f,isResolvedFromDuration:d}=Yc({...i,velocity:-at(i.velocity||0)}),p=f||0,m=u/(2*Math.sqrt(c*l)),y=r-o,g=at(Math.sqrt(c/l)),x=Math.abs(y)<5;s||(s=x?L.restSpeed.granular:L.restSpeed.default),n||(n=x?L.restDelta.granular:L.restDelta.default);let T,v,V,P,$,A;if(m<1)V=Ri(g,m),P=(p+m*g*y)/V,T=b=>{const D=Math.exp(-m*g*b);return r-D*(P*Math.sin(V*b)+y*Math.cos(V*b))},$=m*g*P+y*V,A=m*g*y-P*V,v=b=>Math.exp(-m*g*b)*($*Math.sin(V*b)+A*Math.cos(V*b));else if(m===1){T=D=>r-Math.exp(-g*D)*(y+(p+g*y)*D);const b=p+g*y;v=D=>Math.exp(-g*D)*(g*b*D-p)}else{const b=g*Math.sqrt(m*m-1);T=I=>{const U=Math.exp(-m*g*I),O=Math.min(b*I,300);return r-U*((p+m*g*y)*Math.sinh(O)+b*y*Math.cosh(O))/b};const D=(p+m*g*y)/b,C=m*g*D-y*b,_=m*g*y-D*b;v=I=>{const U=Math.exp(-m*g*I),O=Math.min(b*I,300);return U*(C*Math.sinh(O)+_*Math.cosh(O))}}const M={calculatedDuration:d&&h||null,velocity:b=>ct(v(b)),next:b=>{if(!d&&m<1){const C=Math.exp(-m*g*b),_=Math.sin(V*b),I=Math.cos(V*b),U=r-C*(P*_+y*I),O=ct(C*($*_+A*I));return a.done=Math.abs(O)<=s&&Math.abs(r-U)<=n,a.value=a.done?r:U,a}const D=T(b);if(d)a.done=b>=h;else{const C=ct(v(b));a.done=Math.abs(C)<=s&&Math.abs(r-D)<=n}return a.value=a.done?r:D,a},toString:()=>{const b=Math.min(Ms(M),Ie),D=Eo(C=>M.next(b*C).value,b,30);return b+"ms "+D},toTransition:()=>{}};return M}Oe.applyToOptions=t=>{const e=Kc(t,100,Oe);return t.ease=e.ease,t.duration=ct(e.duration),t.type="keyframes",t};const Gc=5;function Lo(t,e,i){const s=Math.max(e-Gc,0);return fo(i-t(s),e-s)}function Ci({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:c,restDelta:u=.5,restSpeed:l}){const h=t[0],f={done:!1,value:h},d=A=>a!==void 0&&A<a||c!==void 0&&A>c,p=A=>a===void 0?c:c===void 0||Math.abs(a-A)<Math.abs(c-A)?a:c;let m=i*e;const y=h+m,g=r===void 0?y:r(y);g!==y&&(m=g-h);const x=A=>-m*Math.exp(-A/s),T=A=>g+x(A),v=A=>{const M=x(A),b=T(A);f.done=Math.abs(M)<=u,f.value=f.done?g:b};let V,P;const $=A=>{d(f.value)&&(V=A,P=Oe({keyframes:[f.value,p(f.value)],velocity:Lo(T,A,f.value),damping:n,stiffness:o,restDelta:u,restSpeed:l}))};return $(0),{calculatedDuration:null,next:A=>{let M=!1;return!P&&V===void 0&&(M=!0,v(A),$(A)),V!==void 0&&A>=V?P.next(A-V):(!M&&v(A),f)}}}function qc(t,e,i){const s=[],n=i||Vt.mix||ko,o=t.length-1;for(let r=0;r<o;r++){let a=n(t[r],t[r+1]);if(e){const c=Array.isArray(e)?e[r]||wt:e;a=xs(c,a)}s.push(a)}return s}function Zc(t,e,{clamp:i=!0,ease:s,mixer:n}={}){const o=t.length;if(vs(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=qc(e,s,n),c=a.length,u=l=>{if(r&&l<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(l<t[h+1]);h++);const f=bs(t[h],t[h+1],l);return a[h](f)};return i?l=>u(vt(t[0],t[o-1],l)):u}function Jc(t,e){const i=t[t.length-1];for(let s=1;s<=e;s++){const n=bs(0,e,s);t.push(k(i,1,n))}}function Qc(t){const e=[0];return Jc(e,t.length-1),e}function tu(t,e){return t.map(i=>i*e)}function eu(t,e){return t.map(()=>e||Ao).splice(0,t.length-1)}function le({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){const n=Vo(s)?s.map(rn):rn(s),o={done:!1,value:e[0]},r=tu(i&&i.length===e.length?i:Qc(e),t),a=Zc(r,e,{ease:Array.isArray(n)?n:eu(e,n)});return{calculatedDuration:t,next:c=>(o.value=a(c),o.done=c>=t,o)}}const iu=t=>t!==null;function Qe(t,{repeat:e,repeatType:i="loop"},s,n=1){const o=t.filter(iu),a=n<0||e&&i!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const su={decay:Ci,inertia:Ci,tween:le,keyframes:le,spring:Oe};function Fo(t){typeof t.type=="string"&&(t.type=su[t.type])}let Rs=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,i){return this.finished.then(e,i)}};const nu=t=>t/100;let je=class extends Rs{constructor(e){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=()=>{const{motionValue:i}=this.options;i&&i.updatedAt!==q.now()&&this.tick(q.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Fo(e);const{type:i=le,repeat:s=0,repeatDelay:n=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const c=i||le;c!==le&&typeof a[0]!="number"&&(this.mixKeyframes=xs(nu,ko(a[0],a[1])),a=[0,100]);const u=c({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=Ms(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+n,this.totalDuration=this.resolvedDuration*(s+1)-n,this.generator=u}updateTime(e){const i=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(e,i=!1){const{generator:s,totalDuration:n,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:l,repeat:h,repeatType:f,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),i?this.currentTime=e:this.updateTime(e);const g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let T=this.currentTime,v=s;if(h){const A=Math.min(this.currentTime,n)/a;let M=Math.floor(A),b=A%1;!b&&A>=1&&(b=1),b===1&&M--,M=Math.min(M,h+1),!!(M%2)&&(f==="reverse"?(b=1-b,d&&(b-=d/a)):f==="mirror"&&(v=r)),T=vt(0,1,b)*a}let V;x?(this.delayState.value=l[0],V=this.delayState):V=v.next(T),o&&!x&&(V.value=o(V.value));let{done:P}=V;!x&&c!==null&&(P=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return $&&p!==Ci&&(V.value=Qe(l,this.options,y,this.speed)),m&&m(V.value),$&&this.finish(),V}then(e,i){return this.finished.then(e,i)}get duration(){return at(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+at(e)}get time(){return at(this.currentTime)}set time(e){e=ct(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const i=this.generator.next(e).value;return Lo(s=>this.generator.next(s).value,e,i)}get speed(){return this.playbackSpeed}set speed(e){const i=this.playbackSpeed!==e;i&&this.driver&&this.updateTime(q.now()),this.playbackSpeed=e,i&&this.driver&&(this.time=at(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Uc,startTime:i}=this.options;this.driver||(this.driver=e(n=>this.tick(n))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=i??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(q.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&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(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}};function ru(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Bt=t=>t*180/Math.PI,Bi=t=>{const e=Bt(Math.atan2(t[1],t[0]));return ki(e)},ou={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Bi,rotateZ:Bi,skewX:t=>Bt(Math.atan(t[1])),skewY:t=>Bt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},ki=t=>(t=t%360,t<0&&(t+=360),t),fn=Bi,dn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),pn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),au={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:dn,scaleY:pn,scale:t=>(dn(t)+pn(t))/2,rotateX:t=>ki(Bt(Math.atan2(t[6],t[5]))),rotateY:t=>ki(Bt(Math.atan2(-t[2],t[0]))),rotateZ:fn,rotate:fn,skewX:t=>Bt(Math.atan(t[4])),skewY:t=>Bt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Ei(t){return t.includes("scale")?1:0}function Li(t,e){if(!t||t==="none")return Ei(e);const i=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,n;if(i)s=au,n=i;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=ou,n=a}if(!n)return Ei(e);const o=s[e],r=n[1].split(",").map(cu);return typeof o=="function"?o(r):r[o]}const lu=(t,e)=>{const{transform:i="none"}=getComputedStyle(t);return Li(i,e)};function cu(t){return parseFloat(t.trim())}const Jt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qt=new Set([...Jt,"pathRotation"]),mn=t=>t===Zt||t===S,uu=new Set(["x","y","z"]),hu=Jt.filter(t=>!uu.has(t));function fu(t){const e=[];return hu.forEach(i=>{const s=t.getValue(i);s!==void 0&&(e.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),e}const bt={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:s})=>{const n=t.max-t.min;return s==="border-box"?n:n-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:s})=>{const n=t.max-t.min;return s==="border-box"?n:n-parseFloat(e)-parseFloat(i)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Li(e,"x"),y:(t,{transform:e})=>Li(e,"y")};bt.translateX=bt.x;bt.translateY=bt.y;const Lt=new Set;let Fi=!1,Ii=!1,Oi=!1;function Io(){if(Ii){const t=Array.from(Lt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),i=new Map;e.forEach(s=>{const n=fu(s);n.length&&(i.set(s,n),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const n=i.get(s);n&&n.forEach(([o,r])=>{s.getValue(o)?.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Ii=!1,Fi=!1,Lt.forEach(t=>t.complete(Oi)),Lt.clear()}function Oo(){Lt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ii=!0)})}function du(){Oi=!0,Oo(),Io(),Oi=!1}let Cs=class{constructor(e,i,s,n,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=i,this.name=s,this.motionValue=n,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Lt.add(this),Fi||(Fi=!0,z.read(Oo),z.resolveKeyframes(Io))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:i,element:s,motionValue:n}=this;if(e[0]===null){const o=n?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&i){const a=s.readValue(i,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),n&&o===void 0&&n.set(e[0])}ru(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Lt.delete(this)}cancel(){this.state==="scheduled"&&(Lt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};const pu=t=>t.startsWith("--");function jo(t,e,i){pu(e)?t.style.setProperty(e,i):t.style[e]=i}const mu={};function No(t,e){const i=ho(t);return()=>mu[e]??i()}const yu=No(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Uo=No(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),re=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,yn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:re([0,.65,.55,1]),circOut:re([.55,0,1,.45]),backIn:re([.31,.01,.66,-.59]),backOut:re([.33,1.53,.69,.99])};function Ko(t,e){if(t)return typeof t=="function"?Uo()?Eo(t,e):"ease-out":So(t)?re(t):Array.isArray(t)?t.map(i=>Ko(i,e)||yn.easeOut):yn[t]}function gu(t,e,i,{delay:s=0,duration:n=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:c}={},u=void 0){const l={[e]:i};c&&(l.offset=c);const h=Ko(a,n);Array.isArray(h)&&(l.easing=h);const f={delay:s,duration:n,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(l,f)}function Wo(t){return typeof t=="function"&&"applyToOptions"in t}function Tu({type:t,...e}){return Wo(t)&&Uo()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}let zo=class extends Rs{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:i,name:s,keyframes:n,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,vs(typeof e.type!="string");const u=Tu(e);this.animation=gu(i,s,n,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const l=Qe(n,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(l),jo(i,s,l),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return at(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+at(e)}get time(){return at(Number(this.animation.currentTime)||0)}set time(e){const i=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ct(e),i&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:i,rangeEnd:s,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&yu()?(this.animation.timeline=e,i&&(this.animation.rangeStart=i),s&&(this.animation.rangeEnd=s),wt):n(this)}};const Xo={anticipate:vo,backInOut:To,circInOut:bo};function vu(t){return t in Xo}function xu(t){typeof t.ease=="string"&&vu(t.ease)&&(t.ease=Xo[t.ease])}const ai=10;let bu=class extends zo{constructor(e){xu(e),Fo(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:i,onUpdate:s,onComplete:n,element:o,...r}=this.options;if(!i)return;if(e!==void 0){i.set(e);return}const a=new je({...r,autoplay:!1}),c=Math.max(ai,q.now()-this.startTime),u=vt(0,ai,c-ai),l=a.sample(c).value,{name:h}=this.options;o&&h&&jo(o,h,l),i.setWithVelocity(a.sample(Math.max(0,c-u)).value,l,u),a.stop()}};const gn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ut.test(t)||t==="0")&&!t.startsWith("url("));function Au(t){const e=t[0];if(t.length===1)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}function Vu(t,e,i,s){const n=t[0];if(n===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=gn(n,e),a=gn(o,e);return!r||!a?!1:Au(t)||(i==="spring"||Wo(i))&&s}function ji(t){t.duration=0,t.type="keyframes"}const _o=new Set(["opacity","clipPath","filter","transform"]),Su=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function wu(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&Su.test(t[e]))return!0;return!1}const $u=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Pu=ho(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Du(t){const{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:o,type:r,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=e.owner.getProps();return Pu()&&i&&(_o.has(i)||$u.has(i)&&wu(a))&&(i!=="transform"||!l)&&!u&&!s&&n!=="mirror"&&o!==0&&r!=="inertia"}const Mu=40;let Ru=class extends Rs{constructor({autoplay:e=!0,delay:i=0,type:s="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:c,motionValue:u,element:l,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=q.now();const f={autoplay:e,delay:i,type:s,repeat:n,repeatDelay:o,repeatType:r,name:c,motionValue:u,element:l,...h},d=l?.KeyframeResolver||Cs;this.keyframeResolver=new d(a,(p,m,y)=>this.onKeyframesResolved(p,m,f,!y),c,u,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,i,s,n){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:c,isHandoff:u,onUpdate:l}=s;this.resolvedAt=q.now();let h=!0;Vu(e,o,r,a)||(h=!1,(Vt.instantAnimations||!c)&&l?.(Qe(e,s,i)),e[0]=e[e.length-1],ji(s),s.repeat=0);const d={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>Mu?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:i,...s,keyframes:e},p=h&&!u&&Du(d),m=d.motionValue?.owner?.current;let y;if(p)try{y=new bu({...d,element:m})}catch{y=new je(d)}else y=new je(d);y.finished.then(()=>{this.notifyFinished()}).catch(wt),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(e,i){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),du()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};class Cu{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,i){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=i}attachTimeline(e){const i=this.animations.map(s=>s.attachTimeline(e));return()=>{i.forEach((s,n)=>{s&&s(),this.animations[n].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return Tn(this.animations,"duration")}get iterationDuration(){return Tn(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(i=>i[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Tn(t,e){let i=0;for(let s=0;s<t.length;s++){const n=t[s][e];n!==null&&n>i&&(i=n)}return i}class Fy extends Cu{then(e,i){return this.finished.finally(e).then(()=>{})}}function Ho(t,e,i,s=0,n=1){const o=Array.from(t).sort((u,l)=>u.sortNodePosition(l)).indexOf(e),r=t.size,a=(r-1)*s;return typeof i=="function"?i(o,r):n===1?o*s:a-o*s}const vn=30,Bu=t=>!isNaN(parseFloat(t));let ku=class{constructor(e,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const n=q.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=i.owner}setCurrent(e){this.current=e,this.updatedAt=q.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Bu(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,i){this.events[e]||(this.events[e]=new As);const s=this.events[e].add(i);return e==="change"?()=>{s(),z.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,i){this.passiveEffect=e,this.stopPassiveEffect=i}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,i,s){this.set(i),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,i=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=q.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>vn)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,vn);return fo(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(e){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=e(i),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Yt(t,e){return new ku(t,e)}function Yo(t,e){if(t?.inherit&&e){const{inherit:i,...s}=t;return{...e,...s}}return t}function Bs(t,e){const i=t?.[e]??t?.default??t;return i!==t?Yo(i,t):i}const Eu={type:"spring",stiffness:500,damping:25,restSpeed:10},Lu=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Fu={type:"keyframes",duration:.8},Iu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ou=(t,{keyframes:e})=>e.length>2?Fu:Qt.has(t)?t.startsWith("scale")?Lu(e[1]):Eu:Iu,ju=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Nu(t){for(const e in t)if(!ju.has(e))return!0;return!1}const Go=(t,e,i,s={},n,o)=>r=>{const a=Bs(s,t)||{},c=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-ct(c);const l={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:n};Nu(a)||Object.assign(l,Ou(t,l)),l.duration&&(l.duration=ct(l.duration)),l.repeatDelay&&(l.repeatDelay=ct(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let h=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(ji(l),l.delay===0&&(h=!0)),(Vt.instantAnimations||Vt.skipAnimations||n?.shouldSkipAnimations||a.skipAnimations)&&(h=!0,ji(l),l.delay=0),l.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=Qe(l.keyframes,a);if(f!==void 0){z.update(()=>{l.onUpdate(f),l.onComplete()});return}}return a.isSync?new je(l):new Ru(l)},Uu=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ku(t){const e=Uu.exec(t);if(!e)return[,];const[,i,s,n]=e;return[`--${i??s}`,n]}function qo(t,e,i=1){const[s,n]=Ku(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return lo(r)?parseFloat(r):r}return ws(n)?qo(n,e,i+1):n}function xn(t){const e=[{},{}];return t?.values.forEach((i,s)=>{e[0][s]=i.get(),e[1][s]=i.getVelocity()}),e}function Zo(t,e,i,s){if(typeof e=="function"){const[n,o]=xn(s);e=e(i!==void 0?i:t.custom,n,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[n,o]=xn(s);e=e(i!==void 0?i:t.custom,n,o)}return e}function Xt(t,e,i){const s=t.getProps();return Zo(s,e,i!==void 0?i:s.custom,t)}const Jo=new Set(["width","height","top","left","right","bottom",...Jt]),Ni=t=>Array.isArray(t);function Wu(t,e,i){t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,Yt(i))}function zu(t){return Ni(t)?t[t.length-1]||0:t}function Xu(t,e){const i=Xt(t,e);let{transitionEnd:s={},transition:n={},...o}=i||{};o={...o,...s};for(const r in o){const a=zu(o[r]);Wu(t,r,a)}}const J=t=>!!(t&&t.getVelocity);function _u(t){return!!(J(t)&&t.add)}function Hu(t,e){const i=t.getValue("willChange");if(_u(i))return i.add(e);if(!i&&Vt.WillChange){const s=new Vt.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function ks(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Yu="framerAppearId",Gu="data-"+ks(Yu);function Qo(t){return t.props[Gu]}function qu({protectedKeys:t,needsAnimating:e},i){const s=t.hasOwnProperty(i)&&e[i]!==!0;return e[i]=!1,s}function ta(t,e,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:o,transitionEnd:r,...a}=e;const c=t.getDefaultTransition();o=o?Yo(o,c):c;const u=o?.reduceMotion,l=o?.skipAnimations;s&&(o=s);const h=[],f=n&&t.animationState&&t.animationState.getState()[n],d=o?.path;d&&d.animateVisualElement(t,a,o,i,h);for(const p in a){const m=t.getValue(p,t.latestValues[p]??null),y=a[p];if(y===void 0||f&&qu(f,p))continue;const g={delay:i,...Bs(o||{},p)};l&&(g.skipAnimations=!0);const x=m.get();if(x!==void 0&&!m.isAnimating()&&!Array.isArray(y)&&y===x&&!g.velocity){z.update(()=>m.set(y));continue}let T=!1;if(window.MotionHandoffAnimation){const P=Qo(t);if(P){const $=window.MotionHandoffAnimation(P,p,z);$!==null&&(g.startTime=$,T=!0)}}Hu(t,p);const v=u??t.shouldReduceMotion;m.start(Go(p,m,y,v&&Jo.has(p)?{type:!1}:g,t,T));const V=m.animation;V&&h.push(V)}if(r){const p=()=>z.update(()=>{r&&Xu(t,r)});h.length?Promise.all(h).then(p):p()}return h}function Ui(t,e,i={}){const s=Xt(t,e,i.type==="exit"?t.presenceContext?.custom:void 0);let{transition:n=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);const o=s?()=>Promise.all(ta(t,s,i)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:l,staggerDirection:h}=n;return Zu(t,e,c,u,l,h,i)}:()=>Promise.resolve(),{when:a}=n;if(a){const[c,u]=a==="beforeChildren"?[o,r]:[r,o];return c().then(()=>u())}else return Promise.all([o(),r(i.delay)])}function Zu(t,e,i=0,s=0,n=0,o=1,r){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push(Ui(c,e,{...r,delay:i+(typeof s=="function"?0:s)+Ho(t.variantChildren,c,s,n,o)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function Ju(t,e,i={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const n=e.map(o=>Ui(t,o,i));s=Promise.all(n)}else if(typeof e=="string")s=Ui(t,e,i);else{const n=typeof e=="function"?Xt(t,e,i.custom):e;s=Promise.all(ta(t,n,i))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Qu={test:t=>t==="auto",parse:t=>t},ea=t=>e=>e.test(t),ia=[Zt,S,gt,mt,Ac,bc,Qu],bn=t=>ia.find(ea(t));function th(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||uo(t):!0}const eh=new Set(["brightness","contrast","saturate","opacity"]);function ih(t){const[e,i]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=i.match($s)||[];if(!s)return t;const n=i.replace(s,"");let o=eh.has(e)?1:0;return s!==i&&(o*=100),e+"("+o+n+")"}const sh=/\b([a-z-]*)\(.*?\)/gu,Ki={...ut,getAnimatableNone:t=>{const e=t.match(sh);return e?e.map(ih).join(" "):t}},Wi={...ut,getAnimatableNone:t=>{const e=ut.parse(t);return ut.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},An={...Zt,transform:Math.round},nh={rotate:mt,pathRotation:mt,rotateX:mt,rotateY:mt,rotateZ:mt,scale:xe,scaleX:xe,scaleY:xe,scaleZ:xe,skew:mt,skewX:mt,skewY:mt,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:de,originX:an,originY:an,originZ:S},Ne={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,...nh,zIndex:An,fillOpacity:de,strokeOpacity:de,numOctaves:An},rh={...Ne,color:j,backgroundColor:j,outlineColor:j,fill:j,stroke:j,borderColor:j,borderTopColor:j,borderRightColor:j,borderBottomColor:j,borderLeftColor:j,filter:Ki,WebkitFilter:Ki,mask:Wi,WebkitMask:Wi},sa=t=>rh[t],oh=new Set([Ki,Wi]);function na(t,e){let i=sa(t);return oh.has(i)||(i=ut),i.getAnimatableNone?i.getAnimatableNone(e):void 0}const ah=new Set(["auto","none","0"]);function lh(t,e,i){let s=0,n;for(;s<t.length&&!n;){const o=t[s];typeof o=="string"&&!ah.has(o)&&Ht(o).values.length&&(n=t[s]),s++}if(n&&i)for(const o of e)t[o]=na(i,n)}let ch=class extends Cs{constructor(e,i,s,n,o){super(e,i,s,n,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:i,name:s}=this;if(!i||!i.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let h=e[l];if(typeof h=="string"&&(h=h.trim(),ws(h))){const f=qo(h,i.current);f!==void 0&&(e[l]=f),l===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Jo.has(s)||e.length!==2)return;const[n,o]=e,r=bn(n),a=bn(o),c=on(n),u=on(o);if(c!==u&&bt[s]){this.needsMeasurement=!0;return}if(r!==a)if(mn(r)&&mn(a))for(let l=0;l<e.length;l++){const h=e[l];typeof h=="string"&&(e[l]=parseFloat(h))}else bt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:i}=this,s=[];for(let n=0;n<e.length;n++)(e[n]===null||th(e[n]))&&s.push(n);s.length&&lh(e,s,i)}measureInitialState(){const{element:e,unresolvedKeyframes:i,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=bt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),i[0]=this.measuredOrigin;const n=i[i.length-1];n!==void 0&&e.getValue(s,n).jump(n,!1)}measureEndState(){const{element:e,name:i,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const n=e.getValue(i);n&&n.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=bt[i](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{e.getValue(a).set(c)}),this.resolveNoneKeyframes()}};function ra(t,e,i){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;e&&(s=e.current);const n=i?.[t]??s.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t).filter(s=>s!=null)}const zi=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function uh(t){return co(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:oa}=wo(queueMicrotask,!1),rt={x:!1,y:!1};function aa(){return rt.x||rt.y}function jy(t){return t==="x"||t==="y"?rt[t]?null:(rt[t]=!0,()=>{rt[t]=!1}):rt.x||rt.y?null:(rt.x=rt.y=!0,()=>{rt.x=rt.y=!1})}function la(t,e){const i=ra(t),s=new AbortController,n={passive:!0,...e,signal:s.signal};return[i,n,()=>s.abort()]}function hh(t){return!(t.pointerType==="touch"||aa())}function Ny(t,e,i={}){const[s,n,o]=la(t,i);return s.forEach(r=>{let a=!1,c=!1,u;const l=()=>{r.removeEventListener("pointerleave",p)},h=y=>{u&&(u(y),u=void 0),l()},f=y=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),c&&(c=!1,h(y))},d=()=>{a=!0,window.addEventListener("pointerup",f,n),window.addEventListener("pointercancel",f,n)},p=y=>{if(y.pointerType!=="touch"){if(a){c=!0;return}h(y)}},m=y=>{if(!hh(y))return;c=!1;const g=e(r,y);typeof g=="function"&&(u=g,r.addEventListener("pointerleave",p,n))};r.addEventListener("pointerenter",m,n),r.addEventListener("pointerdown",d,n)}),o}const ca=(t,e)=>e?t===e?!0:ca(t,e.parentElement):!1,fh=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,dh=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ph(t){return dh.has(t.tagName)||t.isContentEditable===!0}const mh=new Set(["INPUT","SELECT","TEXTAREA"]);function Uy(t){return mh.has(t.tagName)||t.isContentEditable===!0}const Se=new WeakSet;function Vn(t){return e=>{e.key==="Enter"&&t(e)}}function li(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const yh=(t,e)=>{const i=t.currentTarget;if(!i)return;const s=Vn(()=>{if(Se.has(i))return;li(i,"down");const n=Vn(()=>{li(i,"up")}),o=()=>li(i,"cancel");i.addEventListener("keyup",n,e),i.addEventListener("blur",o,e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)};function Sn(t){return fh(t)&&!aa()}const wn=new WeakSet;function Ky(t,e,i={}){const[s,n,o]=la(t,i),r=a=>{const c=a.currentTarget;if(!Sn(a)||wn.has(a))return;Se.add(c),i.stopPropagation&&wn.add(a);const u=e(c,a),l=(d,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),Se.has(c)&&Se.delete(c),Sn(d)&&typeof u=="function"&&u(d,{success:p})},h=d=>{l(d,c===window||c===document||i.useGlobalTarget||ca(c,d.target))},f=d=>{l(d,!1)};window.addEventListener("pointerup",h,n),window.addEventListener("pointercancel",f,n)};return s.forEach(a=>{(i.useGlobalTarget?window:a).addEventListener("pointerdown",r,n),uh(a)&&(a.addEventListener("focus",u=>yh(u,n)),!ph(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Es(t){return co(t)&&"ownerSVGElement"in t}const we=new WeakMap;let $e;const ua=(t,e,i)=>(s,n)=>n&&n[0]?n[0][t+"Size"]:Es(s)&&"getBBox"in s?s.getBBox()[e]:s[i],gh=ua("inline","width","offsetWidth"),Th=ua("block","height","offsetHeight");function vh({target:t,borderBoxSize:e}){we.get(t)?.forEach(i=>{i(t,{get width(){return gh(t,e)},get height(){return Th(t,e)}})})}function xh(t){t.forEach(vh)}function bh(){typeof ResizeObserver>"u"||($e=new ResizeObserver(xh))}function Ah(t,e){$e||bh();const i=ra(t);return i.forEach(s=>{let n=we.get(s);n||(n=new Set,we.set(s,n)),n.add(e),$e?.observe(s)}),()=>{i.forEach(s=>{const n=we.get(s);n?.delete(e),n?.size||$e?.unobserve(s)})}}const Pe=new Set;let Nt;function Vh(){Nt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Pe.forEach(e=>e(t))},window.addEventListener("resize",Nt)}function Sh(t){return Pe.add(t),Nt||Vh(),()=>{Pe.delete(t),!Pe.size&&typeof Nt=="function"&&(window.removeEventListener("resize",Nt),Nt=void 0)}}function Wy(t,e){return typeof t=="function"?Sh(t):Ah(t,e)}function wh(t){return Es(t)&&t.tagName==="svg"}const $h=[...ia,j,ut],Ph=t=>$h.find(ea(t)),$n=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ut=()=>({x:$n(),y:$n()}),Pn=()=>({min:0,max:0}),K=()=>({x:Pn(),y:Pn()}),Dh=new WeakMap;function ha(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Ls(t){return typeof t=="string"||Array.isArray(t)}const Fs=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Is=["initial",...Fs];function fa(t){return ha(t.animate)||Is.some(e=>Ls(t[e]))}function Mh(t){return!!(fa(t)||t.variants)}function Rh(t,e,i){for(const s in e){const n=e[s],o=i[s];if(J(n))t.addValue(s,n);else if(J(o))t.addValue(s,Yt(n,{owner:t}));else if(o!==n)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(n):r.hasAnimated||r.set(n)}else{const r=t.getStaticValue(s);t.addValue(s,Yt(r!==void 0?r:n,{owner:t}))}}for(const s in i)e[s]===void 0&&t.removeValue(s);return e}const Xi={current:null},da={current:!1},Ch=typeof window<"u";function Bh(){if(da.current=!0,!!Ch)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Xi.current=t.matches;t.addEventListener("change",e),e()}else Xi.current=!1}const Dn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ue={};function zy(t){Ue=t}function Xy(){return Ue}let pa=class{scrapeMotionValuesFromProps(e,i,s){return{}}constructor({parent:e,props:i,presenceContext:s,reducedMotionConfig:n,skipAnimations:o,blockInitialAnimation:r,visualState:a},c={}){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=Cs,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=()=>{const d=q.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,z.render(this.render,!1,!0))};const{latestValues:u,renderState:l}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=i.initial?{...u}:{},this.renderState=l,this.parent=e,this.props=i,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=o,this.options=c,this.blockInitialAnimation=!!r,this.isControllingVariants=fa(i),this.isVariantNode=Mh(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(i,{},this);for(const d in f){const p=f[d];u[d]!==void 0&&J(p)&&p.set(u[d])}}mount(e){if(this.hasBeenMounted)for(const i in this.initialValues)this.values.get(i)?.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=e,Dh.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,s)=>this.bindToMotionValue(s,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(da.current||Bh(),this.shouldReduceMotion=Xi.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),It(this.notifyUpdate),It(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const i=this.features[e];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,i){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),i.accelerate&&_o.has(e)&&this.current instanceof HTMLElement){const{factory:r,keyframes:a,times:c,ease:u,duration:l}=i.accelerate,h=new zo({element:this.current,name:e,keyframes:a,times:c,ease:u,duration:ct(l)}),f=r(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const s=Qt.has(e);s&&this.onBindTransform&&this.onBindTransform();const n=i.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&z.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,i)),this.valueSubscriptions.set(e,()=>{n(),o&&o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Ue){const i=Ue[e];if(!i)continue;const{isEnabled:s,Feature:n}=i;if(!this.features[e]&&n&&s(this.props)&&(this.features[e]=new n(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):K()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,i){this.latestValues[e]=i}update(e,i){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let s=0;s<Dn.length;s++){const n=Dn[s];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const o="on"+n,r=e[o];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Rh(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(e),()=>i.variantChildren.delete(e)}addValue(e,i){const s=this.values.get(e);i!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,i),this.values.set(e,i),this.latestValues[e]=i.get())}removeValue(e){this.values.delete(e);const i=this.valueSubscriptions.get(e);i&&(i(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,i){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&i!==void 0&&(s=Yt(i===null?void 0:i,{owner:this}),this.addValue(e,s)),s}readValue(e,i){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(lo(s)||uo(s))?s=parseFloat(s):!Ph(s)&&ut.test(i)&&(s=na(e,i)),this.setBaseTarget(e,J(s)?s.get():s)),J(s)?s.get():s}setBaseTarget(e,i){this.baseTarget[e]=i}getBaseTarget(e){const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const o=Zo(this.props,i,this.presenceContext?.custom);o&&(s=o[e])}if(i&&s!==void 0)return s;const n=this.getBaseTargetFromProps(this.props,e);return n!==void 0&&!J(n)?n:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,i){return this.events[e]||(this.events[e]=new As),this.events[e].add(i)}notify(e,...i){this.events[e]&&this.events[e].notify(...i)}scheduleRenderMicrotask(){oa.render(this.render)}},ma=class extends pa{constructor(){super(...arguments),this.KeyframeResolver=ch}sortInstanceNodePosition(e,i){return e.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(e,i){const s=e.style;return s?s[i]:void 0}removeValueFromRenderState(e,{vars:i,style:s}){delete i[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;J(e)&&(this.childSubscription=e.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}},Yy=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function kh({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function qy({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Eh(t,e){if(!e)return t;const i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}function ci(t){return t===void 0||t===1}function _i({scale:t,scaleX:e,scaleY:i}){return!ci(t)||!ci(e)||!ci(i)}function Mt(t){return _i(t)||ya(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ya(t){return Mn(t.x)||Mn(t.y)}function Mn(t){return t&&t!=="0%"}function Ke(t,e,i){const s=t-i,n=e*s;return i+n}function Rn(t,e,i,s,n){return n!==void 0&&(t=Ke(t,n,s)),Ke(t,i,s)+e}function Hi(t,e=0,i=1,s,n){t.min=Rn(t.min,e,i,s,n),t.max=Rn(t.max,e,i,s,n)}function ga(t,{x:e,y:i}){Hi(t.x,e.translate,e.scale,e.originPoint),Hi(t.y,i.translate,i.scale,i.originPoint)}const Cn=.999999999999,Bn=1.0000000000001;function Lh(t,e,i,s=!1){const n=i.length;if(!n)return;e.x=e.y=1;let o,r;for(let a=0;a<n;a++){o=i[a],r=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(dt(t.x,-o.scroll.offset.x),dt(t.y,-o.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,ga(t,r)),s&&Mt(o.latestValues)&&De(t,o.latestValues,o.layout?.layoutBox))}e.x<Bn&&e.x>Cn&&(e.x=1),e.y<Bn&&e.y>Cn&&(e.y=1)}function dt(t,e){t.min+=e,t.max+=e}function kn(t,e,i,s,n=.5){const o=k(t.min,t.max,n);Hi(t,e,i,o,s)}function En(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function De(t,e,i){const s=i??t;kn(t.x,En(e.x,s.x),e.scaleX,e.scale,e.originX),kn(t.y,En(e.y,s.y),e.scaleY,e.scale,e.originY)}function Ta(t,e){return kh(Eh(t.getBoundingClientRect(),e))}function Zy(t,e,i){const s=Ta(t,i),{scroll:n}=e;return n&&(dt(s.x,n.offset.x),dt(s.y,n.offset.y)),s}const Fh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ih=Jt.length;function Oh(t,e,i){let s="",n=!0;for(let r=0;r<Ih;r++){const a=Jt[r],c=t[a];if(c===void 0)continue;let u=!0;if(typeof c=="number")u=c===(a.startsWith("scale")?1:0);else{const l=parseFloat(c);u=a.startsWith("scale")?l===1:l===0}if(!u||i){const l=zi(c,Ne[a]);if(!u){n=!1;const h=Fh[a]||a;s+=`${h}(${l}) `}i&&(e[a]=l)}}const o=t.pathRotation;return o&&(n=!1,s+=`rotate(${zi(o,Ne.pathRotation)}) `),s=s.trim(),i?s=i(e,n?"":s):n&&(s="none"),s}function va(t,e,i){const{style:s,vars:n,transformOrigin:o}=t;let r=!1,a=!1;for(const c in e){const u=e[c];if(Qt.has(c)){r=!0;continue}else if(Po(c)){n[c]=u;continue}else{const l=zi(u,Ne[c]);c.startsWith("origin")?(a=!0,o[c]=l):s[c]=l}}if(e.transform||(r||i?s.transform=Oh(e,t.transform,i):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:u="50%",originZ:l=0}=o;s.transformOrigin=`${c} ${u} ${l}`}}function xa(t,{style:e,vars:i},s,n){const o=t.style;let r;for(r in e)o[r]=e[r];n?.applyProjectionStyles(o,s);for(r in i)o.setProperty(r,i[r])}function Ln(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const se={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(S.test(t))t=parseFloat(t);else return t;const i=Ln(t,e.target.x),s=Ln(t,e.target.y);return`${i}% ${s}%`}},jh={correct:(t,{treeScale:e,projectionDelta:i})=>{const s=t,n=ut.parse(t);if(n.length>5)return s;const o=ut.createTransformer(t),r=typeof n[0]!="number"?1:0,a=i.x.scale*e.x,c=i.y.scale*e.y;n[0+r]/=a,n[1+r]/=c;const u=k(a,c,.5);return typeof n[2+r]=="number"&&(n[2+r]/=u),typeof n[3+r]=="number"&&(n[3+r]/=u),o(n)}},Yi={borderRadius:{...se,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:se,borderTopRightRadius:se,borderBottomLeftRadius:se,borderBottomRightRadius:se,boxShadow:jh};function Nh(t,{layout:e,layoutId:i}){return Qt.has(t)||t.startsWith("origin")||(e||i!==void 0)&&(!!Yi[t]||t==="opacity")}function ba(t,e,i){const s=t.style,n=e?.style,o={};if(!s)return o;for(const r in s)(J(s[r])||n&&J(n[r])||Nh(r,t)||i?.getValue(r)?.liveStyle!==void 0)&&(o[r]=s[r]);return o}function Uh(t){return window.getComputedStyle(t)}let Jy=class extends ma{constructor(){super(...arguments),this.type="html",this.renderInstance=xa}readValueFromInstance(e,i){if(Qt.has(i))return this.projection?.isProjecting?Ei(i):lu(e,i);{const s=Uh(e),n=(Po(i)?s.getPropertyValue(i):s[i])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:i}){return Ta(e,i)}build(e,i,s){va(e,i,s.transformTemplate)}scrapeMotionValuesFromProps(e,i,s){return ba(e,i,s)}};function Kh(t,e){return t in e}class tg extends pa{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,i){if(Kh(i,e)){const s=e[i];if(typeof s=="string"||typeof s=="number")return s}}getBaseTargetFromProps(){}removeValueFromRenderState(e,i){delete i.output[e]}measureInstanceViewportBox(){return K()}build(e,i){Object.assign(e.output,i)}renderInstance(e,{output:i}){Object.assign(e,i)}sortInstanceNodePosition(){return 0}}const Wh={offset:"stroke-dashoffset",array:"stroke-dasharray"},zh={offset:"strokeDashoffset",array:"strokeDasharray"};function Xh(t,e,i=1,s=0,n=!0){t.pathLength=1;const o=n?Wh:zh;t[o.offset]=`${-s}`,t[o.array]=`${e} ${i}`}const _h=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Hh(t,{attrX:e,attrY:i,attrScale:s,pathLength:n,pathSpacing:o=1,pathOffset:r=0,...a},c,u,l){if(va(t,a,u),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=l?.transformBox??"fill-box",delete h.transformBox);for(const d of _h)h[d]!==void 0&&(f[d]=h[d],delete h[d]);e!==void 0&&(h.x=e),i!==void 0&&(h.y=i),s!==void 0&&(h.scale=s),n!==void 0&&Xh(h,n,o,r,!1)}const Aa=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"]),Yh=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Gh(t,e,i,s){xa(t,e,void 0,s);for(const n in e.attrs)t.setAttribute(Aa.has(n)?n:ks(n),e.attrs[n])}function qh(t,e,i){const s=ba(t,e,i);for(const n in t)if(J(t[n])||J(e[n])){const o=Jt.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;s[o]=t[n]}return s}let eg=class extends ma{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=K}getBaseTargetFromProps(e,i){return e[i]}readValueFromInstance(e,i){if(Qt.has(i)){const s=sa(i);return s&&s.default||0}return i=Aa.has(i)?i:ks(i),e.getAttribute(i)}scrapeMotionValuesFromProps(e,i,s){return qh(e,i,s)}build(e,i,s){Hh(e,i,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,i,s,n){Gh(e,i,s,n)}mount(e){this.isSVGTag=Yh(e.tagName),super.mount(e)}};const Zh=Is.length;function Va(t){if(!t)return;if(!t.isControllingVariants){const i=t.parent?Va(t.parent)||{}:{};return t.props.initial!==void 0&&(i.initial=t.props.initial),i}const e={};for(let i=0;i<Zh;i++){const s=Is[i],n=t.props[s];(Ls(n)||n===!1)&&(e[s]=n)}return e}function Sa(t,e){if(!Array.isArray(e))return!1;const i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}const Jh=[...Fs].reverse(),Qh=Fs.length;function tf(t){return e=>Promise.all(e.map(({animation:i,options:s})=>Ju(t,i,s)))}function sg(t){let e=tf(t),i=Fn(),s=!0,n=!1;const o=u=>(l,h)=>{const f=Xt(t,h,u==="exit"?t.presenceContext?.custom:void 0);if(f){const{transition:d,transitionEnd:p,...m}=f;l={...l,...m,...p}}return l};function r(u){e=u(t)}function a(u){const{props:l}=t,h=Va(t.parent)||{},f=[],d=new Set;let p={},m=1/0;for(let g=0;g<Qh;g++){const x=Jh[g],T=i[x],v=l[x]!==void 0?l[x]:h[x],V=Ls(v),P=x===u?T.isActive:null;P===!1&&(m=g);let $=v===h[x]&&v!==l[x]&&V;if($&&(s||n)&&t.manuallyAnimateOnMount&&($=!1),T.protectedKeys={...p},!T.isActive&&P===null||!v&&!T.prevProp||ha(v)||typeof v=="boolean")continue;if(x==="exit"&&T.isActive&&P!==!0){T.prevResolvedValues&&(p={...p,...T.prevResolvedValues});continue}const A=ef(T.prevProp,v);let M=A||x===u&&T.isActive&&!$&&V||g>m&&V,b=!1;const D=Array.isArray(v)?v:[v];let C=D.reduce(o(x),{});P===!1&&(C={});const{prevResolvedValues:_={}}=T,I={..._,...C},U=R=>{M=!0,d.has(R)&&(b=!0,d.delete(R)),T.needsAnimating[R]=!0;const B=t.getValue(R);B&&(B.liveStyle=!1)};for(const R in I){const B=C[R],H=_[R];if(p.hasOwnProperty(R))continue;let tt=!1;Ni(B)&&Ni(H)?tt=!Sa(B,H)||A:tt=B!==H,tt?B!=null?U(R):d.add(R):B!==void 0&&d.has(R)?U(R):T.protectedKeys[R]=!0}T.prevProp=v,T.prevResolvedValues=C,T.isActive&&(p={...p,...C}),(s||n)&&t.blockInitialAnimation&&(M=!1);const O=$&&A;M&&(!O||b)&&f.push(...D.map(R=>{const B={type:x};if(typeof R=="string"&&(s||n)&&!O&&t.manuallyAnimateOnMount&&t.parent){const{parent:H}=t,tt=Xt(H,R);if(H.enteringChildren&&tt){const{delayChildren:ei}=tt.transition||{};B.delay=Ho(H.enteringChildren,t,ei)}}return{animation:R,options:B}}))}if(d.size){const g={};if(typeof l.initial!="boolean"){const x=Xt(t,Array.isArray(l.initial)?l.initial[0]:l.initial);x&&x.transition&&(g.transition=x.transition)}d.forEach(x=>{const T=t.getBaseTarget(x),v=t.getValue(x);v&&(v.liveStyle=!0),g[x]=T??null}),f.push({animation:g})}let y=!!f.length;return s&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,n=!1,y?e(f):Promise.resolve()}function c(u,l){if(i[u].isActive===l)return Promise.resolve();t.variantChildren?.forEach(f=>f.animationState?.setActive(u,l)),i[u].isActive=l;const h=a(u);for(const f in i)i[f].protectedKeys={};return h}return{animateChanges:a,setActive:c,setAnimateFunction:r,getState:()=>i,reset:()=>{i=Fn(),n=!0}}}function ef(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Sa(e,t):!1}function Pt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Fn(){return{animate:Pt(!0),whileInView:Pt(),whileHover:Pt(),whileTap:Pt(),whileDrag:Pt(),whileFocus:Pt(),exit:Pt()}}function Gi(t,e){t.min=e.min,t.max=e.max}function st(t,e){Gi(t.x,e.x),Gi(t.y,e.y)}function In(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const wa=1e-4,sf=1-wa,nf=1+wa,$a=.01,rf=0-$a,of=0+$a;function et(t){return t.max-t.min}function af(t,e,i){return Math.abs(t-e)<=i}function On(t,e,i,s=.5){t.origin=s,t.originPoint=k(e.min,e.max,t.origin),t.scale=et(i)/et(e),t.translate=k(i.min,i.max,t.origin)-t.originPoint,(t.scale>=sf&&t.scale<=nf||isNaN(t.scale))&&(t.scale=1),(t.translate>=rf&&t.translate<=of||isNaN(t.translate))&&(t.translate=0)}function ce(t,e,i,s){On(t.x,e.x,i.x,s?s.originX:void 0),On(t.y,e.y,i.y,s?s.originY:void 0)}function jn(t,e,i,s=0){const n=s?k(i.min,i.max,s):i.min;t.min=n+e.min,t.max=t.min+et(e)}function lf(t,e,i,s){jn(t.x,e.x,i.x,s?.x),jn(t.y,e.y,i.y,s?.y)}function Nn(t,e,i,s=0){const n=s?k(i.min,i.max,s):i.min;t.min=e.min-n,t.max=t.min+et(e)}function We(t,e,i,s){Nn(t.x,e.x,i.x,s?.x),Nn(t.y,e.y,i.y,s?.y)}function Un(t,e,i,s,n){return t-=e,t=Ke(t,1/i,s),n!==void 0&&(t=Ke(t,1/n,s)),t}function cf(t,e=0,i=1,s=.5,n,o=t,r=t){if(gt.test(e)&&(e=parseFloat(e),e=k(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=k(o.min,o.max,s);t===o&&(a-=e),t.min=Un(t.min,e,i,a,n),t.max=Un(t.max,e,i,a,n)}function Kn(t,e,[i,s,n],o,r){cf(t,e[i],e[s],e[n],e.scale,o,r)}const uf=["x","scaleX","originX"],hf=["y","scaleY","originY"];function Wn(t,e,i,s){Kn(t.x,e,uf,i?i.x:void 0,s?s.x:void 0),Kn(t.y,e,hf,i?i.y:void 0,s?s.y:void 0)}function zn(t){return t.translate===0&&t.scale===1}function Pa(t){return zn(t.x)&&zn(t.y)}function Xn(t,e){return t.min===e.min&&t.max===e.max}function ff(t,e){return Xn(t.x,e.x)&&Xn(t.y,e.y)}function _n(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Da(t,e){return _n(t.x,e.x)&&_n(t.y,e.y)}function Hn(t){return et(t.x)/et(t.y)}function Yn(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Gn(t){return[t("x"),t("y")]}function df(t,e,i){let s="";const n=t.x.translate/e.x,o=t.y.translate/e.y,r=i?.z||0;if((n||o||r)&&(s=`translate3d(${n}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){const{transformPerspective:u,rotate:l,pathRotation:h,rotateX:f,rotateY:d,skewX:p,skewY:m}=i;u&&(s=`perspective(${u}px) ${s}`),l&&(s+=`rotate(${l}deg) `),h&&(s+=`rotate(${h}deg) `),f&&(s+=`rotateX(${f}deg) `),d&&(s+=`rotateY(${d}deg) `),p&&(s+=`skewX(${p}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const Ma=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],pf=Ma.length,qn=t=>typeof t=="string"?parseFloat(t):t,Zn=t=>typeof t=="number"||S.test(t);function mf(t,e,i,s,n,o){n?(t.opacity=k(0,i.opacity??1,yf(s)),t.opacityExit=k(e.opacity??1,0,gf(s))):o&&(t.opacity=k(e.opacity??1,i.opacity??1,s));for(let r=0;r<pf;r++){const a=Ma[r];let c=Jn(e,a),u=Jn(i,a);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Zn(c)===Zn(u)?(t[a]=Math.max(k(qn(c),qn(u),s),0),(gt.test(u)||gt.test(c))&&(t[a]+="%")):t[a]=u}(e.rotate||i.rotate)&&(t.rotate=k(e.rotate||0,i.rotate||0,s))}function Jn(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const yf=Ra(0,.5,xo),gf=Ra(.5,.95,wt);function Ra(t,e,i){return s=>s<t?0:s>e?1:i(bs(t,e,s))}function Tf(t,e,i){const s=J(t)?t:Yt(t);return s.start(Go("",s,e,i)),s.animation}function vf(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}const xf=(t,e)=>t.depth-e.depth;let bf=class{constructor(){this.children=[],this.isDirty=!1}add(e){Ts(this.children,e),this.isDirty=!0}remove(e){Le(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(xf),this.isDirty=!1,this.children.forEach(e)}};function Af(t,e){const i=q.now(),s=({timestamp:n})=>{const o=n-i;o>=e&&(It(s),t(o-e))};return z.setup(s,!0),()=>It(s)}function ui(t){return J(t)?t.get():t}let Vf=class{constructor(){this.members=[]}add(e){Ts(this.members,e);for(let i=this.members.length-1;i>=0;i--){const s=this.members[i];if(s===e||s===this.lead||s===this.prevLead)continue;const n=s.instance;(!n||n.isConnected===!1)&&!s.snapshot&&(Le(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(Le(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(e){for(let i=this.members.indexOf(e)-1;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,i){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:n}=s.options,{layoutDependency:o}=e.options;(n===void 0||n!==o)&&(e.resumeFrom=s,i&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};const hi={hasAnimatedSinceResize:!0,hasEverUpdated:!1},fi=["","X","Y","Z"],Sf=1e3;let wf=0;function di(t,e,i,s){const{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Ca(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const i=Qo(e);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:n,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",z,!(n||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Ca(s)}function Ba({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(r={},a=e?.()){this.id=wf++,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=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Df),this.nodes.forEach(Ef),this.nodes.forEach(Lf),this.nodes.forEach(Mf)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new bf)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new As),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const c=this.eventHandlers.get(r);c&&c.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=Es(r)&&!wh(r),this.instance=r;const{layoutId:a,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let l,h=0;const f=()=>this.root.updateBlockedByResize=!1;z.read(()=>{h=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,l&&l(),l=Af(f,250),hi.hasAnimatedSinceResize&&(hi.hasAnimatedSinceResize=!1,this.nodes.forEach(er)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||c)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||Nf,{onLayoutAnimationStart:m,onLayoutAnimationComplete:y}=u.getProps(),g=!this.targetLayout||!Da(this.targetLayout,d),x=!h&&f;if(this.options.layoutRoot||this.resumeFrom||x||h&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Bs(p,"layout"),onPlay:m,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(l,x,T.path)}else h||er(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),It(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(Ff),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ca(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const h=this.path[l];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(Cf),this.nodes.forEach(Qn);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(tr);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Bf),this.nodes.forEach(kf),this.nodes.forEach($f),this.nodes.forEach(Pf)):this.nodes.forEach(tr),this.clearAllSnapshots();const a=q.now();Y.delta=vt(0,1e3/60,a-Y.timestamp),Y.timestamp=a,Y.isProcessing=!0,ii.update.process(Y),ii.preRender.process(Y),ii.render.process(Y),Y.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,oa.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Rf),this.sharedNodes.forEach(If)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!et(this.snapshot.measuredBox.x)&&!et(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=K()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!n)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Pa(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,l=u!==this.prevTransformTemplateValue;r&&this.instance&&(a||Mt(this.latestValues)||l)&&(n(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return r&&(c=this.removeTransform(c)),Uf(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return K();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Kf))){const{scroll:u}=this.root;u&&(dt(a.x,u.offset.x),dt(a.y,u.offset.y))}return a}removeElementScroll(r){const a=K();if(st(a,r),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:l,options:h}=u;u!==this.root&&l&&h.layoutScroll&&(l.wasRoot&&st(a,r),dt(a.x,l.offset.x),dt(a.y,l.offset.y))}return a}applyTransform(r,a=!1,c){const u=c||K();st(u,r);for(let l=0;l<this.path.length;l++){const h=this.path[l];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(dt(u.x,-h.scroll.offset.x),dt(u.y,-h.scroll.offset.y)),Mt(h.latestValues)&&De(u,h.latestValues,h.layout?.layoutBox)}return Mt(this.latestValues)&&De(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(r){const a=K();st(a,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!Mt(u.latestValues))continue;let l;u.instance&&(_i(u.latestValues)&&u.updateSnapshot(),l=K(),st(l,u.measurePageBox())),Wn(a,u.latestValues,u.snapshot?.layoutBox,l)}return Mt(this.latestValues)&&Wn(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}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!==Y.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:h}=this.options;if(!this.layout||!(l||h))return;this.resolvedRelativeTargetAt=Y.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=K(),this.targetWithTransforms=K()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),lf(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):st(this.target,this.layout.layoutBox),ga(this.target,this.targetDelta)):st(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||_i(this.parent.latestValues)||ya(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,c){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=K(),this.relativeTargetOrigin=K(),We(this.relativeTargetOrigin,a,c,this.options.layoutAnchor||void 0),st(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Y.timestamp&&(c=!1),c)return;const{layout:u,layoutId:l}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||l))return;st(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Lh(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=K());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(In(this.prevProjectionDelta.x,this.projectionDelta.x),In(this.prevProjectionDelta.y,this.projectionDelta.y)),ce(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Yn(this.projectionDelta.x,this.prevProjectionDelta.x)||!Yn(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ut(),this.projectionDelta=Ut(),this.projectionDeltaWithTransform=Ut()}setAnimationOrigin(r,a=!1,c){const u=this.snapshot,l=u?u.latestValues:{},h={...this.latestValues},f=Ut();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=K(),p=u?u.source:void 0,m=this.layout?this.layout.source:void 0,y=p!==m,g=this.getStack(),x=!g||g.members.length<=1,T=!!(y&&!x&&this.options.crossfade===!0&&!this.path.some(jf));this.animationProgress=0;let v;const V=c?.interpolateProjection(r);this.mixTargetDelta=P=>{const $=P/1e3,A=V?.($);A?(f.x.translate=A.x,f.x.scale=k(r.x.scale,1,$),f.x.origin=r.x.origin,f.x.originPoint=r.x.originPoint,f.y.translate=A.y,f.y.scale=k(r.y.scale,1,$),f.y.origin=r.y.origin,f.y.originPoint=r.y.originPoint):(ir(f.x,r.x,$),ir(f.y,r.y,$)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(We(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Of(this.relativeTarget,this.relativeTargetOrigin,d,$),v&&ff(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=K()),st(v,this.relativeTarget)),y&&(this.animationValues=h,mf(h,l,this.latestValues,$,T,x)),A&&A.rotate!==void 0&&(this.animationValues||(this.animationValues=h),this.animationValues.pathRotation=A.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(It(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=z.update(()=>{hi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Yt(0)),this.motionValue.jump(0,!1),this.currentAnimation=Tf(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Sf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:c,layout:u,latestValues:l}=r;if(!(!a||!c||!u)){if(this!==r&&this.layout&&u&&ka(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||K();const h=et(this.layout.layoutBox.x);c.x.min=r.target.x.min,c.x.max=c.x.min+h;const f=et(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+f}st(a,c),De(a,l),ce(this.projectionDeltaWithTransform,this.layoutCorrected,a,l)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Vf),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const u={};c.z&&di("z",r,u,this.animationValues);for(let l=0;l<fi.length;l++)di(`rotate${fi[l]}`,r,u,this.animationValues),di(`skew${fi[l]}`,r,u,this.animationValues);r.render();for(const l in u)r.setStaticValue(l,u[l]),this.animationValues&&(this.animationValues[l]=u[l]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=ui(a?.pointerEvents)||"",r.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=ui(a?.pointerEvents)||""),this.hasProjected&&!Mt(this.latestValues)&&(r.transform=c?c({},""):"none",this.hasProjected=!1);return}r.visibility="";const l=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=df(this.projectionDeltaWithTransform,this.treeScale,l);c&&(h=c(l,h)),r.transform=h;const{x:f,y:d}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,u.animationValues?r.opacity=u===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:r.opacity=u===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const p in Yi){if(l[p]===void 0)continue;const{correct:m,applyTo:y,isCSSVariable:g}=Yi[p],x=h==="none"?l[p]:m(l[p],u);if(y){const T=y.length;for(let v=0;v<T;v++)r[y[v]]=x}else g?this.options.visualElement.renderState.vars[p]=x:r[p]=x}this.options.layoutId&&(r.pointerEvents=u===this?ui(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Qn),this.root.sharedNodes.clear()}}}function $f(t){t.updateLayout()}function Pf(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,o=e.source!==t.layout.source;if(n==="size")Gn(l=>{const h=o?e.measuredBox[l]:e.layoutBox[l],f=et(h);h.min=i[l].min,h.max=h.min+f});else if(n==="x"||n==="y"){const l=n==="x"?"y":"x";Gi(o?e.measuredBox[l]:e.layoutBox[l],i[l])}else ka(n,e.layoutBox,i)&&Gn(l=>{const h=o?e.measuredBox[l]:e.layoutBox[l],f=et(i[l]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[l].max=t.relativeTarget[l].min+f)});const r=Ut();ce(r,i,e.layoutBox);const a=Ut();o?ce(a,t.applyTransform(s,!0),e.measuredBox):ce(a,i,e.layoutBox);const c=!Pa(r);let u=!1;if(!t.resumeFrom){const l=t.getClosestProjectingParent();if(l&&!l.resumeFrom){const{snapshot:h,layout:f}=l;if(h&&f){const d=t.options.layoutAnchor||void 0,p=K();We(p,e.layoutBox,h.layoutBox,d);const m=K();We(m,i,f.layoutBox,d),Da(p,m)||(u=!0),l.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=l)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function Df(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Mf(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Rf(t){t.clearSnapshot()}function Qn(t){t.clearMeasurements()}function Cf(t){t.isLayoutDirty=!0,t.updateLayout()}function tr(t){t.isLayoutDirty=!1}function Bf(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function kf(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function er(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Ef(t){t.resolveTargetDelta()}function Lf(t){t.calcProjection()}function Ff(t){t.resetSkewAndRotation()}function If(t){t.removeLeadSnapshot()}function ir(t,e,i){t.translate=k(e.translate,0,i),t.scale=k(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function sr(t,e,i,s){t.min=k(e.min,i.min,s),t.max=k(e.max,i.max,s)}function Of(t,e,i,s){sr(t.x,e.x,i.x,s),sr(t.y,e.y,i.y,s)}function jf(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Nf={duration:.45,ease:[.4,0,.1,1]},nr=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rr=nr("applewebkit/")&&!nr("chrome/")?Math.round:wt;function or(t){t.min=rr(t.min),t.max=rr(t.max)}function Uf(t){or(t.x),or(t.y)}function ka(t,e,i){return t==="position"||t==="preserve-aspect"&&!af(Hn(e),Hn(i),.2)}function Kf(t){return t!==t.root&&t.scroll?.wasRoot}const Wf=Ba({attachResizeListener:(t,e)=>vf(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),pi={current:void 0},ag=Ba({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!pi.current){const t=new Wf({});t.mount(window),t.setOptions({layoutScroll:!0}),pi.current=t}return pi.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});function Os(t,e){t.indexOf(e)===-1&&t.push(e)}function ze(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}const xt=(t,e,i)=>i>e?e:i<t?t:i;let js=()=>{};const St={},Ea=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),La=t=>typeof t=="object"&&t!==null,Fa=t=>/^0[^.\s]+$/u.test(t);function Ia(t){let e;return()=>(e===void 0&&(e=t()),e)}const $t=t=>t,Ns=(...t)=>t.reduce((e,i)=>s=>i(e(s))),Us=(t,e,i)=>{const s=e-t;return s?(i-t)/s:1};class Ks{constructor(){this.subscriptions=[]}add(e){return Os(this.subscriptions,e),()=>ze(this.subscriptions,e)}notify(e,i,s){const n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](e,i,s);else for(let o=0;o<n;o++){const r=this.subscriptions[o];r&&r(e,i,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ht=t=>t*1e3,lt=t=>t/1e3,Oa=(t,e)=>e?t*(1e3/e):0,ja=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t,zf=1e-7,Xf=12;function _f(t,e,i,s,n){let o,r,a=0;do r=e+(i-e)/2,o=ja(r,s,n)-t,o>0?i=r:e=r;while(Math.abs(o)>zf&&++a<Xf);return r}function ge(t,e,i,s){if(t===e&&i===s)return $t;const n=o=>_f(o,0,1,t,i);return o=>o===0||o===1?o:ja(n(o),e,s)}const Na=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ua=t=>e=>1-t(1-e),Ka=ge(.33,1.53,.69,.99),Ws=Ua(Ka),Wa=Na(Ws),za=t=>t>=1?1:(t*=2)<1?.5*Ws(t):.5*(2-Math.pow(2,-10*(t-1))),zs=t=>1-Math.sin(Math.acos(t)),Xa=Ua(zs),_a=Na(zs),Hf=ge(.42,0,1,1),Yf=ge(0,0,.58,1),Ha=ge(.42,0,.58,1),Gf=t=>Array.isArray(t)&&typeof t[0]!="number",Ya=t=>Array.isArray(t)&&typeof t[0]=="number",qf={linear:$t,easeIn:Hf,easeInOut:Ha,easeOut:Yf,circIn:zs,circInOut:_a,circOut:Xa,backIn:Ws,backInOut:Wa,backOut:Ka,anticipate:za},Zf=t=>typeof t=="string",ar=t=>{if(Ya(t)){js(t.length===4);const[e,i,s,n]=t;return ge(e,i,s,n)}else if(Zf(t))return qf[t];return t},be=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Jf(t,e){let i=new Set,s=new Set,n=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(l){r.has(l)&&(u.schedule(l),t()),l(a)}const u={schedule:(l,h=!1,f=!1)=>{const p=f&&n?i:s;return h&&r.add(l),p.add(l),l},cancel:l=>{s.delete(l),r.delete(l)},process:l=>{if(a=l,n){o=!0;return}n=!0;const h=i;i=s,s=h,i.forEach(c),i.clear(),n=!1,o&&(o=!1,u.process(l))}};return u}const Qf=40;function Ga(t,e){let i=!1,s=!0;const n={delta:0,timestamp:0,isProcessing:!1},o=()=>i=!0,r=be.reduce((T,v)=>(T[v]=Jf(o),T),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:l,update:h,preRender:f,render:d,postRender:p}=r,m=()=>{const T=St.useManualTiming,v=T?n.timestamp:performance.now();i=!1,T||(n.delta=s?1e3/60:Math.max(Math.min(v-n.timestamp,Qf),1)),n.timestamp=v,n.isProcessing=!0,a.process(n),c.process(n),u.process(n),l.process(n),h.process(n),f.process(n),d.process(n),p.process(n),n.isProcessing=!1,i&&e&&(s=!1,t(m))},y=()=>{i=!0,s=!0,n.isProcessing||t(m)};return{schedule:be.reduce((T,v)=>{const V=r[v];return T[v]=(P,$=!1,A=!1)=>(i||y(),V.schedule(P,$,A)),T},{}),cancel:T=>{for(let v=0;v<be.length;v++)r[be[v]].cancel(T)},state:n,steps:r}}const{schedule:X,cancel:Ot,state:G,steps:mi}=Ga(typeof requestAnimationFrame<"u"?requestAnimationFrame:$t,!0);let Me;function td(){Me=void 0}const Z={now:()=>(Me===void 0&&Z.set(G.isProcessing||St.useManualTiming?G.timestamp:performance.now()),Me),set:t=>{Me=t,queueMicrotask(td)}},qa=t=>e=>typeof e=="string"&&e.startsWith(t),Za=qa("--"),ed=qa("var(--"),Xs=t=>ed(t)?id.test(t.split("/*")[0].trim()):!1,id=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function lr(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const te={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},pe={...te,transform:t=>xt(0,1,t)},Ae={...te,default:1},ue=t=>Math.round(t*1e5)/1e5,_s=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function sd(t){return t==null}const nd=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Hs=(t,e)=>i=>!!(typeof i=="string"&&nd.test(i)&&i.startsWith(t)||e&&!sd(i)&&Object.prototype.hasOwnProperty.call(i,e)),Ja=(t,e,i)=>s=>{if(typeof s!="string")return s;const[n,o,r,a]=s.match(_s);return{[t]:parseFloat(n),[e]:parseFloat(o),[i]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},rd=t=>xt(0,255,t),yi={...te,transform:t=>Math.round(rd(t))},kt={test:Hs("rgb","red"),parse:Ja("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+yi.transform(t)+", "+yi.transform(e)+", "+yi.transform(i)+", "+ue(pe.transform(s))+")"};function od(t){let e="",i="",s="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,s+=s,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:n?parseInt(n,16)/255:1}}const qi={test:Hs("#"),parse:od,transform:kt.transform},Te=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),yt=Te("deg"),Tt=Te("%"),w=Te("px"),ad=Te("vh"),ld=Te("vw"),cr={...Tt,parse:t=>Tt.parse(t)/100,transform:t=>Tt.transform(t*100)},Kt={test:Hs("hsl","hue"),parse:Ja("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+Tt.transform(ue(e))+", "+Tt.transform(ue(i))+", "+ue(pe.transform(s))+")"},N={test:t=>kt.test(t)||qi.test(t)||Kt.test(t),parse:t=>kt.test(t)?kt.parse(t):Kt.test(t)?Kt.parse(t):qi.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?kt.transform(t):Kt.transform(t),getAnimatableNone:t=>{const e=N.parse(t);return e.alpha=0,N.transform(e)}},cd=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ud(t){return isNaN(t)&&typeof t=="string"&&(t.match(_s)?.length||0)+(t.match(cd)?.length||0)>0}const Qa="number",tl="color",hd="var",fd="var(",ur="${}",dd=/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 Gt(t){const e=t.toString(),i=[],s={color:[],number:[],var:[]},n=[];let o=0;const a=e.replace(dd,c=>(N.test(c)?(s.color.push(o),n.push(tl),i.push(N.parse(c))):c.startsWith(fd)?(s.var.push(o),n.push(hd),i.push(c)):(s.number.push(o),n.push(Qa),i.push(parseFloat(c))),++o,ur)).split(ur);return{values:i,split:a,indexes:s,types:n}}function pd(t){return Gt(t).values}function el({split:t,types:e}){const i=t.length;return s=>{let n="";for(let o=0;o<i;o++)if(n+=t[o],s[o]!==void 0){const r=e[o];r===Qa?n+=ue(s[o]):r===tl?n+=N.transform(s[o]):n+=s[o]}return n}}function md(t){return el(Gt(t))}const yd=t=>typeof t=="number"?0:N.test(t)?N.getAnimatableNone(t):t,gd=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:yd(t);function Td(t){const e=Gt(t);return el(e)(e.values.map((s,n)=>gd(s,e.split[n])))}const ft={test:ud,parse:pd,createTransformer:md,getAnimatableNone:Td};function gi(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function vd({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,e/=100,i/=100;let n=0,o=0,r=0;if(!e)n=o=r=i;else{const a=i<.5?i*(1+e):i+e-i*e,c=2*i-a;n=gi(c,a,t+1/3),o=gi(c,a,t),r=gi(c,a,t-1/3)}return{red:Math.round(n*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Xe(t,e){return i=>i>0?e:t}const E=(t,e,i)=>t+(e-t)*i,Ti=(t,e,i)=>{const s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},xd=[qi,kt,Kt],bd=t=>xd.find(e=>e.test(t));function hr(t){const e=bd(t);if(!e)return!1;let i=e.parse(t);return e===Kt&&(i=vd(i)),i}const fr=(t,e)=>{const i=hr(t),s=hr(e);if(!i||!s)return Xe(t,e);const n={...i};return o=>(n.red=Ti(i.red,s.red,o),n.green=Ti(i.green,s.green,o),n.blue=Ti(i.blue,s.blue,o),n.alpha=E(i.alpha,s.alpha,o),kt.transform(n))},Zi=new Set(["none","hidden"]);function Ad(t,e){return Zi.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}function Vd(t,e){return i=>E(t,e,i)}function Ys(t){return typeof t=="number"?Vd:typeof t=="string"?Xs(t)?Xe:N.test(t)?fr:$d:Array.isArray(t)?il:typeof t=="object"?N.test(t)?fr:Sd:Xe}function il(t,e){const i=[...t],s=i.length,n=t.map((o,r)=>Ys(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)i[r]=n[r](o);return i}}function Sd(t,e){const i={...t,...e},s={};for(const n in i)t[n]!==void 0&&e[n]!==void 0&&(s[n]=Ys(t[n])(t[n],e[n]));return n=>{for(const o in s)i[o]=s[o](n);return i}}function wd(t,e){const i=[],s={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){const o=e.types[n],r=t.indexes[o][s[o]],a=t.values[r]??0;i[n]=a,s[o]++}return i}const $d=(t,e)=>{const i=ft.createTransformer(e),s=Gt(t),n=Gt(e);return s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length?Zi.has(t)&&!n.values.length||Zi.has(e)&&!s.values.length?Ad(t,e):Ns(il(wd(s,n),n.values),i):Xe(t,e)};function sl(t,e,i){return typeof t=="number"&&typeof e=="number"&&typeof i=="number"?E(t,e,i):Ys(t)(t,e)}const Pd=t=>{const e=({timestamp:i})=>t(i);return{start:(i=!0)=>X.update(e,i),stop:()=>Ot(e),now:()=>G.isProcessing?G.timestamp:Z.now()}},nl=(t,e,i=10)=>{let s="";const n=Math.max(Math.round(e/i),2);for(let o=0;o<n;o++)s+=Math.round(t(o/(n-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},_e=2e4;function Gs(t){let e=0;const i=50;let s=t.next(e);for(;!s.done&&e<_e;)e+=i,s=t.next(e);return e>=_e?1/0:e}function Dd(t,e=100,i){const s=i({...t,keyframes:[0,e]}),n=Math.min(Gs(s),_e);return{type:"keyframes",ease:o=>s.next(n*o).value/e,duration:lt(n)}}const F={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Ji(t,e){return t*Math.sqrt(1-e*e)}const Md=12;function Rd(t,e,i){let s=i;for(let n=1;n<Md;n++)s=s-t(s)/e(s);return s}const vi=.001;function Cd({duration:t=F.duration,bounce:e=F.bounce,velocity:i=F.velocity,mass:s=F.mass}){let n,o,r=1-e;r=xt(F.minDamping,F.maxDamping,r),t=xt(F.minDuration,F.maxDuration,lt(t)),r<1?(n=u=>{const l=u*r,h=l*t,f=l-i,d=Ji(u,r),p=Math.exp(-h);return vi-f/d*p},o=u=>{const h=u*r*t,f=h*i+i,d=Math.pow(r,2)*Math.pow(u,2)*t,p=Math.exp(-h),m=Ji(Math.pow(u,2),r);return(-n(u)+vi>0?-1:1)*((f-d)*p)/m}):(n=u=>{const l=Math.exp(-u*t),h=(u-i)*t+1;return-vi+l*h},o=u=>{const l=Math.exp(-u*t),h=(i-u)*(t*t);return l*h});const a=5/t,c=Rd(n,o,a);if(t=ht(t),isNaN(c))return{stiffness:F.stiffness,damping:F.damping,duration:t};{const u=Math.pow(c,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const Bd=["duration","bounce"],kd=["stiffness","damping","mass"];function dr(t,e){return e.some(i=>t[i]!==void 0)}function Ed(t){let e={velocity:F.velocity,stiffness:F.stiffness,damping:F.damping,mass:F.mass,isResolvedFromDuration:!1,...t};if(!dr(t,kd)&&dr(t,Bd))if(e.velocity=0,t.visualDuration){const i=t.visualDuration,s=2*Math.PI/(i*1.2),n=s*s,o=2*xt(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:F.mass,stiffness:n,damping:o}}else{const i=Cd({...t,velocity:0});e={...e,...i,mass:F.mass},e.isResolvedFromDuration=!0}return e}function He(t=F.visualDuration,e=F.bounce){const i=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:n}=i;const o=i.keyframes[0],r=i.keyframes[i.keyframes.length-1],a={done:!1,value:o},{stiffness:c,damping:u,mass:l,duration:h,velocity:f,isResolvedFromDuration:d}=Ed({...i,velocity:-lt(i.velocity||0)}),p=f||0,m=u/(2*Math.sqrt(c*l)),y=r-o,g=lt(Math.sqrt(c/l)),x=Math.abs(y)<5;s||(s=x?F.restSpeed.granular:F.restSpeed.default),n||(n=x?F.restDelta.granular:F.restDelta.default);let T,v,V,P,$,A;if(m<1)V=Ji(g,m),P=(p+m*g*y)/V,T=b=>{const D=Math.exp(-m*g*b);return r-D*(P*Math.sin(V*b)+y*Math.cos(V*b))},$=m*g*P+y*V,A=m*g*y-P*V,v=b=>Math.exp(-m*g*b)*($*Math.sin(V*b)+A*Math.cos(V*b));else if(m===1){T=D=>r-Math.exp(-g*D)*(y+(p+g*y)*D);const b=p+g*y;v=D=>Math.exp(-g*D)*(g*b*D-p)}else{const b=g*Math.sqrt(m*m-1);T=I=>{const U=Math.exp(-m*g*I),O=Math.min(b*I,300);return r-U*((p+m*g*y)*Math.sinh(O)+b*y*Math.cosh(O))/b};const D=(p+m*g*y)/b,C=m*g*D-y*b,_=m*g*y-D*b;v=I=>{const U=Math.exp(-m*g*I),O=Math.min(b*I,300);return U*(C*Math.sinh(O)+_*Math.cosh(O))}}const M={calculatedDuration:d&&h||null,velocity:b=>ht(v(b)),next:b=>{if(!d&&m<1){const C=Math.exp(-m*g*b),_=Math.sin(V*b),I=Math.cos(V*b),U=r-C*(P*_+y*I),O=ht(C*($*_+A*I));return a.done=Math.abs(O)<=s&&Math.abs(r-U)<=n,a.value=a.done?r:U,a}const D=T(b);if(d)a.done=b>=h;else{const C=ht(v(b));a.done=Math.abs(C)<=s&&Math.abs(r-D)<=n}return a.value=a.done?r:D,a},toString:()=>{const b=Math.min(Gs(M),_e),D=nl(C=>M.next(b*C).value,b,30);return b+"ms "+D},toTransition:()=>{}};return M}He.applyToOptions=t=>{const e=Dd(t,100,He);return t.ease=e.ease,t.duration=ht(e.duration),t.type="keyframes",t};const Ld=5;function rl(t,e,i){const s=Math.max(e-Ld,0);return Oa(i-t(s),e-s)}function Qi({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:c,restDelta:u=.5,restSpeed:l}){const h=t[0],f={done:!1,value:h},d=A=>a!==void 0&&A<a||c!==void 0&&A>c,p=A=>a===void 0?c:c===void 0||Math.abs(a-A)<Math.abs(c-A)?a:c;let m=i*e;const y=h+m,g=r===void 0?y:r(y);g!==y&&(m=g-h);const x=A=>-m*Math.exp(-A/s),T=A=>g+x(A),v=A=>{const M=x(A),b=T(A);f.done=Math.abs(M)<=u,f.value=f.done?g:b};let V,P;const $=A=>{d(f.value)&&(V=A,P=He({keyframes:[f.value,p(f.value)],velocity:rl(T,A,f.value),damping:n,stiffness:o,restDelta:u,restSpeed:l}))};return $(0),{calculatedDuration:null,next:A=>{let M=!1;return!P&&V===void 0&&(M=!0,v(A),$(A)),V!==void 0&&A>=V?P.next(A-V):(!M&&v(A),f)}}}function Fd(t,e,i){const s=[],n=i||St.mix||sl,o=t.length-1;for(let r=0;r<o;r++){let a=n(t[r],t[r+1]);if(e){const c=Array.isArray(e)?e[r]||$t:e;a=Ns(c,a)}s.push(a)}return s}function Id(t,e,{clamp:i=!0,ease:s,mixer:n}={}){const o=t.length;if(js(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Fd(e,s,n),c=a.length,u=l=>{if(r&&l<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(l<t[h+1]);h++);const f=Us(t[h],t[h+1],l);return a[h](f)};return i?l=>u(xt(t[0],t[o-1],l)):u}function Od(t,e){const i=t[t.length-1];for(let s=1;s<=e;s++){const n=Us(0,e,s);t.push(E(i,1,n))}}function jd(t){const e=[0];return Od(e,t.length-1),e}function Nd(t,e){return t.map(i=>i*e)}function Ud(t,e){return t.map(()=>e||Ha).splice(0,t.length-1)}function he({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){const n=Gf(s)?s.map(ar):ar(s),o={done:!1,value:e[0]},r=Nd(i&&i.length===e.length?i:jd(e),t),a=Id(r,e,{ease:Array.isArray(n)?n:Ud(e,n)});return{calculatedDuration:t,next:c=>(o.value=a(c),o.done=c>=t,o)}}const Kd=t=>t!==null;function ti(t,{repeat:e,repeatType:i="loop"},s,n=1){const o=t.filter(Kd),a=n<0||e&&i!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const Wd={decay:Qi,inertia:Qi,tween:he,keyframes:he,spring:He};function ol(t){typeof t.type=="string"&&(t.type=Wd[t.type])}class qs{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,i){return this.finished.then(e,i)}}const zd=t=>t/100;class Ye extends qs{constructor(e){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=()=>{const{motionValue:i}=this.options;i&&i.updatedAt!==Z.now()&&this.tick(Z.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;ol(e);const{type:i=he,repeat:s=0,repeatDelay:n=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const c=i||he;c!==he&&typeof a[0]!="number"&&(this.mixKeyframes=Ns(zd,sl(a[0],a[1])),a=[0,100]);const u=c({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=Gs(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+n,this.totalDuration=this.resolvedDuration*(s+1)-n,this.generator=u}updateTime(e){const i=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(e,i=!1){const{generator:s,totalDuration:n,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:l,repeat:h,repeatType:f,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),i?this.currentTime=e:this.updateTime(e);const g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let T=this.currentTime,v=s;if(h){const A=Math.min(this.currentTime,n)/a;let M=Math.floor(A),b=A%1;!b&&A>=1&&(b=1),b===1&&M--,M=Math.min(M,h+1),!!(M%2)&&(f==="reverse"?(b=1-b,d&&(b-=d/a)):f==="mirror"&&(v=r)),T=xt(0,1,b)*a}let V;x?(this.delayState.value=l[0],V=this.delayState):V=v.next(T),o&&!x&&(V.value=o(V.value));let{done:P}=V;!x&&c!==null&&(P=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return $&&p!==Qi&&(V.value=ti(l,this.options,y,this.speed)),m&&m(V.value),$&&this.finish(),V}then(e,i){return this.finished.then(e,i)}get duration(){return lt(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+lt(e)}get time(){return lt(this.currentTime)}set time(e){e=ht(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const i=this.generator.next(e).value;return rl(s=>this.generator.next(s).value,e,i)}get speed(){return this.playbackSpeed}set speed(e){const i=this.playbackSpeed!==e;i&&this.driver&&this.updateTime(Z.now()),this.playbackSpeed=e,i&&this.driver&&(this.time=lt(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Pd,startTime:i}=this.options;this.driver||(this.driver=e(n=>this.tick(n))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=i??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Z.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&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(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function Xd(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Et=t=>t*180/Math.PI,ts=t=>{const e=Et(Math.atan2(t[1],t[0]));return es(e)},_d={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:ts,rotateZ:ts,skewX:t=>Et(Math.atan(t[1])),skewY:t=>Et(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},es=t=>(t=t%360,t<0&&(t+=360),t),pr=ts,mr=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),yr=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Hd={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:mr,scaleY:yr,scale:t=>(mr(t)+yr(t))/2,rotateX:t=>es(Et(Math.atan2(t[6],t[5]))),rotateY:t=>es(Et(Math.atan2(-t[2],t[0]))),rotateZ:pr,rotate:pr,skewX:t=>Et(Math.atan(t[4])),skewY:t=>Et(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function is(t){return t.includes("scale")?1:0}function ss(t,e){if(!t||t==="none")return is(e);const i=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,n;if(i)s=Hd,n=i;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=_d,n=a}if(!n)return is(e);const o=s[e],r=n[1].split(",").map(Gd);return typeof o=="function"?o(r):r[o]}const Yd=(t,e)=>{const{transform:i="none"}=getComputedStyle(t);return ss(i,e)};function Gd(t){return parseFloat(t.trim())}const ee=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ie=new Set([...ee,"pathRotation"]),gr=t=>t===te||t===w,qd=new Set(["x","y","z"]),Zd=ee.filter(t=>!qd.has(t));function Jd(t){const e=[];return Zd.forEach(i=>{const s=t.getValue(i);s!==void 0&&(e.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),e}const At={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:s})=>{const n=t.max-t.min;return s==="border-box"?n:n-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:s})=>{const n=t.max-t.min;return s==="border-box"?n:n-parseFloat(e)-parseFloat(i)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>ss(e,"x"),y:(t,{transform:e})=>ss(e,"y")};At.translateX=At.x;At.translateY=At.y;const Ft=new Set;let ns=!1,rs=!1,os=!1;function al(){if(rs){const t=Array.from(Ft).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),i=new Map;e.forEach(s=>{const n=Jd(s);n.length&&(i.set(s,n),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const n=i.get(s);n&&n.forEach(([o,r])=>{s.getValue(o)?.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}rs=!1,ns=!1,Ft.forEach(t=>t.complete(os)),Ft.clear()}function ll(){Ft.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(rs=!0)})}function Qd(){os=!0,ll(),al(),os=!1}class Zs{constructor(e,i,s,n,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=i,this.name=s,this.motionValue=n,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Ft.add(this),ns||(ns=!0,X.read(ll),X.resolveKeyframes(al))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:i,element:s,motionValue:n}=this;if(e[0]===null){const o=n?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&i){const a=s.readValue(i,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),n&&o===void 0&&n.set(e[0])}Xd(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ft.delete(this)}cancel(){this.state==="scheduled"&&(Ft.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const tp=t=>t.startsWith("--");function cl(t,e,i){tp(e)?t.style.setProperty(e,i):t.style[e]=i}const ep={};function ul(t,e){const i=Ia(t);return()=>ep[e]??i()}const ip=ul(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),hl=ul(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),oe=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,Tr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:oe([0,.65,.55,1]),circOut:oe([.55,0,1,.45]),backIn:oe([.31,.01,.66,-.59]),backOut:oe([.33,1.53,.69,.99])};function fl(t,e){if(t)return typeof t=="function"?hl()?nl(t,e):"ease-out":Ya(t)?oe(t):Array.isArray(t)?t.map(i=>fl(i,e)||Tr.easeOut):Tr[t]}function sp(t,e,i,{delay:s=0,duration:n=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:c}={},u=void 0){const l={[e]:i};c&&(l.offset=c);const h=fl(a,n);Array.isArray(h)&&(l.easing=h);const f={delay:s,duration:n,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(l,f)}function dl(t){return typeof t=="function"&&"applyToOptions"in t}function np({type:t,...e}){return dl(t)&&hl()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class pl extends qs{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:i,name:s,keyframes:n,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,js(typeof e.type!="string");const u=np(e);this.animation=sp(i,s,n,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const l=ti(n,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(l),cl(i,s,l),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return lt(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+lt(e)}get time(){return lt(Number(this.animation.currentTime)||0)}set time(e){const i=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ht(e),i&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:i,rangeEnd:s,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&ip()?(this.animation.timeline=e,i&&(this.animation.rangeStart=i),s&&(this.animation.rangeEnd=s),$t):n(this)}}const ml={anticipate:za,backInOut:Wa,circInOut:_a};function rp(t){return t in ml}function op(t){typeof t.ease=="string"&&rp(t.ease)&&(t.ease=ml[t.ease])}const xi=10;class ap extends pl{constructor(e){op(e),ol(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:i,onUpdate:s,onComplete:n,element:o,...r}=this.options;if(!i)return;if(e!==void 0){i.set(e);return}const a=new Ye({...r,autoplay:!1}),c=Math.max(xi,Z.now()-this.startTime),u=xt(0,xi,c-xi),l=a.sample(c).value,{name:h}=this.options;o&&h&&cl(o,h,l),i.setWithVelocity(a.sample(Math.max(0,c-u)).value,l,u),a.stop()}}const vr=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ft.test(t)||t==="0")&&!t.startsWith("url("));function lp(t){const e=t[0];if(t.length===1)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}function cp(t,e,i,s){const n=t[0];if(n===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=vr(n,e),a=vr(o,e);return!r||!a?!1:lp(t)||(i==="spring"||dl(i))&&s}function as(t){t.duration=0,t.type="keyframes"}const yl=new Set(["opacity","clipPath","filter","transform"]),up=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function hp(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&up.test(t[e]))return!0;return!1}const fp=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),dp=Ia(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function pp(t){const{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:o,type:r,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=e.owner.getProps();return dp()&&i&&(yl.has(i)||fp.has(i)&&hp(a))&&(i!=="transform"||!l)&&!u&&!s&&n!=="mirror"&&o!==0&&r!=="inertia"}const mp=40;class yp extends qs{constructor({autoplay:e=!0,delay:i=0,type:s="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:c,motionValue:u,element:l,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Z.now();const f={autoplay:e,delay:i,type:s,repeat:n,repeatDelay:o,repeatType:r,name:c,motionValue:u,element:l,...h},d=l?.KeyframeResolver||Zs;this.keyframeResolver=new d(a,(p,m,y)=>this.onKeyframesResolved(p,m,f,!y),c,u,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,i,s,n){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:c,isHandoff:u,onUpdate:l}=s;this.resolvedAt=Z.now();let h=!0;cp(e,o,r,a)||(h=!1,(St.instantAnimations||!c)&&l?.(ti(e,s,i)),e[0]=e[e.length-1],as(s),s.repeat=0);const d={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>mp?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:i,...s,keyframes:e},p=h&&!u&&pp(d),m=d.motionValue?.owner?.current;let y;if(p)try{y=new ap({...d,element:m})}catch{y=new Ye(d)}else y=new Ye(d);y.finished.then(()=>{this.notifyFinished()}).catch($t),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(e,i){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Qd()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function gl(t,e,i,s=0,n=1){const o=Array.from(t).sort((u,l)=>u.sortNodePosition(l)).indexOf(e),r=t.size,a=(r-1)*s;return typeof i=="function"?i(o,r):n===1?o*s:a-o*s}const xr=30,gp=t=>!isNaN(parseFloat(t));class Tp{constructor(e,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const n=Z.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=i.owner}setCurrent(e){this.current=e,this.updatedAt=Z.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=gp(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,i){this.events[e]||(this.events[e]=new Ks);const s=this.events[e].add(i);return e==="change"?()=>{s(),X.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,i){this.passiveEffect=e,this.stopPassiveEffect=i}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,i,s){this.set(i),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,i=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Z.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>xr)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,xr);return Oa(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(e){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=e(i),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qt(t,e){return new Tp(t,e)}function Tl(t,e){if(t?.inherit&&e){const{inherit:i,...s}=t;return{...e,...s}}return t}function Js(t,e){const i=t?.[e]??t?.default??t;return i!==t?Tl(i,t):i}const vp={type:"spring",stiffness:500,damping:25,restSpeed:10},xp=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),bp={type:"keyframes",duration:.8},Ap={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Vp=(t,{keyframes:e})=>e.length>2?bp:ie.has(t)?t.startsWith("scale")?xp(e[1]):vp:Ap,Sp=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function wp(t){for(const e in t)if(!Sp.has(e))return!0;return!1}const vl=(t,e,i,s={},n,o)=>r=>{const a=Js(s,t)||{},c=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-ht(c);const l={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:n};wp(a)||Object.assign(l,Vp(t,l)),l.duration&&(l.duration=ht(l.duration)),l.repeatDelay&&(l.repeatDelay=ht(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let h=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(as(l),l.delay===0&&(h=!0)),(St.instantAnimations||St.skipAnimations||n?.shouldSkipAnimations||a.skipAnimations)&&(h=!0,as(l),l.delay=0),l.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=ti(l.keyframes,a);if(f!==void 0){X.update(()=>{l.onUpdate(f),l.onComplete()});return}}return a.isSync?new Ye(l):new yp(l)},$p=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Pp(t){const e=$p.exec(t);if(!e)return[,];const[,i,s,n]=e;return[`--${i??s}`,n]}function xl(t,e,i=1){const[s,n]=Pp(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Ea(r)?parseFloat(r):r}return Xs(n)?xl(n,e,i+1):n}function br(t){const e=[{},{}];return t?.values.forEach((i,s)=>{e[0][s]=i.get(),e[1][s]=i.getVelocity()}),e}function bl(t,e,i,s){if(typeof e=="function"){const[n,o]=br(s);e=e(i!==void 0?i:t.custom,n,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[n,o]=br(s);e=e(i!==void 0?i:t.custom,n,o)}return e}function _t(t,e,i){const s=t.getProps();return bl(s,e,i!==void 0?i:s.custom,t)}const Al=new Set(["width","height","top","left","right","bottom",...ee]),ls=t=>Array.isArray(t);function Dp(t,e,i){t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,qt(i))}function Mp(t){return ls(t)?t[t.length-1]||0:t}function Rp(t,e){const i=_t(t,e);let{transitionEnd:s={},transition:n={},...o}=i||{};o={...o,...s};for(const r in o){const a=Mp(o[r]);Dp(t,r,a)}}const Q=t=>!!(t&&t.getVelocity);function Cp(t){return!!(Q(t)&&t.add)}function Bp(t,e){const i=t.getValue("willChange");if(Cp(i))return i.add(e);if(!i&&St.WillChange){const s=new St.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Qs(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const kp="framerAppearId",Ep="data-"+Qs(kp);function Vl(t){return t.props[Ep]}function Lp({protectedKeys:t,needsAnimating:e},i){const s=t.hasOwnProperty(i)&&e[i]!==!0;return e[i]=!1,s}function Sl(t,e,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:o,transitionEnd:r,...a}=e;const c=t.getDefaultTransition();o=o?Tl(o,c):c;const u=o?.reduceMotion,l=o?.skipAnimations;s&&(o=s);const h=[],f=n&&t.animationState&&t.animationState.getState()[n],d=o?.path;d&&d.animateVisualElement(t,a,o,i,h);for(const p in a){const m=t.getValue(p,t.latestValues[p]??null),y=a[p];if(y===void 0||f&&Lp(f,p))continue;const g={delay:i,...Js(o||{},p)};l&&(g.skipAnimations=!0);const x=m.get();if(x!==void 0&&!m.isAnimating()&&!Array.isArray(y)&&y===x&&!g.velocity){X.update(()=>m.set(y));continue}let T=!1;if(window.MotionHandoffAnimation){const P=Vl(t);if(P){const $=window.MotionHandoffAnimation(P,p,X);$!==null&&(g.startTime=$,T=!0)}}Bp(t,p);const v=u??t.shouldReduceMotion;m.start(vl(p,m,y,v&&Al.has(p)?{type:!1}:g,t,T));const V=m.animation;V&&h.push(V)}if(r){const p=()=>X.update(()=>{r&&Rp(t,r)});h.length?Promise.all(h).then(p):p()}return h}function cs(t,e,i={}){const s=_t(t,e,i.type==="exit"?t.presenceContext?.custom:void 0);let{transition:n=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);const o=s?()=>Promise.all(Sl(t,s,i)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:l,staggerDirection:h}=n;return Fp(t,e,c,u,l,h,i)}:()=>Promise.resolve(),{when:a}=n;if(a){const[c,u]=a==="beforeChildren"?[o,r]:[r,o];return c().then(()=>u())}else return Promise.all([o(),r(i.delay)])}function Fp(t,e,i=0,s=0,n=0,o=1,r){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push(cs(c,e,{...r,delay:i+(typeof s=="function"?0:s)+gl(t.variantChildren,c,s,n,o)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function Ip(t,e,i={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const n=e.map(o=>cs(t,o,i));s=Promise.all(n)}else if(typeof e=="string")s=cs(t,e,i);else{const n=typeof e=="function"?_t(t,e,i.custom):e;s=Promise.all(Sl(t,n,i))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Op={test:t=>t==="auto",parse:t=>t},wl=t=>e=>e.test(t),$l=[te,w,Tt,yt,ld,ad,Op],Ar=t=>$l.find(wl(t));function jp(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Fa(t):!0}const Np=new Set(["brightness","contrast","saturate","opacity"]);function Up(t){const[e,i]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=i.match(_s)||[];if(!s)return t;const n=i.replace(s,"");let o=Np.has(e)?1:0;return s!==i&&(o*=100),e+"("+o+n+")"}const Kp=/\b([a-z-]*)\(.*?\)/gu,us={...ft,getAnimatableNone:t=>{const e=t.match(Kp);return e?e.map(Up).join(" "):t}},hs={...ft,getAnimatableNone:t=>{const e=ft.parse(t);return ft.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},Vr={...te,transform:Math.round},Wp={rotate:yt,pathRotation:yt,rotateX:yt,rotateY:yt,rotateZ:yt,scale:Ae,scaleX:Ae,scaleY:Ae,scaleZ:Ae,skew:yt,skewX:yt,skewY:yt,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:pe,originX:cr,originY:cr,originZ:w},Ge={borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,inset:w,insetBlock:w,insetBlockStart:w,insetBlockEnd:w,insetInline:w,insetInlineStart:w,insetInlineEnd:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,paddingBlock:w,paddingBlockStart:w,paddingBlockEnd:w,paddingInline:w,paddingInlineStart:w,paddingInlineEnd:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,marginBlock:w,marginBlockStart:w,marginBlockEnd:w,marginInline:w,marginInlineStart:w,marginInlineEnd:w,fontSize:w,backgroundPositionX:w,backgroundPositionY:w,...Wp,zIndex:Vr,fillOpacity:pe,strokeOpacity:pe,numOctaves:Vr},zp={...Ge,color:N,backgroundColor:N,outlineColor:N,fill:N,stroke:N,borderColor:N,borderTopColor:N,borderRightColor:N,borderBottomColor:N,borderLeftColor:N,filter:us,WebkitFilter:us,mask:hs,WebkitMask:hs},Pl=t=>zp[t],Xp=new Set([us,hs]);function Dl(t,e){let i=Pl(t);return Xp.has(i)||(i=ft),i.getAnimatableNone?i.getAnimatableNone(e):void 0}const _p=new Set(["auto","none","0"]);function Hp(t,e,i){let s=0,n;for(;s<t.length&&!n;){const o=t[s];typeof o=="string"&&!_p.has(o)&&Gt(o).values.length&&(n=t[s]),s++}if(n&&i)for(const o of e)t[o]=Dl(i,n)}class Yp extends Zs{constructor(e,i,s,n,o){super(e,i,s,n,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:i,name:s}=this;if(!i||!i.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let h=e[l];if(typeof h=="string"&&(h=h.trim(),Xs(h))){const f=xl(h,i.current);f!==void 0&&(e[l]=f),l===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Al.has(s)||e.length!==2)return;const[n,o]=e,r=Ar(n),a=Ar(o),c=lr(n),u=lr(o);if(c!==u&&At[s]){this.needsMeasurement=!0;return}if(r!==a)if(gr(r)&&gr(a))for(let l=0;l<e.length;l++){const h=e[l];typeof h=="string"&&(e[l]=parseFloat(h))}else At[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:i}=this,s=[];for(let n=0;n<e.length;n++)(e[n]===null||jp(e[n]))&&s.push(n);s.length&&Hp(e,s,i)}measureInitialState(){const{element:e,unresolvedKeyframes:i,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=At[s](e.measureViewportBox(),window.getComputedStyle(e.current)),i[0]=this.measuredOrigin;const n=i[i.length-1];n!==void 0&&e.getValue(s,n).jump(n,!1)}measureEndState(){const{element:e,name:i,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const n=e.getValue(i);n&&n.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=At[i](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{e.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function Ml(t,e,i){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const n=i?.[t]??s.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t).filter(s=>s!=null)}const fs=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Gp(t){return La(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:Rl}=Ga(queueMicrotask,!1),ot={x:!1,y:!1};function Cl(){return ot.x||ot.y}function lg(t){return t==="x"||t==="y"?ot[t]?null:(ot[t]=!0,()=>{ot[t]=!1}):ot.x||ot.y?null:(ot.x=ot.y=!0,()=>{ot.x=ot.y=!1})}function Bl(t,e){const i=Ml(t),s=new AbortController,n={passive:!0,...e,signal:s.signal};return[i,n,()=>s.abort()]}function qp(t){return!(t.pointerType==="touch"||Cl())}function cg(t,e,i={}){const[s,n,o]=Bl(t,i);return s.forEach(r=>{let a=!1,c=!1,u;const l=()=>{r.removeEventListener("pointerleave",p)},h=y=>{u&&(u(y),u=void 0),l()},f=y=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),c&&(c=!1,h(y))},d=()=>{a=!0,window.addEventListener("pointerup",f,n),window.addEventListener("pointercancel",f,n)},p=y=>{if(y.pointerType!=="touch"){if(a){c=!0;return}h(y)}},m=y=>{if(!qp(y))return;c=!1;const g=e(r,y);typeof g=="function"&&(u=g,r.addEventListener("pointerleave",p,n))};r.addEventListener("pointerenter",m,n),r.addEventListener("pointerdown",d,n)}),o}const kl=(t,e)=>e?t===e?!0:kl(t,e.parentElement):!1,Zp=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Jp=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Qp(t){return Jp.has(t.tagName)||t.isContentEditable===!0}const tm=new Set(["INPUT","SELECT","TEXTAREA"]);function ug(t){return tm.has(t.tagName)||t.isContentEditable===!0}const Re=new WeakSet;function Sr(t){return e=>{e.key==="Enter"&&t(e)}}function bi(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const em=(t,e)=>{const i=t.currentTarget;if(!i)return;const s=Sr(()=>{if(Re.has(i))return;bi(i,"down");const n=Sr(()=>{bi(i,"up")}),o=()=>bi(i,"cancel");i.addEventListener("keyup",n,e),i.addEventListener("blur",o,e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)};function wr(t){return Zp(t)&&!Cl()}const $r=new WeakSet;function hg(t,e,i={}){const[s,n,o]=Bl(t,i),r=a=>{const c=a.currentTarget;if(!wr(a)||$r.has(a))return;Re.add(c),i.stopPropagation&&$r.add(a);const u=e(c,a),l=(d,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),Re.has(c)&&Re.delete(c),wr(d)&&typeof u=="function"&&u(d,{success:p})},h=d=>{l(d,c===window||c===document||i.useGlobalTarget||kl(c,d.target))},f=d=>{l(d,!1)};window.addEventListener("pointerup",h,n),window.addEventListener("pointercancel",f,n)};return s.forEach(a=>{(i.useGlobalTarget?window:a).addEventListener("pointerdown",r,n),Gp(a)&&(a.addEventListener("focus",u=>em(u,n)),!Qp(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function tn(t){return La(t)&&"ownerSVGElement"in t}const Ce=new WeakMap;let Be;const El=(t,e,i)=>(s,n)=>n&&n[0]?n[0][t+"Size"]:tn(s)&&"getBBox"in s?s.getBBox()[e]:s[i],im=El("inline","width","offsetWidth"),sm=El("block","height","offsetHeight");function nm({target:t,borderBoxSize:e}){Ce.get(t)?.forEach(i=>{i(t,{get width(){return im(t,e)},get height(){return sm(t,e)}})})}function rm(t){t.forEach(nm)}function om(){typeof ResizeObserver>"u"||(Be=new ResizeObserver(rm))}function am(t,e){Be||om();const i=Ml(t);return i.forEach(s=>{let n=Ce.get(s);n||(n=new Set,Ce.set(s,n)),n.add(e),Be?.observe(s)}),()=>{i.forEach(s=>{const n=Ce.get(s);n?.delete(e),n?.size||Be?.unobserve(s)})}}const ke=new Set;let Wt;function lm(){Wt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};ke.forEach(e=>e(t))},window.addEventListener("resize",Wt)}function cm(t){return ke.add(t),Wt||lm(),()=>{ke.delete(t),!ke.size&&typeof Wt=="function"&&(window.removeEventListener("resize",Wt),Wt=void 0)}}function fg(t,e){return typeof t=="function"?cm(t):am(t,e)}function um(t){return tn(t)&&t.tagName==="svg"}const hm=[...$l,N,ft],fm=t=>hm.find(wl(t)),Pr=()=>({translate:0,scale:1,origin:0,originPoint:0}),zt=()=>({x:Pr(),y:Pr()}),Dr=()=>({min:0,max:0}),W=()=>({x:Dr(),y:Dr()}),dm=new WeakMap;function Ll(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function en(t){return typeof t=="string"||Array.isArray(t)}const sn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],nn=["initial",...sn];function Fl(t){return Ll(t.animate)||nn.some(e=>en(t[e]))}function pm(t){return!!(Fl(t)||t.variants)}function mm(t,e,i){for(const s in e){const n=e[s],o=i[s];if(Q(n))t.addValue(s,n);else if(Q(o))t.addValue(s,qt(n,{owner:t}));else if(o!==n)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(n):r.hasAnimated||r.set(n)}else{const r=t.getStaticValue(s);t.addValue(s,qt(r!==void 0?r:n,{owner:t}))}}for(const s in i)e[s]===void 0&&t.removeValue(s);return e}const ds={current:null},Il={current:!1},ym=typeof window<"u";function gm(){if(Il.current=!0,!!ym)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ds.current=t.matches;t.addEventListener("change",e),e()}else ds.current=!1}const Mr=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let qe={};function dg(t){qe=t}function pg(){return qe}class Tm{scrapeMotionValuesFromProps(e,i,s){return{}}constructor({parent:e,props:i,presenceContext:s,reducedMotionConfig:n,skipAnimations:o,blockInitialAnimation:r,visualState:a},c={}){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=Zs,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=()=>{const d=Z.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,X.render(this.render,!1,!0))};const{latestValues:u,renderState:l}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=i.initial?{...u}:{},this.renderState=l,this.parent=e,this.props=i,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=o,this.options=c,this.blockInitialAnimation=!!r,this.isControllingVariants=Fl(i),this.isVariantNode=pm(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(i,{},this);for(const d in f){const p=f[d];u[d]!==void 0&&Q(p)&&p.set(u[d])}}mount(e){if(this.hasBeenMounted)for(const i in this.initialValues)this.values.get(i)?.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=e,dm.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,s)=>this.bindToMotionValue(s,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Il.current||gm(),this.shouldReduceMotion=ds.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Ot(this.notifyUpdate),Ot(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const i=this.features[e];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,i){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),i.accelerate&&yl.has(e)&&this.current instanceof HTMLElement){const{factory:r,keyframes:a,times:c,ease:u,duration:l}=i.accelerate,h=new pl({element:this.current,name:e,keyframes:a,times:c,ease:u,duration:ht(l)}),f=r(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const s=ie.has(e);s&&this.onBindTransform&&this.onBindTransform();const n=i.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&X.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,i)),this.valueSubscriptions.set(e,()=>{n(),o&&o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in qe){const i=qe[e];if(!i)continue;const{isEnabled:s,Feature:n}=i;if(!this.features[e]&&n&&s(this.props)&&(this.features[e]=new n(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):W()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,i){this.latestValues[e]=i}update(e,i){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let s=0;s<Mr.length;s++){const n=Mr[s];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const o="on"+n,r=e[o];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=mm(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(e),()=>i.variantChildren.delete(e)}addValue(e,i){const s=this.values.get(e);i!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,i),this.values.set(e,i),this.latestValues[e]=i.get())}removeValue(e){this.values.delete(e);const i=this.valueSubscriptions.get(e);i&&(i(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,i){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&i!==void 0&&(s=qt(i===null?void 0:i,{owner:this}),this.addValue(e,s)),s}readValue(e,i){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Ea(s)||Fa(s))?s=parseFloat(s):!fm(s)&&ft.test(i)&&(s=Dl(e,i)),this.setBaseTarget(e,Q(s)?s.get():s)),Q(s)?s.get():s}setBaseTarget(e,i){this.baseTarget[e]=i}getBaseTarget(e){const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const o=bl(this.props,i,this.presenceContext?.custom);o&&(s=o[e])}if(i&&s!==void 0)return s;const n=this.getBaseTargetFromProps(this.props,e);return n!==void 0&&!Q(n)?n:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,i){return this.events[e]||(this.events[e]=new Ks),this.events[e].add(i)}notify(e,...i){this.events[e]&&this.events[e].notify(...i)}scheduleRenderMicrotask(){Rl.render(this.render)}}class Ol extends Tm{constructor(){super(...arguments),this.KeyframeResolver=Yp}sortInstanceNodePosition(e,i){return e.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(e,i){const s=e.style;return s?s[i]:void 0}removeValueFromRenderState(e,{vars:i,style:s}){delete i[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Q(e)&&(this.childSubscription=e.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}class mg{constructor(e){this.isMounted=!1,this.node=e}update(){}}function vm({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function yg({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function xm(t,e){if(!e)return t;const i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}function Ai(t){return t===void 0||t===1}function ps({scale:t,scaleX:e,scaleY:i}){return!Ai(t)||!Ai(e)||!Ai(i)}function Rt(t){return ps(t)||jl(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function jl(t){return Rr(t.x)||Rr(t.y)}function Rr(t){return t&&t!=="0%"}function Ze(t,e,i){const s=t-i,n=e*s;return i+n}function Cr(t,e,i,s,n){return n!==void 0&&(t=Ze(t,n,s)),Ze(t,i,s)+e}function ms(t,e=0,i=1,s,n){t.min=Cr(t.min,e,i,s,n),t.max=Cr(t.max,e,i,s,n)}function Nl(t,{x:e,y:i}){ms(t.x,e.translate,e.scale,e.originPoint),ms(t.y,i.translate,i.scale,i.originPoint)}const Br=.999999999999,kr=1.0000000000001;function bm(t,e,i,s=!1){const n=i.length;if(!n)return;e.x=e.y=1;let o,r;for(let a=0;a<n;a++){o=i[a],r=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(pt(t.x,-o.scroll.offset.x),pt(t.y,-o.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Nl(t,r)),s&&Rt(o.latestValues)&&Ee(t,o.latestValues,o.layout?.layoutBox))}e.x<kr&&e.x>Br&&(e.x=1),e.y<kr&&e.y>Br&&(e.y=1)}function pt(t,e){t.min+=e,t.max+=e}function Er(t,e,i,s,n=.5){const o=E(t.min,t.max,n);ms(t,e,i,o,s)}function Lr(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function Ee(t,e,i){const s=i??t;Er(t.x,Lr(e.x,s.x),e.scaleX,e.scale,e.originX),Er(t.y,Lr(e.y,s.y),e.scaleY,e.scale,e.originY)}function Ul(t,e){return vm(xm(t.getBoundingClientRect(),e))}function gg(t,e,i){const s=Ul(t,i),{scroll:n}=e;return n&&(pt(s.x,n.offset.x),pt(s.y,n.offset.y)),s}const Am={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Vm=ee.length;function Sm(t,e,i){let s="",n=!0;for(let r=0;r<Vm;r++){const a=ee[r],c=t[a];if(c===void 0)continue;let u=!0;if(typeof c=="number")u=c===(a.startsWith("scale")?1:0);else{const l=parseFloat(c);u=a.startsWith("scale")?l===1:l===0}if(!u||i){const l=fs(c,Ge[a]);if(!u){n=!1;const h=Am[a]||a;s+=`${h}(${l}) `}i&&(e[a]=l)}}const o=t.pathRotation;return o&&(n=!1,s+=`rotate(${fs(o,Ge.pathRotation)}) `),s=s.trim(),i?s=i(e,n?"":s):n&&(s="none"),s}function Kl(t,e,i){const{style:s,vars:n,transformOrigin:o}=t;let r=!1,a=!1;for(const c in e){const u=e[c];if(ie.has(c)){r=!0;continue}else if(Za(c)){n[c]=u;continue}else{const l=fs(u,Ge[c]);c.startsWith("origin")?(a=!0,o[c]=l):s[c]=l}}if(e.transform||(r||i?s.transform=Sm(e,t.transform,i):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:u="50%",originZ:l=0}=o;s.transformOrigin=`${c} ${u} ${l}`}}function Wl(t,{style:e,vars:i},s,n){const o=t.style;let r;for(r in e)o[r]=e[r];n?.applyProjectionStyles(o,s);for(r in i)o.setProperty(r,i[r])}function Fr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ne={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(w.test(t))t=parseFloat(t);else return t;const i=Fr(t,e.target.x),s=Fr(t,e.target.y);return`${i}% ${s}%`}},wm={correct:(t,{treeScale:e,projectionDelta:i})=>{const s=t,n=ft.parse(t);if(n.length>5)return s;const o=ft.createTransformer(t),r=typeof n[0]!="number"?1:0,a=i.x.scale*e.x,c=i.y.scale*e.y;n[0+r]/=a,n[1+r]/=c;const u=E(a,c,.5);return typeof n[2+r]=="number"&&(n[2+r]/=u),typeof n[3+r]=="number"&&(n[3+r]/=u),o(n)}},ys={borderRadius:{...ne,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomLeftRadius:ne,borderBottomRightRadius:ne,boxShadow:wm};function $m(t,{layout:e,layoutId:i}){return ie.has(t)||t.startsWith("origin")||(e||i!==void 0)&&(!!ys[t]||t==="opacity")}function zl(t,e,i){const s=t.style,n=e?.style,o={};if(!s)return o;for(const r in s)(Q(s[r])||n&&Q(n[r])||$m(r,t)||i?.getValue(r)?.liveStyle!==void 0)&&(o[r]=s[r]);return o}function Pm(t){return window.getComputedStyle(t)}class Tg extends Ol{constructor(){super(...arguments),this.type="html",this.renderInstance=Wl}readValueFromInstance(e,i){if(ie.has(i))return this.projection?.isProjecting?is(i):Yd(e,i);{const s=Pm(e),n=(Za(i)?s.getPropertyValue(i):s[i])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:i}){return Ul(e,i)}build(e,i,s){Kl(e,i,s.transformTemplate)}scrapeMotionValuesFromProps(e,i,s){return zl(e,i,s)}}const Dm={offset:"stroke-dashoffset",array:"stroke-dasharray"},Mm={offset:"strokeDashoffset",array:"strokeDasharray"};function Rm(t,e,i=1,s=0,n=!0){t.pathLength=1;const o=n?Dm:Mm;t[o.offset]=`${-s}`,t[o.array]=`${e} ${i}`}const Cm=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Bm(t,{attrX:e,attrY:i,attrScale:s,pathLength:n,pathSpacing:o=1,pathOffset:r=0,...a},c,u,l){if(Kl(t,a,u),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=l?.transformBox??"fill-box",delete h.transformBox);for(const d of Cm)h[d]!==void 0&&(f[d]=h[d],delete h[d]);e!==void 0&&(h.x=e),i!==void 0&&(h.y=i),s!==void 0&&(h.scale=s),n!==void 0&&Rm(h,n,o,r,!1)}const Xl=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"]),km=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Em(t,e,i,s){Wl(t,e,void 0,s);for(const n in e.attrs)t.setAttribute(Xl.has(n)?n:Qs(n),e.attrs[n])}function Lm(t,e,i){const s=zl(t,e,i);for(const n in t)if(Q(t[n])||Q(e[n])){const o=ee.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;s[o]=t[n]}return s}class vg extends Ol{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=W}getBaseTargetFromProps(e,i){return e[i]}readValueFromInstance(e,i){if(ie.has(i)){const s=Pl(i);return s&&s.default||0}return i=Xl.has(i)?i:Qs(i),e.getAttribute(i)}scrapeMotionValuesFromProps(e,i,s){return Lm(e,i,s)}build(e,i,s){Bm(e,i,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,i,s,n){Em(e,i,s,n)}mount(e){this.isSVGTag=km(e.tagName),super.mount(e)}}const Fm=nn.length;function _l(t){if(!t)return;if(!t.isControllingVariants){const i=t.parent?_l(t.parent)||{}:{};return t.props.initial!==void 0&&(i.initial=t.props.initial),i}const e={};for(let i=0;i<Fm;i++){const s=nn[i],n=t.props[s];(en(n)||n===!1)&&(e[s]=n)}return e}function Hl(t,e){if(!Array.isArray(e))return!1;const i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}const Im=[...sn].reverse(),Om=sn.length;function jm(t){return e=>Promise.all(e.map(({animation:i,options:s})=>Ip(t,i,s)))}function xg(t){let e=jm(t),i=Ir(),s=!0,n=!1;const o=u=>(l,h)=>{const f=_t(t,h,u==="exit"?t.presenceContext?.custom:void 0);if(f){const{transition:d,transitionEnd:p,...m}=f;l={...l,...m,...p}}return l};function r(u){e=u(t)}function a(u){const{props:l}=t,h=_l(t.parent)||{},f=[],d=new Set;let p={},m=1/0;for(let g=0;g<Om;g++){const x=Im[g],T=i[x],v=l[x]!==void 0?l[x]:h[x],V=en(v),P=x===u?T.isActive:null;P===!1&&(m=g);let $=v===h[x]&&v!==l[x]&&V;if($&&(s||n)&&t.manuallyAnimateOnMount&&($=!1),T.protectedKeys={...p},!T.isActive&&P===null||!v&&!T.prevProp||Ll(v)||typeof v=="boolean")continue;if(x==="exit"&&T.isActive&&P!==!0){T.prevResolvedValues&&(p={...p,...T.prevResolvedValues});continue}const A=Nm(T.prevProp,v);let M=A||x===u&&T.isActive&&!$&&V||g>m&&V,b=!1;const D=Array.isArray(v)?v:[v];let C=D.reduce(o(x),{});P===!1&&(C={});const{prevResolvedValues:_={}}=T,I={..._,...C},U=R=>{M=!0,d.has(R)&&(b=!0,d.delete(R)),T.needsAnimating[R]=!0;const B=t.getValue(R);B&&(B.liveStyle=!1)};for(const R in I){const B=C[R],H=_[R];if(p.hasOwnProperty(R))continue;let tt=!1;ls(B)&&ls(H)?tt=!Hl(B,H)||A:tt=B!==H,tt?B!=null?U(R):d.add(R):B!==void 0&&d.has(R)?U(R):T.protectedKeys[R]=!0}T.prevProp=v,T.prevResolvedValues=C,T.isActive&&(p={...p,...C}),(s||n)&&t.blockInitialAnimation&&(M=!1);const O=$&&A;M&&(!O||b)&&f.push(...D.map(R=>{const B={type:x};if(typeof R=="string"&&(s||n)&&!O&&t.manuallyAnimateOnMount&&t.parent){const{parent:H}=t,tt=_t(H,R);if(H.enteringChildren&&tt){const{delayChildren:ei}=tt.transition||{};B.delay=gl(H.enteringChildren,t,ei)}}return{animation:R,options:B}}))}if(d.size){const g={};if(typeof l.initial!="boolean"){const x=_t(t,Array.isArray(l.initial)?l.initial[0]:l.initial);x&&x.transition&&(g.transition=x.transition)}d.forEach(x=>{const T=t.getBaseTarget(x),v=t.getValue(x);v&&(v.liveStyle=!0),g[x]=T??null}),f.push({animation:g})}let y=!!f.length;return s&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,n=!1,y?e(f):Promise.resolve()}function c(u,l){if(i[u].isActive===l)return Promise.resolve();t.variantChildren?.forEach(f=>f.animationState?.setActive(u,l)),i[u].isActive=l;const h=a(u);for(const f in i)i[f].protectedKeys={};return h}return{animateChanges:a,setActive:c,setAnimateFunction:r,getState:()=>i,reset:()=>{i=Ir(),n=!0}}}function Nm(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Hl(e,t):!1}function Dt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ir(){return{animate:Dt(!0),whileInView:Dt(),whileHover:Dt(),whileTap:Dt(),whileDrag:Dt(),whileFocus:Dt(),exit:Dt()}}function gs(t,e){t.min=e.min,t.max=e.max}function nt(t,e){gs(t.x,e.x),gs(t.y,e.y)}function Or(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const Yl=1e-4,Um=1-Yl,Km=1+Yl,Gl=.01,Wm=0-Gl,zm=0+Gl;function it(t){return t.max-t.min}function Xm(t,e,i){return Math.abs(t-e)<=i}function jr(t,e,i,s=.5){t.origin=s,t.originPoint=E(e.min,e.max,t.origin),t.scale=it(i)/it(e),t.translate=E(i.min,i.max,t.origin)-t.originPoint,(t.scale>=Um&&t.scale<=Km||isNaN(t.scale))&&(t.scale=1),(t.translate>=Wm&&t.translate<=zm||isNaN(t.translate))&&(t.translate=0)}function fe(t,e,i,s){jr(t.x,e.x,i.x,s?s.originX:void 0),jr(t.y,e.y,i.y,s?s.originY:void 0)}function Nr(t,e,i,s=0){const n=s?E(i.min,i.max,s):i.min;t.min=n+e.min,t.max=t.min+it(e)}function _m(t,e,i,s){Nr(t.x,e.x,i.x,s?.x),Nr(t.y,e.y,i.y,s?.y)}function Ur(t,e,i,s=0){const n=s?E(i.min,i.max,s):i.min;t.min=e.min-n,t.max=t.min+it(e)}function Je(t,e,i,s){Ur(t.x,e.x,i.x,s?.x),Ur(t.y,e.y,i.y,s?.y)}function Kr(t,e,i,s,n){return t-=e,t=Ze(t,1/i,s),n!==void 0&&(t=Ze(t,1/n,s)),t}function Hm(t,e=0,i=1,s=.5,n,o=t,r=t){if(Tt.test(e)&&(e=parseFloat(e),e=E(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=E(o.min,o.max,s);t===o&&(a-=e),t.min=Kr(t.min,e,i,a,n),t.max=Kr(t.max,e,i,a,n)}function Wr(t,e,[i,s,n],o,r){Hm(t,e[i],e[s],e[n],e.scale,o,r)}const Ym=["x","scaleX","originX"],Gm=["y","scaleY","originY"];function zr(t,e,i,s){Wr(t.x,e,Ym,i?i.x:void 0,s?s.x:void 0),Wr(t.y,e,Gm,i?i.y:void 0,s?s.y:void 0)}function Xr(t){return t.translate===0&&t.scale===1}function ql(t){return Xr(t.x)&&Xr(t.y)}function _r(t,e){return t.min===e.min&&t.max===e.max}function qm(t,e){return _r(t.x,e.x)&&_r(t.y,e.y)}function Hr(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Zl(t,e){return Hr(t.x,e.x)&&Hr(t.y,e.y)}function Yr(t){return it(t.x)/it(t.y)}function Gr(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function qr(t){return[t("x"),t("y")]}function Zm(t,e,i){let s="";const n=t.x.translate/e.x,o=t.y.translate/e.y,r=i?.z||0;if((n||o||r)&&(s=`translate3d(${n}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){const{transformPerspective:u,rotate:l,pathRotation:h,rotateX:f,rotateY:d,skewX:p,skewY:m}=i;u&&(s=`perspective(${u}px) ${s}`),l&&(s+=`rotate(${l}deg) `),h&&(s+=`rotate(${h}deg) `),f&&(s+=`rotateX(${f}deg) `),d&&(s+=`rotateY(${d}deg) `),p&&(s+=`skewX(${p}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const Jl=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Jm=Jl.length,Zr=t=>typeof t=="string"?parseFloat(t):t,Jr=t=>typeof t=="number"||w.test(t);function Qm(t,e,i,s,n,o){n?(t.opacity=E(0,i.opacity??1,ty(s)),t.opacityExit=E(e.opacity??1,0,ey(s))):o&&(t.opacity=E(e.opacity??1,i.opacity??1,s));for(let r=0;r<Jm;r++){const a=Jl[r];let c=Qr(e,a),u=Qr(i,a);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Jr(c)===Jr(u)?(t[a]=Math.max(E(Zr(c),Zr(u),s),0),(Tt.test(u)||Tt.test(c))&&(t[a]+="%")):t[a]=u}(e.rotate||i.rotate)&&(t.rotate=E(e.rotate||0,i.rotate||0,s))}function Qr(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const ty=Ql(0,.5,Xa),ey=Ql(.5,.95,$t);function Ql(t,e,i){return s=>s<t?0:s>e?1:i(Us(t,e,s))}function iy(t,e,i){const s=Q(t)?t:qt(t);return s.start(vl("",s,e,i)),s.animation}function sy(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}const ny=(t,e)=>t.depth-e.depth;class ry{constructor(){this.children=[],this.isDirty=!1}add(e){Os(this.children,e),this.isDirty=!0}remove(e){ze(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ny),this.isDirty=!1,this.children.forEach(e)}}function oy(t,e){const i=Z.now(),s=({timestamp:n})=>{const o=n-i;o>=e&&(Ot(s),t(o-e))};return X.setup(s,!0),()=>Ot(s)}function Vi(t){return Q(t)?t.get():t}class ay{constructor(){this.members=[]}add(e){Os(this.members,e);for(let i=this.members.length-1;i>=0;i--){const s=this.members[i];if(s===e||s===this.lead||s===this.prevLead)continue;const n=s.instance;(!n||n.isConnected===!1)&&!s.snapshot&&(ze(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(ze(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(e){for(let i=this.members.indexOf(e)-1;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,i){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:n}=s.options,{layoutDependency:o}=e.options;(n===void 0||n!==o)&&(e.resumeFrom=s,i&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Si={hasAnimatedSinceResize:!0,hasEverUpdated:!1},wi=["","X","Y","Z"],ly=1e3;let cy=0;function $i(t,e,i,s){const{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function tc(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const i=Vl(e);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:n,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",X,!(n||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&tc(s)}function ec({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(r={},a=e?.()){this.id=cy++,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=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(fy),this.nodes.forEach(Ty),this.nodes.forEach(vy),this.nodes.forEach(dy)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new ry)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Ks),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const c=this.eventHandlers.get(r);c&&c.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=tn(r)&&!um(r),this.instance=r;const{layoutId:a,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let l,h=0;const f=()=>this.root.updateBlockedByResize=!1;X.read(()=>{h=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,l&&l(),l=oy(f,250),Si.hasAnimatedSinceResize&&(Si.hasAnimatedSinceResize=!1,this.nodes.forEach(io)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||c)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||Sy,{onLayoutAnimationStart:m,onLayoutAnimationComplete:y}=u.getProps(),g=!this.targetLayout||!Zl(this.targetLayout,d),x=!h&&f;if(this.options.layoutRoot||this.resumeFrom||x||h&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Js(p,"layout"),onPlay:m,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(l,x,T.path)}else h||io(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ot(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(xy),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&tc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const h=this.path[l];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(my),this.nodes.forEach(to);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(eo);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(yy),this.nodes.forEach(gy),this.nodes.forEach(uy),this.nodes.forEach(hy)):this.nodes.forEach(eo),this.clearAllSnapshots();const a=Z.now();G.delta=xt(0,1e3/60,a-G.timestamp),G.timestamp=a,G.isProcessing=!0,mi.update.process(G),mi.preRender.process(G),mi.render.process(G),G.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Rl.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(py),this.sharedNodes.forEach(by)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,X.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){X.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!it(this.snapshot.measuredBox.x)&&!it(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=W()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!n)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!ql(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,l=u!==this.prevTransformTemplateValue;r&&this.instance&&(a||Rt(this.latestValues)||l)&&(n(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return r&&(c=this.removeTransform(c)),wy(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return W();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some($y))){const{scroll:u}=this.root;u&&(pt(a.x,u.offset.x),pt(a.y,u.offset.y))}return a}removeElementScroll(r){const a=W();if(nt(a,r),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:l,options:h}=u;u!==this.root&&l&&h.layoutScroll&&(l.wasRoot&&nt(a,r),pt(a.x,l.offset.x),pt(a.y,l.offset.y))}return a}applyTransform(r,a=!1,c){const u=c||W();nt(u,r);for(let l=0;l<this.path.length;l++){const h=this.path[l];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(pt(u.x,-h.scroll.offset.x),pt(u.y,-h.scroll.offset.y)),Rt(h.latestValues)&&Ee(u,h.latestValues,h.layout?.layoutBox)}return Rt(this.latestValues)&&Ee(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(r){const a=W();nt(a,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!Rt(u.latestValues))continue;let l;u.instance&&(ps(u.latestValues)&&u.updateSnapshot(),l=W(),nt(l,u.measurePageBox())),zr(a,u.latestValues,u.snapshot?.layoutBox,l)}return Rt(this.latestValues)&&zr(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}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!==G.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:h}=this.options;if(!this.layout||!(l||h))return;this.resolvedRelativeTargetAt=G.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=W(),this.targetWithTransforms=W()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),_m(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):nt(this.target,this.layout.layoutBox),Nl(this.target,this.targetDelta)):nt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||ps(this.parent.latestValues)||jl(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,c){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=W(),this.relativeTargetOrigin=W(),Je(this.relativeTargetOrigin,a,c,this.options.layoutAnchor||void 0),nt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===G.timestamp&&(c=!1),c)return;const{layout:u,layoutId:l}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||l))return;nt(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;bm(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=W());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Or(this.prevProjectionDelta.x,this.projectionDelta.x),Or(this.prevProjectionDelta.y,this.projectionDelta.y)),fe(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Gr(this.projectionDelta.x,this.prevProjectionDelta.x)||!Gr(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=zt(),this.projectionDelta=zt(),this.projectionDeltaWithTransform=zt()}setAnimationOrigin(r,a=!1,c){const u=this.snapshot,l=u?u.latestValues:{},h={...this.latestValues},f=zt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=W(),p=u?u.source:void 0,m=this.layout?this.layout.source:void 0,y=p!==m,g=this.getStack(),x=!g||g.members.length<=1,T=!!(y&&!x&&this.options.crossfade===!0&&!this.path.some(Vy));this.animationProgress=0;let v;const V=c?.interpolateProjection(r);this.mixTargetDelta=P=>{const $=P/1e3,A=V?.($);A?(f.x.translate=A.x,f.x.scale=E(r.x.scale,1,$),f.x.origin=r.x.origin,f.x.originPoint=r.x.originPoint,f.y.translate=A.y,f.y.scale=E(r.y.scale,1,$),f.y.origin=r.y.origin,f.y.originPoint=r.y.originPoint):(so(f.x,r.x,$),so(f.y,r.y,$)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Je(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ay(this.relativeTarget,this.relativeTargetOrigin,d,$),v&&qm(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=W()),nt(v,this.relativeTarget)),y&&(this.animationValues=h,Qm(h,l,this.latestValues,$,T,x)),A&&A.rotate!==void 0&&(this.animationValues||(this.animationValues=h),this.animationValues.pathRotation=A.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{Si.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=qt(0)),this.motionValue.jump(0,!1),this.currentAnimation=iy(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ly),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:c,layout:u,latestValues:l}=r;if(!(!a||!c||!u)){if(this!==r&&this.layout&&u&&ic(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||W();const h=it(this.layout.layoutBox.x);c.x.min=r.target.x.min,c.x.max=c.x.min+h;const f=it(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+f}nt(a,c),Ee(a,l),fe(this.projectionDeltaWithTransform,this.layoutCorrected,a,l)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new ay),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const u={};c.z&&$i("z",r,u,this.animationValues);for(let l=0;l<wi.length;l++)$i(`rotate${wi[l]}`,r,u,this.animationValues),$i(`skew${wi[l]}`,r,u,this.animationValues);r.render();for(const l in u)r.setStaticValue(l,u[l]),this.animationValues&&(this.animationValues[l]=u[l]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=Vi(a?.pointerEvents)||"",r.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=Vi(a?.pointerEvents)||""),this.hasProjected&&!Rt(this.latestValues)&&(r.transform=c?c({},""):"none",this.hasProjected=!1);return}r.visibility="";const l=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=Zm(this.projectionDeltaWithTransform,this.treeScale,l);c&&(h=c(l,h)),r.transform=h;const{x:f,y:d}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,u.animationValues?r.opacity=u===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:r.opacity=u===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const p in ys){if(l[p]===void 0)continue;const{correct:m,applyTo:y,isCSSVariable:g}=ys[p],x=h==="none"?l[p]:m(l[p],u);if(y){const T=y.length;for(let v=0;v<T;v++)r[y[v]]=x}else g?this.options.visualElement.renderState.vars[p]=x:r[p]=x}this.options.layoutId&&(r.pointerEvents=u===this?Vi(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(to),this.root.sharedNodes.clear()}}}function uy(t){t.updateLayout()}function hy(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,o=e.source!==t.layout.source;if(n==="size")qr(l=>{const h=o?e.measuredBox[l]:e.layoutBox[l],f=it(h);h.min=i[l].min,h.max=h.min+f});else if(n==="x"||n==="y"){const l=n==="x"?"y":"x";gs(o?e.measuredBox[l]:e.layoutBox[l],i[l])}else ic(n,e.layoutBox,i)&&qr(l=>{const h=o?e.measuredBox[l]:e.layoutBox[l],f=it(i[l]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[l].max=t.relativeTarget[l].min+f)});const r=zt();fe(r,i,e.layoutBox);const a=zt();o?fe(a,t.applyTransform(s,!0),e.measuredBox):fe(a,i,e.layoutBox);const c=!ql(r);let u=!1;if(!t.resumeFrom){const l=t.getClosestProjectingParent();if(l&&!l.resumeFrom){const{snapshot:h,layout:f}=l;if(h&&f){const d=t.options.layoutAnchor||void 0,p=W();Je(p,e.layoutBox,h.layoutBox,d);const m=W();Je(m,i,f.layoutBox,d),Zl(p,m)||(u=!0),l.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=l)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function fy(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function dy(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function py(t){t.clearSnapshot()}function to(t){t.clearMeasurements()}function my(t){t.isLayoutDirty=!0,t.updateLayout()}function eo(t){t.isLayoutDirty=!1}function yy(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function gy(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function io(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Ty(t){t.resolveTargetDelta()}function vy(t){t.calcProjection()}function xy(t){t.resetSkewAndRotation()}function by(t){t.removeLeadSnapshot()}function so(t,e,i){t.translate=E(e.translate,0,i),t.scale=E(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function no(t,e,i,s){t.min=E(e.min,i.min,s),t.max=E(e.max,i.max,s)}function Ay(t,e,i,s){no(t.x,e.x,i.x,s),no(t.y,e.y,i.y,s)}function Vy(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Sy={duration:.45,ease:[.4,0,.1,1]},ro=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),oo=ro("applewebkit/")&&!ro("chrome/")?Math.round:$t;function ao(t){t.min=oo(t.min),t.max=oo(t.max)}function wy(t){ao(t.x),ao(t.y)}function ic(t,e,i){return t==="position"||t==="preserve-aspect"&&!Xm(Yr(e),Yr(i),.2)}function $y(t){return t!==t.root&&t.scroll?.wasRoot}const Py=ec({attachResizeListener:(t,e)=>sy(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Pi={current:void 0},Ag=ec({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Pi.current){const t=new Py({});t.mount(window),t.setOptions({layoutScroll:!0}),Pi.current=t}return Pi.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});export{Le as $,at as A,k as B,et as C,bs as D,vt as E,Yy as F,K as G,Jy as H,Gn as I,Zy as J,qy as K,kh as L,Hu as M,Go as N,jy as O,Wy as P,gt as Q,Uy as R,eg as S,wt as T,oa as U,hi as V,ag as W,Ny as X,Ky as Y,ra as Z,My as _,J as a,hg as a$,Qc as a0,Kc as a1,Jc as a2,yo as a3,Wo as a4,Es as a5,wh as a6,Dh as a7,tg as a8,Tf as a9,sy as aA,G as aB,X as aC,Ns as aD,Ot as aE,ht as aF,lt as aG,E as aH,it as aI,Us as aJ,xt as aK,W as aL,qr as aM,gg as aN,yg as aO,vm as aP,Bp as aQ,vl as aR,lg as aS,fg as aT,Tt as aU,ug as aV,$t as aW,Rl as aX,Si as aY,Ag as aZ,cg as a_,ta as aa,Yt as ab,Oe as ac,Fy as ad,pg as ae,dg as af,Q as ag,Fl as ah,en as ai,$m as aj,Kl as ak,Bm as al,km as am,Vi as an,pm as ao,Ll as ap,bl as aq,zl as ar,Lm as as,Ep as at,vg as au,Tg as av,mg as aw,xg as ax,_t as ay,Zp as az,fa as b,Ls as c,Nh as d,va as e,Hh as f,Xy as g,Yh as h,uh as i,Mh as j,ha as k,Zo as l,ba as m,qh as n,Gu as o,sg as p,Xt as q,ui as r,zy as s,fh as t,vf as u,Y as v,z as w,xs as x,It as y,ct as z};
|
package/dist/index.html
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
</script>
|
|
18
|
-
<script type="module" crossorigin src="/assets/index-
|
|
18
|
+
<script type="module" crossorigin src="/assets/index-D8x6bUeG.js"></script>
|
|
19
19
|
<link rel="stylesheet" crossorigin href="/assets/index-CATki2cp.css">
|
|
20
20
|
</head>
|
|
21
21
|
<body>
|