prisma-goat 0.9.1 → 0.9.2
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/README.md +1 -1
- package/dist/prisma-goat.js +21 -42
- package/dist/prisma-goat.umd.cjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/prisma-goat.js
CHANGED
|
@@ -6177,50 +6177,29 @@ const js = $(
|
|
|
6177
6177
|
window.open(k, "_blank");
|
|
6178
6178
|
};
|
|
6179
6179
|
return /* @__PURE__ */ u("nav", { ref: w, ...Q, style: { zIndex: 9999, position: "fixed", top: "0px", left: "0px", right: "0px" }, className: `${y[A]} ${A === "experiences" ? "" : "bg-opacity-75"} `, children: [
|
|
6180
|
-
A === "experiences" && a && /* @__PURE__ */ i("div", { className: "bg-[#F2AE87] text-white transition-all duration-300", children: /* @__PURE__ */ u("div", { className: `flex ${C ? "flex-col" : "flex-row"} justify-around
|
|
6180
|
+
A === "experiences" && a && /* @__PURE__ */ i("div", { className: "bg-[#F2AE87] text-white transition-all duration-300", children: /* @__PURE__ */ u("div", { className: `flex ${C ? "flex-col items-end" : "flex-row items-center"} justify-around gap-4 px-4 py-2 text-sm`, children: [
|
|
6181
6181
|
!C && /* @__PURE__ */ u("div", { className: "flex items-center gap-6", children: [
|
|
6182
|
-
/* @__PURE__ */ u(
|
|
6183
|
-
|
|
6184
|
-
{
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
]
|
|
6191
|
-
}
|
|
6192
|
-
),
|
|
6193
|
-
/* @__PURE__ */ u(
|
|
6194
|
-
"div",
|
|
6195
|
-
{
|
|
6196
|
-
className: "flex items-center gap-2 cursor-pointer",
|
|
6197
|
-
onClick: () => Y("experiencias.viajes.arg@gmail.com"),
|
|
6198
|
-
children: [
|
|
6199
|
-
/* @__PURE__ */ i(Iw, {}),
|
|
6200
|
-
/* @__PURE__ */ i("span", { children: "experiencias.viajes.arg@gmail.com" })
|
|
6201
|
-
]
|
|
6202
|
-
}
|
|
6203
|
-
)
|
|
6182
|
+
/* @__PURE__ */ u("div", { className: "flex items-center gap-2 cursor-pointer", onClick: () => U("+5491140999887"), children: [
|
|
6183
|
+
/* @__PURE__ */ i(ow, {}),
|
|
6184
|
+
/* @__PURE__ */ i("span", { children: "+54 114099-9887" })
|
|
6185
|
+
] }),
|
|
6186
|
+
/* @__PURE__ */ u("div", { className: "flex items-center gap-2 cursor-pointer", onClick: () => Y("experiencias.viajes.arg@gmail.com"), children: [
|
|
6187
|
+
/* @__PURE__ */ i(Iw, {}),
|
|
6188
|
+
/* @__PURE__ */ i("span", { children: "experiencias.viajes.arg@gmail.com" })
|
|
6189
|
+
] })
|
|
6204
6190
|
] }),
|
|
6205
|
-
/* @__PURE__ */ u(
|
|
6206
|
-
"div",
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
/* @__PURE__ */ i(Ew, {}),
|
|
6218
|
-
/* @__PURE__ */ i("div", { onClick: () => {
|
|
6219
|
-
V("https://www.linkedin.com/in/experienciasviajes-arg-by-maria-cian-0b075014/");
|
|
6220
|
-
}, children: /* @__PURE__ */ i(lw, {}) })
|
|
6221
|
-
]
|
|
6222
|
-
}
|
|
6223
|
-
)
|
|
6191
|
+
/* @__PURE__ */ u("div", { style: { paddingRight: C ? "40px" : "" }, className: "flex gap-2 mt-2 sm:mt-0", children: [
|
|
6192
|
+
/* @__PURE__ */ i("div", { onClick: () => {
|
|
6193
|
+
V("https://www.instagram.com/experienciasviajes.arg/");
|
|
6194
|
+
}, children: /* @__PURE__ */ i(nw, {}) }),
|
|
6195
|
+
/* @__PURE__ */ i("div", { onClick: () => {
|
|
6196
|
+
V("https://www.facebook.com/experienciasviajes.arg/");
|
|
6197
|
+
}, children: /* @__PURE__ */ i(rw, {}) }),
|
|
6198
|
+
/* @__PURE__ */ i(Ew, {}),
|
|
6199
|
+
/* @__PURE__ */ i("div", { onClick: () => {
|
|
6200
|
+
V("https://www.linkedin.com/in/experienciasviajes-arg-by-maria-cian-0b075014/");
|
|
6201
|
+
}, children: /* @__PURE__ */ i(lw, {}) })
|
|
6202
|
+
] })
|
|
6224
6203
|
] }) }),
|
|
6225
6204
|
/* @__PURE__ */ u("div", { style: { marginLeft: "auto", marginRight: "auto", maxWidth: "80rem", paddingLeft: C ? "0.5rem" : "1.5rem", paddingRight: C ? "0.5rem" : "1.5rem" }, children: [
|
|
6226
6205
|
(A === "goatData" || A === "secondary") && /* @__PURE__ */ i(
|
package/dist/prisma-goat.umd.cjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
rounded-md transition duration-300 focus:outline-none focus:ring-2 ${DA[g]} focus:ring-offset-2 text-left`,Q===W.link?gA[g]:"",Q===W.link?g==="secondary"||g==="primary"||g==="darkMagenta"||g==="veryDarkViolet"||g==="success"?"text-custom-red":g==="pikaros"?"text-orange-300":"text-custom-blue":g==="primary"||g==="vividPink"||g==="darkMagenta"||g==="veryDarkViolet"||g==="danger"||g==="warning"||g==="success"||g==="pikaros"?"text-white":"text-custom-blue",Q===W.link?"font-semibold":"font-normal"),onClick:()=>{og(W,R),Z(!1)},children:W.label},EM))})]},R)}),B?t.jsxs("div",{className:"relative mt-3",children:[t.jsx("div",{className:"ml-3 mt-4",style:{borderBottom:`1px ${xA[g]} solid`}}),t.jsxs("div",{style:{display:"flex"},children:[t.jsx("button",{type:"button",className:`flex rounded-full bg-gray-800 text-sm transition duration-300 focus:outline-none focus:ring-2 ${DA[g]} focus:ring-offset-2 mb-4 ml-3 mt-3`,id:"user-menu-button","aria-haspopup":"true",onClick:vg,children:t.jsx("div",{className:"flex items-center justify-center rounded-full bg-gray-300 text-gray-700 font-bold",style:{width:"30px",height:"30px"},children:B.image?t.jsx("img",{src:B.image,alt:"User avatar",className:"rounded-full object-cover w-full h-full",onError:u=>{u.currentTarget.onerror=null,u.currentTarget.src=""}}):((vw=(SA=B.name)==null?void 0:SA.charAt(0))==null?void 0:vw.toUpperCase())||"?"})}),t.jsx("div",{className:`block w-full px-4 py-4 ${hA[g]} text-left`,children:B.name})]}),D.map((u,R)=>t.jsx("button",{className:J(`block w-full px-4 py-2 text-base ${T[g]}
|
|
6
6
|
rounded-md transition duration-300 focus:outline-none focus:ring-2 ${DA[g]} focus:ring-offset-2 text-left`,Q===u.link?gA[g]:"",Q===u.link?g==="secondary"||g==="primary"||g==="darkMagenta"||g==="veryDarkViolet"||g==="success"?"text-custom-red":g==="pikaros"?"text-orange-300":"text-custom-blue":g==="primary"||g==="vividPink"||g==="darkMagenta"||g==="veryDarkViolet"||g==="danger"||g==="warning"||g==="success"||g==="pikaros"?"text-white":"text-custom-blue",Q===u.link?"font-semibold":"font-normal"),onClick:u.label==="Cerrar sesion"?I:()=>b(u),children:u.label},R))]}):l?t.jsx("button",{type:"button",className:J(`block w-full px-4 py-2 text-base ${T[g]}
|
|
7
7
|
rounded-md transition duration-300 focus:outline-none focus:ring-2 ${DA[g]} focus:ring-offset-2 text-left`,Q==="/login"?gA[g]:"",Q==="/login"?g==="secondary"||g==="primary"||g==="darkMagenta"||g==="veryDarkViolet"||g==="success"?"text-custom-red":g==="pikaros"?"text-orange-300":"text-custom-blue":g==="primary"||g==="vividPink"||g==="darkMagenta"||g==="veryDarkViolet"||g==="danger"||g==="warning"||g==="success"||g==="pikaros"?"text-white":"text-custom-blue",Q==="/login"?"font-semibold":"font-normal"),onClick:()=>{s.push("/login"),Z(!1)},children:"Login"}):t.jsx(t.Fragment,{})]}),F&&t.jsx(Eg,{variant:a,background:G,logoGoatData:c,imgLoading:m,strokeWidth:K})]})});VM.displayName="Navbar";const dM=r.forwardRef(({variant:A="primary",logoGoatData:g="logoRed",imgLoading:B="",strokeWidth:M="10",height:D="",...w},e)=>{const C={primary:"#1F2937",secondary:"#ededed",vividPink:"#ff0145",darkMagenta:"#770069",veryDarkViolet:"#350053",danger:"#b91c1c",warning:"#f59e0b",success:"#047857"},Q={logoRed:mM,logoBlack:eB,logo6:UM,logoMagenta:uM,logoWhite:DB},s={6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",14:"14"};return t.jsxs("div",{ref:e,...w,style:{display:"flex",justifyContent:"center",alignItems:"center",height:D||"100%",minHeight:"260px",position:"relative",width:"100%"},children:[t.jsx("svg",{width:"110",height:"110",viewBox:"0 0 110 110",xmlns:"http://www.w3.org/2000/svg",className:"absolute blink 1s ease-in-out infinite",children:t.jsx("circle",{cx:"55",cy:"55",r:"45",fill:"none",stroke:C[A],strokeWidth:s[M],strokeDasharray:"314",strokeDashoffset:"314",className:"progress-circle",style:{animation:"progress 1.4s ease-in-out infinite, blink 1s ease-in-out infinite, fade 1.4s ease-in-out infinite"}})}),t.jsx("div",{className:"flex justify-center items-center relative h-[60px] w-[60px] rounded-full",style:{animation:"blink 1s ease-in-out infinite"},children:t.jsx("div",{className:"ml-1",children:t.jsx("img",{src:B&&B.trim()!==""?B:Q[g],alt:"logo"})})})]})});dM.displayName="CircularProgress";const qM=r.forwardRef(({list:A=[],listMenu:g=[],variant:B="primary",className:M,logo:D,heightLogo:w,widthLogo:e,activeRoute:C,router:Q,user:s,theme:i,InstallApp:o,variantIndicator:I="primary",backgroundIndicator:n="black",logoGoatDataIndicator:E="logoRed",imgLoadingIndicator:l="",strokeWidthIndicator:a="10",handleLogout:G,toggleTheme:c,toggeInstallApp:m,handleTogge:K,...Y},d)=>{var Pg,og;const[f,U]=r.useState(!0),[y,Z]=r.useState(null),[k,h]=r.useState(!1),[F,N]=r.useState(null),[wA,tA]=r.useState(!1),j=r.useRef(null),_=()=>h(!k),lA=()=>h(!1),KA=()=>{K&&K(),U(q=>!q)},vg=(q,b)=>{q.subItems&&q.subItems.length>0?Z(aA=>aA===b?-1:b):q.link&&Q&&Q.push(q.link)},TA=(q,b)=>{Z(aA=>aA===b?-1:b),q.link&&Q&&Q.push(q.link)},rM=q=>{q.link&&Q&&(Q.push(q.link),lA())};return r.useEffect(()=>{if(typeof window<"u"&&(Q!=null&&Q.events)){const q=()=>{tA(!0)},b=()=>{tA(!1)};return Q.events.on("routeChangeStart",q),Q.events.on("routeChangeComplete",b),Q.events.on("routeChangeError",b),()=>{Q.events.off("routeChangeStart",q),Q.events.off("routeChangeComplete",b),Q.events.off("routeChangeError",b)}}},[Q]),t.jsxs("div",{ref:d,...Y,style:{width:f?"250px":"70px"},className:J(`fixed top-0 left-0 h-full ${CA[B]} text-white shadow-lg transition-all z-50`,M),children:[t.jsxs("div",{className:"flex flex-shrink-0 items-center mt-4",style:{flexDirection:"column"},children:[t.jsx("img",{alt:"logo",className:"block w-auto lg:hidden",style:{height:w&&w.trim()!==""?w:"40px",width:e&&e.trim()!==""?e:"65px"},src:D&&D.trim()!==""?D:B==="secondary"?uA:mA}),t.jsx("img",{alt:"logo",className:"hidden lg:block",style:{height:w&&w.trim()!==""?w:f?"70px":"",width:e&&e.trim()!==""?e:f?"110px":"40px"},src:D&&D.trim()!==""?D:B==="secondary"?f?uA:eB:f?mA:DB}),(!D||D.trim()==="")&&t.jsx("div",{className:`${hA[B]} ${f?"":"lock w-auto lg:hidden"}`,style:{fontSize:f?"12px":"8px",letterSpacing:"4px"},children:"DATA"})]}),t.jsx("button",{onClick:KA,className:`absolute -right-3 transform -translate-y-1/2 p-1 rounded-full shadow-md ${Mt[B]} focus:outline-none`,children:f?t.jsx(xw,{size:20}):t.jsx(Sw,{size:20})}),t.jsx("div",{style:{marginLeft:"20px",marginRight:"20px",border:`1px ${xA[B]} solid`,marginTop:"14px"}}),t.jsxs("div",{style:{display:"flex",justifyContent:"space-between",flexDirection:"column",height:"75vh"},children:[t.jsx("div",{className:"flex flex-col items-start p-4 space-y-4 mt-7",children:A.map((q,b)=>{var aA;return t.jsxs("div",{className:"w-full relative group",children:[t.jsxs("button",{type:"button",className:J(`flex items-center justify-start w-full ${f?"px-4":""} ${f?"py-2":""} text-sm cursor-pointer rounded-md transition duration-300 focus:outline-none focus:ring-2 focus:ring-offset-2`,T[B],DA[B],C===q.link||(aA=q.subItems)!=null&&aA.some(X=>X.link===C)?gA[B]:"",C===q.link?B==="secondary"||B==="primary"||B==="darkMagenta"||B==="veryDarkViolet"||B==="success"?"text-custom-red":B==="pikaros"?"text-orange-300":"text-custom-blue":B==="primary"||B==="vividPink"||B==="darkMagenta"||B==="veryDarkViolet"||B==="danger"||B==="warning"||B==="success"||B==="pikaros"?"text-white":"text-custom-blue",C===q.link?"font-semibold":"font-normal"),onClick:()=>{vg(q,b)},onMouseEnter:()=>N(b),onMouseLeave:()=>N(null),children:[(q==null?void 0:q.icon)&&t.jsx("div",{className:`flex ${f?"":"py-2"}`,style:{marginRight:f?"12px":"0px",marginLeft:f?"0px":"6px"},children:t.jsx(q.icon,{className:"w-6 h-6"})}),t.jsx("span",{className:`${f?"block":"hidden"}`,children:q.label})]}),F===b&&q.description&&q.description.trim()!==""&&!f&&t.jsxs("div",{style:{border:`1px ${xA[B]} solid`,width:"240px"},className:J("absolute top-1/2 transform -translate-y-1/2 transition-all duration-300 opacity-0 group-hover:opacity-100 rounded-md text-xs px-4 py-2 shadow-lg",f?"left-full ml-2":"left-full ml-2 translate-x-2 group-hover:translate-x-4",hA[B],CA[B]),children:[q.image&&q.image.trim()!==""&&t.jsxs("div",{className:"relative w-full h-24 mb-2",children:[t.jsx("img",{src:q.image,alt:"Tooltip Image",className:"object-cover w-full h-full rounded-t-md opacity-75 hover:opacity-100 transition-opacity duration-300"}),t.jsx("div",{className:"absolute bottom-0 w-full h-8 bg-gradient-to-t from-white/80 to-transparent"})]}),t.jsx("div",{className:"absolute top-1/2 left-0 transform -translate-y-1/2 -ml-2 w-0 h-0 border-t-4 border-r-4 border-b-4 border-transparent border-t-gray-800"}),q.description]}),q.subItems&&q.subItems.length>0&&y===b&&(f?t.jsx("div",{className:"pl-4 py-4",children:q.subItems.map((X,SA)=>t.jsx("button",{className:J(`block w-full px-4 py-1 text-sm ${T[B]}
|
|
8
|
-
rounded-md transition duration-300 focus:outline-none focus:ring-2 ${DA[B]} focus:ring-offset-2 text-left`,C===X.link?gA[B]:"",C===X.link?B==="secondary"||B==="primary"||B==="darkMagenta"||B==="veryDarkViolet"||B==="success"?"text-custom-red":B==="pikaros"?"text-orange-300":"text-custom-blue":B==="primary"||B==="vividPink"||B==="darkMagenta"||B==="veryDarkViolet"||B==="danger"||B==="warning"||B==="success"||B==="pikaros"?"text-white":"text-custom-blue",C===X.link?"font-semibold":"font-normal"),onClick:()=>{TA(X,b)},children:X.label},SA))}):t.jsx("div",{style:{zIndex:"999"},className:`absolute left-0 mt-2 w-48 ${CA[B]} ${rg[B]} rounded-md shadow-lg ring-4 ring-black ring-opacity-5`,role:"menu",children:q.subItems.map((X,SA)=>t.jsx("div",{className:J(`block px-4 py-2 text-sm cursor-pointer ${CA[B]}e`,T[B]&&`${T[B]}`,C===X.link?gA[B]:"",C===X.link?B==="secondary"||B==="primary"||B==="darkMagenta"||B==="veryDarkViolet"||B==="success"?"text-custom-red":B==="pikaros"?"text-orange-300":"text-custom-blue":B==="primary"||B==="vividPink"||B==="darkMagenta"||B==="veryDarkViolet"||B==="danger"||B==="warning"||B==="success"||B==="pikaros"?"text-white":"text-custom-blue",C===X.link?"font-semibold":"font-normal"),onClick:()=>{TA(X,b)},children:X.label},SA))}))]},b)})}),s&&t.jsxs("div",{className:"relative ml-3",children:[t.jsxs("div",{id:"user-menu-button",style:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:_,children:[t.jsx("button",{type:"button",className:`flex rounded-full bg-gray-800 text-sm transition duration-300 focus:outline-none focus:ring-2 ${DA[B]} focus:ring-offset-2 mb-4 ml-3 mt-3`,"aria-haspopup":"true",children:t.jsx("div",{className:"flex items-center justify-center rounded-full bg-gray-300 text-gray-700 font-bold",style:{width:"28px",height:"28px"},children:s.image?t.jsx("img",{src:s.image,alt:"User avatar",className:"rounded-full object-cover w-full h-full",onError:q=>{q.currentTarget.onerror=null,q.currentTarget.src=""}}):((og=(Pg=s.name)==null?void 0:Pg.charAt(0))==null?void 0:og.toUpperCase())||"?"})}),t.jsx("div",{className:`block w-full px-4 py-4 ${hA[B]} text-left ${f?"block":"hidden"}`,children:s.name}),t.jsx("div",{className:`mr-2 ${f?"block":"hidden"}`,children:t.jsx(Bt,{size:20,color:xA[B]})})]}),k&&t.jsx("div",{ref:j,className:`absolute right-0 ${f?"left-56":"left-14"} bottom-8 mt-2 w-48 ${CA[B]} ${rg[B]} rounded-md shadow-lg ring-4 ring-black ring-opacity-5`,role:"menu",children:g.map((q,b)=>t.jsx("div",{className:J("block px-4 py-2 text-sm cursor-pointer",T[B]&&`${T[B]}`,C===q.link?gA[B]:"",C===q.link?B==="secondary"||B==="primary"||B==="darkMagenta"||B==="veryDarkViolet"||B==="success"?"text-custom-red":B==="pikaros"?"text-orange-300":"text-custom-blue":B==="primary"||B==="vividPink"||B==="darkMagenta"||B==="veryDarkViolet"||B==="danger"||B==="warning"||B==="success"||B==="pikaros"?"text-white":"text-custom-blue",C===q.link?"font-semibold":"font-normal"),onClick:q.label==="Cerrar sesion"?G:()=>{rM(q)},children:q.label},b))}),t.jsxs("div",{style:{display:"flex",gap:"12px",padding:"0px 20px 0px 10px",flexDirection:f?"row":"column",alignItems:"center"},children:[o&&t.jsx(ZM,{variant:B,onClick:m}),i&&t.jsx(fM,{variant:B,toggleTheme:c})]})]})]}),wA&&t.jsx(Eg,{variant:I,background:n,logoGoatData:E,imgLoading:l,strokeWidth:a})]})});qM.displayName="Sidebar";const wt=()=>t.jsx("svg",{className:"cursor-pointer",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M17.0779 2.928C15.1918 1.041 12.6836 0.001 10.0115 0C4.50522 0 0.0240013 4.479 0.0220012 9.985C0.0210011 11.745 0.481024 13.463 1.35507 14.977L0 20L5.23326 18.763C6.69233 19.559 8.33441 19.978 10.0065 19.979H10.0105C15.5158 19.979 19.997 15.499 20 9.994C20.002 7.325 18.9639 4.816 17.0779 2.928ZM14.8987 13.554C14.6907 14.137 13.6717 14.699 13.2137 14.74C12.7556 14.782 12.3266 14.947 10.2185 14.116C7.68138 13.116 6.0793 10.515 5.9553 10.349C5.83029 10.182 4.93625 8.996 4.93625 7.768C4.93625 6.54 5.58128 5.936 5.81029 5.687C6.0393 5.437 6.30931 5.375 6.47632 5.375C6.64233 5.375 6.80934 5.375 6.95435 5.381C7.13236 5.388 7.32936 5.397 7.51637 5.812C7.73839 6.306 8.22341 7.54 8.28541 7.665C8.34742 7.79 8.38942 7.936 8.30641 8.102C8.22341 8.268 8.18141 8.372 8.0574 8.518C7.9324 8.664 7.79539 8.843 7.68338 8.955C7.55838 9.079 7.42837 9.215 7.57338 9.464C7.71938 9.714 8.21941 10.531 8.96145 11.192C9.91549 12.042 10.7185 12.305 10.9685 12.431C11.2186 12.556 11.3636 12.535 11.5096 12.368C11.6556 12.202 12.1336 11.64 12.2996 11.39C12.4656 11.14 12.6326 11.182 12.8616 11.265C13.0907 11.348 14.3177 11.952 14.5667 12.077C14.8167 12.202 14.9827 12.264 15.0448 12.368C15.1068 12.471 15.1068 12.971 14.8987 13.554Z",fill:"white"})}),tt=()=>t.jsx("svg",{className:"cursor-pointer",width:"24",height:"16",viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M21.6 0H2.4C1.08 0 0.012 0.9 0.012 2L0 14C0 15.1 1.08 16 2.4 16H21.6C22.92 16 24 15.1 24 14V2C24 0.9 22.92 0 21.6 0ZM21.6 4L12 9L2.4 4V2L12 7L21.6 2V4Z",fill:"white"})}),Qt=()=>t.jsx("svg",{className:"cursor-pointer",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M6.66667 0.431458C2.98533 0.431458 0 3.33875 0 6.92384V17.3117C0 20.8967 2.98533 23.804 6.66667 23.804H17.3333C21.0147 23.804 24 20.8967 24 17.3117V6.92384C24 3.33875 21.0147 0.431458 17.3333 0.431458H6.66667ZM20 3.02841C20.736 3.02841 21.3333 3.61013 21.3333 4.32689C21.3333 5.04365 20.736 5.62536 20 5.62536C19.264 5.62536 18.6667 5.04365 18.6667 4.32689C18.6667 3.61013 19.264 3.02841 20 3.02841ZM12 5.62536C15.6813 5.62536 18.6667 8.53265 18.6667 12.1177C18.6667 15.7028 15.6813 18.6101 12 18.6101C8.31867 18.6101 5.33333 15.7028 5.33333 12.1177C5.33333 8.53265 8.31867 5.62536 12 5.62536ZM12 8.22232C10.9391 8.22232 9.92172 8.63273 9.17157 9.36326C8.42143 10.0938 8 11.0846 8 12.1177C8 13.1509 8.42143 14.1417 9.17157 14.8722C9.92172 15.6028 10.9391 16.0132 12 16.0132C13.0609 16.0132 14.0783 15.6028 14.8284 14.8722C15.5786 14.1417 16 13.1509 16 12.1177C16 11.0846 15.5786 10.0938 14.8284 9.36326C14.0783 8.63273 13.0609 8.22232 12 8.22232Z",fill:"white"})}),Ct=()=>t.jsx("svg",{className:"cursor-pointer",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M24 12.147C24 5.68004 18.624 0.431458 12 0.431458C5.376 0.431458 0 5.68004 0 12.147C0 17.8174 4.128 22.5387 9.6 23.6283V15.6617H7.2V12.147H9.6V9.21814C9.6 6.95703 11.484 5.11769 13.8 5.11769H16.8V8.63236H14.4C13.74 8.63236 13.2 9.15956 13.2 9.80392V12.147H16.8V15.6617H13.2V23.804C19.26 23.2183 24 18.2274 24 12.147Z",fill:"white"})}),st=()=>t.jsx("svg",{className:"cursor-pointer",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M4 0.431458C1.80671 0.431458 0 2.19093 0 4.32689V19.9086C0 22.0446 1.80671 23.804 4 23.804H20C22.1933 23.804 24 22.0446 24 19.9086V4.32689C24 2.19093 22.1933 0.431458 20 0.431458H4ZM12 5.62536H14.6667C14.6667 6.93033 16.628 8.22232 17.3333 8.22232V10.8193C16.5267 10.8193 15.5573 10.4741 14.6667 9.89106V14.7147C14.6667 16.8624 12.872 18.6101 10.6667 18.6101C8.46133 18.6101 6.66667 16.8624 6.66667 14.7147C6.66667 12.567 8.46133 10.8193 10.6667 10.8193V13.4162C9.93067 13.4162 9.33333 13.9992 9.33333 14.7147C9.33333 15.4302 9.93067 16.0132 10.6667 16.0132C11.4027 16.0132 12 15.4302 12 14.7147V5.62536Z",fill:"white"})}),it=()=>t.jsx("svg",{className:"cursor-pointer",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M21.3333 0.431458H2.66667C1.19333 0.431458 0 1.59359 0 3.02841V21.2071C0 22.6419 1.19333 23.804 2.66667 23.804H21.3333C22.8067 23.804 24 22.6419 24 21.2071V3.02841C24 1.59359 22.8067 0.431458 21.3333 0.431458ZM8 18.6101H4.636V9.52079H8V18.6101ZM6.25867 7.85485C5.23067 7.85485 4.544 7.18743 4.544 6.29668C4.544 5.40592 5.22933 4.7385 6.372 4.7385C7.4 4.7385 8.08667 5.40592 8.08667 6.29668C8.08667 7.18743 7.40133 7.85485 6.25867 7.85485ZM20 18.6101H16.744V13.6422C16.744 12.2684 15.876 11.9515 15.5507 11.9515C15.2253 11.9515 14.14 12.1632 14.14 13.6422C14.14 13.8538 14.14 18.6101 14.14 18.6101H10.776V9.52079H14.14V10.7894C14.5733 10.0493 15.4413 9.52079 17.0693 9.52079C18.6973 9.52079 20 10.7894 20 13.6422V18.6101Z",fill:"white"})}),kM=({children:A,href:g,Viewport:B,colorButton:M,setIsOpen:D,routerApp:w=!1,open:e=!1,handleOpen:C,handleRouter:Q})=>{const s=r.useRef(null),[i,o]=r.useState(M);r.useEffect(()=>{const n=()=>{const E=document.getElementById(g.slice(1));if(E){const l=E.getBoundingClientRect(),a=l.top>=0&&l.bottom<=window.innerHeight;o(a?B:M)}};return n(),window.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n)}},[g,B,M]);const I=()=>{const n=document.getElementById(g.slice(1));n&&(n.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{const E=n.getBoundingClientRect(),l=E.top>=0&&E.bottom<=window.innerHeight;o(l?B:M),D(!1)},300))};return t.jsx("button",{className:"group",onClick:w?Q:e?C:I,ref:s,style:{display:"block",padding:"8px 12px",borderRadius:"6px",fontSize:"14px",color:i,background:"transparent",opacity:.7,textDecoration:"none",cursor:"pointer",letterSpacing:"3px",fontWeight:"800"},"aria-current":"page",title:`Enlace a ${g}`,rel:"noopener noreferrer",children:A})},KM=r.createContext({});function pM(A){const g=r.useRef(null);return g.current===null&&(g.current=A()),g.current}const tB=r.createContext(null),hM=r.createContext({transformPagePoint:A=>A,isStatic:!1,reducedMotion:"never"});function ot(A=!0){const g=r.useContext(tB);if(g===null)return[!0,null];const{isPresent:B,onExitComplete:M,register:D}=g,w=r.useId();r.useEffect(()=>{A&&D(w)},[A]);const e=r.useCallback(()=>A&&M&&M(w),[w,M,A]);return!B&&M?[!1,e]:[!0]}const QB=typeof window<"u",RM=QB?r.useLayoutEffect:r.useEffect,$=A=>A;let RA=$,sA=$;process.env.NODE_ENV!=="production"&&(RA=(A,g)=>{!A&&typeof console<"u"&&console.warn(g)},sA=(A,g)=>{if(!A)throw new Error(g)});function CB(A){let g;return()=>(g===void 0&&(g=A()),g)}const JA=(A,g,B)=>{const M=g-A;return M===0?1:(B-A)/M},iA=A=>A*1e3,rA=A=>A/1e3,It={skipAnimations:!1,useManualTiming:!1};function nt(A){let g=new Set,B=new Set,M=!1,D=!1;const w=new WeakSet;let e={delta:0,timestamp:0,isProcessing:!1};function C(s){w.has(s)&&(Q.schedule(s),A()),s(e)}const Q={schedule:(s,i=!1,o=!1)=>{const n=o&&M?g:B;return i&&w.add(s),n.has(s)||n.add(s),s},cancel:s=>{B.delete(s),w.delete(s)},process:s=>{if(e=s,M){D=!0;return}M=!0,[g,B]=[B,g],g.forEach(C),g.clear(),M=!1,D&&(D=!1,Q.process(s))}};return Q}const lg=["read","resolveKeyframes","update","preRender","render","postRender"],rt=40;function JM(A,g){let B=!1,M=!0;const D={delta:0,timestamp:0,isProcessing:!1},w=()=>B=!0,e=lg.reduce((G,c)=>(G[c]=nt(w),G),{}),{read:C,resolveKeyframes:Q,update:s,preRender:i,render:o,postRender:I}=e,n=()=>{const G=performance.now();B=!1,D.delta=M?1e3/60:Math.max(Math.min(G-D.timestamp,rt),1),D.timestamp=G,D.isProcessing=!0,C.process(D),Q.process(D),s.process(D),i.process(D),o.process(D),I.process(D),D.isProcessing=!1,B&&g&&(M=!1,A(n))},E=()=>{B=!0,M=!0,D.isProcessing||A(n)};return{schedule:lg.reduce((G,c)=>{const m=e[c];return G[c]=(K,Y=!1,d=!1)=>(B||E(),m.schedule(K,Y,d)),G},{}),cancel:G=>{for(let c=0;c<lg.length;c++)e[lg[c]].cancel(G)},state:D,steps:e}}const{schedule:z,cancel:GA,state:H,steps:sB}=JM(typeof requestAnimationFrame<"u"?requestAnimationFrame:$,!0),zM=r.createContext({strict:!1}),vM={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},zA={};for(const A in vM)zA[A]={isEnabled:g=>vM[A].some(B=>!!g[B])};function Et(A){for(const g in A)zA[g]={...zA[g],...A[g]}}const lt=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ag(A){return A.startsWith("while")||A.startsWith("drag")&&A!=="draggable"||A.startsWith("layout")||A.startsWith("onTap")||A.startsWith("onPan")||A.startsWith("onLayout")||lt.has(A)}let PM=A=>!ag(A);function at(A){A&&(PM=g=>g.startsWith("on")?!ag(g):A(g))}try{at(require("@emotion/is-prop-valid").default)}catch{}function Gt(A,g,B){const M={};for(const D in A)D==="values"&&typeof A.values=="object"||(PM(D)||B===!0&&ag(D)||!g&&!ag(D)||A.draggable&&D.startsWith("onDrag"))&&(M[D]=A[D]);return M}const LM=new Set;function Gg(A,g,B){A||LM.has(g)||(console.warn(g),LM.add(g))}function ct(A){if(typeof Proxy>"u")return A;const g=new Map,B=(...M)=>(process.env.NODE_ENV!=="production"&&Gg(!1,"motion() is deprecated. Use motion.create() instead."),A(...M));return new Proxy(B,{get:(M,D)=>D==="create"?A:(g.has(D)||g.set(D,A(D)),g.get(D))})}const cg=r.createContext({});function NA(A){return typeof A=="string"||Array.isArray(A)}function Yg(A){return A!==null&&typeof A=="object"&&typeof A.start=="function"}const iB=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],oB=["initial",...iB];function yg(A){return Yg(A.animate)||oB.some(g=>NA(A[g]))}function FM(A){return!!(yg(A)||A.variants)}function Yt(A,g){if(yg(A)){const{initial:B,animate:M}=A;return{initial:B===!1||NA(B)?B:void 0,animate:NA(M)?M:void 0}}return A.inherit!==!1?g:{}}function yt(A){const{initial:g,animate:B}=Yt(A,r.useContext(cg));return r.useMemo(()=>({initial:g,animate:B}),[bM(g),bM(B)])}function bM(A){return Array.isArray(A)?A.join(" "):A}const ut=Symbol.for("motionComponentSymbol");function vA(A){return A&&typeof A=="object"&&Object.prototype.hasOwnProperty.call(A,"current")}function mt(A,g,B){return r.useCallback(M=>{M&&A.onMount&&A.onMount(M),g&&(M?g.mount(M):g.unmount()),B&&(typeof B=="function"?B(M):vA(B)&&(B.current=M))},[g])}const IB=A=>A.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),OM="data-"+IB("framerAppearId"),{schedule:nB,cancel:Hi}=JM(queueMicrotask,!1),jM=r.createContext({});function Ut(A,g,B,M,D){var w,e;const{visualElement:C}=r.useContext(cg),Q=r.useContext(zM),s=r.useContext(tB),i=r.useContext(hM).reducedMotion,o=r.useRef(null);M=M||Q.renderer,!o.current&&M&&(o.current=M(A,{visualState:g,parent:C,props:B,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:i}));const I=o.current,n=r.useContext(jM);I&&!I.projection&&D&&(I.type==="html"||I.type==="svg")&&ft(o.current,B,D,n);const E=r.useRef(!1);r.useInsertionEffect(()=>{I&&E.current&&I.update(B,s)});const l=B[OM],a=r.useRef(!!l&&!(!((w=window.MotionHandoffIsComplete)===null||w===void 0)&&w.call(window,l))&&((e=window.MotionHasOptimisedAnimation)===null||e===void 0?void 0:e.call(window,l)));return RM(()=>{I&&(E.current=!0,window.MotionIsMounted=!0,I.updateFeatures(),nB.render(I.render),a.current&&I.animationState&&I.animationState.animateChanges())}),r.useEffect(()=>{I&&(!a.current&&I.animationState&&I.animationState.animateChanges(),a.current&&(queueMicrotask(()=>{var G;(G=window.MotionHandoffMarkAsComplete)===null||G===void 0||G.call(window,l)}),a.current=!1))}),I}function ft(A,g,B,M){const{layoutId:D,layout:w,drag:e,dragConstraints:C,layoutScroll:Q,layoutRoot:s}=g;A.projection=new B(A.latestValues,g["data-framer-portal-id"]?void 0:HM(A.parent)),A.projection.setOptions({layoutId:D,layout:w,alwaysMeasureLayout:!!e||C&&vA(C),visualElement:A,animationType:typeof w=="string"?w:"both",initialPromotionConfig:M,layoutScroll:Q,layoutRoot:s})}function HM(A){if(A)return A.options.allowProjection!==!1?A.projection:HM(A.parent)}function Zt({preloadedFeatures:A,createVisualElement:g,useRender:B,useVisualState:M,Component:D}){var w,e;A&&Et(A);function C(s,i){let o;const I={...r.useContext(hM),...s,layoutId:Vt(s)},{isStatic:n}=I,E=yt(s),l=M(s,n);if(!n&&QB){dt(I,A);const a=qt(I);o=a.MeasureLayout,E.visualElement=Ut(D,l,I,g,a.ProjectionNode)}return t.jsxs(cg.Provider,{value:E,children:[o&&E.visualElement?t.jsx(o,{visualElement:E.visualElement,...I}):null,B(D,s,mt(l,E.visualElement,i),l,n,E.visualElement)]})}C.displayName=`motion.${typeof D=="string"?D:`create(${(e=(w=D.displayName)!==null&&w!==void 0?w:D.name)!==null&&e!==void 0?e:""})`}`;const Q=r.forwardRef(C);return Q[ut]=D,Q}function Vt({layoutId:A}){const g=r.useContext(KM).id;return g&&A!==void 0?g+"-"+A:A}function dt(A,g){const B=r.useContext(zM).strict;if(process.env.NODE_ENV!=="production"&&g&&B){const M="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";A.ignoreStrict?RA(!1,M):sA(!1,M)}}function qt(A){const{drag:g,layout:B}=zA;if(!g&&!B)return{};const M={...g,...B};return{MeasureLayout:g!=null&&g.isEnabled(A)||B!=null&&B.isEnabled(A)?M.MeasureLayout:void 0,ProjectionNode:M.ProjectionNode}}const kt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function rB(A){return typeof A!="string"||A.includes("-")?!1:!!(kt.indexOf(A)>-1||/[A-Z]/u.test(A))}function TM(A){const g=[{},{}];return A==null||A.values.forEach((B,M)=>{g[0][M]=B.get(),g[1][M]=B.getVelocity()}),g}function EB(A,g,B,M){if(typeof g=="function"){const[D,w]=TM(M);g=g(B!==void 0?B:A.custom,D,w)}if(typeof g=="string"&&(g=A.variants&&A.variants[g]),typeof g=="function"){const[D,w]=TM(M);g=g(B!==void 0?B:A.custom,D,w)}return g}const lB=A=>Array.isArray(A),Kt=A=>!!(A&&typeof A=="object"&&A.mix&&A.toValue),pt=A=>lB(A)?A[A.length-1]||0:A,S=A=>!!(A&&A.getVelocity);function ug(A){const g=S(A)?A.get():A;return Kt(g)?g.toValue():g}function ht({scrapeMotionValuesFromProps:A,createRenderState:g,onUpdate:B},M,D,w){const e={latestValues:Rt(M,D,w,A),renderState:g()};return B&&(e.onMount=C=>B({props:M,current:C,...e}),e.onUpdate=C=>B(C)),e}const SM=A=>(g,B)=>{const M=r.useContext(cg),D=r.useContext(tB),w=()=>ht(A,g,M,D);return B?w():pM(w)};function Rt(A,g,B,M){const D={},w=M(A,{});for(const I in w)D[I]=ug(w[I]);let{initial:e,animate:C}=A;const Q=yg(A),s=FM(A);g&&s&&!Q&&A.inherit!==!1&&(e===void 0&&(e=g.initial),C===void 0&&(C=g.animate));let i=B?B.initial===!1:!1;i=i||e===!1;const o=i?C:e;if(o&&typeof o!="boolean"&&!Yg(o)){const I=Array.isArray(o)?o:[o];for(let n=0;n<I.length;n++){const E=EB(A,I[n]);if(E){const{transitionEnd:l,transition:a,...G}=E;for(const c in G){let m=G[c];if(Array.isArray(m)){const K=i?m.length-1:0;m=m[K]}m!==null&&(D[c]=m)}for(const c in l)D[c]=l[c]}}}return D}const PA=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],UA=new Set(PA),xM=A=>g=>typeof g=="string"&&g.startsWith(A),NM=xM("--"),Jt=xM("var(--"),aB=A=>Jt(A)?zt.test(A.split("/*")[0].trim()):!1,zt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,XM=(A,g)=>g&&typeof A=="number"?g.transform(A):A,EA=(A,g,B)=>B>g?g:B<A?A:B,LA={test:A=>typeof A=="number",parse:parseFloat,transform:A=>A},XA={...LA,transform:A=>EA(0,1,A)},mg={...LA,default:1},WA=A=>({test:g=>typeof g=="string"&&g.endsWith(A)&&g.split(" ").length===1,parse:parseFloat,transform:g=>`${g}${A}`}),cA=WA("deg"),oA=WA("%"),V=WA("px"),vt=WA("vh"),Pt=WA("vw"),WM={...oA,parse:A=>oA.parse(A)/100,transform:A=>oA.transform(A*100)},Lt={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V},Ft={rotate:cA,rotateX:cA,rotateY:cA,rotateZ:cA,scale:mg,scaleX:mg,scaleY:mg,scaleZ:mg,skew:cA,skewX:cA,skewY:cA,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:XA,originX:WM,originY:WM,originZ:V},$M={...LA,transform:Math.round},GB={...Lt,...Ft,zIndex:$M,size:V,fillOpacity:XA,strokeOpacity:XA,numOctaves:$M},bt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ot=PA.length;function jt(A,g,B){let M="",D=!0;for(let w=0;w<Ot;w++){const e=PA[w],C=A[e];if(C===void 0)continue;let Q=!0;if(typeof C=="number"?Q=C===(e.startsWith("scale")?1:0):Q=parseFloat(C)===0,!Q||B){const s=XM(C,GB[e]);if(!Q){D=!1;const i=bt[e]||e;M+=`${i}(${s}) `}B&&(g[e]=s)}}return M=M.trim(),B?M=B(g,D?"":M):D&&(M="none"),M}function cB(A,g,B){const{style:M,vars:D,transformOrigin:w}=A;let e=!1,C=!1;for(const Q in g){const s=g[Q];if(UA.has(Q)){e=!0;continue}else if(NM(Q)){D[Q]=s;continue}else{const i=XM(s,GB[Q]);Q.startsWith("origin")?(C=!0,w[Q]=i):M[Q]=i}}if(g.transform||(e||B?M.transform=jt(g,A.transform,B):M.transform&&(M.transform="none")),C){const{originX:Q="50%",originY:s="50%",originZ:i=0}=w;M.transformOrigin=`${Q} ${s} ${i}`}}const Ht={offset:"stroke-dashoffset",array:"stroke-dasharray"},Tt={offset:"strokeDashoffset",array:"strokeDasharray"};function St(A,g,B=1,M=0,D=!0){A.pathLength=1;const w=D?Ht:Tt;A[w.offset]=V.transform(-M);const e=V.transform(g),C=V.transform(B);A[w.array]=`${e} ${C}`}function _M(A,g,B){return typeof A=="string"?A:V.transform(g+B*A)}function xt(A,g,B){const M=_M(g,A.x,A.width),D=_M(B,A.y,A.height);return`${M} ${D}`}function YB(A,{attrX:g,attrY:B,attrScale:M,originX:D,originY:w,pathLength:e,pathSpacing:C=1,pathOffset:Q=0,...s},i,o){if(cB(A,s,o),i){A.style.viewBox&&(A.attrs.viewBox=A.style.viewBox);return}A.attrs=A.style,A.style={};const{attrs:I,style:n,dimensions:E}=A;I.transform&&(E&&(n.transform=I.transform),delete I.transform),E&&(D!==void 0||w!==void 0||n.transform)&&(n.transformOrigin=xt(E,D!==void 0?D:.5,w!==void 0?w:.5)),g!==void 0&&(I.x=g),B!==void 0&&(I.y=B),M!==void 0&&(I.scale=M),e!==void 0&&St(I,e,C,Q,!1)}const yB=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),AD=()=>({...yB(),attrs:{}}),uB=A=>typeof A=="string"&&A.toLowerCase()==="svg";function gD(A,{style:g,vars:B},M,D){Object.assign(A.style,g,D&&D.getProjectionStyles(M));for(const w in B)A.style.setProperty(w,B[w])}const BD=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"]);function MD(A,g,B,M){gD(A,g,void 0,M);for(const D in g.attrs)A.setAttribute(BD.has(D)?D:IB(D),g.attrs[D])}const Ug={};function Nt(A){Object.assign(Ug,A)}function DD(A,{layout:g,layoutId:B}){return UA.has(A)||A.startsWith("origin")||(g||B!==void 0)&&(!!Ug[A]||A==="opacity")}function mB(A,g,B){var M;const{style:D}=A,w={};for(const e in D)(S(D[e])||g.style&&S(g.style[e])||DD(e,A)||((M=B==null?void 0:B.getValue(e))===null||M===void 0?void 0:M.liveStyle)!==void 0)&&(w[e]=D[e]);return w}function eD(A,g,B){const M=mB(A,g,B);for(const D in A)if(S(A[D])||S(g[D])){const w=PA.indexOf(D)!==-1?"attr"+D.charAt(0).toUpperCase()+D.substring(1):D;M[w]=A[D]}return M}function Xt(A,g){try{g.dimensions=typeof A.getBBox=="function"?A.getBBox():A.getBoundingClientRect()}catch{g.dimensions={x:0,y:0,width:0,height:0}}}const wD=["x","y","width","height","cx","cy","r"],Wt={useVisualState:SM({scrapeMotionValuesFromProps:eD,createRenderState:AD,onUpdate:({props:A,prevProps:g,current:B,renderState:M,latestValues:D})=>{if(!B)return;let w=!!A.drag;if(!w){for(const C in D)if(UA.has(C)){w=!0;break}}if(!w)return;let e=!g;if(g)for(let C=0;C<wD.length;C++){const Q=wD[C];A[Q]!==g[Q]&&(e=!0)}e&&z.read(()=>{Xt(B,M),z.render(()=>{YB(M,D,uB(B.tagName),A.transformTemplate),MD(B,M)})})}})},$t={useVisualState:SM({scrapeMotionValuesFromProps:mB,createRenderState:yB})};function tD(A,g,B){for(const M in g)!S(g[M])&&!DD(M,B)&&(A[M]=g[M])}function _t({transformTemplate:A},g){return r.useMemo(()=>{const B=yB();return cB(B,g,A),Object.assign({},B.vars,B.style)},[g])}function AQ(A,g){const B=A.style||{},M={};return tD(M,B,A),Object.assign(M,_t(A,g)),M}function gQ(A,g){const B={},M=AQ(A,g);return A.drag&&A.dragListener!==!1&&(B.draggable=!1,M.userSelect=M.WebkitUserSelect=M.WebkitTouchCallout="none",M.touchAction=A.drag===!0?"none":`pan-${A.drag==="x"?"y":"x"}`),A.tabIndex===void 0&&(A.onTap||A.onTapStart||A.whileTap)&&(B.tabIndex=0),B.style=M,B}function BQ(A,g,B,M){const D=r.useMemo(()=>{const w=AD();return YB(w,g,uB(M),A.transformTemplate),{...w.attrs,style:{...w.style}}},[g]);if(A.style){const w={};tD(w,A.style,A),D.style={...w,...D.style}}return D}function MQ(A=!1){return(B,M,D,{latestValues:w},e)=>{const Q=(rB(B)?BQ:gQ)(M,w,e,B),s=Gt(M,typeof B=="string",A),i=B!==r.Fragment?{...s,...Q,ref:D}:{},{children:o}=M,I=r.useMemo(()=>S(o)?o.get():o,[o]);return r.createElement(B,{...i,children:I})}}function DQ(A,g){return function(M,{forwardMotionProps:D}={forwardMotionProps:!1}){const e={...rB(M)?Wt:$t,preloadedFeatures:A,useRender:MQ(D),createVisualElement:g,Component:M};return Zt(e)}}function QD(A,g){if(!Array.isArray(g))return!1;const B=g.length;if(B!==A.length)return!1;for(let M=0;M<B;M++)if(g[M]!==A[M])return!1;return!0}function fg(A,g,B){const M=A.getProps();return EB(M,g,B!==void 0?B:M.custom,A)}const eQ=CB(()=>window.ScrollTimeline!==void 0);class wQ{constructor(g){this.stop=()=>this.runAll("stop"),this.animations=g.filter(Boolean)}get finished(){return Promise.all(this.animations.map(g=>"finished"in g?g.finished:g))}getAll(g){return this.animations[0][g]}setAll(g,B){for(let M=0;M<this.animations.length;M++)this.animations[M][g]=B}attachTimeline(g,B){const M=this.animations.map(D=>{if(eQ()&&D.attachTimeline)return D.attachTimeline(g);if(typeof B=="function")return B(D)});return()=>{M.forEach((D,w)=>{D&&D(),this.animations[w].stop()})}}get time(){return this.getAll("time")}set time(g){this.setAll("time",g)}get speed(){return this.getAll("speed")}set speed(g){this.setAll("speed",g)}get startTime(){return this.getAll("startTime")}get duration(){let g=0;for(let B=0;B<this.animations.length;B++)g=Math.max(g,this.animations[B].duration);return g}runAll(g){this.animations.forEach(B=>B[g]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class tQ extends wQ{then(g,B){return Promise.all(this.animations).then(g).catch(B)}}function UB(A,g){return A?A[g]||A.default||A:void 0}const fB=2e4;function CD(A){let g=0;const B=50;let M=A.next(g);for(;!M.done&&g<fB;)g+=B,M=A.next(g);return g>=fB?1/0:g}function ZB(A){return typeof A=="function"}function sD(A,g){A.timeline=g,A.onfinish=null}const VB=A=>Array.isArray(A)&&typeof A[0]=="number",QQ={linearEasing:void 0};function CQ(A,g){const B=CB(A);return()=>{var M;return(M=QQ[g])!==null&&M!==void 0?M:B()}}const Zg=CQ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),iD=(A,g,B=10)=>{let M="";const D=Math.max(Math.round(g/B),2);for(let w=0;w<D;w++)M+=A(JA(0,D-1,w))+", ";return`linear(${M.substring(0,M.length-2)})`};function oD(A){return!!(typeof A=="function"&&Zg()||!A||typeof A=="string"&&(A in dB||Zg())||VB(A)||Array.isArray(A)&&A.every(oD))}const $A=([A,g,B,M])=>`cubic-bezier(${A}, ${g}, ${B}, ${M})`,dB={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$A([0,.65,.55,1]),circOut:$A([.55,0,1,.45]),backIn:$A([.31,.01,.66,-.59]),backOut:$A([.33,1.53,.69,.99])};function ID(A,g){if(A)return typeof A=="function"&&Zg()?iD(A,g):VB(A)?$A(A):Array.isArray(A)?A.map(B=>ID(B,g)||dB.easeOut):dB[A]}const eA={x:!1,y:!1};function nD(){return eA.x||eA.y}function rD(A,g,B){var M;if(A instanceof Element)return[A];if(typeof A=="string"){let D=document;const w=(M=void 0)!==null&&M!==void 0?M:D.querySelectorAll(A);return w?Array.from(w):[]}return Array.from(A)}function ED(A,g){const B=rD(A),M=new AbortController,D={passive:!0,...g,signal:M.signal};return[B,D,()=>M.abort()]}function lD(A){return!(A.pointerType==="touch"||nD())}function sQ(A,g,B={}){const[M,D,w]=ED(A,B),e=C=>{if(!lD(C))return;const{target:Q}=C,s=g(Q,C);if(typeof s!="function"||!Q)return;const i=o=>{lD(o)&&(s(o),Q.removeEventListener("pointerleave",i))};Q.addEventListener("pointerleave",i,D)};return M.forEach(C=>{C.addEventListener("pointerenter",e,D)}),w}const aD=(A,g)=>g?A===g?!0:aD(A,g.parentElement):!1,qB=A=>A.pointerType==="mouse"?typeof A.button!="number"||A.button<=0:A.isPrimary!==!1,iQ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function oQ(A){return iQ.has(A.tagName)||A.tabIndex!==-1}const _A=new WeakSet;function GD(A){return g=>{g.key==="Enter"&&A(g)}}function kB(A,g){A.dispatchEvent(new PointerEvent("pointer"+g,{isPrimary:!0,bubbles:!0}))}const IQ=(A,g)=>{const B=A.currentTarget;if(!B)return;const M=GD(()=>{if(_A.has(B))return;kB(B,"down");const D=GD(()=>{kB(B,"up")}),w=()=>kB(B,"cancel");B.addEventListener("keyup",D,g),B.addEventListener("blur",w,g)});B.addEventListener("keydown",M,g),B.addEventListener("blur",()=>B.removeEventListener("keydown",M),g)};function cD(A){return qB(A)&&!nD()}function nQ(A,g,B={}){const[M,D,w]=ED(A,B),e=C=>{const Q=C.currentTarget;if(!cD(C)||_A.has(Q))return;_A.add(Q);const s=g(Q,C),i=(n,E)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",I),!(!cD(n)||!_A.has(Q))&&(_A.delete(Q),typeof s=="function"&&s(n,{success:E}))},o=n=>{i(n,B.useGlobalTarget||aD(Q,n.target))},I=n=>{i(n,!1)};window.addEventListener("pointerup",o,D),window.addEventListener("pointercancel",I,D)};return M.forEach(C=>{!oQ(C)&&C.getAttribute("tabindex")===null&&(C.tabIndex=0),(B.useGlobalTarget?window:C).addEventListener("pointerdown",e,D),C.addEventListener("focus",s=>IQ(s,D),D)}),w}function rQ(A){return A==="x"||A==="y"?eA[A]?null:(eA[A]=!0,()=>{eA[A]=!1}):eA.x||eA.y?null:(eA.x=eA.y=!0,()=>{eA.x=eA.y=!1})}const YD=new Set(["width","height","top","left","right","bottom",...PA]);let Vg;function EQ(){Vg=void 0}const IA={now:()=>(Vg===void 0&&IA.set(H.isProcessing||It.useManualTiming?H.timestamp:performance.now()),Vg),set:A=>{Vg=A,queueMicrotask(EQ)}};function KB(A,g){A.indexOf(g)===-1&&A.push(g)}function pB(A,g){const B=A.indexOf(g);B>-1&&A.splice(B,1)}class hB{constructor(){this.subscriptions=[]}add(g){return KB(this.subscriptions,g),()=>pB(this.subscriptions,g)}notify(g,B,M){const D=this.subscriptions.length;if(D)if(D===1)this.subscriptions[0](g,B,M);else for(let w=0;w<D;w++){const e=this.subscriptions[w];e&&e(g,B,M)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function yD(A,g){return g?A*(1e3/g):0}const uD=30,lQ=A=>!isNaN(parseFloat(A));class aQ{constructor(g,B={}){this.version="12.0.3",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(M,D=!0)=>{const w=IA.now();this.updatedAt!==w&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(M),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),D&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(g),this.owner=B.owner}setCurrent(g){this.current=g,this.updatedAt=IA.now(),this.canTrackVelocity===null&&g!==void 0&&(this.canTrackVelocity=lQ(this.current))}setPrevFrameValue(g=this.current){this.prevFrameValue=g,this.prevUpdatedAt=this.updatedAt}onChange(g){return process.env.NODE_ENV!=="production"&&Gg(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",g)}on(g,B){this.events[g]||(this.events[g]=new hB);const M=this.events[g].add(B);return g==="change"?()=>{M(),z.read(()=>{this.events.change.getSize()||this.stop()})}:M}clearListeners(){for(const g in this.events)this.events[g].clear()}attach(g,B){this.passiveEffect=g,this.stopPassiveEffect=B}set(g,B=!0){!B||!this.passiveEffect?this.updateAndNotify(g,B):this.passiveEffect(g,this.updateAndNotify)}setWithVelocity(g,B,M){this.set(B),this.prev=void 0,this.prevFrameValue=g,this.prevUpdatedAt=this.updatedAt-M}jump(g,B=!0){this.updateAndNotify(g),this.prev=g,this.prevUpdatedAt=this.prevFrameValue=void 0,B&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const g=IA.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||g-this.updatedAt>uD)return 0;const B=Math.min(this.updatedAt-this.prevUpdatedAt,uD);return yD(parseFloat(this.current)-parseFloat(this.prevFrameValue),B)}start(g){return this.stop(),new Promise(B=>{this.hasAnimated=!0,this.animation=g(B),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ag(A,g){return new aQ(A,g)}function GQ(A,g,B){A.hasValue(g)?A.getValue(g).set(B):A.addValue(g,Ag(B))}function RB(A,g){const B=fg(A,g);let{transitionEnd:M={},transition:D={},...w}=B||{};w={...w,...M};for(const e in w){const C=pt(w[e]);GQ(A,e,C)}}function cQ(A){return!!(S(A)&&A.add)}function JB(A,g){const B=A.getValue("willChange");if(cQ(B))return B.add(g)}function mD(A){return A.props[OM]}const UD=(A,g,B)=>(((1-3*B+3*g)*A+(3*B-6*g))*A+3*g)*A,YQ=1e-7,yQ=12;function uQ(A,g,B,M,D){let w,e,C=0;do e=g+(B-g)/2,w=UD(e,M,D)-A,w>0?B=e:g=e;while(Math.abs(w)>YQ&&++C<yQ);return e}function gg(A,g,B,M){if(A===g&&B===M)return $;const D=w=>uQ(w,0,1,A,B);return w=>w===0||w===1?w:UD(D(w),g,M)}const fD=A=>g=>g<=.5?A(2*g)/2:(2-A(2*(1-g)))/2,ZD=A=>g=>1-A(1-g),VD=gg(.33,1.53,.69,.99),zB=ZD(VD),dD=fD(zB),qD=A=>(A*=2)<1?.5*zB(A):.5*(2-Math.pow(2,-10*(A-1))),vB=A=>1-Math.sin(Math.acos(A)),kD=ZD(vB),KD=fD(vB),pD=A=>/^0[^.\s]+$/u.test(A);function mQ(A){return typeof A=="number"?A===0:A!==null?A==="none"||A==="0"||pD(A):!0}const Bg=A=>Math.round(A*1e5)/1e5,PB=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function UQ(A){return A==null}const fQ=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,LB=(A,g)=>B=>!!(typeof B=="string"&&fQ.test(B)&&B.startsWith(A)||g&&!UQ(B)&&Object.prototype.hasOwnProperty.call(B,g)),hD=(A,g,B)=>M=>{if(typeof M!="string")return M;const[D,w,e,C]=M.match(PB);return{[A]:parseFloat(D),[g]:parseFloat(w),[B]:parseFloat(e),alpha:C!==void 0?parseFloat(C):1}},ZQ=A=>EA(0,255,A),FB={...LA,transform:A=>Math.round(ZQ(A))},fA={test:LB("rgb","red"),parse:hD("red","green","blue"),transform:({red:A,green:g,blue:B,alpha:M=1})=>"rgba("+FB.transform(A)+", "+FB.transform(g)+", "+FB.transform(B)+", "+Bg(XA.transform(M))+")"};function VQ(A){let g="",B="",M="",D="";return A.length>5?(g=A.substring(1,3),B=A.substring(3,5),M=A.substring(5,7),D=A.substring(7,9)):(g=A.substring(1,2),B=A.substring(2,3),M=A.substring(3,4),D=A.substring(4,5),g+=g,B+=B,M+=M,D+=D),{red:parseInt(g,16),green:parseInt(B,16),blue:parseInt(M,16),alpha:D?parseInt(D,16)/255:1}}const bB={test:LB("#"),parse:VQ,transform:fA.transform},FA={test:LB("hsl","hue"),parse:hD("hue","saturation","lightness"),transform:({hue:A,saturation:g,lightness:B,alpha:M=1})=>"hsla("+Math.round(A)+", "+oA.transform(Bg(g))+", "+oA.transform(Bg(B))+", "+Bg(XA.transform(M))+")"},x={test:A=>fA.test(A)||bB.test(A)||FA.test(A),parse:A=>fA.test(A)?fA.parse(A):FA.test(A)?FA.parse(A):bB.parse(A),transform:A=>typeof A=="string"?A:A.hasOwnProperty("red")?fA.transform(A):FA.transform(A)},dQ=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function qQ(A){var g,B;return isNaN(A)&&typeof A=="string"&&(((g=A.match(PB))===null||g===void 0?void 0:g.length)||0)+(((B=A.match(dQ))===null||B===void 0?void 0:B.length)||0)>0}const RD="number",JD="color",kQ="var",KQ="var(",zD="${}",pQ=/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 Mg(A){const g=A.toString(),B=[],M={color:[],number:[],var:[]},D=[];let w=0;const C=g.replace(pQ,Q=>(x.test(Q)?(M.color.push(w),D.push(JD),B.push(x.parse(Q))):Q.startsWith(KQ)?(M.var.push(w),D.push(kQ),B.push(Q)):(M.number.push(w),D.push(RD),B.push(parseFloat(Q))),++w,zD)).split(zD);return{values:B,split:C,indexes:M,types:D}}function vD(A){return Mg(A).values}function PD(A){const{split:g,types:B}=Mg(A),M=g.length;return D=>{let w="";for(let e=0;e<M;e++)if(w+=g[e],D[e]!==void 0){const C=B[e];C===RD?w+=Bg(D[e]):C===JD?w+=x.transform(D[e]):w+=D[e]}return w}}const hQ=A=>typeof A=="number"?0:A;function RQ(A){const g=vD(A);return PD(A)(g.map(hQ))}const YA={test:qQ,parse:vD,createTransformer:PD,getAnimatableNone:RQ},JQ=new Set(["brightness","contrast","saturate","opacity"]);function zQ(A){const[g,B]=A.slice(0,-1).split("(");if(g==="drop-shadow")return A;const[M]=B.match(PB)||[];if(!M)return A;const D=B.replace(M,"");let w=JQ.has(g)?1:0;return M!==B&&(w*=100),g+"("+w+D+")"}const vQ=/\b([a-z-]*)\(.*?\)/gu,OB={...YA,getAnimatableNone:A=>{const g=A.match(vQ);return g?g.map(zQ).join(" "):A}},PQ={...GB,color:x,backgroundColor:x,outlineColor:x,fill:x,stroke:x,borderColor:x,borderTopColor:x,borderRightColor:x,borderBottomColor:x,borderLeftColor:x,filter:OB,WebkitFilter:OB},jB=A=>PQ[A];function LD(A,g){let B=jB(A);return B!==OB&&(B=YA),B.getAnimatableNone?B.getAnimatableNone(g):void 0}const LQ=new Set(["auto","none","0"]);function FQ(A,g,B){let M=0,D;for(;M<A.length&&!D;){const w=A[M];typeof w=="string"&&!LQ.has(w)&&Mg(w).values.length&&(D=A[M]),M++}if(D&&B)for(const w of g)A[w]=LD(B,D)}const FD=A=>A===LA||A===V,bD=(A,g)=>parseFloat(A.split(", ")[g]),OD=(A,g)=>(B,{transform:M})=>{if(M==="none"||!M)return 0;const D=M.match(/^matrix3d\((.+)\)$/u);if(D)return bD(D[1],g);{const w=M.match(/^matrix\((.+)\)$/u);return w?bD(w[1],A):0}},bQ=new Set(["x","y","z"]),OQ=PA.filter(A=>!bQ.has(A));function jQ(A){const g=[];return OQ.forEach(B=>{const M=A.getValue(B);M!==void 0&&(g.push([B,M.get()]),M.set(B.startsWith("scale")?1:0))}),g}const bA={width:({x:A},{paddingLeft:g="0",paddingRight:B="0"})=>A.max-A.min-parseFloat(g)-parseFloat(B),height:({y:A},{paddingTop:g="0",paddingBottom:B="0"})=>A.max-A.min-parseFloat(g)-parseFloat(B),top:(A,{top:g})=>parseFloat(g),left:(A,{left:g})=>parseFloat(g),bottom:({y:A},{top:g})=>parseFloat(g)+(A.max-A.min),right:({x:A},{left:g})=>parseFloat(g)+(A.max-A.min),x:OD(4,13),y:OD(5,14)};bA.translateX=bA.x,bA.translateY=bA.y;const ZA=new Set;let HB=!1,TB=!1;function jD(){if(TB){const A=Array.from(ZA).filter(M=>M.needsMeasurement),g=new Set(A.map(M=>M.element)),B=new Map;g.forEach(M=>{const D=jQ(M);D.length&&(B.set(M,D),M.render())}),A.forEach(M=>M.measureInitialState()),g.forEach(M=>{M.render();const D=B.get(M);D&&D.forEach(([w,e])=>{var C;(C=M.getValue(w))===null||C===void 0||C.set(e)})}),A.forEach(M=>M.measureEndState()),A.forEach(M=>{M.suspendedScrollY!==void 0&&window.scrollTo(0,M.suspendedScrollY)})}TB=!1,HB=!1,ZA.forEach(A=>A.complete()),ZA.clear()}function HD(){ZA.forEach(A=>{A.readKeyframes(),A.needsMeasurement&&(TB=!0)})}function HQ(){HD(),jD()}class SB{constructor(g,B,M,D,w,e=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...g],this.onComplete=B,this.name=M,this.motionValue=D,this.element=w,this.isAsync=e}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ZA.add(this),HB||(HB=!0,z.read(HD),z.resolveKeyframes(jD))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:g,name:B,element:M,motionValue:D}=this;for(let w=0;w<g.length;w++)if(g[w]===null)if(w===0){const e=D==null?void 0:D.get(),C=g[g.length-1];if(e!==void 0)g[0]=e;else if(M&&B){const Q=M.readValue(B,C);Q!=null&&(g[0]=Q)}g[0]===void 0&&(g[0]=C),D&&e===void 0&&D.set(g[0])}else g[w]=g[w-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ZA.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ZA.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const TD=A=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(A),TQ=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function SQ(A){const g=TQ.exec(A);if(!g)return[,];const[,B,M,D]=g;return[`--${B??M}`,D]}const xQ=4;function SD(A,g,B=1){sA(B<=xQ,`Max CSS variable fallback depth detected in property "${A}". This may indicate a circular fallback dependency.`);const[M,D]=SQ(A);if(!M)return;const w=window.getComputedStyle(g).getPropertyValue(M);if(w){const e=w.trim();return TD(e)?parseFloat(e):e}return aB(D)?SD(D,g,B+1):D}const xD=A=>g=>g.test(A),ND=[LA,V,oA,cA,Pt,vt,{test:A=>A==="auto",parse:A=>A}],XD=A=>ND.find(xD(A));class WD extends SB{constructor(g,B,M,D,w){super(g,B,M,D,w,!0)}readKeyframes(){const{unresolvedKeyframes:g,element:B,name:M}=this;if(!B||!B.current)return;super.readKeyframes();for(let Q=0;Q<g.length;Q++){let s=g[Q];if(typeof s=="string"&&(s=s.trim(),aB(s))){const i=SD(s,B.current);i!==void 0&&(g[Q]=i),Q===g.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!YD.has(M)||g.length!==2)return;const[D,w]=g,e=XD(D),C=XD(w);if(e!==C)if(FD(e)&&FD(C))for(let Q=0;Q<g.length;Q++){const s=g[Q];typeof s=="string"&&(g[Q]=parseFloat(s))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:g,name:B}=this,M=[];for(let D=0;D<g.length;D++)mQ(g[D])&&M.push(D);M.length&&FQ(g,M,B)}measureInitialState(){const{element:g,unresolvedKeyframes:B,name:M}=this;if(!g||!g.current)return;M==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=bA[M](g.measureViewportBox(),window.getComputedStyle(g.current)),B[0]=this.measuredOrigin;const D=B[B.length-1];D!==void 0&&g.getValue(M,D).jump(D,!1)}measureEndState(){var g;const{element:B,name:M,unresolvedKeyframes:D}=this;if(!B||!B.current)return;const w=B.getValue(M);w&&w.jump(this.measuredOrigin,!1);const e=D.length-1,C=D[e];D[e]=bA[M](B.measureViewportBox(),window.getComputedStyle(B.current)),C!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=C),!((g=this.removedTransforms)===null||g===void 0)&&g.length&&this.removedTransforms.forEach(([Q,s])=>{B.getValue(Q).set(s)}),this.resolveNoneKeyframes()}}const $D=(A,g)=>g==="zIndex"?!1:!!(typeof A=="number"||Array.isArray(A)||typeof A=="string"&&(YA.test(A)||A==="0")&&!A.startsWith("url("));function NQ(A){const g=A[0];if(A.length===1)return!0;for(let B=0;B<A.length;B++)if(A[B]!==g)return!0}function XQ(A,g,B,M){const D=A[0];if(D===null)return!1;if(g==="display"||g==="visibility")return!0;const w=A[A.length-1],e=$D(D,g),C=$D(w,g);return RA(e===C,`You are trying to animate ${g} from "${D}" to "${w}". ${D} is not an animatable value - to enable this animation set ${D} to a value animatable to ${w} via the \`style\` property.`),!e||!C?!1:NQ(A)||(B==="spring"||ZB(B))&&M}const WQ=A=>A!==null;function dg(A,{repeat:g,repeatType:B="loop"},M){const D=A.filter(WQ),w=g&&B!=="loop"&&g%2===1?0:D.length-1;return!w||M===void 0?D[w]:M}const $Q=40;class _D{constructor({autoplay:g=!0,delay:B=0,type:M="keyframes",repeat:D=0,repeatDelay:w=0,repeatType:e="loop",...C}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=IA.now(),this.options={autoplay:g,delay:B,type:M,repeat:D,repeatDelay:w,repeatType:e,...C},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>$Q?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&HQ(),this._resolved}onKeyframesResolved(g,B){this.resolvedAt=IA.now(),this.hasAttemptedResolve=!0;const{name:M,type:D,velocity:w,delay:e,onComplete:C,onUpdate:Q,isGenerator:s}=this.options;if(!s&&!XQ(g,M,D,w))if(e)this.options.duration=0;else{Q&&Q(dg(g,this.options,B)),C&&C(),this.resolveFinishedPromise();return}const i=this.initPlayback(g,B);i!==!1&&(this._resolved={keyframes:g,finalKeyframe:B,...i},this.onPostResolved())}onPostResolved(){}then(g,B){return this.currentFinishedPromise.then(g,B)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(g=>{this.resolveFinishedPromise=g})}}const P=(A,g,B)=>A+(g-A)*B;function xB(A,g,B){return B<0&&(B+=1),B>1&&(B-=1),B<1/6?A+(g-A)*6*B:B<1/2?g:B<2/3?A+(g-A)*(2/3-B)*6:A}function _Q({hue:A,saturation:g,lightness:B,alpha:M}){A/=360,g/=100,B/=100;let D=0,w=0,e=0;if(!g)D=w=e=B;else{const C=B<.5?B*(1+g):B+g-B*g,Q=2*B-C;D=xB(Q,C,A+1/3),w=xB(Q,C,A),e=xB(Q,C,A-1/3)}return{red:Math.round(D*255),green:Math.round(w*255),blue:Math.round(e*255),alpha:M}}function qg(A,g){return B=>B>0?g:A}const NB=(A,g,B)=>{const M=A*A,D=B*(g*g-M)+M;return D<0?0:Math.sqrt(D)},AC=[bB,fA,FA],gC=A=>AC.find(g=>g.test(A));function Ae(A){const g=gC(A);if(RA(!!g,`'${A}' is not an animatable color. Use the equivalent color code instead.`),!g)return!1;let B=g.parse(A);return g===FA&&(B=_Q(B)),B}const ge=(A,g)=>{const B=Ae(A),M=Ae(g);if(!B||!M)return qg(A,g);const D={...B};return w=>(D.red=NB(B.red,M.red,w),D.green=NB(B.green,M.green,w),D.blue=NB(B.blue,M.blue,w),D.alpha=P(B.alpha,M.alpha,w),fA.transform(D))},BC=(A,g)=>B=>g(A(B)),Dg=(...A)=>A.reduce(BC),XB=new Set(["none","hidden"]);function MC(A,g){return XB.has(A)?B=>B<=0?A:g:B=>B>=1?g:A}function DC(A,g){return B=>P(A,g,B)}function WB(A){return typeof A=="number"?DC:typeof A=="string"?aB(A)?qg:x.test(A)?ge:tC:Array.isArray(A)?Be:typeof A=="object"?x.test(A)?ge:eC:qg}function Be(A,g){const B=[...A],M=B.length,D=A.map((w,e)=>WB(w)(w,g[e]));return w=>{for(let e=0;e<M;e++)B[e]=D[e](w);return B}}function eC(A,g){const B={...A,...g},M={};for(const D in B)A[D]!==void 0&&g[D]!==void 0&&(M[D]=WB(A[D])(A[D],g[D]));return D=>{for(const w in M)B[w]=M[w](D);return B}}function wC(A,g){var B;const M=[],D={color:0,var:0,number:0};for(let w=0;w<g.values.length;w++){const e=g.types[w],C=A.indexes[e][D[e]],Q=(B=A.values[C])!==null&&B!==void 0?B:0;M[w]=Q,D[e]++}return M}const tC=(A,g)=>{const B=YA.createTransformer(g),M=Mg(A),D=Mg(g);return M.indexes.var.length===D.indexes.var.length&&M.indexes.color.length===D.indexes.color.length&&M.indexes.number.length>=D.indexes.number.length?XB.has(A)&&!D.values.length||XB.has(g)&&!M.values.length?MC(A,g):Dg(Be(wC(M,D),D.values),B):(RA(!0,`Complex values '${A}' and '${g}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),qg(A,g))};function Me(A,g,B){return typeof A=="number"&&typeof g=="number"&&typeof B=="number"?P(A,g,B):WB(A)(A,g)}const QC=5;function De(A,g,B){const M=Math.max(g-QC,0);return yD(B-A(M),g-M)}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},ee=.001;function CC({duration:A=L.duration,bounce:g=L.bounce,velocity:B=L.velocity,mass:M=L.mass}){let D,w;RA(A<=iA(L.maxDuration),"Spring duration must be 10 seconds or less");let e=1-g;e=EA(L.minDamping,L.maxDamping,e),A=EA(L.minDuration,L.maxDuration,rA(A)),e<1?(D=s=>{const i=s*e,o=i*A,I=i-B,n=$B(s,e),E=Math.exp(-o);return ee-I/n*E},w=s=>{const o=s*e*A,I=o*B+B,n=Math.pow(e,2)*Math.pow(s,2)*A,E=Math.exp(-o),l=$B(Math.pow(s,2),e);return(-D(s)+ee>0?-1:1)*((I-n)*E)/l}):(D=s=>{const i=Math.exp(-s*A),o=(s-B)*A+1;return-.001+i*o},w=s=>{const i=Math.exp(-s*A),o=(B-s)*(A*A);return i*o});const C=5/A,Q=iC(D,w,C);if(A=iA(A),isNaN(Q))return{stiffness:L.stiffness,damping:L.damping,duration:A};{const s=Math.pow(Q,2)*M;return{stiffness:s,damping:e*2*Math.sqrt(M*s),duration:A}}}const sC=12;function iC(A,g,B){let M=B;for(let D=1;D<sC;D++)M=M-A(M)/g(M);return M}function $B(A,g){return A*Math.sqrt(1-g*g)}const oC=["duration","bounce"],IC=["stiffness","damping","mass"];function we(A,g){return g.some(B=>A[B]!==void 0)}function nC(A){let g={velocity:L.velocity,stiffness:L.stiffness,damping:L.damping,mass:L.mass,isResolvedFromDuration:!1,...A};if(!we(A,IC)&&we(A,oC))if(A.visualDuration){const B=A.visualDuration,M=2*Math.PI/(B*1.2),D=M*M,w=2*EA(.05,1,1-(A.bounce||0))*Math.sqrt(D);g={...g,mass:L.mass,stiffness:D,damping:w}}else{const B=CC(A);g={...g,...B,mass:L.mass},g.isResolvedFromDuration=!0}return g}function te(A=L.visualDuration,g=L.bounce){const B=typeof A!="object"?{visualDuration:A,keyframes:[0,1],bounce:g}:A;let{restSpeed:M,restDelta:D}=B;const w=B.keyframes[0],e=B.keyframes[B.keyframes.length-1],C={done:!1,value:w},{stiffness:Q,damping:s,mass:i,duration:o,velocity:I,isResolvedFromDuration:n}=nC({...B,velocity:-rA(B.velocity||0)}),E=I||0,l=s/(2*Math.sqrt(Q*i)),a=e-w,G=rA(Math.sqrt(Q/i)),c=Math.abs(a)<5;M||(M=c?L.restSpeed.granular:L.restSpeed.default),D||(D=c?L.restDelta.granular:L.restDelta.default);let m;if(l<1){const Y=$B(G,l);m=d=>{const f=Math.exp(-l*G*d);return e-f*((E+l*G*a)/Y*Math.sin(Y*d)+a*Math.cos(Y*d))}}else if(l===1)m=Y=>e-Math.exp(-G*Y)*(a+(E+G*a)*Y);else{const Y=G*Math.sqrt(l*l-1);m=d=>{const f=Math.exp(-l*G*d),U=Math.min(Y*d,300);return e-f*((E+l*G*a)*Math.sinh(U)+Y*a*Math.cosh(U))/Y}}const K={calculatedDuration:n&&o||null,next:Y=>{const d=m(Y);if(n)C.done=Y>=o;else{let f=0;l<1&&(f=Y===0?iA(E):De(m,Y,d));const U=Math.abs(f)<=M,y=Math.abs(e-d)<=D;C.done=U&&y}return C.value=C.done?e:d,C},toString:()=>{const Y=Math.min(CD(K),fB),d=iD(f=>K.next(Y*f).value,Y,30);return Y+"ms "+d}};return K}function Qe({keyframes:A,velocity:g=0,power:B=.8,timeConstant:M=325,bounceDamping:D=10,bounceStiffness:w=500,modifyTarget:e,min:C,max:Q,restDelta:s=.5,restSpeed:i}){const o=A[0],I={done:!1,value:o},n=U=>C!==void 0&&U<C||Q!==void 0&&U>Q,E=U=>C===void 0?Q:Q===void 0||Math.abs(C-U)<Math.abs(Q-U)?C:Q;let l=B*g;const a=o+l,G=e===void 0?a:e(a);G!==a&&(l=G-o);const c=U=>-l*Math.exp(-U/M),m=U=>G+c(U),K=U=>{const y=c(U),Z=m(U);I.done=Math.abs(y)<=s,I.value=I.done?G:Z};let Y,d;const f=U=>{n(I.value)&&(Y=U,d=te({keyframes:[I.value,E(I.value)],velocity:De(m,U,I.value),damping:D,stiffness:w,restDelta:s,restSpeed:i}))};return f(0),{calculatedDuration:null,next:U=>{let y=!1;return!d&&Y===void 0&&(y=!0,K(U),f(U)),Y!==void 0&&U>=Y?d.next(U-Y):(!y&&K(U),I)}}}const rC=gg(.42,0,1,1),EC=gg(0,0,.58,1),Ce=gg(.42,0,.58,1),lC=A=>Array.isArray(A)&&typeof A[0]!="number",se={linear:$,easeIn:rC,easeInOut:Ce,easeOut:EC,circIn:vB,circInOut:KD,circOut:kD,backIn:zB,backInOut:dD,backOut:VD,anticipate:qD},ie=A=>{if(VB(A)){sA(A.length===4,"Cubic bezier arrays must contain four numerical values.");const[g,B,M,D]=A;return gg(g,B,M,D)}else if(typeof A=="string")return sA(se[A]!==void 0,`Invalid easing type '${A}'`),se[A];return A};function aC(A,g,B){const M=[],D=B||Me,w=A.length-1;for(let e=0;e<w;e++){let C=D(A[e],A[e+1]);if(g){const Q=Array.isArray(g)?g[e]||$:g;C=Dg(Q,C)}M.push(C)}return M}function GC(A,g,{clamp:B=!0,ease:M,mixer:D}={}){const w=A.length;if(sA(w===g.length,"Both input and output ranges must be the same length"),w===1)return()=>g[0];if(w===2&&g[0]===g[1])return()=>g[1];const e=A[0]===A[1];A[0]>A[w-1]&&(A=[...A].reverse(),g=[...g].reverse());const C=aC(g,M,D),Q=C.length,s=i=>{if(e&&i<A[0])return g[0];let o=0;if(Q>1)for(;o<A.length-2&&!(i<A[o+1]);o++);const I=JA(A[o],A[o+1],i);return C[o](I)};return B?i=>s(EA(A[0],A[w-1],i)):s}function cC(A,g){const B=A[A.length-1];for(let M=1;M<=g;M++){const D=JA(0,g,M);A.push(P(B,1,D))}}function YC(A){const g=[0];return cC(g,A.length-1),g}function yC(A,g){return A.map(B=>B*g)}function uC(A,g){return A.map(()=>g||Ce).splice(0,A.length-1)}function kg({duration:A=300,keyframes:g,times:B,ease:M="easeInOut"}){const D=lC(M)?M.map(ie):ie(M),w={done:!1,value:g[0]},e=yC(B&&B.length===g.length?B:YC(g),A),C=GC(e,g,{ease:Array.isArray(D)?D:uC(g,D)});return{calculatedDuration:A,next:Q=>(w.value=C(Q),w.done=Q>=A,w)}}const mC=A=>{const g=({timestamp:B})=>A(B);return{start:()=>z.update(g,!0),stop:()=>GA(g),now:()=>H.isProcessing?H.timestamp:IA.now()}},UC={decay:Qe,inertia:Qe,tween:kg,keyframes:kg,spring:te},fC=A=>A/100;class _B extends _D{constructor(g){super(g),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:Q}=this.options;Q&&Q()};const{name:B,motionValue:M,element:D,keyframes:w}=this.options,e=(D==null?void 0:D.KeyframeResolver)||SB,C=(Q,s)=>this.onKeyframesResolved(Q,s);this.resolver=new e(w,C,B,M,D),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(g){const{type:B="keyframes",repeat:M=0,repeatDelay:D=0,repeatType:w,velocity:e=0}=this.options,C=ZB(B)?B:UC[B]||kg;let Q,s;C!==kg&&typeof g[0]!="number"&&(process.env.NODE_ENV!=="production"&&sA(g.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${g}`),Q=Dg(fC,Me(g[0],g[1])),g=[0,100]);const i=C({...this.options,keyframes:g});w==="mirror"&&(s=C({...this.options,keyframes:[...g].reverse(),velocity:-e})),i.calculatedDuration===null&&(i.calculatedDuration=CD(i));const{calculatedDuration:o}=i,I=o+D,n=I*(M+1)-D;return{generator:i,mirroredGenerator:s,mapPercentToKeyframes:Q,calculatedDuration:o,resolvedDuration:I,totalDuration:n}}onPostResolved(){const{autoplay:g=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!g?this.pause():this.state=this.pendingPlayState}tick(g,B=!1){const{resolved:M}=this;if(!M){const{keyframes:U}=this.options;return{done:!0,value:U[U.length-1]}}const{finalKeyframe:D,generator:w,mirroredGenerator:e,mapPercentToKeyframes:C,keyframes:Q,calculatedDuration:s,totalDuration:i,resolvedDuration:o}=M;if(this.startTime===null)return w.next(0);const{delay:I,repeat:n,repeatType:E,repeatDelay:l,onUpdate:a}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,g):this.speed<0&&(this.startTime=Math.min(g-i/this.speed,this.startTime)),B?this.currentTime=g:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(g-this.startTime)*this.speed;const G=this.currentTime-I*(this.speed>=0?1:-1),c=this.speed>=0?G<0:G>i;this.currentTime=Math.max(G,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let m=this.currentTime,K=w;if(n){const U=Math.min(this.currentTime,i)/o;let y=Math.floor(U),Z=U%1;!Z&&U>=1&&(Z=1),Z===1&&y--,y=Math.min(y,n+1),!!(y%2)&&(E==="reverse"?(Z=1-Z,l&&(Z-=l/o)):E==="mirror"&&(K=e)),m=EA(0,1,Z)*o}const Y=c?{done:!1,value:Q[0]}:K.next(m);C&&(Y.value=C(Y.value));let{done:d}=Y;!c&&s!==null&&(d=this.speed>=0?this.currentTime>=i:this.currentTime<=0);const f=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&d);return f&&D!==void 0&&(Y.value=dg(Q,this.options,D)),a&&a(Y.value),f&&this.finish(),Y}get duration(){const{resolved:g}=this;return g?rA(g.calculatedDuration):0}get time(){return rA(this.currentTime)}set time(g){g=iA(g),this.currentTime=g,this.holdTime!==null||this.speed===0?this.holdTime=g:this.driver&&(this.startTime=this.driver.now()-g/this.speed)}get speed(){return this.playbackSpeed}set speed(g){const B=this.playbackSpeed!==g;this.playbackSpeed=g,B&&(this.time=rA(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:g=mC,onPlay:B,startTime:M}=this.options;this.driver||(this.driver=g(w=>this.tick(w))),B&&B();const D=this.driver.now();this.holdTime!==null?this.startTime=D-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=D):this.startTime=M??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var g;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(g=this.currentTime)!==null&&g!==void 0?g:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:g}=this.options;g&&g()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(g){return this.startTime=0,this.tick(g,!0)}}const ZC=new Set(["opacity","clipPath","filter","transform"]);function VC(A,g,B,{delay:M=0,duration:D=300,repeat:w=0,repeatType:e="loop",ease:C="easeInOut",times:Q}={}){const s={[g]:B};Q&&(s.offset=Q);const i=ID(C,D);return Array.isArray(i)&&(s.easing=i),A.animate(s,{delay:M,duration:D,easing:Array.isArray(i)?"linear":i,fill:"both",iterations:w+1,direction:e==="reverse"?"alternate":"normal"})}const dC=CB(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Kg=10,qC=2e4;function kC(A){return ZB(A.type)||A.type==="spring"||!oD(A.ease)}function KC(A,g){const B=new _B({...g,keyframes:A,repeat:0,delay:0,isGenerator:!0});let M={done:!1,value:A[0]};const D=[];let w=0;for(;!M.done&&w<qC;)M=B.sample(w),D.push(M.value),w+=Kg;return{times:void 0,keyframes:D,duration:w-Kg,ease:"linear"}}const oe={anticipate:qD,backInOut:dD,circInOut:KD};function pC(A){return A in oe}class Ie extends _D{constructor(g){super(g);const{name:B,motionValue:M,element:D,keyframes:w}=this.options;this.resolver=new WD(w,(e,C)=>this.onKeyframesResolved(e,C),B,M,D),this.resolver.scheduleResolve()}initPlayback(g,B){let{duration:M=300,times:D,ease:w,type:e,motionValue:C,name:Q,startTime:s}=this.options;if(!C.owner||!C.owner.current)return!1;if(typeof w=="string"&&Zg()&&pC(w)&&(w=oe[w]),kC(this.options)){const{onComplete:o,onUpdate:I,motionValue:n,element:E,...l}=this.options,a=KC(g,l);g=a.keyframes,g.length===1&&(g[1]=g[0]),M=a.duration,D=a.times,w=a.ease,e="keyframes"}const i=VC(C.owner.current,Q,g,{...this.options,duration:M,times:D,ease:w});return i.startTime=s??this.calcStartTime(),this.pendingTimeline?(sD(i,this.pendingTimeline),this.pendingTimeline=void 0):i.onfinish=()=>{const{onComplete:o}=this.options;C.set(dg(g,this.options,B)),o&&o(),this.cancel(),this.resolveFinishedPromise()},{animation:i,duration:M,times:D,type:e,ease:w,keyframes:g}}get duration(){const{resolved:g}=this;if(!g)return 0;const{duration:B}=g;return rA(B)}get time(){const{resolved:g}=this;if(!g)return 0;const{animation:B}=g;return rA(B.currentTime||0)}set time(g){const{resolved:B}=this;if(!B)return;const{animation:M}=B;M.currentTime=iA(g)}get speed(){const{resolved:g}=this;if(!g)return 1;const{animation:B}=g;return B.playbackRate}set speed(g){const{resolved:B}=this;if(!B)return;const{animation:M}=B;M.playbackRate=g}get state(){const{resolved:g}=this;if(!g)return"idle";const{animation:B}=g;return B.playState}get startTime(){const{resolved:g}=this;if(!g)return null;const{animation:B}=g;return B.startTime}attachTimeline(g){if(!this._resolved)this.pendingTimeline=g;else{const{resolved:B}=this;if(!B)return $;const{animation:M}=B;sD(M,g)}return $}play(){if(this.isStopped)return;const{resolved:g}=this;if(!g)return;const{animation:B}=g;B.playState==="finished"&&this.updateFinishedPromise(),B.play()}pause(){const{resolved:g}=this;if(!g)return;const{animation:B}=g;B.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:g}=this;if(!g)return;const{animation:B,keyframes:M,duration:D,type:w,ease:e,times:C}=g;if(B.playState==="idle"||B.playState==="finished")return;if(this.time){const{motionValue:s,onUpdate:i,onComplete:o,element:I,...n}=this.options,E=new _B({...n,keyframes:M,duration:D,type:w,ease:e,times:C,isGenerator:!0}),l=iA(this.time);s.setWithVelocity(E.sample(l-Kg).value,E.sample(l).value,Kg)}const{onStop:Q}=this.options;Q&&Q(),this.cancel()}complete(){const{resolved:g}=this;g&&g.animation.finish()}cancel(){const{resolved:g}=this;g&&g.animation.cancel()}static supports(g){const{motionValue:B,name:M,repeatDelay:D,repeatType:w,damping:e,type:C}=g;if(!B||!B.owner||!(B.owner.current instanceof HTMLElement))return!1;const{onUpdate:Q,transformTemplate:s}=B.owner.getProps();return dC()&&M&&ZC.has(M)&&!Q&&!s&&!D&&w!=="mirror"&&e!==0&&C!=="inertia"}}const hC={type:"spring",stiffness:500,damping:25,restSpeed:10},RC=A=>({type:"spring",stiffness:550,damping:A===0?2*Math.sqrt(550):30,restSpeed:10}),JC={type:"keyframes",duration:.8},zC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},vC=(A,{keyframes:g})=>g.length>2?JC:UA.has(A)?A.startsWith("scale")?RC(g[1]):hC:zC;function PC({when:A,delay:g,delayChildren:B,staggerChildren:M,staggerDirection:D,repeat:w,repeatType:e,repeatDelay:C,from:Q,elapsed:s,...i}){return!!Object.keys(i).length}const AM=(A,g,B,M={},D,w)=>e=>{const C=UB(M,A)||{},Q=C.delay||M.delay||0;let{elapsed:s=0}=M;s=s-iA(Q);let i={keyframes:Array.isArray(B)?B:[null,B],ease:"easeOut",velocity:g.getVelocity(),...C,delay:-s,onUpdate:I=>{g.set(I),C.onUpdate&&C.onUpdate(I)},onComplete:()=>{e(),C.onComplete&&C.onComplete()},name:A,motionValue:g,element:w?void 0:D};PC(C)||(i={...i,...vC(A,i)}),i.duration&&(i.duration=iA(i.duration)),i.repeatDelay&&(i.repeatDelay=iA(i.repeatDelay)),i.from!==void 0&&(i.keyframes[0]=i.from);let o=!1;if((i.type===!1||i.duration===0&&!i.repeatDelay)&&(i.duration=0,i.delay===0&&(o=!0)),o&&!w&&g.get()!==void 0){const I=dg(i.keyframes,C);if(I!==void 0)return z.update(()=>{i.onUpdate(I),i.onComplete()}),new tQ([])}return!w&&Ie.supports(i)?new Ie(i):new _B(i)};function LC({protectedKeys:A,needsAnimating:g},B){const M=A.hasOwnProperty(B)&&g[B]!==!0;return g[B]=!1,M}function ne(A,g,{delay:B=0,transitionOverride:M,type:D}={}){var w;let{transition:e=A.getDefaultTransition(),transitionEnd:C,...Q}=g;M&&(e=M);const s=[],i=D&&A.animationState&&A.animationState.getState()[D];for(const o in Q){const I=A.getValue(o,(w=A.latestValues[o])!==null&&w!==void 0?w:null),n=Q[o];if(n===void 0||i&&LC(i,o))continue;const E={delay:B,...UB(e||{},o)};let l=!1;if(window.MotionHandoffAnimation){const G=mD(A);if(G){const c=window.MotionHandoffAnimation(G,o,z);c!==null&&(E.startTime=c,l=!0)}}JB(A,o),I.start(AM(o,I,n,A.shouldReduceMotion&&YD.has(o)?{type:!1}:E,A,l));const a=I.animation;a&&s.push(a)}return C&&Promise.all(s).then(()=>{z.update(()=>{C&&RB(A,C)})}),s}function gM(A,g,B={}){var M;const D=fg(A,g,B.type==="exit"?(M=A.presenceContext)===null||M===void 0?void 0:M.custom:void 0);let{transition:w=A.getDefaultTransition()||{}}=D||{};B.transitionOverride&&(w=B.transitionOverride);const e=D?()=>Promise.all(ne(A,D,B)):()=>Promise.resolve(),C=A.variantChildren&&A.variantChildren.size?(s=0)=>{const{delayChildren:i=0,staggerChildren:o,staggerDirection:I}=w;return FC(A,g,i+s,o,I,B)}:()=>Promise.resolve(),{when:Q}=w;if(Q){const[s,i]=Q==="beforeChildren"?[e,C]:[C,e];return s().then(()=>i())}else return Promise.all([e(),C(B.delay)])}function FC(A,g,B=0,M=0,D=1,w){const e=[],C=(A.variantChildren.size-1)*M,Q=D===1?(s=0)=>s*M:(s=0)=>C-s*M;return Array.from(A.variantChildren).sort(bC).forEach((s,i)=>{s.notify("AnimationStart",g),e.push(gM(s,g,{...w,delay:B+Q(i)}).then(()=>s.notify("AnimationComplete",g)))}),Promise.all(e)}function bC(A,g){return A.sortNodePosition(g)}function re(A,g,B={}){A.notify("AnimationStart",g);let M;if(Array.isArray(g)){const D=g.map(w=>gM(A,w,B));M=Promise.all(D)}else if(typeof g=="string")M=gM(A,g,B);else{const D=typeof g=="function"?fg(A,g,B.custom):g;M=Promise.all(ne(A,D,B))}return M.then(()=>{A.notify("AnimationComplete",g)})}const OC=oB.length;function Ee(A){if(!A)return;if(!A.isControllingVariants){const B=A.parent?Ee(A.parent)||{}:{};return A.props.initial!==void 0&&(B.initial=A.props.initial),B}const g={};for(let B=0;B<OC;B++){const M=oB[B],D=A.props[M];(NA(D)||D===!1)&&(g[M]=D)}return g}const jC=[...iB].reverse(),HC=iB.length;function TC(A){return g=>Promise.all(g.map(({animation:B,options:M})=>re(A,B,M)))}function SC(A){let g=TC(A),B=le(),M=!0;const D=Q=>(s,i)=>{var o;const I=fg(A,i,Q==="exit"?(o=A.presenceContext)===null||o===void 0?void 0:o.custom:void 0);if(I){const{transition:n,transitionEnd:E,...l}=I;s={...s,...l,...E}}return s};function w(Q){g=Q(A)}function e(Q){const{props:s}=A,i=Ee(A.parent)||{},o=[],I=new Set;let n={},E=1/0;for(let a=0;a<HC;a++){const G=jC[a],c=B[G],m=s[G]!==void 0?s[G]:i[G],K=NA(m),Y=G===Q?c.isActive:null;Y===!1&&(E=a);let d=m===i[G]&&m!==s[G]&&K;if(d&&M&&A.manuallyAnimateOnMount&&(d=!1),c.protectedKeys={...n},!c.isActive&&Y===null||!m&&!c.prevProp||Yg(m)||typeof m=="boolean")continue;const f=xC(c.prevProp,m);let U=f||G===Q&&c.isActive&&!d&&K||a>E&&K,y=!1;const Z=Array.isArray(m)?m:[m];let k=Z.reduce(D(G),{});Y===!1&&(k={});const{prevResolvedValues:h={}}=c,F={...h,...k},N=j=>{U=!0,I.has(j)&&(y=!0,I.delete(j)),c.needsAnimating[j]=!0;const _=A.getValue(j);_&&(_.liveStyle=!1)};for(const j in F){const _=k[j],lA=h[j];if(n.hasOwnProperty(j))continue;let KA=!1;lB(_)&&lB(lA)?KA=!QD(_,lA):KA=_!==lA,KA?_!=null?N(j):I.add(j):_!==void 0&&I.has(j)?N(j):c.protectedKeys[j]=!0}c.prevProp=m,c.prevResolvedValues=k,c.isActive&&(n={...n,...k}),M&&A.blockInitialAnimation&&(U=!1),U&&(!(d&&f)||y)&&o.push(...Z.map(j=>({animation:j,options:{type:G}})))}if(I.size){const a={};I.forEach(G=>{const c=A.getBaseTarget(G),m=A.getValue(G);m&&(m.liveStyle=!0),a[G]=c??null}),o.push({animation:a})}let l=!!o.length;return M&&(s.initial===!1||s.initial===s.animate)&&!A.manuallyAnimateOnMount&&(l=!1),M=!1,l?g(o):Promise.resolve()}function C(Q,s){var i;if(B[Q].isActive===s)return Promise.resolve();(i=A.variantChildren)===null||i===void 0||i.forEach(I=>{var n;return(n=I.animationState)===null||n===void 0?void 0:n.setActive(Q,s)}),B[Q].isActive=s;const o=e(Q);for(const I in B)B[I].protectedKeys={};return o}return{animateChanges:e,setActive:C,setAnimateFunction:w,getState:()=>B,reset:()=>{B=le(),M=!0}}}function xC(A,g){return typeof g=="string"?g!==A:Array.isArray(g)?!QD(g,A):!1}function VA(A=!1){return{isActive:A,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function le(){return{animate:VA(!0),whileInView:VA(),whileHover:VA(),whileTap:VA(),whileDrag:VA(),whileFocus:VA(),exit:VA()}}class yA{constructor(g){this.isMounted=!1,this.node=g}update(){}}class NC extends yA{constructor(g){super(g),g.animationState||(g.animationState=SC(g))}updateAnimationControlsSubscription(){const{animate:g}=this.node.getProps();Yg(g)&&(this.unmountControls=g.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:g}=this.node.getProps(),{animate:B}=this.node.prevProps||{};g!==B&&this.updateAnimationControlsSubscription()}unmount(){var g;this.node.animationState.reset(),(g=this.unmountControls)===null||g===void 0||g.call(this)}}let XC=0;class WC extends yA{constructor(){super(...arguments),this.id=XC++}update(){if(!this.node.presenceContext)return;const{isPresent:g,onExitComplete:B}=this.node.presenceContext,{isPresent:M}=this.node.prevPresenceContext||{};if(!this.node.animationState||g===M)return;const D=this.node.animationState.setActive("exit",!g);B&&!g&&D.then(()=>B(this.id))}mount(){const{register:g}=this.node.presenceContext||{};g&&(this.unmount=g(this.id))}unmount(){}}const $C={animation:{Feature:NC},exit:{Feature:WC}};function eg(A,g,B,M={passive:!0}){return A.addEventListener(g,B,M),()=>A.removeEventListener(g,B)}function wg(A){return{point:{x:A.pageX,y:A.pageY}}}const _C=A=>g=>qB(g)&&A(g,wg(g));function tg(A,g,B,M){return eg(A,g,_C(B),M)}const ae=(A,g)=>Math.abs(A-g);function As(A,g){const B=ae(A.x,g.x),M=ae(A.y,g.y);return Math.sqrt(B**2+M**2)}class Ge{constructor(g,B,{transformPagePoint:M,contextWindow:D,dragSnapToOrigin:w=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const o=MM(this.lastMoveEventInfo,this.history),I=this.startEvent!==null,n=As(o.offset,{x:0,y:0})>=3;if(!I&&!n)return;const{point:E}=o,{timestamp:l}=H;this.history.push({...E,timestamp:l});const{onStart:a,onMove:G}=this.handlers;I||(a&&a(this.lastMoveEvent,o),this.startEvent=this.lastMoveEvent),G&&G(this.lastMoveEvent,o)},this.handlePointerMove=(o,I)=>{this.lastMoveEvent=o,this.lastMoveEventInfo=BM(I,this.transformPagePoint),z.update(this.updatePoint,!0)},this.handlePointerUp=(o,I)=>{this.end();const{onEnd:n,onSessionEnd:E,resumeAnimation:l}=this.handlers;if(this.dragSnapToOrigin&&l&&l(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const a=MM(o.type==="pointercancel"?this.lastMoveEventInfo:BM(I,this.transformPagePoint),this.history);this.startEvent&&n&&n(o,a),E&&E(o,a)},!qB(g))return;this.dragSnapToOrigin=w,this.handlers=B,this.transformPagePoint=M,this.contextWindow=D||window;const e=wg(g),C=BM(e,this.transformPagePoint),{point:Q}=C,{timestamp:s}=H;this.history=[{...Q,timestamp:s}];const{onSessionStart:i}=B;i&&i(g,MM(C,this.history)),this.removeListeners=Dg(tg(this.contextWindow,"pointermove",this.handlePointerMove),tg(this.contextWindow,"pointerup",this.handlePointerUp),tg(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(g){this.handlers=g}end(){this.removeListeners&&this.removeListeners(),GA(this.updatePoint)}}function BM(A,g){return g?{point:g(A.point)}:A}function ce(A,g){return{x:A.x-g.x,y:A.y-g.y}}function MM({point:A},g){return{point:A,delta:ce(A,Ye(g)),offset:ce(A,gs(g)),velocity:Bs(g,.1)}}function gs(A){return A[0]}function Ye(A){return A[A.length-1]}function Bs(A,g){if(A.length<2)return{x:0,y:0};let B=A.length-1,M=null;const D=Ye(A);for(;B>=0&&(M=A[B],!(D.timestamp-M.timestamp>iA(g)));)B--;if(!M)return{x:0,y:0};const w=rA(D.timestamp-M.timestamp);if(w===0)return{x:0,y:0};const e={x:(D.x-M.x)/w,y:(D.y-M.y)/w};return e.x===1/0&&(e.x=0),e.y===1/0&&(e.y=0),e}const ye=1e-4,Ms=1-ye,Ds=1+ye,ue=.01,es=0-ue,ws=0+ue;function AA(A){return A.max-A.min}function ts(A,g,B){return Math.abs(A-g)<=B}function me(A,g,B,M=.5){A.origin=M,A.originPoint=P(g.min,g.max,A.origin),A.scale=AA(B)/AA(g),A.translate=P(B.min,B.max,A.origin)-A.originPoint,(A.scale>=Ms&&A.scale<=Ds||isNaN(A.scale))&&(A.scale=1),(A.translate>=es&&A.translate<=ws||isNaN(A.translate))&&(A.translate=0)}function Qg(A,g,B,M){me(A.x,g.x,B.x,M?M.originX:void 0),me(A.y,g.y,B.y,M?M.originY:void 0)}function Ue(A,g,B){A.min=B.min+g.min,A.max=A.min+AA(g)}function Qs(A,g,B){Ue(A.x,g.x,B.x),Ue(A.y,g.y,B.y)}function fe(A,g,B){A.min=g.min-B.min,A.max=A.min+AA(g)}function Cg(A,g,B){fe(A.x,g.x,B.x),fe(A.y,g.y,B.y)}function Cs(A,{min:g,max:B},M){return g!==void 0&&A<g?A=M?P(g,A,M.min):Math.max(A,g):B!==void 0&&A>B&&(A=M?P(B,A,M.max):Math.min(A,B)),A}function Ze(A,g,B){return{min:g!==void 0?A.min+g:void 0,max:B!==void 0?A.max+B-(A.max-A.min):void 0}}function ss(A,{top:g,left:B,bottom:M,right:D}){return{x:Ze(A.x,B,D),y:Ze(A.y,g,M)}}function Ve(A,g){let B=g.min-A.min,M=g.max-A.max;return g.max-g.min<A.max-A.min&&([B,M]=[M,B]),{min:B,max:M}}function is(A,g){return{x:Ve(A.x,g.x),y:Ve(A.y,g.y)}}function os(A,g){let B=.5;const M=AA(A),D=AA(g);return D>M?B=JA(g.min,g.max-M,A.min):M>D&&(B=JA(A.min,A.max-D,g.min)),EA(0,1,B)}function Is(A,g){const B={};return g.min!==void 0&&(B.min=g.min-A.min),g.max!==void 0&&(B.max=g.max-A.min),B}const DM=.35;function ns(A=DM){return A===!1?A=0:A===!0&&(A=DM),{x:de(A,"left","right"),y:de(A,"top","bottom")}}function de(A,g,B){return{min:qe(A,g),max:qe(A,B)}}function qe(A,g){return typeof A=="number"?A:A[g]||0}const ke=()=>({translate:0,scale:1,origin:0,originPoint:0}),OA=()=>({x:ke(),y:ke()}),Ke=()=>({min:0,max:0}),O=()=>({x:Ke(),y:Ke()});function BA(A){return[A("x"),A("y")]}function pe({top:A,left:g,right:B,bottom:M}){return{x:{min:g,max:B},y:{min:A,max:M}}}function rs({x:A,y:g}){return{top:g.min,right:A.max,bottom:g.max,left:A.min}}function Es(A,g){if(!g)return A;const B=g({x:A.left,y:A.top}),M=g({x:A.right,y:A.bottom});return{top:B.y,left:B.x,bottom:M.y,right:M.x}}function eM(A){return A===void 0||A===1}function wM({scale:A,scaleX:g,scaleY:B}){return!eM(A)||!eM(g)||!eM(B)}function dA(A){return wM(A)||he(A)||A.z||A.rotate||A.rotateX||A.rotateY||A.skewX||A.skewY}function he(A){return Re(A.x)||Re(A.y)}function Re(A){return A&&A!=="0%"}function pg(A,g,B){const M=A-B,D=g*M;return B+D}function Je(A,g,B,M,D){return D!==void 0&&(A=pg(A,D,M)),pg(A,B,M)+g}function tM(A,g=0,B=1,M,D){A.min=Je(A.min,g,B,M,D),A.max=Je(A.max,g,B,M,D)}function ze(A,{x:g,y:B}){tM(A.x,g.translate,g.scale,g.originPoint),tM(A.y,B.translate,B.scale,B.originPoint)}const ve=.999999999999,Pe=1.0000000000001;function ls(A,g,B,M=!1){const D=B.length;if(!D)return;g.x=g.y=1;let w,e;for(let C=0;C<D;C++){w=B[C],e=w.projectionDelta;const{visualElement:Q}=w.options;Q&&Q.props.style&&Q.props.style.display==="contents"||(M&&w.options.layoutScroll&&w.scroll&&w!==w.root&&HA(A,{x:-w.scroll.offset.x,y:-w.scroll.offset.y}),e&&(g.x*=e.x.scale,g.y*=e.y.scale,ze(A,e)),M&&dA(w.latestValues)&&HA(A,w.latestValues))}g.x<Pe&&g.x>ve&&(g.x=1),g.y<Pe&&g.y>ve&&(g.y=1)}function jA(A,g){A.min=A.min+g,A.max=A.max+g}function Le(A,g,B,M,D=.5){const w=P(A.min,A.max,D);tM(A,g,B,w,M)}function HA(A,g){Le(A.x,g.x,g.scaleX,g.scale,g.originX),Le(A.y,g.y,g.scaleY,g.scale,g.originY)}function Fe(A,g){return pe(Es(A.getBoundingClientRect(),g))}function as(A,g,B){const M=Fe(A,B),{scroll:D}=g;return D&&(jA(M.x,D.offset.x),jA(M.y,D.offset.y)),M}const be=({current:A})=>A?A.ownerDocument.defaultView:null,Gs=new WeakMap;class cs{constructor(g){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=O(),this.visualElement=g}start(g,{snapToCursor:B=!1}={}){const{presenceContext:M}=this.visualElement;if(M&&M.isPresent===!1)return;const D=i=>{const{dragSnapToOrigin:o}=this.getProps();o?this.pauseAnimation():this.stopAnimation(),B&&this.snapToCursor(wg(i).point)},w=(i,o)=>{const{drag:I,dragPropagation:n,onDragStart:E}=this.getProps();if(I&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=rQ(I),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),BA(a=>{let G=this.getAxisMotionValue(a).get()||0;if(oA.test(G)){const{projection:c}=this.visualElement;if(c&&c.layout){const m=c.layout.layoutBox[a];m&&(G=AA(m)*(parseFloat(G)/100))}}this.originPoint[a]=G}),E&&z.postRender(()=>E(i,o)),JB(this.visualElement,"transform");const{animationState:l}=this.visualElement;l&&l.setActive("whileDrag",!0)},e=(i,o)=>{const{dragPropagation:I,dragDirectionLock:n,onDirectionLock:E,onDrag:l}=this.getProps();if(!I&&!this.openDragLock)return;const{offset:a}=o;if(n&&this.currentDirection===null){this.currentDirection=Ys(a),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",o.point,a),this.updateAxis("y",o.point,a),this.visualElement.render(),l&&l(i,o)},C=(i,o)=>this.stop(i,o),Q=()=>BA(i=>{var o;return this.getAnimationState(i)==="paused"&&((o=this.getAxisMotionValue(i).animation)===null||o===void 0?void 0:o.play())}),{dragSnapToOrigin:s}=this.getProps();this.panSession=new Ge(g,{onSessionStart:D,onStart:w,onMove:e,onSessionEnd:C,resumeAnimation:Q},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:be(this.visualElement)})}stop(g,B){const M=this.isDragging;if(this.cancel(),!M)return;const{velocity:D}=B;this.startAnimation(D);const{onDragEnd:w}=this.getProps();w&&z.postRender(()=>w(g,B))}cancel(){this.isDragging=!1;const{projection:g,animationState:B}=this.visualElement;g&&(g.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:M}=this.getProps();!M&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),B&&B.setActive("whileDrag",!1)}updateAxis(g,B,M){const{drag:D}=this.getProps();if(!M||!hg(g,D,this.currentDirection))return;const w=this.getAxisMotionValue(g);let e=this.originPoint[g]+M[g];this.constraints&&this.constraints[g]&&(e=Cs(e,this.constraints[g],this.elastic[g])),w.set(e)}resolveConstraints(){var g;const{dragConstraints:B,dragElastic:M}=this.getProps(),D=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(g=this.visualElement.projection)===null||g===void 0?void 0:g.layout,w=this.constraints;B&&vA(B)?this.constraints||(this.constraints=this.resolveRefConstraints()):B&&D?this.constraints=ss(D.layoutBox,B):this.constraints=!1,this.elastic=ns(M),w!==this.constraints&&D&&this.constraints&&!this.hasMutatedConstraints&&BA(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Is(D.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:g,onMeasureDragConstraints:B}=this.getProps();if(!g||!vA(g))return!1;const M=g.current;sA(M!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:D}=this.visualElement;if(!D||!D.layout)return!1;const w=as(M,D.root,this.visualElement.getTransformPagePoint());let e=is(D.layout.layoutBox,w);if(B){const C=B(rs(e));this.hasMutatedConstraints=!!C,C&&(e=pe(C))}return e}startAnimation(g){const{drag:B,dragMomentum:M,dragElastic:D,dragTransition:w,dragSnapToOrigin:e,onDragTransitionEnd:C}=this.getProps(),Q=this.constraints||{},s=BA(i=>{if(!hg(i,B,this.currentDirection))return;let o=Q[i]||{};e&&(o={min:0,max:0});const I=D?200:1e6,n=D?40:1e7,E={type:"inertia",velocity:M?g[i]:0,bounceStiffness:I,bounceDamping:n,timeConstant:750,restDelta:1,restSpeed:10,...w,...o};return this.startAxisValueAnimation(i,E)});return Promise.all(s).then(C)}startAxisValueAnimation(g,B){const M=this.getAxisMotionValue(g);return JB(this.visualElement,g),M.start(AM(g,M,0,B,this.visualElement,!1))}stopAnimation(){BA(g=>this.getAxisMotionValue(g).stop())}pauseAnimation(){BA(g=>{var B;return(B=this.getAxisMotionValue(g).animation)===null||B===void 0?void 0:B.pause()})}getAnimationState(g){var B;return(B=this.getAxisMotionValue(g).animation)===null||B===void 0?void 0:B.state}getAxisMotionValue(g){const B=`_drag${g.toUpperCase()}`,M=this.visualElement.getProps(),D=M[B];return D||this.visualElement.getValue(g,(M.initial?M.initial[g]:void 0)||0)}snapToCursor(g){BA(B=>{const{drag:M}=this.getProps();if(!hg(B,M,this.currentDirection))return;const{projection:D}=this.visualElement,w=this.getAxisMotionValue(B);if(D&&D.layout){const{min:e,max:C}=D.layout.layoutBox[B];w.set(g[B]-P(e,C,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:g,dragConstraints:B}=this.getProps(),{projection:M}=this.visualElement;if(!vA(B)||!M||!this.constraints)return;this.stopAnimation();const D={x:0,y:0};BA(e=>{const C=this.getAxisMotionValue(e);if(C&&this.constraints!==!1){const Q=C.get();D[e]=os({min:Q,max:Q},this.constraints[e])}});const{transformTemplate:w}=this.visualElement.getProps();this.visualElement.current.style.transform=w?w({},""):"none",M.root&&M.root.updateScroll(),M.updateLayout(),this.resolveConstraints(),BA(e=>{if(!hg(e,g,null))return;const C=this.getAxisMotionValue(e),{min:Q,max:s}=this.constraints[e];C.set(P(Q,s,D[e]))})}addListeners(){if(!this.visualElement.current)return;Gs.set(this.visualElement,this);const g=this.visualElement.current,B=tg(g,"pointerdown",Q=>{const{drag:s,dragListener:i=!0}=this.getProps();s&&i&&this.start(Q)}),M=()=>{const{dragConstraints:Q}=this.getProps();vA(Q)&&Q.current&&(this.constraints=this.resolveRefConstraints())},{projection:D}=this.visualElement,w=D.addEventListener("measure",M);D&&!D.layout&&(D.root&&D.root.updateScroll(),D.updateLayout()),z.read(M);const e=eg(window,"resize",()=>this.scalePositionWithinConstraints()),C=D.addEventListener("didUpdate",({delta:Q,hasLayoutChanged:s})=>{this.isDragging&&s&&(BA(i=>{const o=this.getAxisMotionValue(i);o&&(this.originPoint[i]+=Q[i].translate,o.set(o.get()+Q[i].translate))}),this.visualElement.render())});return()=>{e(),B(),w(),C&&C()}}getProps(){const g=this.visualElement.getProps(),{drag:B=!1,dragDirectionLock:M=!1,dragPropagation:D=!1,dragConstraints:w=!1,dragElastic:e=DM,dragMomentum:C=!0}=g;return{...g,drag:B,dragDirectionLock:M,dragPropagation:D,dragConstraints:w,dragElastic:e,dragMomentum:C}}}function hg(A,g,B){return(g===!0||g===A)&&(B===null||B===A)}function Ys(A,g=10){let B=null;return Math.abs(A.y)>g?B="y":Math.abs(A.x)>g&&(B="x"),B}class ys extends yA{constructor(g){super(g),this.removeGroupControls=$,this.removeListeners=$,this.controls=new cs(g)}mount(){const{dragControls:g}=this.node.getProps();g&&(this.removeGroupControls=g.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$}unmount(){this.removeGroupControls(),this.removeListeners()}}const Oe=A=>(g,B)=>{A&&z.postRender(()=>A(g,B))};class us extends yA{constructor(){super(...arguments),this.removePointerDownListener=$}onPointerDown(g){this.session=new Ge(g,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:be(this.node)})}createPanHandlers(){const{onPanSessionStart:g,onPanStart:B,onPan:M,onPanEnd:D}=this.node.getProps();return{onSessionStart:Oe(g),onStart:Oe(B),onMove:M,onEnd:(w,e)=>{delete this.session,D&&z.postRender(()=>D(w,e))}}}mount(){this.removePointerDownListener=tg(this.node.current,"pointerdown",g=>this.onPointerDown(g))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Rg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function je(A,g){return g.max===g.min?0:A/(g.max-g.min)*100}const sg={correct:(A,g)=>{if(!g.target)return A;if(typeof A=="string")if(V.test(A))A=parseFloat(A);else return A;const B=je(A,g.target.x),M=je(A,g.target.y);return`${B}% ${M}%`}},ms={correct:(A,{treeScale:g,projectionDelta:B})=>{const M=A,D=YA.parse(A);if(D.length>5)return M;const w=YA.createTransformer(A),e=typeof D[0]!="number"?1:0,C=B.x.scale*g.x,Q=B.y.scale*g.y;D[0+e]/=C,D[1+e]/=Q;const s=P(C,Q,.5);return typeof D[2+e]=="number"&&(D[2+e]/=s),typeof D[3+e]=="number"&&(D[3+e]/=s),w(D)}};class Us extends r.Component{componentDidMount(){const{visualElement:g,layoutGroup:B,switchLayoutGroup:M,layoutId:D}=this.props,{projection:w}=g;Nt(fs),w&&(B.group&&B.group.add(w),M&&M.register&&D&&M.register(w),w.root.didUpdate(),w.addEventListener("animationComplete",()=>{this.safeToRemove()}),w.setOptions({...w.options,onExitComplete:()=>this.safeToRemove()})),Rg.hasEverUpdated=!0}getSnapshotBeforeUpdate(g){const{layoutDependency:B,visualElement:M,drag:D,isPresent:w}=this.props,e=M.projection;return e&&(e.isPresent=w,D||g.layoutDependency!==B||B===void 0?e.willUpdate():this.safeToRemove(),g.isPresent!==w&&(w?e.promote():e.relegate()||z.postRender(()=>{const C=e.getStack();(!C||!C.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:g}=this.props.visualElement;g&&(g.root.didUpdate(),nB.postRender(()=>{!g.currentAnimation&&g.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:g,layoutGroup:B,switchLayoutGroup:M}=this.props,{projection:D}=g;D&&(D.scheduleCheckAfterUnmount(),B&&B.group&&B.group.remove(D),M&&M.deregister&&M.deregister(D))}safeToRemove(){const{safeToRemove:g}=this.props;g&&g()}render(){return null}}function He(A){const[g,B]=ot(),M=r.useContext(KM);return t.jsx(Us,{...A,layoutGroup:M,switchLayoutGroup:r.useContext(jM),isPresent:g,safeToRemove:B})}const fs={borderRadius:{...sg,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sg,borderTopRightRadius:sg,borderBottomLeftRadius:sg,borderBottomRightRadius:sg,boxShadow:ms};function Zs(A,g,B){const M=S(A)?A:Ag(A);return M.start(AM("",M,g,B)),M.animation}function Vs(A){return A instanceof SVGElement&&A.tagName!=="svg"}const ds=(A,g)=>A.depth-g.depth;class qs{constructor(){this.children=[],this.isDirty=!1}add(g){KB(this.children,g),this.isDirty=!0}remove(g){pB(this.children,g),this.isDirty=!0}forEach(g){this.isDirty&&this.children.sort(ds),this.isDirty=!1,this.children.forEach(g)}}function ks(A,g){const B=IA.now(),M=({timestamp:D})=>{const w=D-B;w>=g&&(GA(M),A(w-g))};return z.read(M,!0),()=>GA(M)}const Te=["TopLeft","TopRight","BottomLeft","BottomRight"],Ks=Te.length,Se=A=>typeof A=="string"?parseFloat(A):A,xe=A=>typeof A=="number"||V.test(A);function ps(A,g,B,M,D,w){D?(A.opacity=P(0,B.opacity!==void 0?B.opacity:1,hs(M)),A.opacityExit=P(g.opacity!==void 0?g.opacity:1,0,Rs(M))):w&&(A.opacity=P(g.opacity!==void 0?g.opacity:1,B.opacity!==void 0?B.opacity:1,M));for(let e=0;e<Ks;e++){const C=`border${Te[e]}Radius`;let Q=Ne(g,C),s=Ne(B,C);if(Q===void 0&&s===void 0)continue;Q||(Q=0),s||(s=0),Q===0||s===0||xe(Q)===xe(s)?(A[C]=Math.max(P(Se(Q),Se(s),M),0),(oA.test(s)||oA.test(Q))&&(A[C]+="%")):A[C]=s}(g.rotate||B.rotate)&&(A.rotate=P(g.rotate||0,B.rotate||0,M))}function Ne(A,g){return A[g]!==void 0?A[g]:A.borderRadius}const hs=Xe(0,.5,kD),Rs=Xe(.5,.95,$);function Xe(A,g,B){return M=>M<A?0:M>g?1:B(JA(A,g,M))}function We(A,g){A.min=g.min,A.max=g.max}function MA(A,g){We(A.x,g.x),We(A.y,g.y)}function $e(A,g){A.translate=g.translate,A.scale=g.scale,A.originPoint=g.originPoint,A.origin=g.origin}function _e(A,g,B,M,D){return A-=g,A=pg(A,1/B,M),D!==void 0&&(A=pg(A,1/D,M)),A}function Js(A,g=0,B=1,M=.5,D,w=A,e=A){if(oA.test(g)&&(g=parseFloat(g),g=P(e.min,e.max,g/100)-e.min),typeof g!="number")return;let C=P(w.min,w.max,M);A===w&&(C-=g),A.min=_e(A.min,g,B,C,D),A.max=_e(A.max,g,B,C,D)}function Aw(A,g,[B,M,D],w,e){Js(A,g[B],g[M],g[D],g.scale,w,e)}const zs=["x","scaleX","originX"],vs=["y","scaleY","originY"];function gw(A,g,B,M){Aw(A.x,g,zs,B?B.x:void 0,M?M.x:void 0),Aw(A.y,g,vs,B?B.y:void 0,M?M.y:void 0)}function Bw(A){return A.translate===0&&A.scale===1}function Mw(A){return Bw(A.x)&&Bw(A.y)}function Dw(A,g){return A.min===g.min&&A.max===g.max}function Ps(A,g){return Dw(A.x,g.x)&&Dw(A.y,g.y)}function ew(A,g){return Math.round(A.min)===Math.round(g.min)&&Math.round(A.max)===Math.round(g.max)}function ww(A,g){return ew(A.x,g.x)&&ew(A.y,g.y)}function tw(A){return AA(A.x)/AA(A.y)}function Qw(A,g){return A.translate===g.translate&&A.scale===g.scale&&A.originPoint===g.originPoint}class Ls{constructor(){this.members=[]}add(g){KB(this.members,g),g.scheduleRender()}remove(g){if(pB(this.members,g),g===this.prevLead&&(this.prevLead=void 0),g===this.lead){const B=this.members[this.members.length-1];B&&this.promote(B)}}relegate(g){const B=this.members.findIndex(D=>g===D);if(B===0)return!1;let M;for(let D=B;D>=0;D--){const w=this.members[D];if(w.isPresent!==!1){M=w;break}}return M?(this.promote(M),!0):!1}promote(g,B){const M=this.lead;if(g!==M&&(this.prevLead=M,this.lead=g,g.show(),M)){M.instance&&M.scheduleRender(),g.scheduleRender(),g.resumeFrom=M,B&&(g.resumeFrom.preserveOpacity=!0),M.snapshot&&(g.snapshot=M.snapshot,g.snapshot.latestValues=M.animationValues||M.latestValues),g.root&&g.root.isUpdating&&(g.isLayoutDirty=!0);const{crossfade:D}=g.options;D===!1&&M.hide()}}exitAnimationComplete(){this.members.forEach(g=>{const{options:B,resumingFrom:M}=g;B.onExitComplete&&B.onExitComplete(),M&&M.options.onExitComplete&&M.options.onExitComplete()})}scheduleRender(){this.members.forEach(g=>{g.instance&&g.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Fs(A,g,B){let M="";const D=A.x.translate/g.x,w=A.y.translate/g.y,e=(B==null?void 0:B.z)||0;if((D||w||e)&&(M=`translate3d(${D}px, ${w}px, ${e}px) `),(g.x!==1||g.y!==1)&&(M+=`scale(${1/g.x}, ${1/g.y}) `),B){const{transformPerspective:s,rotate:i,rotateX:o,rotateY:I,skewX:n,skewY:E}=B;s&&(M=`perspective(${s}px) ${M}`),i&&(M+=`rotate(${i}deg) `),o&&(M+=`rotateX(${o}deg) `),I&&(M+=`rotateY(${I}deg) `),n&&(M+=`skewX(${n}deg) `),E&&(M+=`skewY(${E}deg) `)}const C=A.x.scale*g.x,Q=A.y.scale*g.y;return(C!==1||Q!==1)&&(M+=`scale(${C}, ${Q})`),M||"none"}const qA={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ig=typeof window<"u"&&window.MotionDebug!==void 0,QM=["","X","Y","Z"],bs={visibility:"hidden"},Cw=1e3;let Os=0;function CM(A,g,B,M){const{latestValues:D}=g;D[A]&&(B[A]=D[A],g.setStaticValue(A,0),M&&(M[A]=0))}function sw(A){if(A.hasCheckedOptimisedAppear=!0,A.root===A)return;const{visualElement:g}=A.options;if(!g)return;const B=mD(g);if(window.MotionHasOptimisedAnimation(B,"transform")){const{layout:D,layoutId:w}=A.options;window.MotionCancelOptimisedAnimation(B,"transform",z,!(D||w))}const{parent:M}=A;M&&!M.hasCheckedOptimisedAppear&&sw(M)}function iw({attachResizeListener:A,defaultParent:g,measureScroll:B,checkIsScrollRoot:M,resetTransform:D}){return class{constructor(e={},C=g==null?void 0:g()){this.id=Os++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ig&&(qA.totalNodes=qA.resolvedTargetDeltas=qA.recalculatedProjection=0),this.nodes.forEach(Ts),this.nodes.forEach(Ws),this.nodes.forEach($s),this.nodes.forEach(Ss),ig&&window.MotionDebug.record(qA)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=C?C.root||C:this,this.path=C?[...C.path,C]:[],this.parent=C,this.depth=C?C.depth+1:0;for(let Q=0;Q<this.path.length;Q++)this.path[Q].shouldResetTransform=!0;this.root===this&&(this.nodes=new qs)}addEventListener(e,C){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new hB),this.eventHandlers.get(e).add(C)}notifyListeners(e,...C){const Q=this.eventHandlers.get(e);Q&&Q.notify(...C)}hasListeners(e){return this.eventHandlers.has(e)}mount(e,C=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Vs(e),this.instance=e;const{layoutId:Q,layout:s,visualElement:i}=this.options;if(i&&!i.current&&i.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),C&&(s||Q)&&(this.isLayoutDirty=!0),A){let o;const I=()=>this.root.updateBlockedByResize=!1;A(e,()=>{this.root.updateBlockedByResize=!0,o&&o(),o=ks(I,250),Rg.hasAnimatedSinceResize&&(Rg.hasAnimatedSinceResize=!1,this.nodes.forEach(Iw))})}Q&&this.root.registerSharedNode(Q,this),this.options.animate!==!1&&i&&(Q||s)&&this.addEventListener("didUpdate",({delta:o,hasLayoutChanged:I,hasRelativeLayoutChanged:n,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const l=this.options.transition||i.getDefaultTransition()||Mi,{onLayoutAnimationStart:a,onLayoutAnimationComplete:G}=i.getProps(),c=!this.targetLayout||!ww(this.targetLayout,E),m=!I&&n;if(this.options.layoutRoot||this.resumeFrom||m||I&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(o,m);const K={...UB(l,"layout"),onPlay:a,onComplete:G};(i.shouldReduceMotion||this.options.layoutRoot)&&(K.delay=0,K.type=!1),this.startAnimation(K)}else I||Iw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,GA(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(_s),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&sw(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let i=0;i<this.path.length;i++){const o=this.path[i];o.shouldResetTransform=!0,o.updateScroll("snapshot"),o.options.layoutRoot&&o.willUpdate(!1)}const{layoutId:C,layout:Q}=this.options;if(C===void 0&&!Q)return;const s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ow);return}this.isUpdating||this.nodes.forEach(Ns),this.isUpdating=!1,this.nodes.forEach(Xs),this.nodes.forEach(js),this.nodes.forEach(Hs),this.clearAllSnapshots();const C=IA.now();H.delta=EA(0,1e3/60,C-H.timestamp),H.timestamp=C,H.isProcessing=!0,sB.update.process(H),sB.preRender.process(H),sB.render.process(H),H.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nB.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(xs),this.sharedNodes.forEach(Ai)}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())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let Q=0;Q<this.path.length;Q++)this.path[Q].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=O(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:C}=this.options;C&&C.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let C=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(C=!1),C){const Q=M(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:Q,offset:B(this.instance),wasRoot:this.scroll?this.scroll.isRoot:Q}}}resetTransform(){if(!D)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,C=this.projectionDelta&&!Mw(this.projectionDelta),Q=this.getTransformTemplate(),s=Q?Q(this.latestValues,""):void 0,i=s!==this.prevTransformTemplateValue;e&&(C||dA(this.latestValues)||i)&&(D(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const C=this.measurePageBox();let Q=this.removeElementScroll(C);return e&&(Q=this.removeTransform(Q)),Di(Q),{animationId:this.root.animationId,measuredBox:C,layoutBox:Q,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:C}=this.options;if(!C)return O();const Q=C.measureViewportBox();if(!(((e=this.scroll)===null||e===void 0?void 0:e.wasRoot)||this.path.some(ei))){const{scroll:i}=this.root;i&&(jA(Q.x,i.offset.x),jA(Q.y,i.offset.y))}return Q}removeElementScroll(e){var C;const Q=O();if(MA(Q,e),!((C=this.scroll)===null||C===void 0)&&C.wasRoot)return Q;for(let s=0;s<this.path.length;s++){const i=this.path[s],{scroll:o,options:I}=i;i!==this.root&&o&&I.layoutScroll&&(o.wasRoot&&MA(Q,e),jA(Q.x,o.offset.x),jA(Q.y,o.offset.y))}return Q}applyTransform(e,C=!1){const Q=O();MA(Q,e);for(let s=0;s<this.path.length;s++){const i=this.path[s];!C&&i.options.layoutScroll&&i.scroll&&i!==i.root&&HA(Q,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),dA(i.latestValues)&&HA(Q,i.latestValues)}return dA(this.latestValues)&&HA(Q,this.latestValues),Q}removeTransform(e){const C=O();MA(C,e);for(let Q=0;Q<this.path.length;Q++){const s=this.path[Q];if(!s.instance||!dA(s.latestValues))continue;wM(s.latestValues)&&s.updateSnapshot();const i=O(),o=s.measurePageBox();MA(i,o),gw(C,s.latestValues,s.snapshot?s.snapshot.layoutBox:void 0,i)}return dA(this.latestValues)&&gw(C,this.latestValues),C}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade!==void 0?e.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!==H.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var C;const Q=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=Q.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=Q.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=Q.isSharedProjectionDirty);const s=!!this.resumingFrom||this!==Q;if(!(e||s&&this.isSharedProjectionDirty||this.isProjectionDirty||!((C=this.parent)===null||C===void 0)&&C.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:o,layoutId:I}=this.options;if(!(!this.layout||!(o||I))){if(this.resolvedRelativeTargetAt=H.timestamp,!this.targetDelta&&!this.relativeTarget){const n=this.getClosestProjectingParent();n&&n.layout&&this.animationProgress!==1?(this.relativeParent=n,this.forceRelativeParentToResolveTarget(),this.relativeTarget=O(),this.relativeTargetOrigin=O(),Cg(this.relativeTargetOrigin,this.layout.layoutBox,n.layout.layoutBox),MA(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=O(),this.targetWithTransforms=O()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Qs(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):MA(this.target,this.layout.layoutBox),ze(this.target,this.targetDelta)):MA(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const n=this.getClosestProjectingParent();n&&!!n.resumingFrom==!!this.resumingFrom&&!n.options.layoutScroll&&n.target&&this.animationProgress!==1?(this.relativeParent=n,this.forceRelativeParentToResolveTarget(),this.relativeTarget=O(),this.relativeTargetOrigin=O(),Cg(this.relativeTargetOrigin,this.target,n.target),MA(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ig&&qA.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||wM(this.parent.latestValues)||he(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const C=this.getLead(),Q=!!this.resumingFrom||this!==C;let s=!0;if((this.isProjectionDirty||!((e=this.parent)===null||e===void 0)&&e.isProjectionDirty)&&(s=!1),Q&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===H.timestamp&&(s=!1),s)return;const{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;MA(this.layoutCorrected,this.layout.layoutBox);const I=this.treeScale.x,n=this.treeScale.y;ls(this.layoutCorrected,this.treeScale,this.path,Q),C.layout&&!C.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(C.target=C.layout.layoutBox,C.targetWithTransforms=O());const{target:E}=C;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($e(this.prevProjectionDelta.x,this.projectionDelta.x),$e(this.prevProjectionDelta.y,this.projectionDelta.y)),Qg(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==I||this.treeScale.y!==n||!Qw(this.projectionDelta.x,this.prevProjectionDelta.x)||!Qw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E)),ig&&qA.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var C;if((C=this.options.visualElement)===null||C===void 0||C.scheduleRender(),e){const Q=this.getStack();Q&&Q.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=OA(),this.projectionDelta=OA(),this.projectionDeltaWithTransform=OA()}setAnimationOrigin(e,C=!1){const Q=this.snapshot,s=Q?Q.latestValues:{},i={...this.latestValues},o=OA();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!C;const I=O(),n=Q?Q.source:void 0,E=this.layout?this.layout.source:void 0,l=n!==E,a=this.getStack(),G=!a||a.members.length<=1,c=!!(l&&!G&&this.options.crossfade===!0&&!this.path.some(Bi));this.animationProgress=0;let m;this.mixTargetDelta=K=>{const Y=K/1e3;nw(o.x,e.x,Y),nw(o.y,e.y,Y),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Cg(I,this.layout.layoutBox,this.relativeParent.layout.layoutBox),gi(this.relativeTarget,this.relativeTargetOrigin,I,Y),m&&Ps(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=O()),MA(m,this.relativeTarget)),l&&(this.animationValues=i,ps(i,s,this.latestValues,Y,c,G)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Y},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(GA(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=z.update(()=>{Rg.hasAnimatedSinceResize=!0,this.currentAnimation=Zs(0,Cw,{...e,onUpdate:C=>{this.mixTargetDelta(C),e.onUpdate&&e.onUpdate(C)},onComplete:()=>{e.onComplete&&e.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 e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Cw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:C,target:Q,layout:s,latestValues:i}=e;if(!(!C||!Q||!s)){if(this!==e&&this.layout&&s&&Gw(this.options.animationType,this.layout.layoutBox,s.layoutBox)){Q=this.target||O();const o=AA(this.layout.layoutBox.x);Q.x.min=e.target.x.min,Q.x.max=Q.x.min+o;const I=AA(this.layout.layoutBox.y);Q.y.min=e.target.y.min,Q.y.max=Q.y.min+I}MA(C,Q),HA(C,i),Qg(this.projectionDeltaWithTransform,this.layoutCorrected,C,i)}}registerSharedNode(e,C){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ls),this.sharedNodes.get(e).add(C);const s=C.options.initialPromotionConfig;C.promote({transition:s?s.transition:void 0,preserveFollowOpacity:s&&s.shouldPreserveFollowOpacity?s.shouldPreserveFollowOpacity(C):void 0})}isLead(){const e=this.getStack();return e?e.lead===this:!0}getLead(){var e;const{layoutId:C}=this.options;return C?((e=this.getStack())===null||e===void 0?void 0:e.lead)||this:this}getPrevLead(){var e;const{layoutId:C}=this.options;return C?(e=this.getStack())===null||e===void 0?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:C,preserveFollowOpacity:Q}={}){const s=this.getStack();s&&s.promote(this,Q),e&&(this.projectionDelta=void 0,this.needsReset=!0),C&&this.setOptions({transition:C})}relegate(){const e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let C=!1;const{latestValues:Q}=e;if((Q.z||Q.rotate||Q.rotateX||Q.rotateY||Q.rotateZ||Q.skewX||Q.skewY)&&(C=!0),!C)return;const s={};Q.z&&CM("z",e,s,this.animationValues);for(let i=0;i<QM.length;i++)CM(`rotate${QM[i]}`,e,s,this.animationValues),CM(`skew${QM[i]}`,e,s,this.animationValues);e.render();for(const i in s)e.setStaticValue(i,s[i]),this.animationValues&&(this.animationValues[i]=s[i]);e.scheduleRender()}getProjectionStyles(e){var C,Q;if(!this.instance||this.isSVG)return;if(!this.isVisible)return bs;const s={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=ug(e==null?void 0:e.pointerEvents)||"",s.transform=i?i(this.latestValues,""):"none",s;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const l={};return this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=ug(e==null?void 0:e.pointerEvents)||""),this.hasProjected&&!dA(this.latestValues)&&(l.transform=i?i({},""):"none",this.hasProjected=!1),l}const I=o.animationValues||o.latestValues;this.applyTransformsToTarget(),s.transform=Fs(this.projectionDeltaWithTransform,this.treeScale,I),i&&(s.transform=i(I,s.transform));const{x:n,y:E}=this.projectionDelta;s.transformOrigin=`${n.origin*100}% ${E.origin*100}% 0`,o.animationValues?s.opacity=o===this?(Q=(C=I.opacity)!==null&&C!==void 0?C:this.latestValues.opacity)!==null&&Q!==void 0?Q:1:this.preserveOpacity?this.latestValues.opacity:I.opacityExit:s.opacity=o===this?I.opacity!==void 0?I.opacity:"":I.opacityExit!==void 0?I.opacityExit:0;for(const l in Ug){if(I[l]===void 0)continue;const{correct:a,applyTo:G}=Ug[l],c=s.transform==="none"?I[l]:a(I[l],o);if(G){const m=G.length;for(let K=0;K<m;K++)s[G[K]]=c}else s[l]=c}return this.options.layoutId&&(s.pointerEvents=o===this?ug(e==null?void 0:e.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var C;return(C=e.currentAnimation)===null||C===void 0?void 0:C.stop()}),this.root.nodes.forEach(ow),this.root.sharedNodes.clear()}}}function js(A){A.updateLayout()}function Hs(A){var g;const B=((g=A.resumeFrom)===null||g===void 0?void 0:g.snapshot)||A.snapshot;if(A.isLead()&&A.layout&&B&&A.hasListeners("didUpdate")){const{layoutBox:M,measuredBox:D}=A.layout,{animationType:w}=A.options,e=B.source!==A.layout.source;w==="size"?BA(o=>{const I=e?B.measuredBox[o]:B.layoutBox[o],n=AA(I);I.min=M[o].min,I.max=I.min+n}):Gw(w,B.layoutBox,M)&&BA(o=>{const I=e?B.measuredBox[o]:B.layoutBox[o],n=AA(M[o]);I.max=I.min+n,A.relativeTarget&&!A.currentAnimation&&(A.isProjectionDirty=!0,A.relativeTarget[o].max=A.relativeTarget[o].min+n)});const C=OA();Qg(C,M,B.layoutBox);const Q=OA();e?Qg(Q,A.applyTransform(D,!0),B.measuredBox):Qg(Q,M,B.layoutBox);const s=!Mw(C);let i=!1;if(!A.resumeFrom){const o=A.getClosestProjectingParent();if(o&&!o.resumeFrom){const{snapshot:I,layout:n}=o;if(I&&n){const E=O();Cg(E,B.layoutBox,I.layoutBox);const l=O();Cg(l,M,n.layoutBox),ww(E,l)||(i=!0),o.options.layoutRoot&&(A.relativeTarget=l,A.relativeTargetOrigin=E,A.relativeParent=o)}}}A.notifyListeners("didUpdate",{layout:M,snapshot:B,delta:Q,layoutDelta:C,hasLayoutChanged:s,hasRelativeLayoutChanged:i})}else if(A.isLead()){const{onExitComplete:M}=A.options;M&&M()}A.options.transition=void 0}function Ts(A){ig&&qA.totalNodes++,A.parent&&(A.isProjecting()||(A.isProjectionDirty=A.parent.isProjectionDirty),A.isSharedProjectionDirty||(A.isSharedProjectionDirty=!!(A.isProjectionDirty||A.parent.isProjectionDirty||A.parent.isSharedProjectionDirty)),A.isTransformDirty||(A.isTransformDirty=A.parent.isTransformDirty))}function Ss(A){A.isProjectionDirty=A.isSharedProjectionDirty=A.isTransformDirty=!1}function xs(A){A.clearSnapshot()}function ow(A){A.clearMeasurements()}function Ns(A){A.isLayoutDirty=!1}function Xs(A){const{visualElement:g}=A.options;g&&g.getProps().onBeforeLayoutMeasure&&g.notify("BeforeLayoutMeasure"),A.resetTransform()}function Iw(A){A.finishAnimation(),A.targetDelta=A.relativeTarget=A.target=void 0,A.isProjectionDirty=!0}function Ws(A){A.resolveTargetDelta()}function $s(A){A.calcProjection()}function _s(A){A.resetSkewAndRotation()}function Ai(A){A.removeLeadSnapshot()}function nw(A,g,B){A.translate=P(g.translate,0,B),A.scale=P(g.scale,1,B),A.origin=g.origin,A.originPoint=g.originPoint}function rw(A,g,B,M){A.min=P(g.min,B.min,M),A.max=P(g.max,B.max,M)}function gi(A,g,B,M){rw(A.x,g.x,B.x,M),rw(A.y,g.y,B.y,M)}function Bi(A){return A.animationValues&&A.animationValues.opacityExit!==void 0}const Mi={duration:.45,ease:[.4,0,.1,1]},Ew=A=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(A),lw=Ew("applewebkit/")&&!Ew("chrome/")?Math.round:$;function aw(A){A.min=lw(A.min),A.max=lw(A.max)}function Di(A){aw(A.x),aw(A.y)}function Gw(A,g,B){return A==="position"||A==="preserve-aspect"&&!ts(tw(g),tw(B),.2)}function ei(A){var g;return A!==A.root&&((g=A.scroll)===null||g===void 0?void 0:g.wasRoot)}const wi=iw({attachResizeListener:(A,g)=>eg(A,"resize",g),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sM={current:void 0},cw=iw({measureScroll:A=>({x:A.scrollLeft,y:A.scrollTop}),defaultParent:()=>{if(!sM.current){const A=new wi({});A.mount(window),A.setOptions({layoutScroll:!0}),sM.current=A}return sM.current},resetTransform:(A,g)=>{A.style.transform=g!==void 0?g:"none"},checkIsScrollRoot:A=>window.getComputedStyle(A).position==="fixed"}),ti={pan:{Feature:us},drag:{Feature:ys,ProjectionNode:cw,MeasureLayout:He}};function Yw(A,g,B){const{props:M}=A;A.animationState&&M.whileHover&&A.animationState.setActive("whileHover",B==="Start");const D="onHover"+B,w=M[D];w&&z.postRender(()=>w(g,wg(g)))}class Qi extends yA{mount(){const{current:g}=this.node;g&&(this.unmount=sQ(g,(B,M)=>(Yw(this.node,M,"Start"),D=>Yw(this.node,D,"End"))))}unmount(){}}class Ci extends yA{constructor(){super(...arguments),this.isActive=!1}onFocus(){let g=!1;try{g=this.node.current.matches(":focus-visible")}catch{g=!0}!g||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Dg(eg(this.node.current,"focus",()=>this.onFocus()),eg(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function yw(A,g,B){const{props:M}=A;A.animationState&&M.whileTap&&A.animationState.setActive("whileTap",B==="Start");const D="onTap"+(B==="End"?"":B),w=M[D];w&&z.postRender(()=>w(g,wg(g)))}class si extends yA{mount(){const{current:g}=this.node;g&&(this.unmount=nQ(g,(B,M)=>(yw(this.node,M,"Start"),(D,{success:w})=>yw(this.node,D,w?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const iM=new WeakMap,oM=new WeakMap,ii=A=>{const g=iM.get(A.target);g&&g(A)},oi=A=>{A.forEach(ii)};function Ii({root:A,...g}){const B=A||document;oM.has(B)||oM.set(B,{});const M=oM.get(B),D=JSON.stringify(g);return M[D]||(M[D]=new IntersectionObserver(oi,{root:A,...g})),M[D]}function ni(A,g,B){const M=Ii(g);return iM.set(A,B),M.observe(A),()=>{iM.delete(A),M.unobserve(A)}}const ri={some:0,all:1};class Ei extends yA{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:g={}}=this.node.getProps(),{root:B,margin:M,amount:D="some",once:w}=g,e={root:B?B.current:void 0,rootMargin:M,threshold:typeof D=="number"?D:ri[D]},C=Q=>{const{isIntersecting:s}=Q;if(this.isInView===s||(this.isInView=s,w&&!s&&this.hasEnteredView))return;s&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",s);const{onViewportEnter:i,onViewportLeave:o}=this.node.getProps(),I=s?i:o;I&&I(Q)};return ni(this.node.current,e,C)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:g,prevProps:B}=this.node;["amount","margin","root"].some(li(g,B))&&this.startObserver()}unmount(){}}function li({viewport:A={}},{viewport:g={}}={}){return B=>A[B]!==g[B]}const ai={inView:{Feature:Ei},tap:{Feature:si},focus:{Feature:Ci},hover:{Feature:Qi}},Gi={layout:{ProjectionNode:cw,MeasureLayout:He}},IM={current:null},uw={current:!1};function ci(){if(uw.current=!0,!!QB)if(window.matchMedia){const A=window.matchMedia("(prefers-reduced-motion)"),g=()=>IM.current=A.matches;A.addListener(g),g()}else IM.current=!1}const Yi=[...ND,x,YA],yi=A=>Yi.find(xD(A)),mw=new WeakMap;function ui(A,g,B){for(const M in g){const D=g[M],w=B[M];if(S(D))A.addValue(M,D),process.env.NODE_ENV==="development"&&Gg(D.version==="12.0.3",`Attempting to mix Motion versions ${D.version} with 12.0.3 may not work as expected.`);else if(S(w))A.addValue(M,Ag(D,{owner:A}));else if(w!==D)if(A.hasValue(M)){const e=A.getValue(M);e.liveStyle===!0?e.jump(D):e.hasAnimated||e.set(D)}else{const e=A.getStaticValue(M);A.addValue(M,Ag(e!==void 0?e:D,{owner:A}))}}for(const M in B)g[M]===void 0&&A.removeValue(M);return g}const Uw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class mi{scrapeMotionValuesFromProps(g,B,M){return{}}constructor({parent:g,props:B,presenceContext:M,reducedMotionConfig:D,blockInitialAnimation:w,visualState:e},C={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=SB,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const n=IA.now();this.renderScheduledAt<n&&(this.renderScheduledAt=n,z.render(this.render,!1,!0))};const{latestValues:Q,renderState:s,onUpdate:i}=e;this.onUpdate=i,this.latestValues=Q,this.baseTarget={...Q},this.initialValues=B.initial?{...Q}:{},this.renderState=s,this.parent=g,this.props=B,this.presenceContext=M,this.depth=g?g.depth+1:0,this.reducedMotionConfig=D,this.options=C,this.blockInitialAnimation=!!w,this.isControllingVariants=yg(B),this.isVariantNode=FM(B),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(g&&g.current);const{willChange:o,...I}=this.scrapeMotionValuesFromProps(B,{},this);for(const n in I){const E=I[n];Q[n]!==void 0&&S(E)&&E.set(Q[n],!1)}}mount(g){this.current=g,mw.set(g,this),this.projection&&!this.projection.instance&&this.projection.mount(g),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((B,M)=>this.bindToMotionValue(M,B)),uw.current||ci(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:IM.current,process.env.NODE_ENV!=="production"&&Gg(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){mw.delete(this.current),this.projection&&this.projection.unmount(),GA(this.notifyUpdate),GA(this.render),this.valueSubscriptions.forEach(g=>g()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const g in this.events)this.events[g].clear();for(const g in this.features){const B=this.features[g];B&&(B.unmount(),B.isMounted=!1)}this.current=null}bindToMotionValue(g,B){this.valueSubscriptions.has(g)&&this.valueSubscriptions.get(g)();const M=UA.has(g),D=B.on("change",C=>{this.latestValues[g]=C,this.props.onUpdate&&z.preRender(this.notifyUpdate),M&&this.projection&&(this.projection.isTransformDirty=!0)}),w=B.on("renderRequest",this.scheduleRender);let e;window.MotionCheckAppearSync&&(e=window.MotionCheckAppearSync(this,g,B)),this.valueSubscriptions.set(g,()=>{D(),w(),e&&e(),B.owner&&B.stop()})}sortNodePosition(g){return!this.current||!this.sortInstanceNodePosition||this.type!==g.type?0:this.sortInstanceNodePosition(this.current,g.current)}updateFeatures(){let g="animation";for(g in zA){const B=zA[g];if(!B)continue;const{isEnabled:M,Feature:D}=B;if(!this.features[g]&&D&&M(this.props)&&(this.features[g]=new D(this)),this.features[g]){const w=this.features[g];w.isMounted?w.update():(w.mount(),w.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):O()}getStaticValue(g){return this.latestValues[g]}setStaticValue(g,B){this.latestValues[g]=B}update(g,B){(g.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=g,this.prevPresenceContext=this.presenceContext,this.presenceContext=B;for(let M=0;M<Uw.length;M++){const D=Uw[M];this.propEventSubscriptions[D]&&(this.propEventSubscriptions[D](),delete this.propEventSubscriptions[D]);const w="on"+D,e=g[w];e&&(this.propEventSubscriptions[D]=this.on(D,e))}this.prevMotionValues=ui(this,this.scrapeMotionValuesFromProps(g,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(g){return this.props.variants?this.props.variants[g]: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(g){const B=this.getClosestVariantNode();if(B)return B.variantChildren&&B.variantChildren.add(g),()=>B.variantChildren.delete(g)}addValue(g,B){const M=this.values.get(g);B!==M&&(M&&this.removeValue(g),this.bindToMotionValue(g,B),this.values.set(g,B),this.latestValues[g]=B.get())}removeValue(g){this.values.delete(g);const B=this.valueSubscriptions.get(g);B&&(B(),this.valueSubscriptions.delete(g)),delete this.latestValues[g],this.removeValueFromRenderState(g,this.renderState)}hasValue(g){return this.values.has(g)}getValue(g,B){if(this.props.values&&this.props.values[g])return this.props.values[g];let M=this.values.get(g);return M===void 0&&B!==void 0&&(M=Ag(B===null?void 0:B,{owner:this}),this.addValue(g,M)),M}readValue(g,B){var M;let D=this.latestValues[g]!==void 0||!this.current?this.latestValues[g]:(M=this.getBaseTargetFromProps(this.props,g))!==null&&M!==void 0?M:this.readValueFromInstance(this.current,g,this.options);return D!=null&&(typeof D=="string"&&(TD(D)||pD(D))?D=parseFloat(D):!yi(D)&&YA.test(B)&&(D=LD(g,B)),this.setBaseTarget(g,S(D)?D.get():D)),S(D)?D.get():D}setBaseTarget(g,B){this.baseTarget[g]=B}getBaseTarget(g){var B;const{initial:M}=this.props;let D;if(typeof M=="string"||typeof M=="object"){const e=EB(this.props,M,(B=this.presenceContext)===null||B===void 0?void 0:B.custom);e&&(D=e[g])}if(M&&D!==void 0)return D;const w=this.getBaseTargetFromProps(this.props,g);return w!==void 0&&!S(w)?w:this.initialValues[g]!==void 0&&D===void 0?void 0:this.baseTarget[g]}on(g,B){return this.events[g]||(this.events[g]=new hB),this.events[g].add(B)}notify(g,...B){this.events[g]&&this.events[g].notify(...B)}}class fw extends mi{constructor(){super(...arguments),this.KeyframeResolver=WD}sortInstanceNodePosition(g,B){return g.compareDocumentPosition(B)&2?1:-1}getBaseTargetFromProps(g,B){return g.style?g.style[B]:void 0}removeValueFromRenderState(g,{vars:B,style:M}){delete B[g],delete M[g]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:g}=this.props;S(g)&&(this.childSubscription=g.on("change",B=>{this.current&&(this.current.textContent=`${B}`)}))}}function Ui(A){return window.getComputedStyle(A)}class fi extends fw{constructor(){super(...arguments),this.type="html",this.renderInstance=gD}readValueFromInstance(g,B){if(UA.has(B)){const M=jB(B);return M&&M.default||0}else{const M=Ui(g),D=(NM(B)?M.getPropertyValue(B):M[B])||0;return typeof D=="string"?D.trim():D}}measureInstanceViewportBox(g,{transformPagePoint:B}){return Fe(g,B)}build(g,B,M){cB(g,B,M.transformTemplate)}scrapeMotionValuesFromProps(g,B,M){return mB(g,B,M)}}class Zi extends fw{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=O}getBaseTargetFromProps(g,B){return g[B]}readValueFromInstance(g,B){if(UA.has(B)){const M=jB(B);return M&&M.default||0}return B=BD.has(B)?B:IB(B),g.getAttribute(B)}scrapeMotionValuesFromProps(g,B,M){return eD(g,B,M)}build(g,B,M){YB(g,B,this.isSVGTag,M.transformTemplate)}renderInstance(g,B,M,D){MD(g,B,M,D)}mount(g){this.isSVGTag=uB(g.tagName),super.mount(g)}}const Vi=(A,g)=>rB(A)?new Zi(g):new fi(g,{allowProjection:A!==r.Fragment}),di=DQ({...$C,...ai,...ti,...Gi},Vi),Jg=ct(di);function qi(A){A.values.forEach(g=>g.stop())}function nM(A,g){[...g].reverse().forEach(M=>{const D=A.getVariant(M);D&&RB(A,D),A.variantChildren&&A.variantChildren.forEach(w=>{nM(w,g)})})}function ki(A,g){if(Array.isArray(g))return nM(A,g);if(typeof g=="string")return nM(A,[g]);RB(A,g)}function Ki(){let A=!1;const g=new Set,B={subscribe(M){return g.add(M),()=>void g.delete(M)},start(M,D){sA(A,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");const w=[];return g.forEach(e=>{w.push(re(e,M,{transitionOverride:D}))}),Promise.all(w)},set(M){return sA(A,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),g.forEach(D=>{ki(D,M)})},stop(){g.forEach(M=>{qi(M)})},mount(){return A=!0,()=>{A=!1,B.stop()}}};return B}function pi(){const A=pM(Ki);return RM(A.mount,[]),A}const zg=pi,hi={some:0,all:1};function Ri(A,g,{root:B,margin:M,amount:D="some"}={}){const w=rD(A),e=new WeakMap,C=s=>{s.forEach(i=>{const o=e.get(i.target);if(i.isIntersecting!==!!o)if(i.isIntersecting){const I=g(i.target,i);typeof I=="function"?e.set(i.target,I):Q.unobserve(i.target)}else typeof o=="function"&&(o(i),e.delete(i.target))})},Q=new IntersectionObserver(C,{root:B,rootMargin:M,threshold:typeof D=="number"?D:hi[D]});return w.forEach(s=>Q.observe(s)),()=>Q.disconnect()}function Zw(A,{root:g,margin:B,amount:M,once:D=!1}={}){const[w,e]=r.useState(!1);return r.useEffect(()=>{if(!A.current||D&&w)return;const C=()=>(e(!0),D?void 0:()=>e(!1)),Q={root:g&&g.current||void 0,margin:B,amount:M};return Ri(A.current,C,Q)},[g,A,B,D,M]),w}const Vw=r.forwardRef(({variant:A="goatData",items:g=[],logo:B,heightLogo:M="40px",widthLogo:D="65px",router:w,handleOpenItem:e,...C},Q)=>{const s=wB(),[i,o]=r.useState(!1),[I,n]=r.useState(void 0),[E]=r.useState(""),l=g.reduce((k,h)=>(k[h.refId]=r.useRef(null),k),{}),a=()=>o(!i),[G,c]=r.useState(!0);r.useEffect(()=>{const k=()=>{c(window.scrollY<50)};return window.addEventListener("scroll",k),()=>window.removeEventListener("scroll",k)},[]),r.useEffect(()=>{g.forEach(h=>{const F=l[h.refId];if(F!=null&&F.current){const N=wA=>{const tA=wA.target;n(tA.getBoundingClientRect())};F.current.addEventListener("mouseenter",N)}});const k=l[E];return k!=null&&k.current&&n(k.current.getBoundingClientRect()),()=>{g.forEach(h=>{const F=l[h.refId];F!=null&&F.current&&F.current.removeEventListener("mouseenter",()=>{})})}},[E,g,l]),r.useEffect(()=>{const k=window.matchMedia("(min-width: 640px)"),h=()=>{k.matches&&i&&o(!1)};return k.addEventListener("change",h),()=>{k.removeEventListener("change",h)}},[i]);const m={goatData:"bg-zinc-900",secondary:"bg-[#ededed]",experiences:"bg-[#FFFFFF]"},K={goatData:"#9a6d79",secondary:"#1f2937e7",experiences:"#6BC1E4"},Y={goatData:"#ff0145",secondary:"#ff0145",experiences:"#1f2937e7"},d={goatData:"white",secondary:"#1F2937",experiences:"#000000"},f={goatData:"text-white",secondary:"text-[#1F2937]",experiences:"text-white"},U=k=>{const h=k,F=encodeURIComponent("Hola, me gustaría obtener más información sobre las experiencias personalizadas que ofrecen en Experiencias Viajes. Estoy interesado en conocer más sobre sus servicios exclusivos a bordo de embarcaciones de lujo."),N=`https://api.whatsapp.com/send?phone=${h}&text=${F}`;window.open(N,"_blank")},y=k=>{const h=`mailto:${k}?subject=Solicitud&body=Hola, Necesito más información!`;window.open(h)},Z=k=>{window.open(k,"_blank")};return t.jsxs("nav",{ref:Q,...C,style:{zIndex:9999,position:"fixed",top:"0px",left:"0px",right:"0px"},className:`${m[A]} ${A==="experiences"?"":"bg-opacity-75"} `,children:[A==="experiences"&&G&&t.jsx("div",{className:"bg-[#F2AE87] text-white transition-all duration-300",children:t.jsxs("div",{className:`flex ${s?"flex-col":"flex-row"} justify-around items-end px-4 py-2 text-sm`,children:[!s&&t.jsxs("div",{className:"flex items-center gap-6",children:[t.jsxs("div",{className:"flex items-center gap-2 cursor-pointer",onClick:()=>U("+5491140999887"),children:[t.jsx(wt,{}),t.jsx("span",{children:"+54 114099-9887"})]}),t.jsxs("div",{className:"flex items-center gap-2 cursor-pointer",onClick:()=>y("experiencias.viajes.arg@gmail.com"),children:[t.jsx(tt,{}),t.jsx("span",{children:"experiencias.viajes.arg@gmail.com"})]})]}),t.jsxs("div",{style:{paddingRight:s?"40px":""},className:"flex gap-2 mt-2 sm:mt-0",children:[t.jsx("div",{onClick:()=>{Z("https://www.instagram.com/experienciasviajes.arg/")},children:t.jsx(Qt,{})}),t.jsx("div",{onClick:()=>{Z("https://www.facebook.com/experienciasviajes.arg/")},children:t.jsx(Ct,{})}),t.jsx(st,{}),t.jsx("div",{onClick:()=>{Z("https://www.linkedin.com/in/experienciasviajes-arg-by-maria-cian-0b075014/")},children:t.jsx(it,{})})]})]})}),t.jsxs("div",{style:{marginLeft:"auto",marginRight:"auto",maxWidth:"80rem",paddingLeft:s?"0.5rem":"1.5rem",paddingRight:s?"0.5rem":"1.5rem"},children:[(A==="goatData"||A==="secondary")&&t.jsx(Jg.div,{style:{background:K[A],position:"absolute",opacity:.4,borderRadius:"0.25rem"},className:"z-20 pointer-events-none",animate:{top:(I==null?void 0:I.top)||0,left:(I==null?void 0:I.left)||0,width:(I==null?void 0:I.width)||0,height:(I==null?void 0:I.height)||0}}),t.jsxs("div",{style:{position:"relative",display:"flex",height:"4rem",alignItems:"center",justifyContent:"space-between"},children:[t.jsx("div",{style:{position:"absolute",top:"0px",bottom:"0px",left:A==="experiences"?"auto":"0px",right:A==="experiences"?"0px":"auto",display:s?"flex":"none",alignItems:"center"},children:t.jsx("button",{className:`menu ${i?A==="secondary"?"openedark":A==="experiences"?"openeExperiences":"opened":""}`,onClick:a,"aria-label":"Main Menu",children:t.jsxs("svg",{width:"45",height:"45",viewBox:"0 0 100 100",style:{fill:"#f9f8f8 !important"},children:[t.jsx("path",{className:A==="secondary"?"linedark linedark1":A==="experiences"?"lineExperiences lineExperiences1":"line line1",d:"M 20,29.000046 H 80.000231 C 80.000231,29.000046 94.498839,28.817352 94.532987,66.711331 94.543142,77.980673 90.966081,81.670246 85.259173,81.668997 79.552261,81.667751 75.000211,74.999942 75.000211,74.999942 L 25.000021,25.000058"}),t.jsx("path",{className:A==="secondary"?"linedark linedark2":A==="experiences"?"lineExperiences lineExperiences2":"line line2",d:"M 20,50 H 80"}),t.jsx("path",{className:A==="secondary"?"linedark linedark3":A==="experiences"?"lineExperiences lineExperiences3":"line line3",d:"M 20,70.999954 H 80.000231 C 80.000231,70.999954 94.498839,71.182648 94.532987,33.288669 94.543142,22.019327 90.966081,18.329754 85.259173,18.331003 79.552261,18.332249 75.000211,25.000058 75.000211,25.000058 L 25.000021,74.999942"})]})})}),t.jsxs("div",{style:{display:"flex",flex:A==="experiences"&&s?"":"1 1 0%",alignItems:"center",justifyContent:s?"center":A==="experiences"?"flex-end":"stretch"},children:[t.jsx("div",{className:"flex flex-shrink-0 items-center",style:{paddingLeft:A==="experiences"?"20px":""},children:t.jsxs("div",{className:"flex flex-col items-center lg:ml-[120px] ml-0",children:[t.jsx("img",{className:`${s?"hidden":"block"}`,style:{height:M&&M.trim()!==""?M:"40px",width:D&&D.trim()!==""?D:"65px"},src:B&&B.trim()!==""?B:A==="secondary"?uA:mA,alt:"Logo"}),t.jsx("img",{className:`${s?"block":"hidden"}`,style:{height:M&&M.trim()!==""?M:"40px",width:D&&D.trim()!==""?D:"65px"},src:B&&B.trim()!==""?B:A==="secondary"?uA:mA,alt:"Logo"}),(!B||B.trim()==="")&&t.jsx("div",{className:`text-[10px] ${f[A]} tracking-[4px]`,children:"DATA"})]})}),t.jsx("div",{style:{display:s?"none":"block",flexGrow:1,marginLeft:"1.5rem"},children:t.jsx("nav",{style:{display:"flex",justifyContent:"flex-end"},children:t.jsx("ul",{className:"flex space-x-4",children:g.map(({label:k,href:h,refId:F,open:N,routerApp:wA,link:tA})=>t.jsx("li",{children:t.jsx(kM,{href:h,Viewport:Y[A],colorButton:d[A],setIsOpen:o,open:N,routerApp:wA,handleOpen:e,handleRouter:()=>{w.push(tA)},children:t.jsx("div",{id:F,ref:l[F],className:`
|
|
8
|
+
rounded-md transition duration-300 focus:outline-none focus:ring-2 ${DA[B]} focus:ring-offset-2 text-left`,C===X.link?gA[B]:"",C===X.link?B==="secondary"||B==="primary"||B==="darkMagenta"||B==="veryDarkViolet"||B==="success"?"text-custom-red":B==="pikaros"?"text-orange-300":"text-custom-blue":B==="primary"||B==="vividPink"||B==="darkMagenta"||B==="veryDarkViolet"||B==="danger"||B==="warning"||B==="success"||B==="pikaros"?"text-white":"text-custom-blue",C===X.link?"font-semibold":"font-normal"),onClick:()=>{TA(X,b)},children:X.label},SA))}):t.jsx("div",{style:{zIndex:"999"},className:`absolute left-0 mt-2 w-48 ${CA[B]} ${rg[B]} rounded-md shadow-lg ring-4 ring-black ring-opacity-5`,role:"menu",children:q.subItems.map((X,SA)=>t.jsx("div",{className:J(`block px-4 py-2 text-sm cursor-pointer ${CA[B]}e`,T[B]&&`${T[B]}`,C===X.link?gA[B]:"",C===X.link?B==="secondary"||B==="primary"||B==="darkMagenta"||B==="veryDarkViolet"||B==="success"?"text-custom-red":B==="pikaros"?"text-orange-300":"text-custom-blue":B==="primary"||B==="vividPink"||B==="darkMagenta"||B==="veryDarkViolet"||B==="danger"||B==="warning"||B==="success"||B==="pikaros"?"text-white":"text-custom-blue",C===X.link?"font-semibold":"font-normal"),onClick:()=>{TA(X,b)},children:X.label},SA))}))]},b)})}),s&&t.jsxs("div",{className:"relative ml-3",children:[t.jsxs("div",{id:"user-menu-button",style:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:_,children:[t.jsx("button",{type:"button",className:`flex rounded-full bg-gray-800 text-sm transition duration-300 focus:outline-none focus:ring-2 ${DA[B]} focus:ring-offset-2 mb-4 ml-3 mt-3`,"aria-haspopup":"true",children:t.jsx("div",{className:"flex items-center justify-center rounded-full bg-gray-300 text-gray-700 font-bold",style:{width:"28px",height:"28px"},children:s.image?t.jsx("img",{src:s.image,alt:"User avatar",className:"rounded-full object-cover w-full h-full",onError:q=>{q.currentTarget.onerror=null,q.currentTarget.src=""}}):((og=(Pg=s.name)==null?void 0:Pg.charAt(0))==null?void 0:og.toUpperCase())||"?"})}),t.jsx("div",{className:`block w-full px-4 py-4 ${hA[B]} text-left ${f?"block":"hidden"}`,children:s.name}),t.jsx("div",{className:`mr-2 ${f?"block":"hidden"}`,children:t.jsx(Bt,{size:20,color:xA[B]})})]}),k&&t.jsx("div",{ref:j,className:`absolute right-0 ${f?"left-56":"left-14"} bottom-8 mt-2 w-48 ${CA[B]} ${rg[B]} rounded-md shadow-lg ring-4 ring-black ring-opacity-5`,role:"menu",children:g.map((q,b)=>t.jsx("div",{className:J("block px-4 py-2 text-sm cursor-pointer",T[B]&&`${T[B]}`,C===q.link?gA[B]:"",C===q.link?B==="secondary"||B==="primary"||B==="darkMagenta"||B==="veryDarkViolet"||B==="success"?"text-custom-red":B==="pikaros"?"text-orange-300":"text-custom-blue":B==="primary"||B==="vividPink"||B==="darkMagenta"||B==="veryDarkViolet"||B==="danger"||B==="warning"||B==="success"||B==="pikaros"?"text-white":"text-custom-blue",C===q.link?"font-semibold":"font-normal"),onClick:q.label==="Cerrar sesion"?G:()=>{rM(q)},children:q.label},b))}),t.jsxs("div",{style:{display:"flex",gap:"12px",padding:"0px 20px 0px 10px",flexDirection:f?"row":"column",alignItems:"center"},children:[o&&t.jsx(ZM,{variant:B,onClick:m}),i&&t.jsx(fM,{variant:B,toggleTheme:c})]})]})]}),wA&&t.jsx(Eg,{variant:I,background:n,logoGoatData:E,imgLoading:l,strokeWidth:a})]})});qM.displayName="Sidebar";const wt=()=>t.jsx("svg",{className:"cursor-pointer",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M17.0779 2.928C15.1918 1.041 12.6836 0.001 10.0115 0C4.50522 0 0.0240013 4.479 0.0220012 9.985C0.0210011 11.745 0.481024 13.463 1.35507 14.977L0 20L5.23326 18.763C6.69233 19.559 8.33441 19.978 10.0065 19.979H10.0105C15.5158 19.979 19.997 15.499 20 9.994C20.002 7.325 18.9639 4.816 17.0779 2.928ZM14.8987 13.554C14.6907 14.137 13.6717 14.699 13.2137 14.74C12.7556 14.782 12.3266 14.947 10.2185 14.116C7.68138 13.116 6.0793 10.515 5.9553 10.349C5.83029 10.182 4.93625 8.996 4.93625 7.768C4.93625 6.54 5.58128 5.936 5.81029 5.687C6.0393 5.437 6.30931 5.375 6.47632 5.375C6.64233 5.375 6.80934 5.375 6.95435 5.381C7.13236 5.388 7.32936 5.397 7.51637 5.812C7.73839 6.306 8.22341 7.54 8.28541 7.665C8.34742 7.79 8.38942 7.936 8.30641 8.102C8.22341 8.268 8.18141 8.372 8.0574 8.518C7.9324 8.664 7.79539 8.843 7.68338 8.955C7.55838 9.079 7.42837 9.215 7.57338 9.464C7.71938 9.714 8.21941 10.531 8.96145 11.192C9.91549 12.042 10.7185 12.305 10.9685 12.431C11.2186 12.556 11.3636 12.535 11.5096 12.368C11.6556 12.202 12.1336 11.64 12.2996 11.39C12.4656 11.14 12.6326 11.182 12.8616 11.265C13.0907 11.348 14.3177 11.952 14.5667 12.077C14.8167 12.202 14.9827 12.264 15.0448 12.368C15.1068 12.471 15.1068 12.971 14.8987 13.554Z",fill:"white"})}),tt=()=>t.jsx("svg",{className:"cursor-pointer",width:"24",height:"16",viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M21.6 0H2.4C1.08 0 0.012 0.9 0.012 2L0 14C0 15.1 1.08 16 2.4 16H21.6C22.92 16 24 15.1 24 14V2C24 0.9 22.92 0 21.6 0ZM21.6 4L12 9L2.4 4V2L12 7L21.6 2V4Z",fill:"white"})}),Qt=()=>t.jsx("svg",{className:"cursor-pointer",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M6.66667 0.431458C2.98533 0.431458 0 3.33875 0 6.92384V17.3117C0 20.8967 2.98533 23.804 6.66667 23.804H17.3333C21.0147 23.804 24 20.8967 24 17.3117V6.92384C24 3.33875 21.0147 0.431458 17.3333 0.431458H6.66667ZM20 3.02841C20.736 3.02841 21.3333 3.61013 21.3333 4.32689C21.3333 5.04365 20.736 5.62536 20 5.62536C19.264 5.62536 18.6667 5.04365 18.6667 4.32689C18.6667 3.61013 19.264 3.02841 20 3.02841ZM12 5.62536C15.6813 5.62536 18.6667 8.53265 18.6667 12.1177C18.6667 15.7028 15.6813 18.6101 12 18.6101C8.31867 18.6101 5.33333 15.7028 5.33333 12.1177C5.33333 8.53265 8.31867 5.62536 12 5.62536ZM12 8.22232C10.9391 8.22232 9.92172 8.63273 9.17157 9.36326C8.42143 10.0938 8 11.0846 8 12.1177C8 13.1509 8.42143 14.1417 9.17157 14.8722C9.92172 15.6028 10.9391 16.0132 12 16.0132C13.0609 16.0132 14.0783 15.6028 14.8284 14.8722C15.5786 14.1417 16 13.1509 16 12.1177C16 11.0846 15.5786 10.0938 14.8284 9.36326C14.0783 8.63273 13.0609 8.22232 12 8.22232Z",fill:"white"})}),Ct=()=>t.jsx("svg",{className:"cursor-pointer",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M24 12.147C24 5.68004 18.624 0.431458 12 0.431458C5.376 0.431458 0 5.68004 0 12.147C0 17.8174 4.128 22.5387 9.6 23.6283V15.6617H7.2V12.147H9.6V9.21814C9.6 6.95703 11.484 5.11769 13.8 5.11769H16.8V8.63236H14.4C13.74 8.63236 13.2 9.15956 13.2 9.80392V12.147H16.8V15.6617H13.2V23.804C19.26 23.2183 24 18.2274 24 12.147Z",fill:"white"})}),st=()=>t.jsx("svg",{className:"cursor-pointer",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M4 0.431458C1.80671 0.431458 0 2.19093 0 4.32689V19.9086C0 22.0446 1.80671 23.804 4 23.804H20C22.1933 23.804 24 22.0446 24 19.9086V4.32689C24 2.19093 22.1933 0.431458 20 0.431458H4ZM12 5.62536H14.6667C14.6667 6.93033 16.628 8.22232 17.3333 8.22232V10.8193C16.5267 10.8193 15.5573 10.4741 14.6667 9.89106V14.7147C14.6667 16.8624 12.872 18.6101 10.6667 18.6101C8.46133 18.6101 6.66667 16.8624 6.66667 14.7147C6.66667 12.567 8.46133 10.8193 10.6667 10.8193V13.4162C9.93067 13.4162 9.33333 13.9992 9.33333 14.7147C9.33333 15.4302 9.93067 16.0132 10.6667 16.0132C11.4027 16.0132 12 15.4302 12 14.7147V5.62536Z",fill:"white"})}),it=()=>t.jsx("svg",{className:"cursor-pointer",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M21.3333 0.431458H2.66667C1.19333 0.431458 0 1.59359 0 3.02841V21.2071C0 22.6419 1.19333 23.804 2.66667 23.804H21.3333C22.8067 23.804 24 22.6419 24 21.2071V3.02841C24 1.59359 22.8067 0.431458 21.3333 0.431458ZM8 18.6101H4.636V9.52079H8V18.6101ZM6.25867 7.85485C5.23067 7.85485 4.544 7.18743 4.544 6.29668C4.544 5.40592 5.22933 4.7385 6.372 4.7385C7.4 4.7385 8.08667 5.40592 8.08667 6.29668C8.08667 7.18743 7.40133 7.85485 6.25867 7.85485ZM20 18.6101H16.744V13.6422C16.744 12.2684 15.876 11.9515 15.5507 11.9515C15.2253 11.9515 14.14 12.1632 14.14 13.6422C14.14 13.8538 14.14 18.6101 14.14 18.6101H10.776V9.52079H14.14V10.7894C14.5733 10.0493 15.4413 9.52079 17.0693 9.52079C18.6973 9.52079 20 10.7894 20 13.6422V18.6101Z",fill:"white"})}),kM=({children:A,href:g,Viewport:B,colorButton:M,setIsOpen:D,routerApp:w=!1,open:e=!1,handleOpen:C,handleRouter:Q})=>{const s=r.useRef(null),[i,o]=r.useState(M);r.useEffect(()=>{const n=()=>{const E=document.getElementById(g.slice(1));if(E){const l=E.getBoundingClientRect(),a=l.top>=0&&l.bottom<=window.innerHeight;o(a?B:M)}};return n(),window.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n)}},[g,B,M]);const I=()=>{const n=document.getElementById(g.slice(1));n&&(n.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{const E=n.getBoundingClientRect(),l=E.top>=0&&E.bottom<=window.innerHeight;o(l?B:M),D(!1)},300))};return t.jsx("button",{className:"group",onClick:w?Q:e?C:I,ref:s,style:{display:"block",padding:"8px 12px",borderRadius:"6px",fontSize:"14px",color:i,background:"transparent",opacity:.7,textDecoration:"none",cursor:"pointer",letterSpacing:"3px",fontWeight:"800"},"aria-current":"page",title:`Enlace a ${g}`,rel:"noopener noreferrer",children:A})},KM=r.createContext({});function pM(A){const g=r.useRef(null);return g.current===null&&(g.current=A()),g.current}const tB=r.createContext(null),hM=r.createContext({transformPagePoint:A=>A,isStatic:!1,reducedMotion:"never"});function ot(A=!0){const g=r.useContext(tB);if(g===null)return[!0,null];const{isPresent:B,onExitComplete:M,register:D}=g,w=r.useId();r.useEffect(()=>{A&&D(w)},[A]);const e=r.useCallback(()=>A&&M&&M(w),[w,M,A]);return!B&&M?[!1,e]:[!0]}const QB=typeof window<"u",RM=QB?r.useLayoutEffect:r.useEffect,$=A=>A;let RA=$,sA=$;process.env.NODE_ENV!=="production"&&(RA=(A,g)=>{!A&&typeof console<"u"&&console.warn(g)},sA=(A,g)=>{if(!A)throw new Error(g)});function CB(A){let g;return()=>(g===void 0&&(g=A()),g)}const JA=(A,g,B)=>{const M=g-A;return M===0?1:(B-A)/M},iA=A=>A*1e3,rA=A=>A/1e3,It={skipAnimations:!1,useManualTiming:!1};function nt(A){let g=new Set,B=new Set,M=!1,D=!1;const w=new WeakSet;let e={delta:0,timestamp:0,isProcessing:!1};function C(s){w.has(s)&&(Q.schedule(s),A()),s(e)}const Q={schedule:(s,i=!1,o=!1)=>{const n=o&&M?g:B;return i&&w.add(s),n.has(s)||n.add(s),s},cancel:s=>{B.delete(s),w.delete(s)},process:s=>{if(e=s,M){D=!0;return}M=!0,[g,B]=[B,g],g.forEach(C),g.clear(),M=!1,D&&(D=!1,Q.process(s))}};return Q}const lg=["read","resolveKeyframes","update","preRender","render","postRender"],rt=40;function JM(A,g){let B=!1,M=!0;const D={delta:0,timestamp:0,isProcessing:!1},w=()=>B=!0,e=lg.reduce((G,c)=>(G[c]=nt(w),G),{}),{read:C,resolveKeyframes:Q,update:s,preRender:i,render:o,postRender:I}=e,n=()=>{const G=performance.now();B=!1,D.delta=M?1e3/60:Math.max(Math.min(G-D.timestamp,rt),1),D.timestamp=G,D.isProcessing=!0,C.process(D),Q.process(D),s.process(D),i.process(D),o.process(D),I.process(D),D.isProcessing=!1,B&&g&&(M=!1,A(n))},E=()=>{B=!0,M=!0,D.isProcessing||A(n)};return{schedule:lg.reduce((G,c)=>{const m=e[c];return G[c]=(K,Y=!1,d=!1)=>(B||E(),m.schedule(K,Y,d)),G},{}),cancel:G=>{for(let c=0;c<lg.length;c++)e[lg[c]].cancel(G)},state:D,steps:e}}const{schedule:z,cancel:GA,state:H,steps:sB}=JM(typeof requestAnimationFrame<"u"?requestAnimationFrame:$,!0),zM=r.createContext({strict:!1}),vM={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},zA={};for(const A in vM)zA[A]={isEnabled:g=>vM[A].some(B=>!!g[B])};function Et(A){for(const g in A)zA[g]={...zA[g],...A[g]}}const lt=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ag(A){return A.startsWith("while")||A.startsWith("drag")&&A!=="draggable"||A.startsWith("layout")||A.startsWith("onTap")||A.startsWith("onPan")||A.startsWith("onLayout")||lt.has(A)}let PM=A=>!ag(A);function at(A){A&&(PM=g=>g.startsWith("on")?!ag(g):A(g))}try{at(require("@emotion/is-prop-valid").default)}catch{}function Gt(A,g,B){const M={};for(const D in A)D==="values"&&typeof A.values=="object"||(PM(D)||B===!0&&ag(D)||!g&&!ag(D)||A.draggable&&D.startsWith("onDrag"))&&(M[D]=A[D]);return M}const LM=new Set;function Gg(A,g,B){A||LM.has(g)||(console.warn(g),LM.add(g))}function ct(A){if(typeof Proxy>"u")return A;const g=new Map,B=(...M)=>(process.env.NODE_ENV!=="production"&&Gg(!1,"motion() is deprecated. Use motion.create() instead."),A(...M));return new Proxy(B,{get:(M,D)=>D==="create"?A:(g.has(D)||g.set(D,A(D)),g.get(D))})}const cg=r.createContext({});function NA(A){return typeof A=="string"||Array.isArray(A)}function Yg(A){return A!==null&&typeof A=="object"&&typeof A.start=="function"}const iB=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],oB=["initial",...iB];function yg(A){return Yg(A.animate)||oB.some(g=>NA(A[g]))}function FM(A){return!!(yg(A)||A.variants)}function Yt(A,g){if(yg(A)){const{initial:B,animate:M}=A;return{initial:B===!1||NA(B)?B:void 0,animate:NA(M)?M:void 0}}return A.inherit!==!1?g:{}}function yt(A){const{initial:g,animate:B}=Yt(A,r.useContext(cg));return r.useMemo(()=>({initial:g,animate:B}),[bM(g),bM(B)])}function bM(A){return Array.isArray(A)?A.join(" "):A}const ut=Symbol.for("motionComponentSymbol");function vA(A){return A&&typeof A=="object"&&Object.prototype.hasOwnProperty.call(A,"current")}function mt(A,g,B){return r.useCallback(M=>{M&&A.onMount&&A.onMount(M),g&&(M?g.mount(M):g.unmount()),B&&(typeof B=="function"?B(M):vA(B)&&(B.current=M))},[g])}const IB=A=>A.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),OM="data-"+IB("framerAppearId"),{schedule:nB,cancel:Hi}=JM(queueMicrotask,!1),jM=r.createContext({});function Ut(A,g,B,M,D){var w,e;const{visualElement:C}=r.useContext(cg),Q=r.useContext(zM),s=r.useContext(tB),i=r.useContext(hM).reducedMotion,o=r.useRef(null);M=M||Q.renderer,!o.current&&M&&(o.current=M(A,{visualState:g,parent:C,props:B,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:i}));const I=o.current,n=r.useContext(jM);I&&!I.projection&&D&&(I.type==="html"||I.type==="svg")&&ft(o.current,B,D,n);const E=r.useRef(!1);r.useInsertionEffect(()=>{I&&E.current&&I.update(B,s)});const l=B[OM],a=r.useRef(!!l&&!(!((w=window.MotionHandoffIsComplete)===null||w===void 0)&&w.call(window,l))&&((e=window.MotionHasOptimisedAnimation)===null||e===void 0?void 0:e.call(window,l)));return RM(()=>{I&&(E.current=!0,window.MotionIsMounted=!0,I.updateFeatures(),nB.render(I.render),a.current&&I.animationState&&I.animationState.animateChanges())}),r.useEffect(()=>{I&&(!a.current&&I.animationState&&I.animationState.animateChanges(),a.current&&(queueMicrotask(()=>{var G;(G=window.MotionHandoffMarkAsComplete)===null||G===void 0||G.call(window,l)}),a.current=!1))}),I}function ft(A,g,B,M){const{layoutId:D,layout:w,drag:e,dragConstraints:C,layoutScroll:Q,layoutRoot:s}=g;A.projection=new B(A.latestValues,g["data-framer-portal-id"]?void 0:HM(A.parent)),A.projection.setOptions({layoutId:D,layout:w,alwaysMeasureLayout:!!e||C&&vA(C),visualElement:A,animationType:typeof w=="string"?w:"both",initialPromotionConfig:M,layoutScroll:Q,layoutRoot:s})}function HM(A){if(A)return A.options.allowProjection!==!1?A.projection:HM(A.parent)}function Zt({preloadedFeatures:A,createVisualElement:g,useRender:B,useVisualState:M,Component:D}){var w,e;A&&Et(A);function C(s,i){let o;const I={...r.useContext(hM),...s,layoutId:Vt(s)},{isStatic:n}=I,E=yt(s),l=M(s,n);if(!n&&QB){dt(I,A);const a=qt(I);o=a.MeasureLayout,E.visualElement=Ut(D,l,I,g,a.ProjectionNode)}return t.jsxs(cg.Provider,{value:E,children:[o&&E.visualElement?t.jsx(o,{visualElement:E.visualElement,...I}):null,B(D,s,mt(l,E.visualElement,i),l,n,E.visualElement)]})}C.displayName=`motion.${typeof D=="string"?D:`create(${(e=(w=D.displayName)!==null&&w!==void 0?w:D.name)!==null&&e!==void 0?e:""})`}`;const Q=r.forwardRef(C);return Q[ut]=D,Q}function Vt({layoutId:A}){const g=r.useContext(KM).id;return g&&A!==void 0?g+"-"+A:A}function dt(A,g){const B=r.useContext(zM).strict;if(process.env.NODE_ENV!=="production"&&g&&B){const M="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";A.ignoreStrict?RA(!1,M):sA(!1,M)}}function qt(A){const{drag:g,layout:B}=zA;if(!g&&!B)return{};const M={...g,...B};return{MeasureLayout:g!=null&&g.isEnabled(A)||B!=null&&B.isEnabled(A)?M.MeasureLayout:void 0,ProjectionNode:M.ProjectionNode}}const kt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function rB(A){return typeof A!="string"||A.includes("-")?!1:!!(kt.indexOf(A)>-1||/[A-Z]/u.test(A))}function TM(A){const g=[{},{}];return A==null||A.values.forEach((B,M)=>{g[0][M]=B.get(),g[1][M]=B.getVelocity()}),g}function EB(A,g,B,M){if(typeof g=="function"){const[D,w]=TM(M);g=g(B!==void 0?B:A.custom,D,w)}if(typeof g=="string"&&(g=A.variants&&A.variants[g]),typeof g=="function"){const[D,w]=TM(M);g=g(B!==void 0?B:A.custom,D,w)}return g}const lB=A=>Array.isArray(A),Kt=A=>!!(A&&typeof A=="object"&&A.mix&&A.toValue),pt=A=>lB(A)?A[A.length-1]||0:A,S=A=>!!(A&&A.getVelocity);function ug(A){const g=S(A)?A.get():A;return Kt(g)?g.toValue():g}function ht({scrapeMotionValuesFromProps:A,createRenderState:g,onUpdate:B},M,D,w){const e={latestValues:Rt(M,D,w,A),renderState:g()};return B&&(e.onMount=C=>B({props:M,current:C,...e}),e.onUpdate=C=>B(C)),e}const SM=A=>(g,B)=>{const M=r.useContext(cg),D=r.useContext(tB),w=()=>ht(A,g,M,D);return B?w():pM(w)};function Rt(A,g,B,M){const D={},w=M(A,{});for(const I in w)D[I]=ug(w[I]);let{initial:e,animate:C}=A;const Q=yg(A),s=FM(A);g&&s&&!Q&&A.inherit!==!1&&(e===void 0&&(e=g.initial),C===void 0&&(C=g.animate));let i=B?B.initial===!1:!1;i=i||e===!1;const o=i?C:e;if(o&&typeof o!="boolean"&&!Yg(o)){const I=Array.isArray(o)?o:[o];for(let n=0;n<I.length;n++){const E=EB(A,I[n]);if(E){const{transitionEnd:l,transition:a,...G}=E;for(const c in G){let m=G[c];if(Array.isArray(m)){const K=i?m.length-1:0;m=m[K]}m!==null&&(D[c]=m)}for(const c in l)D[c]=l[c]}}}return D}const PA=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],UA=new Set(PA),xM=A=>g=>typeof g=="string"&&g.startsWith(A),NM=xM("--"),Jt=xM("var(--"),aB=A=>Jt(A)?zt.test(A.split("/*")[0].trim()):!1,zt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,XM=(A,g)=>g&&typeof A=="number"?g.transform(A):A,EA=(A,g,B)=>B>g?g:B<A?A:B,LA={test:A=>typeof A=="number",parse:parseFloat,transform:A=>A},XA={...LA,transform:A=>EA(0,1,A)},mg={...LA,default:1},WA=A=>({test:g=>typeof g=="string"&&g.endsWith(A)&&g.split(" ").length===1,parse:parseFloat,transform:g=>`${g}${A}`}),cA=WA("deg"),oA=WA("%"),V=WA("px"),vt=WA("vh"),Pt=WA("vw"),WM={...oA,parse:A=>oA.parse(A)/100,transform:A=>oA.transform(A*100)},Lt={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V},Ft={rotate:cA,rotateX:cA,rotateY:cA,rotateZ:cA,scale:mg,scaleX:mg,scaleY:mg,scaleZ:mg,skew:cA,skewX:cA,skewY:cA,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:XA,originX:WM,originY:WM,originZ:V},$M={...LA,transform:Math.round},GB={...Lt,...Ft,zIndex:$M,size:V,fillOpacity:XA,strokeOpacity:XA,numOctaves:$M},bt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ot=PA.length;function jt(A,g,B){let M="",D=!0;for(let w=0;w<Ot;w++){const e=PA[w],C=A[e];if(C===void 0)continue;let Q=!0;if(typeof C=="number"?Q=C===(e.startsWith("scale")?1:0):Q=parseFloat(C)===0,!Q||B){const s=XM(C,GB[e]);if(!Q){D=!1;const i=bt[e]||e;M+=`${i}(${s}) `}B&&(g[e]=s)}}return M=M.trim(),B?M=B(g,D?"":M):D&&(M="none"),M}function cB(A,g,B){const{style:M,vars:D,transformOrigin:w}=A;let e=!1,C=!1;for(const Q in g){const s=g[Q];if(UA.has(Q)){e=!0;continue}else if(NM(Q)){D[Q]=s;continue}else{const i=XM(s,GB[Q]);Q.startsWith("origin")?(C=!0,w[Q]=i):M[Q]=i}}if(g.transform||(e||B?M.transform=jt(g,A.transform,B):M.transform&&(M.transform="none")),C){const{originX:Q="50%",originY:s="50%",originZ:i=0}=w;M.transformOrigin=`${Q} ${s} ${i}`}}const Ht={offset:"stroke-dashoffset",array:"stroke-dasharray"},Tt={offset:"strokeDashoffset",array:"strokeDasharray"};function St(A,g,B=1,M=0,D=!0){A.pathLength=1;const w=D?Ht:Tt;A[w.offset]=V.transform(-M);const e=V.transform(g),C=V.transform(B);A[w.array]=`${e} ${C}`}function _M(A,g,B){return typeof A=="string"?A:V.transform(g+B*A)}function xt(A,g,B){const M=_M(g,A.x,A.width),D=_M(B,A.y,A.height);return`${M} ${D}`}function YB(A,{attrX:g,attrY:B,attrScale:M,originX:D,originY:w,pathLength:e,pathSpacing:C=1,pathOffset:Q=0,...s},i,o){if(cB(A,s,o),i){A.style.viewBox&&(A.attrs.viewBox=A.style.viewBox);return}A.attrs=A.style,A.style={};const{attrs:I,style:n,dimensions:E}=A;I.transform&&(E&&(n.transform=I.transform),delete I.transform),E&&(D!==void 0||w!==void 0||n.transform)&&(n.transformOrigin=xt(E,D!==void 0?D:.5,w!==void 0?w:.5)),g!==void 0&&(I.x=g),B!==void 0&&(I.y=B),M!==void 0&&(I.scale=M),e!==void 0&&St(I,e,C,Q,!1)}const yB=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),AD=()=>({...yB(),attrs:{}}),uB=A=>typeof A=="string"&&A.toLowerCase()==="svg";function gD(A,{style:g,vars:B},M,D){Object.assign(A.style,g,D&&D.getProjectionStyles(M));for(const w in B)A.style.setProperty(w,B[w])}const BD=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"]);function MD(A,g,B,M){gD(A,g,void 0,M);for(const D in g.attrs)A.setAttribute(BD.has(D)?D:IB(D),g.attrs[D])}const Ug={};function Nt(A){Object.assign(Ug,A)}function DD(A,{layout:g,layoutId:B}){return UA.has(A)||A.startsWith("origin")||(g||B!==void 0)&&(!!Ug[A]||A==="opacity")}function mB(A,g,B){var M;const{style:D}=A,w={};for(const e in D)(S(D[e])||g.style&&S(g.style[e])||DD(e,A)||((M=B==null?void 0:B.getValue(e))===null||M===void 0?void 0:M.liveStyle)!==void 0)&&(w[e]=D[e]);return w}function eD(A,g,B){const M=mB(A,g,B);for(const D in A)if(S(A[D])||S(g[D])){const w=PA.indexOf(D)!==-1?"attr"+D.charAt(0).toUpperCase()+D.substring(1):D;M[w]=A[D]}return M}function Xt(A,g){try{g.dimensions=typeof A.getBBox=="function"?A.getBBox():A.getBoundingClientRect()}catch{g.dimensions={x:0,y:0,width:0,height:0}}}const wD=["x","y","width","height","cx","cy","r"],Wt={useVisualState:SM({scrapeMotionValuesFromProps:eD,createRenderState:AD,onUpdate:({props:A,prevProps:g,current:B,renderState:M,latestValues:D})=>{if(!B)return;let w=!!A.drag;if(!w){for(const C in D)if(UA.has(C)){w=!0;break}}if(!w)return;let e=!g;if(g)for(let C=0;C<wD.length;C++){const Q=wD[C];A[Q]!==g[Q]&&(e=!0)}e&&z.read(()=>{Xt(B,M),z.render(()=>{YB(M,D,uB(B.tagName),A.transformTemplate),MD(B,M)})})}})},$t={useVisualState:SM({scrapeMotionValuesFromProps:mB,createRenderState:yB})};function tD(A,g,B){for(const M in g)!S(g[M])&&!DD(M,B)&&(A[M]=g[M])}function _t({transformTemplate:A},g){return r.useMemo(()=>{const B=yB();return cB(B,g,A),Object.assign({},B.vars,B.style)},[g])}function AQ(A,g){const B=A.style||{},M={};return tD(M,B,A),Object.assign(M,_t(A,g)),M}function gQ(A,g){const B={},M=AQ(A,g);return A.drag&&A.dragListener!==!1&&(B.draggable=!1,M.userSelect=M.WebkitUserSelect=M.WebkitTouchCallout="none",M.touchAction=A.drag===!0?"none":`pan-${A.drag==="x"?"y":"x"}`),A.tabIndex===void 0&&(A.onTap||A.onTapStart||A.whileTap)&&(B.tabIndex=0),B.style=M,B}function BQ(A,g,B,M){const D=r.useMemo(()=>{const w=AD();return YB(w,g,uB(M),A.transformTemplate),{...w.attrs,style:{...w.style}}},[g]);if(A.style){const w={};tD(w,A.style,A),D.style={...w,...D.style}}return D}function MQ(A=!1){return(B,M,D,{latestValues:w},e)=>{const Q=(rB(B)?BQ:gQ)(M,w,e,B),s=Gt(M,typeof B=="string",A),i=B!==r.Fragment?{...s,...Q,ref:D}:{},{children:o}=M,I=r.useMemo(()=>S(o)?o.get():o,[o]);return r.createElement(B,{...i,children:I})}}function DQ(A,g){return function(M,{forwardMotionProps:D}={forwardMotionProps:!1}){const e={...rB(M)?Wt:$t,preloadedFeatures:A,useRender:MQ(D),createVisualElement:g,Component:M};return Zt(e)}}function QD(A,g){if(!Array.isArray(g))return!1;const B=g.length;if(B!==A.length)return!1;for(let M=0;M<B;M++)if(g[M]!==A[M])return!1;return!0}function fg(A,g,B){const M=A.getProps();return EB(M,g,B!==void 0?B:M.custom,A)}const eQ=CB(()=>window.ScrollTimeline!==void 0);class wQ{constructor(g){this.stop=()=>this.runAll("stop"),this.animations=g.filter(Boolean)}get finished(){return Promise.all(this.animations.map(g=>"finished"in g?g.finished:g))}getAll(g){return this.animations[0][g]}setAll(g,B){for(let M=0;M<this.animations.length;M++)this.animations[M][g]=B}attachTimeline(g,B){const M=this.animations.map(D=>{if(eQ()&&D.attachTimeline)return D.attachTimeline(g);if(typeof B=="function")return B(D)});return()=>{M.forEach((D,w)=>{D&&D(),this.animations[w].stop()})}}get time(){return this.getAll("time")}set time(g){this.setAll("time",g)}get speed(){return this.getAll("speed")}set speed(g){this.setAll("speed",g)}get startTime(){return this.getAll("startTime")}get duration(){let g=0;for(let B=0;B<this.animations.length;B++)g=Math.max(g,this.animations[B].duration);return g}runAll(g){this.animations.forEach(B=>B[g]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class tQ extends wQ{then(g,B){return Promise.all(this.animations).then(g).catch(B)}}function UB(A,g){return A?A[g]||A.default||A:void 0}const fB=2e4;function CD(A){let g=0;const B=50;let M=A.next(g);for(;!M.done&&g<fB;)g+=B,M=A.next(g);return g>=fB?1/0:g}function ZB(A){return typeof A=="function"}function sD(A,g){A.timeline=g,A.onfinish=null}const VB=A=>Array.isArray(A)&&typeof A[0]=="number",QQ={linearEasing:void 0};function CQ(A,g){const B=CB(A);return()=>{var M;return(M=QQ[g])!==null&&M!==void 0?M:B()}}const Zg=CQ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),iD=(A,g,B=10)=>{let M="";const D=Math.max(Math.round(g/B),2);for(let w=0;w<D;w++)M+=A(JA(0,D-1,w))+", ";return`linear(${M.substring(0,M.length-2)})`};function oD(A){return!!(typeof A=="function"&&Zg()||!A||typeof A=="string"&&(A in dB||Zg())||VB(A)||Array.isArray(A)&&A.every(oD))}const $A=([A,g,B,M])=>`cubic-bezier(${A}, ${g}, ${B}, ${M})`,dB={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$A([0,.65,.55,1]),circOut:$A([.55,0,1,.45]),backIn:$A([.31,.01,.66,-.59]),backOut:$A([.33,1.53,.69,.99])};function ID(A,g){if(A)return typeof A=="function"&&Zg()?iD(A,g):VB(A)?$A(A):Array.isArray(A)?A.map(B=>ID(B,g)||dB.easeOut):dB[A]}const eA={x:!1,y:!1};function nD(){return eA.x||eA.y}function rD(A,g,B){var M;if(A instanceof Element)return[A];if(typeof A=="string"){let D=document;const w=(M=void 0)!==null&&M!==void 0?M:D.querySelectorAll(A);return w?Array.from(w):[]}return Array.from(A)}function ED(A,g){const B=rD(A),M=new AbortController,D={passive:!0,...g,signal:M.signal};return[B,D,()=>M.abort()]}function lD(A){return!(A.pointerType==="touch"||nD())}function sQ(A,g,B={}){const[M,D,w]=ED(A,B),e=C=>{if(!lD(C))return;const{target:Q}=C,s=g(Q,C);if(typeof s!="function"||!Q)return;const i=o=>{lD(o)&&(s(o),Q.removeEventListener("pointerleave",i))};Q.addEventListener("pointerleave",i,D)};return M.forEach(C=>{C.addEventListener("pointerenter",e,D)}),w}const aD=(A,g)=>g?A===g?!0:aD(A,g.parentElement):!1,qB=A=>A.pointerType==="mouse"?typeof A.button!="number"||A.button<=0:A.isPrimary!==!1,iQ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function oQ(A){return iQ.has(A.tagName)||A.tabIndex!==-1}const _A=new WeakSet;function GD(A){return g=>{g.key==="Enter"&&A(g)}}function kB(A,g){A.dispatchEvent(new PointerEvent("pointer"+g,{isPrimary:!0,bubbles:!0}))}const IQ=(A,g)=>{const B=A.currentTarget;if(!B)return;const M=GD(()=>{if(_A.has(B))return;kB(B,"down");const D=GD(()=>{kB(B,"up")}),w=()=>kB(B,"cancel");B.addEventListener("keyup",D,g),B.addEventListener("blur",w,g)});B.addEventListener("keydown",M,g),B.addEventListener("blur",()=>B.removeEventListener("keydown",M),g)};function cD(A){return qB(A)&&!nD()}function nQ(A,g,B={}){const[M,D,w]=ED(A,B),e=C=>{const Q=C.currentTarget;if(!cD(C)||_A.has(Q))return;_A.add(Q);const s=g(Q,C),i=(n,E)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",I),!(!cD(n)||!_A.has(Q))&&(_A.delete(Q),typeof s=="function"&&s(n,{success:E}))},o=n=>{i(n,B.useGlobalTarget||aD(Q,n.target))},I=n=>{i(n,!1)};window.addEventListener("pointerup",o,D),window.addEventListener("pointercancel",I,D)};return M.forEach(C=>{!oQ(C)&&C.getAttribute("tabindex")===null&&(C.tabIndex=0),(B.useGlobalTarget?window:C).addEventListener("pointerdown",e,D),C.addEventListener("focus",s=>IQ(s,D),D)}),w}function rQ(A){return A==="x"||A==="y"?eA[A]?null:(eA[A]=!0,()=>{eA[A]=!1}):eA.x||eA.y?null:(eA.x=eA.y=!0,()=>{eA.x=eA.y=!1})}const YD=new Set(["width","height","top","left","right","bottom",...PA]);let Vg;function EQ(){Vg=void 0}const IA={now:()=>(Vg===void 0&&IA.set(H.isProcessing||It.useManualTiming?H.timestamp:performance.now()),Vg),set:A=>{Vg=A,queueMicrotask(EQ)}};function KB(A,g){A.indexOf(g)===-1&&A.push(g)}function pB(A,g){const B=A.indexOf(g);B>-1&&A.splice(B,1)}class hB{constructor(){this.subscriptions=[]}add(g){return KB(this.subscriptions,g),()=>pB(this.subscriptions,g)}notify(g,B,M){const D=this.subscriptions.length;if(D)if(D===1)this.subscriptions[0](g,B,M);else for(let w=0;w<D;w++){const e=this.subscriptions[w];e&&e(g,B,M)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function yD(A,g){return g?A*(1e3/g):0}const uD=30,lQ=A=>!isNaN(parseFloat(A));class aQ{constructor(g,B={}){this.version="12.0.3",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(M,D=!0)=>{const w=IA.now();this.updatedAt!==w&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(M),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),D&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(g),this.owner=B.owner}setCurrent(g){this.current=g,this.updatedAt=IA.now(),this.canTrackVelocity===null&&g!==void 0&&(this.canTrackVelocity=lQ(this.current))}setPrevFrameValue(g=this.current){this.prevFrameValue=g,this.prevUpdatedAt=this.updatedAt}onChange(g){return process.env.NODE_ENV!=="production"&&Gg(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",g)}on(g,B){this.events[g]||(this.events[g]=new hB);const M=this.events[g].add(B);return g==="change"?()=>{M(),z.read(()=>{this.events.change.getSize()||this.stop()})}:M}clearListeners(){for(const g in this.events)this.events[g].clear()}attach(g,B){this.passiveEffect=g,this.stopPassiveEffect=B}set(g,B=!0){!B||!this.passiveEffect?this.updateAndNotify(g,B):this.passiveEffect(g,this.updateAndNotify)}setWithVelocity(g,B,M){this.set(B),this.prev=void 0,this.prevFrameValue=g,this.prevUpdatedAt=this.updatedAt-M}jump(g,B=!0){this.updateAndNotify(g),this.prev=g,this.prevUpdatedAt=this.prevFrameValue=void 0,B&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const g=IA.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||g-this.updatedAt>uD)return 0;const B=Math.min(this.updatedAt-this.prevUpdatedAt,uD);return yD(parseFloat(this.current)-parseFloat(this.prevFrameValue),B)}start(g){return this.stop(),new Promise(B=>{this.hasAnimated=!0,this.animation=g(B),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ag(A,g){return new aQ(A,g)}function GQ(A,g,B){A.hasValue(g)?A.getValue(g).set(B):A.addValue(g,Ag(B))}function RB(A,g){const B=fg(A,g);let{transitionEnd:M={},transition:D={},...w}=B||{};w={...w,...M};for(const e in w){const C=pt(w[e]);GQ(A,e,C)}}function cQ(A){return!!(S(A)&&A.add)}function JB(A,g){const B=A.getValue("willChange");if(cQ(B))return B.add(g)}function mD(A){return A.props[OM]}const UD=(A,g,B)=>(((1-3*B+3*g)*A+(3*B-6*g))*A+3*g)*A,YQ=1e-7,yQ=12;function uQ(A,g,B,M,D){let w,e,C=0;do e=g+(B-g)/2,w=UD(e,M,D)-A,w>0?B=e:g=e;while(Math.abs(w)>YQ&&++C<yQ);return e}function gg(A,g,B,M){if(A===g&&B===M)return $;const D=w=>uQ(w,0,1,A,B);return w=>w===0||w===1?w:UD(D(w),g,M)}const fD=A=>g=>g<=.5?A(2*g)/2:(2-A(2*(1-g)))/2,ZD=A=>g=>1-A(1-g),VD=gg(.33,1.53,.69,.99),zB=ZD(VD),dD=fD(zB),qD=A=>(A*=2)<1?.5*zB(A):.5*(2-Math.pow(2,-10*(A-1))),vB=A=>1-Math.sin(Math.acos(A)),kD=ZD(vB),KD=fD(vB),pD=A=>/^0[^.\s]+$/u.test(A);function mQ(A){return typeof A=="number"?A===0:A!==null?A==="none"||A==="0"||pD(A):!0}const Bg=A=>Math.round(A*1e5)/1e5,PB=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function UQ(A){return A==null}const fQ=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,LB=(A,g)=>B=>!!(typeof B=="string"&&fQ.test(B)&&B.startsWith(A)||g&&!UQ(B)&&Object.prototype.hasOwnProperty.call(B,g)),hD=(A,g,B)=>M=>{if(typeof M!="string")return M;const[D,w,e,C]=M.match(PB);return{[A]:parseFloat(D),[g]:parseFloat(w),[B]:parseFloat(e),alpha:C!==void 0?parseFloat(C):1}},ZQ=A=>EA(0,255,A),FB={...LA,transform:A=>Math.round(ZQ(A))},fA={test:LB("rgb","red"),parse:hD("red","green","blue"),transform:({red:A,green:g,blue:B,alpha:M=1})=>"rgba("+FB.transform(A)+", "+FB.transform(g)+", "+FB.transform(B)+", "+Bg(XA.transform(M))+")"};function VQ(A){let g="",B="",M="",D="";return A.length>5?(g=A.substring(1,3),B=A.substring(3,5),M=A.substring(5,7),D=A.substring(7,9)):(g=A.substring(1,2),B=A.substring(2,3),M=A.substring(3,4),D=A.substring(4,5),g+=g,B+=B,M+=M,D+=D),{red:parseInt(g,16),green:parseInt(B,16),blue:parseInt(M,16),alpha:D?parseInt(D,16)/255:1}}const bB={test:LB("#"),parse:VQ,transform:fA.transform},FA={test:LB("hsl","hue"),parse:hD("hue","saturation","lightness"),transform:({hue:A,saturation:g,lightness:B,alpha:M=1})=>"hsla("+Math.round(A)+", "+oA.transform(Bg(g))+", "+oA.transform(Bg(B))+", "+Bg(XA.transform(M))+")"},x={test:A=>fA.test(A)||bB.test(A)||FA.test(A),parse:A=>fA.test(A)?fA.parse(A):FA.test(A)?FA.parse(A):bB.parse(A),transform:A=>typeof A=="string"?A:A.hasOwnProperty("red")?fA.transform(A):FA.transform(A)},dQ=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function qQ(A){var g,B;return isNaN(A)&&typeof A=="string"&&(((g=A.match(PB))===null||g===void 0?void 0:g.length)||0)+(((B=A.match(dQ))===null||B===void 0?void 0:B.length)||0)>0}const RD="number",JD="color",kQ="var",KQ="var(",zD="${}",pQ=/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 Mg(A){const g=A.toString(),B=[],M={color:[],number:[],var:[]},D=[];let w=0;const C=g.replace(pQ,Q=>(x.test(Q)?(M.color.push(w),D.push(JD),B.push(x.parse(Q))):Q.startsWith(KQ)?(M.var.push(w),D.push(kQ),B.push(Q)):(M.number.push(w),D.push(RD),B.push(parseFloat(Q))),++w,zD)).split(zD);return{values:B,split:C,indexes:M,types:D}}function vD(A){return Mg(A).values}function PD(A){const{split:g,types:B}=Mg(A),M=g.length;return D=>{let w="";for(let e=0;e<M;e++)if(w+=g[e],D[e]!==void 0){const C=B[e];C===RD?w+=Bg(D[e]):C===JD?w+=x.transform(D[e]):w+=D[e]}return w}}const hQ=A=>typeof A=="number"?0:A;function RQ(A){const g=vD(A);return PD(A)(g.map(hQ))}const YA={test:qQ,parse:vD,createTransformer:PD,getAnimatableNone:RQ},JQ=new Set(["brightness","contrast","saturate","opacity"]);function zQ(A){const[g,B]=A.slice(0,-1).split("(");if(g==="drop-shadow")return A;const[M]=B.match(PB)||[];if(!M)return A;const D=B.replace(M,"");let w=JQ.has(g)?1:0;return M!==B&&(w*=100),g+"("+w+D+")"}const vQ=/\b([a-z-]*)\(.*?\)/gu,OB={...YA,getAnimatableNone:A=>{const g=A.match(vQ);return g?g.map(zQ).join(" "):A}},PQ={...GB,color:x,backgroundColor:x,outlineColor:x,fill:x,stroke:x,borderColor:x,borderTopColor:x,borderRightColor:x,borderBottomColor:x,borderLeftColor:x,filter:OB,WebkitFilter:OB},jB=A=>PQ[A];function LD(A,g){let B=jB(A);return B!==OB&&(B=YA),B.getAnimatableNone?B.getAnimatableNone(g):void 0}const LQ=new Set(["auto","none","0"]);function FQ(A,g,B){let M=0,D;for(;M<A.length&&!D;){const w=A[M];typeof w=="string"&&!LQ.has(w)&&Mg(w).values.length&&(D=A[M]),M++}if(D&&B)for(const w of g)A[w]=LD(B,D)}const FD=A=>A===LA||A===V,bD=(A,g)=>parseFloat(A.split(", ")[g]),OD=(A,g)=>(B,{transform:M})=>{if(M==="none"||!M)return 0;const D=M.match(/^matrix3d\((.+)\)$/u);if(D)return bD(D[1],g);{const w=M.match(/^matrix\((.+)\)$/u);return w?bD(w[1],A):0}},bQ=new Set(["x","y","z"]),OQ=PA.filter(A=>!bQ.has(A));function jQ(A){const g=[];return OQ.forEach(B=>{const M=A.getValue(B);M!==void 0&&(g.push([B,M.get()]),M.set(B.startsWith("scale")?1:0))}),g}const bA={width:({x:A},{paddingLeft:g="0",paddingRight:B="0"})=>A.max-A.min-parseFloat(g)-parseFloat(B),height:({y:A},{paddingTop:g="0",paddingBottom:B="0"})=>A.max-A.min-parseFloat(g)-parseFloat(B),top:(A,{top:g})=>parseFloat(g),left:(A,{left:g})=>parseFloat(g),bottom:({y:A},{top:g})=>parseFloat(g)+(A.max-A.min),right:({x:A},{left:g})=>parseFloat(g)+(A.max-A.min),x:OD(4,13),y:OD(5,14)};bA.translateX=bA.x,bA.translateY=bA.y;const ZA=new Set;let HB=!1,TB=!1;function jD(){if(TB){const A=Array.from(ZA).filter(M=>M.needsMeasurement),g=new Set(A.map(M=>M.element)),B=new Map;g.forEach(M=>{const D=jQ(M);D.length&&(B.set(M,D),M.render())}),A.forEach(M=>M.measureInitialState()),g.forEach(M=>{M.render();const D=B.get(M);D&&D.forEach(([w,e])=>{var C;(C=M.getValue(w))===null||C===void 0||C.set(e)})}),A.forEach(M=>M.measureEndState()),A.forEach(M=>{M.suspendedScrollY!==void 0&&window.scrollTo(0,M.suspendedScrollY)})}TB=!1,HB=!1,ZA.forEach(A=>A.complete()),ZA.clear()}function HD(){ZA.forEach(A=>{A.readKeyframes(),A.needsMeasurement&&(TB=!0)})}function HQ(){HD(),jD()}class SB{constructor(g,B,M,D,w,e=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...g],this.onComplete=B,this.name=M,this.motionValue=D,this.element=w,this.isAsync=e}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ZA.add(this),HB||(HB=!0,z.read(HD),z.resolveKeyframes(jD))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:g,name:B,element:M,motionValue:D}=this;for(let w=0;w<g.length;w++)if(g[w]===null)if(w===0){const e=D==null?void 0:D.get(),C=g[g.length-1];if(e!==void 0)g[0]=e;else if(M&&B){const Q=M.readValue(B,C);Q!=null&&(g[0]=Q)}g[0]===void 0&&(g[0]=C),D&&e===void 0&&D.set(g[0])}else g[w]=g[w-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ZA.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ZA.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const TD=A=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(A),TQ=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function SQ(A){const g=TQ.exec(A);if(!g)return[,];const[,B,M,D]=g;return[`--${B??M}`,D]}const xQ=4;function SD(A,g,B=1){sA(B<=xQ,`Max CSS variable fallback depth detected in property "${A}". This may indicate a circular fallback dependency.`);const[M,D]=SQ(A);if(!M)return;const w=window.getComputedStyle(g).getPropertyValue(M);if(w){const e=w.trim();return TD(e)?parseFloat(e):e}return aB(D)?SD(D,g,B+1):D}const xD=A=>g=>g.test(A),ND=[LA,V,oA,cA,Pt,vt,{test:A=>A==="auto",parse:A=>A}],XD=A=>ND.find(xD(A));class WD extends SB{constructor(g,B,M,D,w){super(g,B,M,D,w,!0)}readKeyframes(){const{unresolvedKeyframes:g,element:B,name:M}=this;if(!B||!B.current)return;super.readKeyframes();for(let Q=0;Q<g.length;Q++){let s=g[Q];if(typeof s=="string"&&(s=s.trim(),aB(s))){const i=SD(s,B.current);i!==void 0&&(g[Q]=i),Q===g.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!YD.has(M)||g.length!==2)return;const[D,w]=g,e=XD(D),C=XD(w);if(e!==C)if(FD(e)&&FD(C))for(let Q=0;Q<g.length;Q++){const s=g[Q];typeof s=="string"&&(g[Q]=parseFloat(s))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:g,name:B}=this,M=[];for(let D=0;D<g.length;D++)mQ(g[D])&&M.push(D);M.length&&FQ(g,M,B)}measureInitialState(){const{element:g,unresolvedKeyframes:B,name:M}=this;if(!g||!g.current)return;M==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=bA[M](g.measureViewportBox(),window.getComputedStyle(g.current)),B[0]=this.measuredOrigin;const D=B[B.length-1];D!==void 0&&g.getValue(M,D).jump(D,!1)}measureEndState(){var g;const{element:B,name:M,unresolvedKeyframes:D}=this;if(!B||!B.current)return;const w=B.getValue(M);w&&w.jump(this.measuredOrigin,!1);const e=D.length-1,C=D[e];D[e]=bA[M](B.measureViewportBox(),window.getComputedStyle(B.current)),C!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=C),!((g=this.removedTransforms)===null||g===void 0)&&g.length&&this.removedTransforms.forEach(([Q,s])=>{B.getValue(Q).set(s)}),this.resolveNoneKeyframes()}}const $D=(A,g)=>g==="zIndex"?!1:!!(typeof A=="number"||Array.isArray(A)||typeof A=="string"&&(YA.test(A)||A==="0")&&!A.startsWith("url("));function NQ(A){const g=A[0];if(A.length===1)return!0;for(let B=0;B<A.length;B++)if(A[B]!==g)return!0}function XQ(A,g,B,M){const D=A[0];if(D===null)return!1;if(g==="display"||g==="visibility")return!0;const w=A[A.length-1],e=$D(D,g),C=$D(w,g);return RA(e===C,`You are trying to animate ${g} from "${D}" to "${w}". ${D} is not an animatable value - to enable this animation set ${D} to a value animatable to ${w} via the \`style\` property.`),!e||!C?!1:NQ(A)||(B==="spring"||ZB(B))&&M}const WQ=A=>A!==null;function dg(A,{repeat:g,repeatType:B="loop"},M){const D=A.filter(WQ),w=g&&B!=="loop"&&g%2===1?0:D.length-1;return!w||M===void 0?D[w]:M}const $Q=40;class _D{constructor({autoplay:g=!0,delay:B=0,type:M="keyframes",repeat:D=0,repeatDelay:w=0,repeatType:e="loop",...C}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=IA.now(),this.options={autoplay:g,delay:B,type:M,repeat:D,repeatDelay:w,repeatType:e,...C},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>$Q?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&HQ(),this._resolved}onKeyframesResolved(g,B){this.resolvedAt=IA.now(),this.hasAttemptedResolve=!0;const{name:M,type:D,velocity:w,delay:e,onComplete:C,onUpdate:Q,isGenerator:s}=this.options;if(!s&&!XQ(g,M,D,w))if(e)this.options.duration=0;else{Q&&Q(dg(g,this.options,B)),C&&C(),this.resolveFinishedPromise();return}const i=this.initPlayback(g,B);i!==!1&&(this._resolved={keyframes:g,finalKeyframe:B,...i},this.onPostResolved())}onPostResolved(){}then(g,B){return this.currentFinishedPromise.then(g,B)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(g=>{this.resolveFinishedPromise=g})}}const P=(A,g,B)=>A+(g-A)*B;function xB(A,g,B){return B<0&&(B+=1),B>1&&(B-=1),B<1/6?A+(g-A)*6*B:B<1/2?g:B<2/3?A+(g-A)*(2/3-B)*6:A}function _Q({hue:A,saturation:g,lightness:B,alpha:M}){A/=360,g/=100,B/=100;let D=0,w=0,e=0;if(!g)D=w=e=B;else{const C=B<.5?B*(1+g):B+g-B*g,Q=2*B-C;D=xB(Q,C,A+1/3),w=xB(Q,C,A),e=xB(Q,C,A-1/3)}return{red:Math.round(D*255),green:Math.round(w*255),blue:Math.round(e*255),alpha:M}}function qg(A,g){return B=>B>0?g:A}const NB=(A,g,B)=>{const M=A*A,D=B*(g*g-M)+M;return D<0?0:Math.sqrt(D)},AC=[bB,fA,FA],gC=A=>AC.find(g=>g.test(A));function Ae(A){const g=gC(A);if(RA(!!g,`'${A}' is not an animatable color. Use the equivalent color code instead.`),!g)return!1;let B=g.parse(A);return g===FA&&(B=_Q(B)),B}const ge=(A,g)=>{const B=Ae(A),M=Ae(g);if(!B||!M)return qg(A,g);const D={...B};return w=>(D.red=NB(B.red,M.red,w),D.green=NB(B.green,M.green,w),D.blue=NB(B.blue,M.blue,w),D.alpha=P(B.alpha,M.alpha,w),fA.transform(D))},BC=(A,g)=>B=>g(A(B)),Dg=(...A)=>A.reduce(BC),XB=new Set(["none","hidden"]);function MC(A,g){return XB.has(A)?B=>B<=0?A:g:B=>B>=1?g:A}function DC(A,g){return B=>P(A,g,B)}function WB(A){return typeof A=="number"?DC:typeof A=="string"?aB(A)?qg:x.test(A)?ge:tC:Array.isArray(A)?Be:typeof A=="object"?x.test(A)?ge:eC:qg}function Be(A,g){const B=[...A],M=B.length,D=A.map((w,e)=>WB(w)(w,g[e]));return w=>{for(let e=0;e<M;e++)B[e]=D[e](w);return B}}function eC(A,g){const B={...A,...g},M={};for(const D in B)A[D]!==void 0&&g[D]!==void 0&&(M[D]=WB(A[D])(A[D],g[D]));return D=>{for(const w in M)B[w]=M[w](D);return B}}function wC(A,g){var B;const M=[],D={color:0,var:0,number:0};for(let w=0;w<g.values.length;w++){const e=g.types[w],C=A.indexes[e][D[e]],Q=(B=A.values[C])!==null&&B!==void 0?B:0;M[w]=Q,D[e]++}return M}const tC=(A,g)=>{const B=YA.createTransformer(g),M=Mg(A),D=Mg(g);return M.indexes.var.length===D.indexes.var.length&&M.indexes.color.length===D.indexes.color.length&&M.indexes.number.length>=D.indexes.number.length?XB.has(A)&&!D.values.length||XB.has(g)&&!M.values.length?MC(A,g):Dg(Be(wC(M,D),D.values),B):(RA(!0,`Complex values '${A}' and '${g}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),qg(A,g))};function Me(A,g,B){return typeof A=="number"&&typeof g=="number"&&typeof B=="number"?P(A,g,B):WB(A)(A,g)}const QC=5;function De(A,g,B){const M=Math.max(g-QC,0);return yD(B-A(M),g-M)}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},ee=.001;function CC({duration:A=L.duration,bounce:g=L.bounce,velocity:B=L.velocity,mass:M=L.mass}){let D,w;RA(A<=iA(L.maxDuration),"Spring duration must be 10 seconds or less");let e=1-g;e=EA(L.minDamping,L.maxDamping,e),A=EA(L.minDuration,L.maxDuration,rA(A)),e<1?(D=s=>{const i=s*e,o=i*A,I=i-B,n=$B(s,e),E=Math.exp(-o);return ee-I/n*E},w=s=>{const o=s*e*A,I=o*B+B,n=Math.pow(e,2)*Math.pow(s,2)*A,E=Math.exp(-o),l=$B(Math.pow(s,2),e);return(-D(s)+ee>0?-1:1)*((I-n)*E)/l}):(D=s=>{const i=Math.exp(-s*A),o=(s-B)*A+1;return-.001+i*o},w=s=>{const i=Math.exp(-s*A),o=(B-s)*(A*A);return i*o});const C=5/A,Q=iC(D,w,C);if(A=iA(A),isNaN(Q))return{stiffness:L.stiffness,damping:L.damping,duration:A};{const s=Math.pow(Q,2)*M;return{stiffness:s,damping:e*2*Math.sqrt(M*s),duration:A}}}const sC=12;function iC(A,g,B){let M=B;for(let D=1;D<sC;D++)M=M-A(M)/g(M);return M}function $B(A,g){return A*Math.sqrt(1-g*g)}const oC=["duration","bounce"],IC=["stiffness","damping","mass"];function we(A,g){return g.some(B=>A[B]!==void 0)}function nC(A){let g={velocity:L.velocity,stiffness:L.stiffness,damping:L.damping,mass:L.mass,isResolvedFromDuration:!1,...A};if(!we(A,IC)&&we(A,oC))if(A.visualDuration){const B=A.visualDuration,M=2*Math.PI/(B*1.2),D=M*M,w=2*EA(.05,1,1-(A.bounce||0))*Math.sqrt(D);g={...g,mass:L.mass,stiffness:D,damping:w}}else{const B=CC(A);g={...g,...B,mass:L.mass},g.isResolvedFromDuration=!0}return g}function te(A=L.visualDuration,g=L.bounce){const B=typeof A!="object"?{visualDuration:A,keyframes:[0,1],bounce:g}:A;let{restSpeed:M,restDelta:D}=B;const w=B.keyframes[0],e=B.keyframes[B.keyframes.length-1],C={done:!1,value:w},{stiffness:Q,damping:s,mass:i,duration:o,velocity:I,isResolvedFromDuration:n}=nC({...B,velocity:-rA(B.velocity||0)}),E=I||0,l=s/(2*Math.sqrt(Q*i)),a=e-w,G=rA(Math.sqrt(Q/i)),c=Math.abs(a)<5;M||(M=c?L.restSpeed.granular:L.restSpeed.default),D||(D=c?L.restDelta.granular:L.restDelta.default);let m;if(l<1){const Y=$B(G,l);m=d=>{const f=Math.exp(-l*G*d);return e-f*((E+l*G*a)/Y*Math.sin(Y*d)+a*Math.cos(Y*d))}}else if(l===1)m=Y=>e-Math.exp(-G*Y)*(a+(E+G*a)*Y);else{const Y=G*Math.sqrt(l*l-1);m=d=>{const f=Math.exp(-l*G*d),U=Math.min(Y*d,300);return e-f*((E+l*G*a)*Math.sinh(U)+Y*a*Math.cosh(U))/Y}}const K={calculatedDuration:n&&o||null,next:Y=>{const d=m(Y);if(n)C.done=Y>=o;else{let f=0;l<1&&(f=Y===0?iA(E):De(m,Y,d));const U=Math.abs(f)<=M,y=Math.abs(e-d)<=D;C.done=U&&y}return C.value=C.done?e:d,C},toString:()=>{const Y=Math.min(CD(K),fB),d=iD(f=>K.next(Y*f).value,Y,30);return Y+"ms "+d}};return K}function Qe({keyframes:A,velocity:g=0,power:B=.8,timeConstant:M=325,bounceDamping:D=10,bounceStiffness:w=500,modifyTarget:e,min:C,max:Q,restDelta:s=.5,restSpeed:i}){const o=A[0],I={done:!1,value:o},n=U=>C!==void 0&&U<C||Q!==void 0&&U>Q,E=U=>C===void 0?Q:Q===void 0||Math.abs(C-U)<Math.abs(Q-U)?C:Q;let l=B*g;const a=o+l,G=e===void 0?a:e(a);G!==a&&(l=G-o);const c=U=>-l*Math.exp(-U/M),m=U=>G+c(U),K=U=>{const y=c(U),Z=m(U);I.done=Math.abs(y)<=s,I.value=I.done?G:Z};let Y,d;const f=U=>{n(I.value)&&(Y=U,d=te({keyframes:[I.value,E(I.value)],velocity:De(m,U,I.value),damping:D,stiffness:w,restDelta:s,restSpeed:i}))};return f(0),{calculatedDuration:null,next:U=>{let y=!1;return!d&&Y===void 0&&(y=!0,K(U),f(U)),Y!==void 0&&U>=Y?d.next(U-Y):(!y&&K(U),I)}}}const rC=gg(.42,0,1,1),EC=gg(0,0,.58,1),Ce=gg(.42,0,.58,1),lC=A=>Array.isArray(A)&&typeof A[0]!="number",se={linear:$,easeIn:rC,easeInOut:Ce,easeOut:EC,circIn:vB,circInOut:KD,circOut:kD,backIn:zB,backInOut:dD,backOut:VD,anticipate:qD},ie=A=>{if(VB(A)){sA(A.length===4,"Cubic bezier arrays must contain four numerical values.");const[g,B,M,D]=A;return gg(g,B,M,D)}else if(typeof A=="string")return sA(se[A]!==void 0,`Invalid easing type '${A}'`),se[A];return A};function aC(A,g,B){const M=[],D=B||Me,w=A.length-1;for(let e=0;e<w;e++){let C=D(A[e],A[e+1]);if(g){const Q=Array.isArray(g)?g[e]||$:g;C=Dg(Q,C)}M.push(C)}return M}function GC(A,g,{clamp:B=!0,ease:M,mixer:D}={}){const w=A.length;if(sA(w===g.length,"Both input and output ranges must be the same length"),w===1)return()=>g[0];if(w===2&&g[0]===g[1])return()=>g[1];const e=A[0]===A[1];A[0]>A[w-1]&&(A=[...A].reverse(),g=[...g].reverse());const C=aC(g,M,D),Q=C.length,s=i=>{if(e&&i<A[0])return g[0];let o=0;if(Q>1)for(;o<A.length-2&&!(i<A[o+1]);o++);const I=JA(A[o],A[o+1],i);return C[o](I)};return B?i=>s(EA(A[0],A[w-1],i)):s}function cC(A,g){const B=A[A.length-1];for(let M=1;M<=g;M++){const D=JA(0,g,M);A.push(P(B,1,D))}}function YC(A){const g=[0];return cC(g,A.length-1),g}function yC(A,g){return A.map(B=>B*g)}function uC(A,g){return A.map(()=>g||Ce).splice(0,A.length-1)}function kg({duration:A=300,keyframes:g,times:B,ease:M="easeInOut"}){const D=lC(M)?M.map(ie):ie(M),w={done:!1,value:g[0]},e=yC(B&&B.length===g.length?B:YC(g),A),C=GC(e,g,{ease:Array.isArray(D)?D:uC(g,D)});return{calculatedDuration:A,next:Q=>(w.value=C(Q),w.done=Q>=A,w)}}const mC=A=>{const g=({timestamp:B})=>A(B);return{start:()=>z.update(g,!0),stop:()=>GA(g),now:()=>H.isProcessing?H.timestamp:IA.now()}},UC={decay:Qe,inertia:Qe,tween:kg,keyframes:kg,spring:te},fC=A=>A/100;class _B extends _D{constructor(g){super(g),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:Q}=this.options;Q&&Q()};const{name:B,motionValue:M,element:D,keyframes:w}=this.options,e=(D==null?void 0:D.KeyframeResolver)||SB,C=(Q,s)=>this.onKeyframesResolved(Q,s);this.resolver=new e(w,C,B,M,D),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(g){const{type:B="keyframes",repeat:M=0,repeatDelay:D=0,repeatType:w,velocity:e=0}=this.options,C=ZB(B)?B:UC[B]||kg;let Q,s;C!==kg&&typeof g[0]!="number"&&(process.env.NODE_ENV!=="production"&&sA(g.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${g}`),Q=Dg(fC,Me(g[0],g[1])),g=[0,100]);const i=C({...this.options,keyframes:g});w==="mirror"&&(s=C({...this.options,keyframes:[...g].reverse(),velocity:-e})),i.calculatedDuration===null&&(i.calculatedDuration=CD(i));const{calculatedDuration:o}=i,I=o+D,n=I*(M+1)-D;return{generator:i,mirroredGenerator:s,mapPercentToKeyframes:Q,calculatedDuration:o,resolvedDuration:I,totalDuration:n}}onPostResolved(){const{autoplay:g=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!g?this.pause():this.state=this.pendingPlayState}tick(g,B=!1){const{resolved:M}=this;if(!M){const{keyframes:U}=this.options;return{done:!0,value:U[U.length-1]}}const{finalKeyframe:D,generator:w,mirroredGenerator:e,mapPercentToKeyframes:C,keyframes:Q,calculatedDuration:s,totalDuration:i,resolvedDuration:o}=M;if(this.startTime===null)return w.next(0);const{delay:I,repeat:n,repeatType:E,repeatDelay:l,onUpdate:a}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,g):this.speed<0&&(this.startTime=Math.min(g-i/this.speed,this.startTime)),B?this.currentTime=g:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(g-this.startTime)*this.speed;const G=this.currentTime-I*(this.speed>=0?1:-1),c=this.speed>=0?G<0:G>i;this.currentTime=Math.max(G,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let m=this.currentTime,K=w;if(n){const U=Math.min(this.currentTime,i)/o;let y=Math.floor(U),Z=U%1;!Z&&U>=1&&(Z=1),Z===1&&y--,y=Math.min(y,n+1),!!(y%2)&&(E==="reverse"?(Z=1-Z,l&&(Z-=l/o)):E==="mirror"&&(K=e)),m=EA(0,1,Z)*o}const Y=c?{done:!1,value:Q[0]}:K.next(m);C&&(Y.value=C(Y.value));let{done:d}=Y;!c&&s!==null&&(d=this.speed>=0?this.currentTime>=i:this.currentTime<=0);const f=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&d);return f&&D!==void 0&&(Y.value=dg(Q,this.options,D)),a&&a(Y.value),f&&this.finish(),Y}get duration(){const{resolved:g}=this;return g?rA(g.calculatedDuration):0}get time(){return rA(this.currentTime)}set time(g){g=iA(g),this.currentTime=g,this.holdTime!==null||this.speed===0?this.holdTime=g:this.driver&&(this.startTime=this.driver.now()-g/this.speed)}get speed(){return this.playbackSpeed}set speed(g){const B=this.playbackSpeed!==g;this.playbackSpeed=g,B&&(this.time=rA(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:g=mC,onPlay:B,startTime:M}=this.options;this.driver||(this.driver=g(w=>this.tick(w))),B&&B();const D=this.driver.now();this.holdTime!==null?this.startTime=D-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=D):this.startTime=M??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var g;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(g=this.currentTime)!==null&&g!==void 0?g:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:g}=this.options;g&&g()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(g){return this.startTime=0,this.tick(g,!0)}}const ZC=new Set(["opacity","clipPath","filter","transform"]);function VC(A,g,B,{delay:M=0,duration:D=300,repeat:w=0,repeatType:e="loop",ease:C="easeInOut",times:Q}={}){const s={[g]:B};Q&&(s.offset=Q);const i=ID(C,D);return Array.isArray(i)&&(s.easing=i),A.animate(s,{delay:M,duration:D,easing:Array.isArray(i)?"linear":i,fill:"both",iterations:w+1,direction:e==="reverse"?"alternate":"normal"})}const dC=CB(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Kg=10,qC=2e4;function kC(A){return ZB(A.type)||A.type==="spring"||!oD(A.ease)}function KC(A,g){const B=new _B({...g,keyframes:A,repeat:0,delay:0,isGenerator:!0});let M={done:!1,value:A[0]};const D=[];let w=0;for(;!M.done&&w<qC;)M=B.sample(w),D.push(M.value),w+=Kg;return{times:void 0,keyframes:D,duration:w-Kg,ease:"linear"}}const oe={anticipate:qD,backInOut:dD,circInOut:KD};function pC(A){return A in oe}class Ie extends _D{constructor(g){super(g);const{name:B,motionValue:M,element:D,keyframes:w}=this.options;this.resolver=new WD(w,(e,C)=>this.onKeyframesResolved(e,C),B,M,D),this.resolver.scheduleResolve()}initPlayback(g,B){let{duration:M=300,times:D,ease:w,type:e,motionValue:C,name:Q,startTime:s}=this.options;if(!C.owner||!C.owner.current)return!1;if(typeof w=="string"&&Zg()&&pC(w)&&(w=oe[w]),kC(this.options)){const{onComplete:o,onUpdate:I,motionValue:n,element:E,...l}=this.options,a=KC(g,l);g=a.keyframes,g.length===1&&(g[1]=g[0]),M=a.duration,D=a.times,w=a.ease,e="keyframes"}const i=VC(C.owner.current,Q,g,{...this.options,duration:M,times:D,ease:w});return i.startTime=s??this.calcStartTime(),this.pendingTimeline?(sD(i,this.pendingTimeline),this.pendingTimeline=void 0):i.onfinish=()=>{const{onComplete:o}=this.options;C.set(dg(g,this.options,B)),o&&o(),this.cancel(),this.resolveFinishedPromise()},{animation:i,duration:M,times:D,type:e,ease:w,keyframes:g}}get duration(){const{resolved:g}=this;if(!g)return 0;const{duration:B}=g;return rA(B)}get time(){const{resolved:g}=this;if(!g)return 0;const{animation:B}=g;return rA(B.currentTime||0)}set time(g){const{resolved:B}=this;if(!B)return;const{animation:M}=B;M.currentTime=iA(g)}get speed(){const{resolved:g}=this;if(!g)return 1;const{animation:B}=g;return B.playbackRate}set speed(g){const{resolved:B}=this;if(!B)return;const{animation:M}=B;M.playbackRate=g}get state(){const{resolved:g}=this;if(!g)return"idle";const{animation:B}=g;return B.playState}get startTime(){const{resolved:g}=this;if(!g)return null;const{animation:B}=g;return B.startTime}attachTimeline(g){if(!this._resolved)this.pendingTimeline=g;else{const{resolved:B}=this;if(!B)return $;const{animation:M}=B;sD(M,g)}return $}play(){if(this.isStopped)return;const{resolved:g}=this;if(!g)return;const{animation:B}=g;B.playState==="finished"&&this.updateFinishedPromise(),B.play()}pause(){const{resolved:g}=this;if(!g)return;const{animation:B}=g;B.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:g}=this;if(!g)return;const{animation:B,keyframes:M,duration:D,type:w,ease:e,times:C}=g;if(B.playState==="idle"||B.playState==="finished")return;if(this.time){const{motionValue:s,onUpdate:i,onComplete:o,element:I,...n}=this.options,E=new _B({...n,keyframes:M,duration:D,type:w,ease:e,times:C,isGenerator:!0}),l=iA(this.time);s.setWithVelocity(E.sample(l-Kg).value,E.sample(l).value,Kg)}const{onStop:Q}=this.options;Q&&Q(),this.cancel()}complete(){const{resolved:g}=this;g&&g.animation.finish()}cancel(){const{resolved:g}=this;g&&g.animation.cancel()}static supports(g){const{motionValue:B,name:M,repeatDelay:D,repeatType:w,damping:e,type:C}=g;if(!B||!B.owner||!(B.owner.current instanceof HTMLElement))return!1;const{onUpdate:Q,transformTemplate:s}=B.owner.getProps();return dC()&&M&&ZC.has(M)&&!Q&&!s&&!D&&w!=="mirror"&&e!==0&&C!=="inertia"}}const hC={type:"spring",stiffness:500,damping:25,restSpeed:10},RC=A=>({type:"spring",stiffness:550,damping:A===0?2*Math.sqrt(550):30,restSpeed:10}),JC={type:"keyframes",duration:.8},zC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},vC=(A,{keyframes:g})=>g.length>2?JC:UA.has(A)?A.startsWith("scale")?RC(g[1]):hC:zC;function PC({when:A,delay:g,delayChildren:B,staggerChildren:M,staggerDirection:D,repeat:w,repeatType:e,repeatDelay:C,from:Q,elapsed:s,...i}){return!!Object.keys(i).length}const AM=(A,g,B,M={},D,w)=>e=>{const C=UB(M,A)||{},Q=C.delay||M.delay||0;let{elapsed:s=0}=M;s=s-iA(Q);let i={keyframes:Array.isArray(B)?B:[null,B],ease:"easeOut",velocity:g.getVelocity(),...C,delay:-s,onUpdate:I=>{g.set(I),C.onUpdate&&C.onUpdate(I)},onComplete:()=>{e(),C.onComplete&&C.onComplete()},name:A,motionValue:g,element:w?void 0:D};PC(C)||(i={...i,...vC(A,i)}),i.duration&&(i.duration=iA(i.duration)),i.repeatDelay&&(i.repeatDelay=iA(i.repeatDelay)),i.from!==void 0&&(i.keyframes[0]=i.from);let o=!1;if((i.type===!1||i.duration===0&&!i.repeatDelay)&&(i.duration=0,i.delay===0&&(o=!0)),o&&!w&&g.get()!==void 0){const I=dg(i.keyframes,C);if(I!==void 0)return z.update(()=>{i.onUpdate(I),i.onComplete()}),new tQ([])}return!w&&Ie.supports(i)?new Ie(i):new _B(i)};function LC({protectedKeys:A,needsAnimating:g},B){const M=A.hasOwnProperty(B)&&g[B]!==!0;return g[B]=!1,M}function ne(A,g,{delay:B=0,transitionOverride:M,type:D}={}){var w;let{transition:e=A.getDefaultTransition(),transitionEnd:C,...Q}=g;M&&(e=M);const s=[],i=D&&A.animationState&&A.animationState.getState()[D];for(const o in Q){const I=A.getValue(o,(w=A.latestValues[o])!==null&&w!==void 0?w:null),n=Q[o];if(n===void 0||i&&LC(i,o))continue;const E={delay:B,...UB(e||{},o)};let l=!1;if(window.MotionHandoffAnimation){const G=mD(A);if(G){const c=window.MotionHandoffAnimation(G,o,z);c!==null&&(E.startTime=c,l=!0)}}JB(A,o),I.start(AM(o,I,n,A.shouldReduceMotion&&YD.has(o)?{type:!1}:E,A,l));const a=I.animation;a&&s.push(a)}return C&&Promise.all(s).then(()=>{z.update(()=>{C&&RB(A,C)})}),s}function gM(A,g,B={}){var M;const D=fg(A,g,B.type==="exit"?(M=A.presenceContext)===null||M===void 0?void 0:M.custom:void 0);let{transition:w=A.getDefaultTransition()||{}}=D||{};B.transitionOverride&&(w=B.transitionOverride);const e=D?()=>Promise.all(ne(A,D,B)):()=>Promise.resolve(),C=A.variantChildren&&A.variantChildren.size?(s=0)=>{const{delayChildren:i=0,staggerChildren:o,staggerDirection:I}=w;return FC(A,g,i+s,o,I,B)}:()=>Promise.resolve(),{when:Q}=w;if(Q){const[s,i]=Q==="beforeChildren"?[e,C]:[C,e];return s().then(()=>i())}else return Promise.all([e(),C(B.delay)])}function FC(A,g,B=0,M=0,D=1,w){const e=[],C=(A.variantChildren.size-1)*M,Q=D===1?(s=0)=>s*M:(s=0)=>C-s*M;return Array.from(A.variantChildren).sort(bC).forEach((s,i)=>{s.notify("AnimationStart",g),e.push(gM(s,g,{...w,delay:B+Q(i)}).then(()=>s.notify("AnimationComplete",g)))}),Promise.all(e)}function bC(A,g){return A.sortNodePosition(g)}function re(A,g,B={}){A.notify("AnimationStart",g);let M;if(Array.isArray(g)){const D=g.map(w=>gM(A,w,B));M=Promise.all(D)}else if(typeof g=="string")M=gM(A,g,B);else{const D=typeof g=="function"?fg(A,g,B.custom):g;M=Promise.all(ne(A,D,B))}return M.then(()=>{A.notify("AnimationComplete",g)})}const OC=oB.length;function Ee(A){if(!A)return;if(!A.isControllingVariants){const B=A.parent?Ee(A.parent)||{}:{};return A.props.initial!==void 0&&(B.initial=A.props.initial),B}const g={};for(let B=0;B<OC;B++){const M=oB[B],D=A.props[M];(NA(D)||D===!1)&&(g[M]=D)}return g}const jC=[...iB].reverse(),HC=iB.length;function TC(A){return g=>Promise.all(g.map(({animation:B,options:M})=>re(A,B,M)))}function SC(A){let g=TC(A),B=le(),M=!0;const D=Q=>(s,i)=>{var o;const I=fg(A,i,Q==="exit"?(o=A.presenceContext)===null||o===void 0?void 0:o.custom:void 0);if(I){const{transition:n,transitionEnd:E,...l}=I;s={...s,...l,...E}}return s};function w(Q){g=Q(A)}function e(Q){const{props:s}=A,i=Ee(A.parent)||{},o=[],I=new Set;let n={},E=1/0;for(let a=0;a<HC;a++){const G=jC[a],c=B[G],m=s[G]!==void 0?s[G]:i[G],K=NA(m),Y=G===Q?c.isActive:null;Y===!1&&(E=a);let d=m===i[G]&&m!==s[G]&&K;if(d&&M&&A.manuallyAnimateOnMount&&(d=!1),c.protectedKeys={...n},!c.isActive&&Y===null||!m&&!c.prevProp||Yg(m)||typeof m=="boolean")continue;const f=xC(c.prevProp,m);let U=f||G===Q&&c.isActive&&!d&&K||a>E&&K,y=!1;const Z=Array.isArray(m)?m:[m];let k=Z.reduce(D(G),{});Y===!1&&(k={});const{prevResolvedValues:h={}}=c,F={...h,...k},N=j=>{U=!0,I.has(j)&&(y=!0,I.delete(j)),c.needsAnimating[j]=!0;const _=A.getValue(j);_&&(_.liveStyle=!1)};for(const j in F){const _=k[j],lA=h[j];if(n.hasOwnProperty(j))continue;let KA=!1;lB(_)&&lB(lA)?KA=!QD(_,lA):KA=_!==lA,KA?_!=null?N(j):I.add(j):_!==void 0&&I.has(j)?N(j):c.protectedKeys[j]=!0}c.prevProp=m,c.prevResolvedValues=k,c.isActive&&(n={...n,...k}),M&&A.blockInitialAnimation&&(U=!1),U&&(!(d&&f)||y)&&o.push(...Z.map(j=>({animation:j,options:{type:G}})))}if(I.size){const a={};I.forEach(G=>{const c=A.getBaseTarget(G),m=A.getValue(G);m&&(m.liveStyle=!0),a[G]=c??null}),o.push({animation:a})}let l=!!o.length;return M&&(s.initial===!1||s.initial===s.animate)&&!A.manuallyAnimateOnMount&&(l=!1),M=!1,l?g(o):Promise.resolve()}function C(Q,s){var i;if(B[Q].isActive===s)return Promise.resolve();(i=A.variantChildren)===null||i===void 0||i.forEach(I=>{var n;return(n=I.animationState)===null||n===void 0?void 0:n.setActive(Q,s)}),B[Q].isActive=s;const o=e(Q);for(const I in B)B[I].protectedKeys={};return o}return{animateChanges:e,setActive:C,setAnimateFunction:w,getState:()=>B,reset:()=>{B=le(),M=!0}}}function xC(A,g){return typeof g=="string"?g!==A:Array.isArray(g)?!QD(g,A):!1}function VA(A=!1){return{isActive:A,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function le(){return{animate:VA(!0),whileInView:VA(),whileHover:VA(),whileTap:VA(),whileDrag:VA(),whileFocus:VA(),exit:VA()}}class yA{constructor(g){this.isMounted=!1,this.node=g}update(){}}class NC extends yA{constructor(g){super(g),g.animationState||(g.animationState=SC(g))}updateAnimationControlsSubscription(){const{animate:g}=this.node.getProps();Yg(g)&&(this.unmountControls=g.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:g}=this.node.getProps(),{animate:B}=this.node.prevProps||{};g!==B&&this.updateAnimationControlsSubscription()}unmount(){var g;this.node.animationState.reset(),(g=this.unmountControls)===null||g===void 0||g.call(this)}}let XC=0;class WC extends yA{constructor(){super(...arguments),this.id=XC++}update(){if(!this.node.presenceContext)return;const{isPresent:g,onExitComplete:B}=this.node.presenceContext,{isPresent:M}=this.node.prevPresenceContext||{};if(!this.node.animationState||g===M)return;const D=this.node.animationState.setActive("exit",!g);B&&!g&&D.then(()=>B(this.id))}mount(){const{register:g}=this.node.presenceContext||{};g&&(this.unmount=g(this.id))}unmount(){}}const $C={animation:{Feature:NC},exit:{Feature:WC}};function eg(A,g,B,M={passive:!0}){return A.addEventListener(g,B,M),()=>A.removeEventListener(g,B)}function wg(A){return{point:{x:A.pageX,y:A.pageY}}}const _C=A=>g=>qB(g)&&A(g,wg(g));function tg(A,g,B,M){return eg(A,g,_C(B),M)}const ae=(A,g)=>Math.abs(A-g);function As(A,g){const B=ae(A.x,g.x),M=ae(A.y,g.y);return Math.sqrt(B**2+M**2)}class Ge{constructor(g,B,{transformPagePoint:M,contextWindow:D,dragSnapToOrigin:w=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const o=MM(this.lastMoveEventInfo,this.history),I=this.startEvent!==null,n=As(o.offset,{x:0,y:0})>=3;if(!I&&!n)return;const{point:E}=o,{timestamp:l}=H;this.history.push({...E,timestamp:l});const{onStart:a,onMove:G}=this.handlers;I||(a&&a(this.lastMoveEvent,o),this.startEvent=this.lastMoveEvent),G&&G(this.lastMoveEvent,o)},this.handlePointerMove=(o,I)=>{this.lastMoveEvent=o,this.lastMoveEventInfo=BM(I,this.transformPagePoint),z.update(this.updatePoint,!0)},this.handlePointerUp=(o,I)=>{this.end();const{onEnd:n,onSessionEnd:E,resumeAnimation:l}=this.handlers;if(this.dragSnapToOrigin&&l&&l(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const a=MM(o.type==="pointercancel"?this.lastMoveEventInfo:BM(I,this.transformPagePoint),this.history);this.startEvent&&n&&n(o,a),E&&E(o,a)},!qB(g))return;this.dragSnapToOrigin=w,this.handlers=B,this.transformPagePoint=M,this.contextWindow=D||window;const e=wg(g),C=BM(e,this.transformPagePoint),{point:Q}=C,{timestamp:s}=H;this.history=[{...Q,timestamp:s}];const{onSessionStart:i}=B;i&&i(g,MM(C,this.history)),this.removeListeners=Dg(tg(this.contextWindow,"pointermove",this.handlePointerMove),tg(this.contextWindow,"pointerup",this.handlePointerUp),tg(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(g){this.handlers=g}end(){this.removeListeners&&this.removeListeners(),GA(this.updatePoint)}}function BM(A,g){return g?{point:g(A.point)}:A}function ce(A,g){return{x:A.x-g.x,y:A.y-g.y}}function MM({point:A},g){return{point:A,delta:ce(A,Ye(g)),offset:ce(A,gs(g)),velocity:Bs(g,.1)}}function gs(A){return A[0]}function Ye(A){return A[A.length-1]}function Bs(A,g){if(A.length<2)return{x:0,y:0};let B=A.length-1,M=null;const D=Ye(A);for(;B>=0&&(M=A[B],!(D.timestamp-M.timestamp>iA(g)));)B--;if(!M)return{x:0,y:0};const w=rA(D.timestamp-M.timestamp);if(w===0)return{x:0,y:0};const e={x:(D.x-M.x)/w,y:(D.y-M.y)/w};return e.x===1/0&&(e.x=0),e.y===1/0&&(e.y=0),e}const ye=1e-4,Ms=1-ye,Ds=1+ye,ue=.01,es=0-ue,ws=0+ue;function AA(A){return A.max-A.min}function ts(A,g,B){return Math.abs(A-g)<=B}function me(A,g,B,M=.5){A.origin=M,A.originPoint=P(g.min,g.max,A.origin),A.scale=AA(B)/AA(g),A.translate=P(B.min,B.max,A.origin)-A.originPoint,(A.scale>=Ms&&A.scale<=Ds||isNaN(A.scale))&&(A.scale=1),(A.translate>=es&&A.translate<=ws||isNaN(A.translate))&&(A.translate=0)}function Qg(A,g,B,M){me(A.x,g.x,B.x,M?M.originX:void 0),me(A.y,g.y,B.y,M?M.originY:void 0)}function Ue(A,g,B){A.min=B.min+g.min,A.max=A.min+AA(g)}function Qs(A,g,B){Ue(A.x,g.x,B.x),Ue(A.y,g.y,B.y)}function fe(A,g,B){A.min=g.min-B.min,A.max=A.min+AA(g)}function Cg(A,g,B){fe(A.x,g.x,B.x),fe(A.y,g.y,B.y)}function Cs(A,{min:g,max:B},M){return g!==void 0&&A<g?A=M?P(g,A,M.min):Math.max(A,g):B!==void 0&&A>B&&(A=M?P(B,A,M.max):Math.min(A,B)),A}function Ze(A,g,B){return{min:g!==void 0?A.min+g:void 0,max:B!==void 0?A.max+B-(A.max-A.min):void 0}}function ss(A,{top:g,left:B,bottom:M,right:D}){return{x:Ze(A.x,B,D),y:Ze(A.y,g,M)}}function Ve(A,g){let B=g.min-A.min,M=g.max-A.max;return g.max-g.min<A.max-A.min&&([B,M]=[M,B]),{min:B,max:M}}function is(A,g){return{x:Ve(A.x,g.x),y:Ve(A.y,g.y)}}function os(A,g){let B=.5;const M=AA(A),D=AA(g);return D>M?B=JA(g.min,g.max-M,A.min):M>D&&(B=JA(A.min,A.max-D,g.min)),EA(0,1,B)}function Is(A,g){const B={};return g.min!==void 0&&(B.min=g.min-A.min),g.max!==void 0&&(B.max=g.max-A.min),B}const DM=.35;function ns(A=DM){return A===!1?A=0:A===!0&&(A=DM),{x:de(A,"left","right"),y:de(A,"top","bottom")}}function de(A,g,B){return{min:qe(A,g),max:qe(A,B)}}function qe(A,g){return typeof A=="number"?A:A[g]||0}const ke=()=>({translate:0,scale:1,origin:0,originPoint:0}),OA=()=>({x:ke(),y:ke()}),Ke=()=>({min:0,max:0}),O=()=>({x:Ke(),y:Ke()});function BA(A){return[A("x"),A("y")]}function pe({top:A,left:g,right:B,bottom:M}){return{x:{min:g,max:B},y:{min:A,max:M}}}function rs({x:A,y:g}){return{top:g.min,right:A.max,bottom:g.max,left:A.min}}function Es(A,g){if(!g)return A;const B=g({x:A.left,y:A.top}),M=g({x:A.right,y:A.bottom});return{top:B.y,left:B.x,bottom:M.y,right:M.x}}function eM(A){return A===void 0||A===1}function wM({scale:A,scaleX:g,scaleY:B}){return!eM(A)||!eM(g)||!eM(B)}function dA(A){return wM(A)||he(A)||A.z||A.rotate||A.rotateX||A.rotateY||A.skewX||A.skewY}function he(A){return Re(A.x)||Re(A.y)}function Re(A){return A&&A!=="0%"}function pg(A,g,B){const M=A-B,D=g*M;return B+D}function Je(A,g,B,M,D){return D!==void 0&&(A=pg(A,D,M)),pg(A,B,M)+g}function tM(A,g=0,B=1,M,D){A.min=Je(A.min,g,B,M,D),A.max=Je(A.max,g,B,M,D)}function ze(A,{x:g,y:B}){tM(A.x,g.translate,g.scale,g.originPoint),tM(A.y,B.translate,B.scale,B.originPoint)}const ve=.999999999999,Pe=1.0000000000001;function ls(A,g,B,M=!1){const D=B.length;if(!D)return;g.x=g.y=1;let w,e;for(let C=0;C<D;C++){w=B[C],e=w.projectionDelta;const{visualElement:Q}=w.options;Q&&Q.props.style&&Q.props.style.display==="contents"||(M&&w.options.layoutScroll&&w.scroll&&w!==w.root&&HA(A,{x:-w.scroll.offset.x,y:-w.scroll.offset.y}),e&&(g.x*=e.x.scale,g.y*=e.y.scale,ze(A,e)),M&&dA(w.latestValues)&&HA(A,w.latestValues))}g.x<Pe&&g.x>ve&&(g.x=1),g.y<Pe&&g.y>ve&&(g.y=1)}function jA(A,g){A.min=A.min+g,A.max=A.max+g}function Le(A,g,B,M,D=.5){const w=P(A.min,A.max,D);tM(A,g,B,w,M)}function HA(A,g){Le(A.x,g.x,g.scaleX,g.scale,g.originX),Le(A.y,g.y,g.scaleY,g.scale,g.originY)}function Fe(A,g){return pe(Es(A.getBoundingClientRect(),g))}function as(A,g,B){const M=Fe(A,B),{scroll:D}=g;return D&&(jA(M.x,D.offset.x),jA(M.y,D.offset.y)),M}const be=({current:A})=>A?A.ownerDocument.defaultView:null,Gs=new WeakMap;class cs{constructor(g){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=O(),this.visualElement=g}start(g,{snapToCursor:B=!1}={}){const{presenceContext:M}=this.visualElement;if(M&&M.isPresent===!1)return;const D=i=>{const{dragSnapToOrigin:o}=this.getProps();o?this.pauseAnimation():this.stopAnimation(),B&&this.snapToCursor(wg(i).point)},w=(i,o)=>{const{drag:I,dragPropagation:n,onDragStart:E}=this.getProps();if(I&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=rQ(I),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),BA(a=>{let G=this.getAxisMotionValue(a).get()||0;if(oA.test(G)){const{projection:c}=this.visualElement;if(c&&c.layout){const m=c.layout.layoutBox[a];m&&(G=AA(m)*(parseFloat(G)/100))}}this.originPoint[a]=G}),E&&z.postRender(()=>E(i,o)),JB(this.visualElement,"transform");const{animationState:l}=this.visualElement;l&&l.setActive("whileDrag",!0)},e=(i,o)=>{const{dragPropagation:I,dragDirectionLock:n,onDirectionLock:E,onDrag:l}=this.getProps();if(!I&&!this.openDragLock)return;const{offset:a}=o;if(n&&this.currentDirection===null){this.currentDirection=Ys(a),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",o.point,a),this.updateAxis("y",o.point,a),this.visualElement.render(),l&&l(i,o)},C=(i,o)=>this.stop(i,o),Q=()=>BA(i=>{var o;return this.getAnimationState(i)==="paused"&&((o=this.getAxisMotionValue(i).animation)===null||o===void 0?void 0:o.play())}),{dragSnapToOrigin:s}=this.getProps();this.panSession=new Ge(g,{onSessionStart:D,onStart:w,onMove:e,onSessionEnd:C,resumeAnimation:Q},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:be(this.visualElement)})}stop(g,B){const M=this.isDragging;if(this.cancel(),!M)return;const{velocity:D}=B;this.startAnimation(D);const{onDragEnd:w}=this.getProps();w&&z.postRender(()=>w(g,B))}cancel(){this.isDragging=!1;const{projection:g,animationState:B}=this.visualElement;g&&(g.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:M}=this.getProps();!M&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),B&&B.setActive("whileDrag",!1)}updateAxis(g,B,M){const{drag:D}=this.getProps();if(!M||!hg(g,D,this.currentDirection))return;const w=this.getAxisMotionValue(g);let e=this.originPoint[g]+M[g];this.constraints&&this.constraints[g]&&(e=Cs(e,this.constraints[g],this.elastic[g])),w.set(e)}resolveConstraints(){var g;const{dragConstraints:B,dragElastic:M}=this.getProps(),D=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(g=this.visualElement.projection)===null||g===void 0?void 0:g.layout,w=this.constraints;B&&vA(B)?this.constraints||(this.constraints=this.resolveRefConstraints()):B&&D?this.constraints=ss(D.layoutBox,B):this.constraints=!1,this.elastic=ns(M),w!==this.constraints&&D&&this.constraints&&!this.hasMutatedConstraints&&BA(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Is(D.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:g,onMeasureDragConstraints:B}=this.getProps();if(!g||!vA(g))return!1;const M=g.current;sA(M!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:D}=this.visualElement;if(!D||!D.layout)return!1;const w=as(M,D.root,this.visualElement.getTransformPagePoint());let e=is(D.layout.layoutBox,w);if(B){const C=B(rs(e));this.hasMutatedConstraints=!!C,C&&(e=pe(C))}return e}startAnimation(g){const{drag:B,dragMomentum:M,dragElastic:D,dragTransition:w,dragSnapToOrigin:e,onDragTransitionEnd:C}=this.getProps(),Q=this.constraints||{},s=BA(i=>{if(!hg(i,B,this.currentDirection))return;let o=Q[i]||{};e&&(o={min:0,max:0});const I=D?200:1e6,n=D?40:1e7,E={type:"inertia",velocity:M?g[i]:0,bounceStiffness:I,bounceDamping:n,timeConstant:750,restDelta:1,restSpeed:10,...w,...o};return this.startAxisValueAnimation(i,E)});return Promise.all(s).then(C)}startAxisValueAnimation(g,B){const M=this.getAxisMotionValue(g);return JB(this.visualElement,g),M.start(AM(g,M,0,B,this.visualElement,!1))}stopAnimation(){BA(g=>this.getAxisMotionValue(g).stop())}pauseAnimation(){BA(g=>{var B;return(B=this.getAxisMotionValue(g).animation)===null||B===void 0?void 0:B.pause()})}getAnimationState(g){var B;return(B=this.getAxisMotionValue(g).animation)===null||B===void 0?void 0:B.state}getAxisMotionValue(g){const B=`_drag${g.toUpperCase()}`,M=this.visualElement.getProps(),D=M[B];return D||this.visualElement.getValue(g,(M.initial?M.initial[g]:void 0)||0)}snapToCursor(g){BA(B=>{const{drag:M}=this.getProps();if(!hg(B,M,this.currentDirection))return;const{projection:D}=this.visualElement,w=this.getAxisMotionValue(B);if(D&&D.layout){const{min:e,max:C}=D.layout.layoutBox[B];w.set(g[B]-P(e,C,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:g,dragConstraints:B}=this.getProps(),{projection:M}=this.visualElement;if(!vA(B)||!M||!this.constraints)return;this.stopAnimation();const D={x:0,y:0};BA(e=>{const C=this.getAxisMotionValue(e);if(C&&this.constraints!==!1){const Q=C.get();D[e]=os({min:Q,max:Q},this.constraints[e])}});const{transformTemplate:w}=this.visualElement.getProps();this.visualElement.current.style.transform=w?w({},""):"none",M.root&&M.root.updateScroll(),M.updateLayout(),this.resolveConstraints(),BA(e=>{if(!hg(e,g,null))return;const C=this.getAxisMotionValue(e),{min:Q,max:s}=this.constraints[e];C.set(P(Q,s,D[e]))})}addListeners(){if(!this.visualElement.current)return;Gs.set(this.visualElement,this);const g=this.visualElement.current,B=tg(g,"pointerdown",Q=>{const{drag:s,dragListener:i=!0}=this.getProps();s&&i&&this.start(Q)}),M=()=>{const{dragConstraints:Q}=this.getProps();vA(Q)&&Q.current&&(this.constraints=this.resolveRefConstraints())},{projection:D}=this.visualElement,w=D.addEventListener("measure",M);D&&!D.layout&&(D.root&&D.root.updateScroll(),D.updateLayout()),z.read(M);const e=eg(window,"resize",()=>this.scalePositionWithinConstraints()),C=D.addEventListener("didUpdate",({delta:Q,hasLayoutChanged:s})=>{this.isDragging&&s&&(BA(i=>{const o=this.getAxisMotionValue(i);o&&(this.originPoint[i]+=Q[i].translate,o.set(o.get()+Q[i].translate))}),this.visualElement.render())});return()=>{e(),B(),w(),C&&C()}}getProps(){const g=this.visualElement.getProps(),{drag:B=!1,dragDirectionLock:M=!1,dragPropagation:D=!1,dragConstraints:w=!1,dragElastic:e=DM,dragMomentum:C=!0}=g;return{...g,drag:B,dragDirectionLock:M,dragPropagation:D,dragConstraints:w,dragElastic:e,dragMomentum:C}}}function hg(A,g,B){return(g===!0||g===A)&&(B===null||B===A)}function Ys(A,g=10){let B=null;return Math.abs(A.y)>g?B="y":Math.abs(A.x)>g&&(B="x"),B}class ys extends yA{constructor(g){super(g),this.removeGroupControls=$,this.removeListeners=$,this.controls=new cs(g)}mount(){const{dragControls:g}=this.node.getProps();g&&(this.removeGroupControls=g.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$}unmount(){this.removeGroupControls(),this.removeListeners()}}const Oe=A=>(g,B)=>{A&&z.postRender(()=>A(g,B))};class us extends yA{constructor(){super(...arguments),this.removePointerDownListener=$}onPointerDown(g){this.session=new Ge(g,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:be(this.node)})}createPanHandlers(){const{onPanSessionStart:g,onPanStart:B,onPan:M,onPanEnd:D}=this.node.getProps();return{onSessionStart:Oe(g),onStart:Oe(B),onMove:M,onEnd:(w,e)=>{delete this.session,D&&z.postRender(()=>D(w,e))}}}mount(){this.removePointerDownListener=tg(this.node.current,"pointerdown",g=>this.onPointerDown(g))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Rg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function je(A,g){return g.max===g.min?0:A/(g.max-g.min)*100}const sg={correct:(A,g)=>{if(!g.target)return A;if(typeof A=="string")if(V.test(A))A=parseFloat(A);else return A;const B=je(A,g.target.x),M=je(A,g.target.y);return`${B}% ${M}%`}},ms={correct:(A,{treeScale:g,projectionDelta:B})=>{const M=A,D=YA.parse(A);if(D.length>5)return M;const w=YA.createTransformer(A),e=typeof D[0]!="number"?1:0,C=B.x.scale*g.x,Q=B.y.scale*g.y;D[0+e]/=C,D[1+e]/=Q;const s=P(C,Q,.5);return typeof D[2+e]=="number"&&(D[2+e]/=s),typeof D[3+e]=="number"&&(D[3+e]/=s),w(D)}};class Us extends r.Component{componentDidMount(){const{visualElement:g,layoutGroup:B,switchLayoutGroup:M,layoutId:D}=this.props,{projection:w}=g;Nt(fs),w&&(B.group&&B.group.add(w),M&&M.register&&D&&M.register(w),w.root.didUpdate(),w.addEventListener("animationComplete",()=>{this.safeToRemove()}),w.setOptions({...w.options,onExitComplete:()=>this.safeToRemove()})),Rg.hasEverUpdated=!0}getSnapshotBeforeUpdate(g){const{layoutDependency:B,visualElement:M,drag:D,isPresent:w}=this.props,e=M.projection;return e&&(e.isPresent=w,D||g.layoutDependency!==B||B===void 0?e.willUpdate():this.safeToRemove(),g.isPresent!==w&&(w?e.promote():e.relegate()||z.postRender(()=>{const C=e.getStack();(!C||!C.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:g}=this.props.visualElement;g&&(g.root.didUpdate(),nB.postRender(()=>{!g.currentAnimation&&g.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:g,layoutGroup:B,switchLayoutGroup:M}=this.props,{projection:D}=g;D&&(D.scheduleCheckAfterUnmount(),B&&B.group&&B.group.remove(D),M&&M.deregister&&M.deregister(D))}safeToRemove(){const{safeToRemove:g}=this.props;g&&g()}render(){return null}}function He(A){const[g,B]=ot(),M=r.useContext(KM);return t.jsx(Us,{...A,layoutGroup:M,switchLayoutGroup:r.useContext(jM),isPresent:g,safeToRemove:B})}const fs={borderRadius:{...sg,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sg,borderTopRightRadius:sg,borderBottomLeftRadius:sg,borderBottomRightRadius:sg,boxShadow:ms};function Zs(A,g,B){const M=S(A)?A:Ag(A);return M.start(AM("",M,g,B)),M.animation}function Vs(A){return A instanceof SVGElement&&A.tagName!=="svg"}const ds=(A,g)=>A.depth-g.depth;class qs{constructor(){this.children=[],this.isDirty=!1}add(g){KB(this.children,g),this.isDirty=!0}remove(g){pB(this.children,g),this.isDirty=!0}forEach(g){this.isDirty&&this.children.sort(ds),this.isDirty=!1,this.children.forEach(g)}}function ks(A,g){const B=IA.now(),M=({timestamp:D})=>{const w=D-B;w>=g&&(GA(M),A(w-g))};return z.read(M,!0),()=>GA(M)}const Te=["TopLeft","TopRight","BottomLeft","BottomRight"],Ks=Te.length,Se=A=>typeof A=="string"?parseFloat(A):A,xe=A=>typeof A=="number"||V.test(A);function ps(A,g,B,M,D,w){D?(A.opacity=P(0,B.opacity!==void 0?B.opacity:1,hs(M)),A.opacityExit=P(g.opacity!==void 0?g.opacity:1,0,Rs(M))):w&&(A.opacity=P(g.opacity!==void 0?g.opacity:1,B.opacity!==void 0?B.opacity:1,M));for(let e=0;e<Ks;e++){const C=`border${Te[e]}Radius`;let Q=Ne(g,C),s=Ne(B,C);if(Q===void 0&&s===void 0)continue;Q||(Q=0),s||(s=0),Q===0||s===0||xe(Q)===xe(s)?(A[C]=Math.max(P(Se(Q),Se(s),M),0),(oA.test(s)||oA.test(Q))&&(A[C]+="%")):A[C]=s}(g.rotate||B.rotate)&&(A.rotate=P(g.rotate||0,B.rotate||0,M))}function Ne(A,g){return A[g]!==void 0?A[g]:A.borderRadius}const hs=Xe(0,.5,kD),Rs=Xe(.5,.95,$);function Xe(A,g,B){return M=>M<A?0:M>g?1:B(JA(A,g,M))}function We(A,g){A.min=g.min,A.max=g.max}function MA(A,g){We(A.x,g.x),We(A.y,g.y)}function $e(A,g){A.translate=g.translate,A.scale=g.scale,A.originPoint=g.originPoint,A.origin=g.origin}function _e(A,g,B,M,D){return A-=g,A=pg(A,1/B,M),D!==void 0&&(A=pg(A,1/D,M)),A}function Js(A,g=0,B=1,M=.5,D,w=A,e=A){if(oA.test(g)&&(g=parseFloat(g),g=P(e.min,e.max,g/100)-e.min),typeof g!="number")return;let C=P(w.min,w.max,M);A===w&&(C-=g),A.min=_e(A.min,g,B,C,D),A.max=_e(A.max,g,B,C,D)}function Aw(A,g,[B,M,D],w,e){Js(A,g[B],g[M],g[D],g.scale,w,e)}const zs=["x","scaleX","originX"],vs=["y","scaleY","originY"];function gw(A,g,B,M){Aw(A.x,g,zs,B?B.x:void 0,M?M.x:void 0),Aw(A.y,g,vs,B?B.y:void 0,M?M.y:void 0)}function Bw(A){return A.translate===0&&A.scale===1}function Mw(A){return Bw(A.x)&&Bw(A.y)}function Dw(A,g){return A.min===g.min&&A.max===g.max}function Ps(A,g){return Dw(A.x,g.x)&&Dw(A.y,g.y)}function ew(A,g){return Math.round(A.min)===Math.round(g.min)&&Math.round(A.max)===Math.round(g.max)}function ww(A,g){return ew(A.x,g.x)&&ew(A.y,g.y)}function tw(A){return AA(A.x)/AA(A.y)}function Qw(A,g){return A.translate===g.translate&&A.scale===g.scale&&A.originPoint===g.originPoint}class Ls{constructor(){this.members=[]}add(g){KB(this.members,g),g.scheduleRender()}remove(g){if(pB(this.members,g),g===this.prevLead&&(this.prevLead=void 0),g===this.lead){const B=this.members[this.members.length-1];B&&this.promote(B)}}relegate(g){const B=this.members.findIndex(D=>g===D);if(B===0)return!1;let M;for(let D=B;D>=0;D--){const w=this.members[D];if(w.isPresent!==!1){M=w;break}}return M?(this.promote(M),!0):!1}promote(g,B){const M=this.lead;if(g!==M&&(this.prevLead=M,this.lead=g,g.show(),M)){M.instance&&M.scheduleRender(),g.scheduleRender(),g.resumeFrom=M,B&&(g.resumeFrom.preserveOpacity=!0),M.snapshot&&(g.snapshot=M.snapshot,g.snapshot.latestValues=M.animationValues||M.latestValues),g.root&&g.root.isUpdating&&(g.isLayoutDirty=!0);const{crossfade:D}=g.options;D===!1&&M.hide()}}exitAnimationComplete(){this.members.forEach(g=>{const{options:B,resumingFrom:M}=g;B.onExitComplete&&B.onExitComplete(),M&&M.options.onExitComplete&&M.options.onExitComplete()})}scheduleRender(){this.members.forEach(g=>{g.instance&&g.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Fs(A,g,B){let M="";const D=A.x.translate/g.x,w=A.y.translate/g.y,e=(B==null?void 0:B.z)||0;if((D||w||e)&&(M=`translate3d(${D}px, ${w}px, ${e}px) `),(g.x!==1||g.y!==1)&&(M+=`scale(${1/g.x}, ${1/g.y}) `),B){const{transformPerspective:s,rotate:i,rotateX:o,rotateY:I,skewX:n,skewY:E}=B;s&&(M=`perspective(${s}px) ${M}`),i&&(M+=`rotate(${i}deg) `),o&&(M+=`rotateX(${o}deg) `),I&&(M+=`rotateY(${I}deg) `),n&&(M+=`skewX(${n}deg) `),E&&(M+=`skewY(${E}deg) `)}const C=A.x.scale*g.x,Q=A.y.scale*g.y;return(C!==1||Q!==1)&&(M+=`scale(${C}, ${Q})`),M||"none"}const qA={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ig=typeof window<"u"&&window.MotionDebug!==void 0,QM=["","X","Y","Z"],bs={visibility:"hidden"},Cw=1e3;let Os=0;function CM(A,g,B,M){const{latestValues:D}=g;D[A]&&(B[A]=D[A],g.setStaticValue(A,0),M&&(M[A]=0))}function sw(A){if(A.hasCheckedOptimisedAppear=!0,A.root===A)return;const{visualElement:g}=A.options;if(!g)return;const B=mD(g);if(window.MotionHasOptimisedAnimation(B,"transform")){const{layout:D,layoutId:w}=A.options;window.MotionCancelOptimisedAnimation(B,"transform",z,!(D||w))}const{parent:M}=A;M&&!M.hasCheckedOptimisedAppear&&sw(M)}function iw({attachResizeListener:A,defaultParent:g,measureScroll:B,checkIsScrollRoot:M,resetTransform:D}){return class{constructor(e={},C=g==null?void 0:g()){this.id=Os++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ig&&(qA.totalNodes=qA.resolvedTargetDeltas=qA.recalculatedProjection=0),this.nodes.forEach(Ts),this.nodes.forEach(Ws),this.nodes.forEach($s),this.nodes.forEach(Ss),ig&&window.MotionDebug.record(qA)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=C?C.root||C:this,this.path=C?[...C.path,C]:[],this.parent=C,this.depth=C?C.depth+1:0;for(let Q=0;Q<this.path.length;Q++)this.path[Q].shouldResetTransform=!0;this.root===this&&(this.nodes=new qs)}addEventListener(e,C){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new hB),this.eventHandlers.get(e).add(C)}notifyListeners(e,...C){const Q=this.eventHandlers.get(e);Q&&Q.notify(...C)}hasListeners(e){return this.eventHandlers.has(e)}mount(e,C=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Vs(e),this.instance=e;const{layoutId:Q,layout:s,visualElement:i}=this.options;if(i&&!i.current&&i.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),C&&(s||Q)&&(this.isLayoutDirty=!0),A){let o;const I=()=>this.root.updateBlockedByResize=!1;A(e,()=>{this.root.updateBlockedByResize=!0,o&&o(),o=ks(I,250),Rg.hasAnimatedSinceResize&&(Rg.hasAnimatedSinceResize=!1,this.nodes.forEach(Iw))})}Q&&this.root.registerSharedNode(Q,this),this.options.animate!==!1&&i&&(Q||s)&&this.addEventListener("didUpdate",({delta:o,hasLayoutChanged:I,hasRelativeLayoutChanged:n,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const l=this.options.transition||i.getDefaultTransition()||Mi,{onLayoutAnimationStart:a,onLayoutAnimationComplete:G}=i.getProps(),c=!this.targetLayout||!ww(this.targetLayout,E),m=!I&&n;if(this.options.layoutRoot||this.resumeFrom||m||I&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(o,m);const K={...UB(l,"layout"),onPlay:a,onComplete:G};(i.shouldReduceMotion||this.options.layoutRoot)&&(K.delay=0,K.type=!1),this.startAnimation(K)}else I||Iw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,GA(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(_s),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&sw(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let i=0;i<this.path.length;i++){const o=this.path[i];o.shouldResetTransform=!0,o.updateScroll("snapshot"),o.options.layoutRoot&&o.willUpdate(!1)}const{layoutId:C,layout:Q}=this.options;if(C===void 0&&!Q)return;const s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ow);return}this.isUpdating||this.nodes.forEach(Ns),this.isUpdating=!1,this.nodes.forEach(Xs),this.nodes.forEach(js),this.nodes.forEach(Hs),this.clearAllSnapshots();const C=IA.now();H.delta=EA(0,1e3/60,C-H.timestamp),H.timestamp=C,H.isProcessing=!0,sB.update.process(H),sB.preRender.process(H),sB.render.process(H),H.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nB.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(xs),this.sharedNodes.forEach(Ai)}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())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let Q=0;Q<this.path.length;Q++)this.path[Q].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=O(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:C}=this.options;C&&C.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let C=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(C=!1),C){const Q=M(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:Q,offset:B(this.instance),wasRoot:this.scroll?this.scroll.isRoot:Q}}}resetTransform(){if(!D)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,C=this.projectionDelta&&!Mw(this.projectionDelta),Q=this.getTransformTemplate(),s=Q?Q(this.latestValues,""):void 0,i=s!==this.prevTransformTemplateValue;e&&(C||dA(this.latestValues)||i)&&(D(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const C=this.measurePageBox();let Q=this.removeElementScroll(C);return e&&(Q=this.removeTransform(Q)),Di(Q),{animationId:this.root.animationId,measuredBox:C,layoutBox:Q,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:C}=this.options;if(!C)return O();const Q=C.measureViewportBox();if(!(((e=this.scroll)===null||e===void 0?void 0:e.wasRoot)||this.path.some(ei))){const{scroll:i}=this.root;i&&(jA(Q.x,i.offset.x),jA(Q.y,i.offset.y))}return Q}removeElementScroll(e){var C;const Q=O();if(MA(Q,e),!((C=this.scroll)===null||C===void 0)&&C.wasRoot)return Q;for(let s=0;s<this.path.length;s++){const i=this.path[s],{scroll:o,options:I}=i;i!==this.root&&o&&I.layoutScroll&&(o.wasRoot&&MA(Q,e),jA(Q.x,o.offset.x),jA(Q.y,o.offset.y))}return Q}applyTransform(e,C=!1){const Q=O();MA(Q,e);for(let s=0;s<this.path.length;s++){const i=this.path[s];!C&&i.options.layoutScroll&&i.scroll&&i!==i.root&&HA(Q,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),dA(i.latestValues)&&HA(Q,i.latestValues)}return dA(this.latestValues)&&HA(Q,this.latestValues),Q}removeTransform(e){const C=O();MA(C,e);for(let Q=0;Q<this.path.length;Q++){const s=this.path[Q];if(!s.instance||!dA(s.latestValues))continue;wM(s.latestValues)&&s.updateSnapshot();const i=O(),o=s.measurePageBox();MA(i,o),gw(C,s.latestValues,s.snapshot?s.snapshot.layoutBox:void 0,i)}return dA(this.latestValues)&&gw(C,this.latestValues),C}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade!==void 0?e.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!==H.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var C;const Q=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=Q.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=Q.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=Q.isSharedProjectionDirty);const s=!!this.resumingFrom||this!==Q;if(!(e||s&&this.isSharedProjectionDirty||this.isProjectionDirty||!((C=this.parent)===null||C===void 0)&&C.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:o,layoutId:I}=this.options;if(!(!this.layout||!(o||I))){if(this.resolvedRelativeTargetAt=H.timestamp,!this.targetDelta&&!this.relativeTarget){const n=this.getClosestProjectingParent();n&&n.layout&&this.animationProgress!==1?(this.relativeParent=n,this.forceRelativeParentToResolveTarget(),this.relativeTarget=O(),this.relativeTargetOrigin=O(),Cg(this.relativeTargetOrigin,this.layout.layoutBox,n.layout.layoutBox),MA(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=O(),this.targetWithTransforms=O()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Qs(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):MA(this.target,this.layout.layoutBox),ze(this.target,this.targetDelta)):MA(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const n=this.getClosestProjectingParent();n&&!!n.resumingFrom==!!this.resumingFrom&&!n.options.layoutScroll&&n.target&&this.animationProgress!==1?(this.relativeParent=n,this.forceRelativeParentToResolveTarget(),this.relativeTarget=O(),this.relativeTargetOrigin=O(),Cg(this.relativeTargetOrigin,this.target,n.target),MA(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ig&&qA.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||wM(this.parent.latestValues)||he(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const C=this.getLead(),Q=!!this.resumingFrom||this!==C;let s=!0;if((this.isProjectionDirty||!((e=this.parent)===null||e===void 0)&&e.isProjectionDirty)&&(s=!1),Q&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===H.timestamp&&(s=!1),s)return;const{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;MA(this.layoutCorrected,this.layout.layoutBox);const I=this.treeScale.x,n=this.treeScale.y;ls(this.layoutCorrected,this.treeScale,this.path,Q),C.layout&&!C.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(C.target=C.layout.layoutBox,C.targetWithTransforms=O());const{target:E}=C;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($e(this.prevProjectionDelta.x,this.projectionDelta.x),$e(this.prevProjectionDelta.y,this.projectionDelta.y)),Qg(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==I||this.treeScale.y!==n||!Qw(this.projectionDelta.x,this.prevProjectionDelta.x)||!Qw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E)),ig&&qA.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var C;if((C=this.options.visualElement)===null||C===void 0||C.scheduleRender(),e){const Q=this.getStack();Q&&Q.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=OA(),this.projectionDelta=OA(),this.projectionDeltaWithTransform=OA()}setAnimationOrigin(e,C=!1){const Q=this.snapshot,s=Q?Q.latestValues:{},i={...this.latestValues},o=OA();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!C;const I=O(),n=Q?Q.source:void 0,E=this.layout?this.layout.source:void 0,l=n!==E,a=this.getStack(),G=!a||a.members.length<=1,c=!!(l&&!G&&this.options.crossfade===!0&&!this.path.some(Bi));this.animationProgress=0;let m;this.mixTargetDelta=K=>{const Y=K/1e3;nw(o.x,e.x,Y),nw(o.y,e.y,Y),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Cg(I,this.layout.layoutBox,this.relativeParent.layout.layoutBox),gi(this.relativeTarget,this.relativeTargetOrigin,I,Y),m&&Ps(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=O()),MA(m,this.relativeTarget)),l&&(this.animationValues=i,ps(i,s,this.latestValues,Y,c,G)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Y},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(GA(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=z.update(()=>{Rg.hasAnimatedSinceResize=!0,this.currentAnimation=Zs(0,Cw,{...e,onUpdate:C=>{this.mixTargetDelta(C),e.onUpdate&&e.onUpdate(C)},onComplete:()=>{e.onComplete&&e.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 e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Cw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:C,target:Q,layout:s,latestValues:i}=e;if(!(!C||!Q||!s)){if(this!==e&&this.layout&&s&&Gw(this.options.animationType,this.layout.layoutBox,s.layoutBox)){Q=this.target||O();const o=AA(this.layout.layoutBox.x);Q.x.min=e.target.x.min,Q.x.max=Q.x.min+o;const I=AA(this.layout.layoutBox.y);Q.y.min=e.target.y.min,Q.y.max=Q.y.min+I}MA(C,Q),HA(C,i),Qg(this.projectionDeltaWithTransform,this.layoutCorrected,C,i)}}registerSharedNode(e,C){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ls),this.sharedNodes.get(e).add(C);const s=C.options.initialPromotionConfig;C.promote({transition:s?s.transition:void 0,preserveFollowOpacity:s&&s.shouldPreserveFollowOpacity?s.shouldPreserveFollowOpacity(C):void 0})}isLead(){const e=this.getStack();return e?e.lead===this:!0}getLead(){var e;const{layoutId:C}=this.options;return C?((e=this.getStack())===null||e===void 0?void 0:e.lead)||this:this}getPrevLead(){var e;const{layoutId:C}=this.options;return C?(e=this.getStack())===null||e===void 0?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:C,preserveFollowOpacity:Q}={}){const s=this.getStack();s&&s.promote(this,Q),e&&(this.projectionDelta=void 0,this.needsReset=!0),C&&this.setOptions({transition:C})}relegate(){const e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let C=!1;const{latestValues:Q}=e;if((Q.z||Q.rotate||Q.rotateX||Q.rotateY||Q.rotateZ||Q.skewX||Q.skewY)&&(C=!0),!C)return;const s={};Q.z&&CM("z",e,s,this.animationValues);for(let i=0;i<QM.length;i++)CM(`rotate${QM[i]}`,e,s,this.animationValues),CM(`skew${QM[i]}`,e,s,this.animationValues);e.render();for(const i in s)e.setStaticValue(i,s[i]),this.animationValues&&(this.animationValues[i]=s[i]);e.scheduleRender()}getProjectionStyles(e){var C,Q;if(!this.instance||this.isSVG)return;if(!this.isVisible)return bs;const s={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=ug(e==null?void 0:e.pointerEvents)||"",s.transform=i?i(this.latestValues,""):"none",s;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const l={};return this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=ug(e==null?void 0:e.pointerEvents)||""),this.hasProjected&&!dA(this.latestValues)&&(l.transform=i?i({},""):"none",this.hasProjected=!1),l}const I=o.animationValues||o.latestValues;this.applyTransformsToTarget(),s.transform=Fs(this.projectionDeltaWithTransform,this.treeScale,I),i&&(s.transform=i(I,s.transform));const{x:n,y:E}=this.projectionDelta;s.transformOrigin=`${n.origin*100}% ${E.origin*100}% 0`,o.animationValues?s.opacity=o===this?(Q=(C=I.opacity)!==null&&C!==void 0?C:this.latestValues.opacity)!==null&&Q!==void 0?Q:1:this.preserveOpacity?this.latestValues.opacity:I.opacityExit:s.opacity=o===this?I.opacity!==void 0?I.opacity:"":I.opacityExit!==void 0?I.opacityExit:0;for(const l in Ug){if(I[l]===void 0)continue;const{correct:a,applyTo:G}=Ug[l],c=s.transform==="none"?I[l]:a(I[l],o);if(G){const m=G.length;for(let K=0;K<m;K++)s[G[K]]=c}else s[l]=c}return this.options.layoutId&&(s.pointerEvents=o===this?ug(e==null?void 0:e.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var C;return(C=e.currentAnimation)===null||C===void 0?void 0:C.stop()}),this.root.nodes.forEach(ow),this.root.sharedNodes.clear()}}}function js(A){A.updateLayout()}function Hs(A){var g;const B=((g=A.resumeFrom)===null||g===void 0?void 0:g.snapshot)||A.snapshot;if(A.isLead()&&A.layout&&B&&A.hasListeners("didUpdate")){const{layoutBox:M,measuredBox:D}=A.layout,{animationType:w}=A.options,e=B.source!==A.layout.source;w==="size"?BA(o=>{const I=e?B.measuredBox[o]:B.layoutBox[o],n=AA(I);I.min=M[o].min,I.max=I.min+n}):Gw(w,B.layoutBox,M)&&BA(o=>{const I=e?B.measuredBox[o]:B.layoutBox[o],n=AA(M[o]);I.max=I.min+n,A.relativeTarget&&!A.currentAnimation&&(A.isProjectionDirty=!0,A.relativeTarget[o].max=A.relativeTarget[o].min+n)});const C=OA();Qg(C,M,B.layoutBox);const Q=OA();e?Qg(Q,A.applyTransform(D,!0),B.measuredBox):Qg(Q,M,B.layoutBox);const s=!Mw(C);let i=!1;if(!A.resumeFrom){const o=A.getClosestProjectingParent();if(o&&!o.resumeFrom){const{snapshot:I,layout:n}=o;if(I&&n){const E=O();Cg(E,B.layoutBox,I.layoutBox);const l=O();Cg(l,M,n.layoutBox),ww(E,l)||(i=!0),o.options.layoutRoot&&(A.relativeTarget=l,A.relativeTargetOrigin=E,A.relativeParent=o)}}}A.notifyListeners("didUpdate",{layout:M,snapshot:B,delta:Q,layoutDelta:C,hasLayoutChanged:s,hasRelativeLayoutChanged:i})}else if(A.isLead()){const{onExitComplete:M}=A.options;M&&M()}A.options.transition=void 0}function Ts(A){ig&&qA.totalNodes++,A.parent&&(A.isProjecting()||(A.isProjectionDirty=A.parent.isProjectionDirty),A.isSharedProjectionDirty||(A.isSharedProjectionDirty=!!(A.isProjectionDirty||A.parent.isProjectionDirty||A.parent.isSharedProjectionDirty)),A.isTransformDirty||(A.isTransformDirty=A.parent.isTransformDirty))}function Ss(A){A.isProjectionDirty=A.isSharedProjectionDirty=A.isTransformDirty=!1}function xs(A){A.clearSnapshot()}function ow(A){A.clearMeasurements()}function Ns(A){A.isLayoutDirty=!1}function Xs(A){const{visualElement:g}=A.options;g&&g.getProps().onBeforeLayoutMeasure&&g.notify("BeforeLayoutMeasure"),A.resetTransform()}function Iw(A){A.finishAnimation(),A.targetDelta=A.relativeTarget=A.target=void 0,A.isProjectionDirty=!0}function Ws(A){A.resolveTargetDelta()}function $s(A){A.calcProjection()}function _s(A){A.resetSkewAndRotation()}function Ai(A){A.removeLeadSnapshot()}function nw(A,g,B){A.translate=P(g.translate,0,B),A.scale=P(g.scale,1,B),A.origin=g.origin,A.originPoint=g.originPoint}function rw(A,g,B,M){A.min=P(g.min,B.min,M),A.max=P(g.max,B.max,M)}function gi(A,g,B,M){rw(A.x,g.x,B.x,M),rw(A.y,g.y,B.y,M)}function Bi(A){return A.animationValues&&A.animationValues.opacityExit!==void 0}const Mi={duration:.45,ease:[.4,0,.1,1]},Ew=A=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(A),lw=Ew("applewebkit/")&&!Ew("chrome/")?Math.round:$;function aw(A){A.min=lw(A.min),A.max=lw(A.max)}function Di(A){aw(A.x),aw(A.y)}function Gw(A,g,B){return A==="position"||A==="preserve-aspect"&&!ts(tw(g),tw(B),.2)}function ei(A){var g;return A!==A.root&&((g=A.scroll)===null||g===void 0?void 0:g.wasRoot)}const wi=iw({attachResizeListener:(A,g)=>eg(A,"resize",g),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sM={current:void 0},cw=iw({measureScroll:A=>({x:A.scrollLeft,y:A.scrollTop}),defaultParent:()=>{if(!sM.current){const A=new wi({});A.mount(window),A.setOptions({layoutScroll:!0}),sM.current=A}return sM.current},resetTransform:(A,g)=>{A.style.transform=g!==void 0?g:"none"},checkIsScrollRoot:A=>window.getComputedStyle(A).position==="fixed"}),ti={pan:{Feature:us},drag:{Feature:ys,ProjectionNode:cw,MeasureLayout:He}};function Yw(A,g,B){const{props:M}=A;A.animationState&&M.whileHover&&A.animationState.setActive("whileHover",B==="Start");const D="onHover"+B,w=M[D];w&&z.postRender(()=>w(g,wg(g)))}class Qi extends yA{mount(){const{current:g}=this.node;g&&(this.unmount=sQ(g,(B,M)=>(Yw(this.node,M,"Start"),D=>Yw(this.node,D,"End"))))}unmount(){}}class Ci extends yA{constructor(){super(...arguments),this.isActive=!1}onFocus(){let g=!1;try{g=this.node.current.matches(":focus-visible")}catch{g=!0}!g||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Dg(eg(this.node.current,"focus",()=>this.onFocus()),eg(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function yw(A,g,B){const{props:M}=A;A.animationState&&M.whileTap&&A.animationState.setActive("whileTap",B==="Start");const D="onTap"+(B==="End"?"":B),w=M[D];w&&z.postRender(()=>w(g,wg(g)))}class si extends yA{mount(){const{current:g}=this.node;g&&(this.unmount=nQ(g,(B,M)=>(yw(this.node,M,"Start"),(D,{success:w})=>yw(this.node,D,w?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const iM=new WeakMap,oM=new WeakMap,ii=A=>{const g=iM.get(A.target);g&&g(A)},oi=A=>{A.forEach(ii)};function Ii({root:A,...g}){const B=A||document;oM.has(B)||oM.set(B,{});const M=oM.get(B),D=JSON.stringify(g);return M[D]||(M[D]=new IntersectionObserver(oi,{root:A,...g})),M[D]}function ni(A,g,B){const M=Ii(g);return iM.set(A,B),M.observe(A),()=>{iM.delete(A),M.unobserve(A)}}const ri={some:0,all:1};class Ei extends yA{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:g={}}=this.node.getProps(),{root:B,margin:M,amount:D="some",once:w}=g,e={root:B?B.current:void 0,rootMargin:M,threshold:typeof D=="number"?D:ri[D]},C=Q=>{const{isIntersecting:s}=Q;if(this.isInView===s||(this.isInView=s,w&&!s&&this.hasEnteredView))return;s&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",s);const{onViewportEnter:i,onViewportLeave:o}=this.node.getProps(),I=s?i:o;I&&I(Q)};return ni(this.node.current,e,C)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:g,prevProps:B}=this.node;["amount","margin","root"].some(li(g,B))&&this.startObserver()}unmount(){}}function li({viewport:A={}},{viewport:g={}}={}){return B=>A[B]!==g[B]}const ai={inView:{Feature:Ei},tap:{Feature:si},focus:{Feature:Ci},hover:{Feature:Qi}},Gi={layout:{ProjectionNode:cw,MeasureLayout:He}},IM={current:null},uw={current:!1};function ci(){if(uw.current=!0,!!QB)if(window.matchMedia){const A=window.matchMedia("(prefers-reduced-motion)"),g=()=>IM.current=A.matches;A.addListener(g),g()}else IM.current=!1}const Yi=[...ND,x,YA],yi=A=>Yi.find(xD(A)),mw=new WeakMap;function ui(A,g,B){for(const M in g){const D=g[M],w=B[M];if(S(D))A.addValue(M,D),process.env.NODE_ENV==="development"&&Gg(D.version==="12.0.3",`Attempting to mix Motion versions ${D.version} with 12.0.3 may not work as expected.`);else if(S(w))A.addValue(M,Ag(D,{owner:A}));else if(w!==D)if(A.hasValue(M)){const e=A.getValue(M);e.liveStyle===!0?e.jump(D):e.hasAnimated||e.set(D)}else{const e=A.getStaticValue(M);A.addValue(M,Ag(e!==void 0?e:D,{owner:A}))}}for(const M in B)g[M]===void 0&&A.removeValue(M);return g}const Uw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class mi{scrapeMotionValuesFromProps(g,B,M){return{}}constructor({parent:g,props:B,presenceContext:M,reducedMotionConfig:D,blockInitialAnimation:w,visualState:e},C={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=SB,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const n=IA.now();this.renderScheduledAt<n&&(this.renderScheduledAt=n,z.render(this.render,!1,!0))};const{latestValues:Q,renderState:s,onUpdate:i}=e;this.onUpdate=i,this.latestValues=Q,this.baseTarget={...Q},this.initialValues=B.initial?{...Q}:{},this.renderState=s,this.parent=g,this.props=B,this.presenceContext=M,this.depth=g?g.depth+1:0,this.reducedMotionConfig=D,this.options=C,this.blockInitialAnimation=!!w,this.isControllingVariants=yg(B),this.isVariantNode=FM(B),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(g&&g.current);const{willChange:o,...I}=this.scrapeMotionValuesFromProps(B,{},this);for(const n in I){const E=I[n];Q[n]!==void 0&&S(E)&&E.set(Q[n],!1)}}mount(g){this.current=g,mw.set(g,this),this.projection&&!this.projection.instance&&this.projection.mount(g),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((B,M)=>this.bindToMotionValue(M,B)),uw.current||ci(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:IM.current,process.env.NODE_ENV!=="production"&&Gg(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){mw.delete(this.current),this.projection&&this.projection.unmount(),GA(this.notifyUpdate),GA(this.render),this.valueSubscriptions.forEach(g=>g()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const g in this.events)this.events[g].clear();for(const g in this.features){const B=this.features[g];B&&(B.unmount(),B.isMounted=!1)}this.current=null}bindToMotionValue(g,B){this.valueSubscriptions.has(g)&&this.valueSubscriptions.get(g)();const M=UA.has(g),D=B.on("change",C=>{this.latestValues[g]=C,this.props.onUpdate&&z.preRender(this.notifyUpdate),M&&this.projection&&(this.projection.isTransformDirty=!0)}),w=B.on("renderRequest",this.scheduleRender);let e;window.MotionCheckAppearSync&&(e=window.MotionCheckAppearSync(this,g,B)),this.valueSubscriptions.set(g,()=>{D(),w(),e&&e(),B.owner&&B.stop()})}sortNodePosition(g){return!this.current||!this.sortInstanceNodePosition||this.type!==g.type?0:this.sortInstanceNodePosition(this.current,g.current)}updateFeatures(){let g="animation";for(g in zA){const B=zA[g];if(!B)continue;const{isEnabled:M,Feature:D}=B;if(!this.features[g]&&D&&M(this.props)&&(this.features[g]=new D(this)),this.features[g]){const w=this.features[g];w.isMounted?w.update():(w.mount(),w.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):O()}getStaticValue(g){return this.latestValues[g]}setStaticValue(g,B){this.latestValues[g]=B}update(g,B){(g.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=g,this.prevPresenceContext=this.presenceContext,this.presenceContext=B;for(let M=0;M<Uw.length;M++){const D=Uw[M];this.propEventSubscriptions[D]&&(this.propEventSubscriptions[D](),delete this.propEventSubscriptions[D]);const w="on"+D,e=g[w];e&&(this.propEventSubscriptions[D]=this.on(D,e))}this.prevMotionValues=ui(this,this.scrapeMotionValuesFromProps(g,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(g){return this.props.variants?this.props.variants[g]: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(g){const B=this.getClosestVariantNode();if(B)return B.variantChildren&&B.variantChildren.add(g),()=>B.variantChildren.delete(g)}addValue(g,B){const M=this.values.get(g);B!==M&&(M&&this.removeValue(g),this.bindToMotionValue(g,B),this.values.set(g,B),this.latestValues[g]=B.get())}removeValue(g){this.values.delete(g);const B=this.valueSubscriptions.get(g);B&&(B(),this.valueSubscriptions.delete(g)),delete this.latestValues[g],this.removeValueFromRenderState(g,this.renderState)}hasValue(g){return this.values.has(g)}getValue(g,B){if(this.props.values&&this.props.values[g])return this.props.values[g];let M=this.values.get(g);return M===void 0&&B!==void 0&&(M=Ag(B===null?void 0:B,{owner:this}),this.addValue(g,M)),M}readValue(g,B){var M;let D=this.latestValues[g]!==void 0||!this.current?this.latestValues[g]:(M=this.getBaseTargetFromProps(this.props,g))!==null&&M!==void 0?M:this.readValueFromInstance(this.current,g,this.options);return D!=null&&(typeof D=="string"&&(TD(D)||pD(D))?D=parseFloat(D):!yi(D)&&YA.test(B)&&(D=LD(g,B)),this.setBaseTarget(g,S(D)?D.get():D)),S(D)?D.get():D}setBaseTarget(g,B){this.baseTarget[g]=B}getBaseTarget(g){var B;const{initial:M}=this.props;let D;if(typeof M=="string"||typeof M=="object"){const e=EB(this.props,M,(B=this.presenceContext)===null||B===void 0?void 0:B.custom);e&&(D=e[g])}if(M&&D!==void 0)return D;const w=this.getBaseTargetFromProps(this.props,g);return w!==void 0&&!S(w)?w:this.initialValues[g]!==void 0&&D===void 0?void 0:this.baseTarget[g]}on(g,B){return this.events[g]||(this.events[g]=new hB),this.events[g].add(B)}notify(g,...B){this.events[g]&&this.events[g].notify(...B)}}class fw extends mi{constructor(){super(...arguments),this.KeyframeResolver=WD}sortInstanceNodePosition(g,B){return g.compareDocumentPosition(B)&2?1:-1}getBaseTargetFromProps(g,B){return g.style?g.style[B]:void 0}removeValueFromRenderState(g,{vars:B,style:M}){delete B[g],delete M[g]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:g}=this.props;S(g)&&(this.childSubscription=g.on("change",B=>{this.current&&(this.current.textContent=`${B}`)}))}}function Ui(A){return window.getComputedStyle(A)}class fi extends fw{constructor(){super(...arguments),this.type="html",this.renderInstance=gD}readValueFromInstance(g,B){if(UA.has(B)){const M=jB(B);return M&&M.default||0}else{const M=Ui(g),D=(NM(B)?M.getPropertyValue(B):M[B])||0;return typeof D=="string"?D.trim():D}}measureInstanceViewportBox(g,{transformPagePoint:B}){return Fe(g,B)}build(g,B,M){cB(g,B,M.transformTemplate)}scrapeMotionValuesFromProps(g,B,M){return mB(g,B,M)}}class Zi extends fw{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=O}getBaseTargetFromProps(g,B){return g[B]}readValueFromInstance(g,B){if(UA.has(B)){const M=jB(B);return M&&M.default||0}return B=BD.has(B)?B:IB(B),g.getAttribute(B)}scrapeMotionValuesFromProps(g,B,M){return eD(g,B,M)}build(g,B,M){YB(g,B,this.isSVGTag,M.transformTemplate)}renderInstance(g,B,M,D){MD(g,B,M,D)}mount(g){this.isSVGTag=uB(g.tagName),super.mount(g)}}const Vi=(A,g)=>rB(A)?new Zi(g):new fi(g,{allowProjection:A!==r.Fragment}),di=DQ({...$C,...ai,...ti,...Gi},Vi),Jg=ct(di);function qi(A){A.values.forEach(g=>g.stop())}function nM(A,g){[...g].reverse().forEach(M=>{const D=A.getVariant(M);D&&RB(A,D),A.variantChildren&&A.variantChildren.forEach(w=>{nM(w,g)})})}function ki(A,g){if(Array.isArray(g))return nM(A,g);if(typeof g=="string")return nM(A,[g]);RB(A,g)}function Ki(){let A=!1;const g=new Set,B={subscribe(M){return g.add(M),()=>void g.delete(M)},start(M,D){sA(A,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");const w=[];return g.forEach(e=>{w.push(re(e,M,{transitionOverride:D}))}),Promise.all(w)},set(M){return sA(A,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),g.forEach(D=>{ki(D,M)})},stop(){g.forEach(M=>{qi(M)})},mount(){return A=!0,()=>{A=!1,B.stop()}}};return B}function pi(){const A=pM(Ki);return RM(A.mount,[]),A}const zg=pi,hi={some:0,all:1};function Ri(A,g,{root:B,margin:M,amount:D="some"}={}){const w=rD(A),e=new WeakMap,C=s=>{s.forEach(i=>{const o=e.get(i.target);if(i.isIntersecting!==!!o)if(i.isIntersecting){const I=g(i.target,i);typeof I=="function"?e.set(i.target,I):Q.unobserve(i.target)}else typeof o=="function"&&(o(i),e.delete(i.target))})},Q=new IntersectionObserver(C,{root:B,rootMargin:M,threshold:typeof D=="number"?D:hi[D]});return w.forEach(s=>Q.observe(s)),()=>Q.disconnect()}function Zw(A,{root:g,margin:B,amount:M,once:D=!1}={}){const[w,e]=r.useState(!1);return r.useEffect(()=>{if(!A.current||D&&w)return;const C=()=>(e(!0),D?void 0:()=>e(!1)),Q={root:g&&g.current||void 0,margin:B,amount:M};return Ri(A.current,C,Q)},[g,A,B,D,M]),w}const Vw=r.forwardRef(({variant:A="goatData",items:g=[],logo:B,heightLogo:M="40px",widthLogo:D="65px",router:w,handleOpenItem:e,...C},Q)=>{const s=wB(),[i,o]=r.useState(!1),[I,n]=r.useState(void 0),[E]=r.useState(""),l=g.reduce((k,h)=>(k[h.refId]=r.useRef(null),k),{}),a=()=>o(!i),[G,c]=r.useState(!0);r.useEffect(()=>{const k=()=>{c(window.scrollY<50)};return window.addEventListener("scroll",k),()=>window.removeEventListener("scroll",k)},[]),r.useEffect(()=>{g.forEach(h=>{const F=l[h.refId];if(F!=null&&F.current){const N=wA=>{const tA=wA.target;n(tA.getBoundingClientRect())};F.current.addEventListener("mouseenter",N)}});const k=l[E];return k!=null&&k.current&&n(k.current.getBoundingClientRect()),()=>{g.forEach(h=>{const F=l[h.refId];F!=null&&F.current&&F.current.removeEventListener("mouseenter",()=>{})})}},[E,g,l]),r.useEffect(()=>{const k=window.matchMedia("(min-width: 640px)"),h=()=>{k.matches&&i&&o(!1)};return k.addEventListener("change",h),()=>{k.removeEventListener("change",h)}},[i]);const m={goatData:"bg-zinc-900",secondary:"bg-[#ededed]",experiences:"bg-[#FFFFFF]"},K={goatData:"#9a6d79",secondary:"#1f2937e7",experiences:"#6BC1E4"},Y={goatData:"#ff0145",secondary:"#ff0145",experiences:"#1f2937e7"},d={goatData:"white",secondary:"#1F2937",experiences:"#000000"},f={goatData:"text-white",secondary:"text-[#1F2937]",experiences:"text-white"},U=k=>{const h=k,F=encodeURIComponent("Hola, me gustaría obtener más información sobre las experiencias personalizadas que ofrecen en Experiencias Viajes. Estoy interesado en conocer más sobre sus servicios exclusivos a bordo de embarcaciones de lujo."),N=`https://api.whatsapp.com/send?phone=${h}&text=${F}`;window.open(N,"_blank")},y=k=>{const h=`mailto:${k}?subject=Solicitud&body=Hola, Necesito más información!`;window.open(h)},Z=k=>{window.open(k,"_blank")};return t.jsxs("nav",{ref:Q,...C,style:{zIndex:9999,position:"fixed",top:"0px",left:"0px",right:"0px"},className:`${m[A]} ${A==="experiences"?"":"bg-opacity-75"} `,children:[A==="experiences"&&G&&t.jsx("div",{className:"bg-[#F2AE87] text-white transition-all duration-300",children:t.jsxs("div",{className:`flex ${s?"flex-col items-end":"flex-row items-center"} justify-around gap-4 px-4 py-2 text-sm`,children:[!s&&t.jsxs("div",{className:"flex items-center gap-6",children:[t.jsxs("div",{className:"flex items-center gap-2 cursor-pointer",onClick:()=>U("+5491140999887"),children:[t.jsx(wt,{}),t.jsx("span",{children:"+54 114099-9887"})]}),t.jsxs("div",{className:"flex items-center gap-2 cursor-pointer",onClick:()=>y("experiencias.viajes.arg@gmail.com"),children:[t.jsx(tt,{}),t.jsx("span",{children:"experiencias.viajes.arg@gmail.com"})]})]}),t.jsxs("div",{style:{paddingRight:s?"40px":""},className:"flex gap-2 mt-2 sm:mt-0",children:[t.jsx("div",{onClick:()=>{Z("https://www.instagram.com/experienciasviajes.arg/")},children:t.jsx(Qt,{})}),t.jsx("div",{onClick:()=>{Z("https://www.facebook.com/experienciasviajes.arg/")},children:t.jsx(Ct,{})}),t.jsx(st,{}),t.jsx("div",{onClick:()=>{Z("https://www.linkedin.com/in/experienciasviajes-arg-by-maria-cian-0b075014/")},children:t.jsx(it,{})})]})]})}),t.jsxs("div",{style:{marginLeft:"auto",marginRight:"auto",maxWidth:"80rem",paddingLeft:s?"0.5rem":"1.5rem",paddingRight:s?"0.5rem":"1.5rem"},children:[(A==="goatData"||A==="secondary")&&t.jsx(Jg.div,{style:{background:K[A],position:"absolute",opacity:.4,borderRadius:"0.25rem"},className:"z-20 pointer-events-none",animate:{top:(I==null?void 0:I.top)||0,left:(I==null?void 0:I.left)||0,width:(I==null?void 0:I.width)||0,height:(I==null?void 0:I.height)||0}}),t.jsxs("div",{style:{position:"relative",display:"flex",height:"4rem",alignItems:"center",justifyContent:"space-between"},children:[t.jsx("div",{style:{position:"absolute",top:"0px",bottom:"0px",left:A==="experiences"?"auto":"0px",right:A==="experiences"?"0px":"auto",display:s?"flex":"none",alignItems:"center"},children:t.jsx("button",{className:`menu ${i?A==="secondary"?"openedark":A==="experiences"?"openeExperiences":"opened":""}`,onClick:a,"aria-label":"Main Menu",children:t.jsxs("svg",{width:"45",height:"45",viewBox:"0 0 100 100",style:{fill:"#f9f8f8 !important"},children:[t.jsx("path",{className:A==="secondary"?"linedark linedark1":A==="experiences"?"lineExperiences lineExperiences1":"line line1",d:"M 20,29.000046 H 80.000231 C 80.000231,29.000046 94.498839,28.817352 94.532987,66.711331 94.543142,77.980673 90.966081,81.670246 85.259173,81.668997 79.552261,81.667751 75.000211,74.999942 75.000211,74.999942 L 25.000021,25.000058"}),t.jsx("path",{className:A==="secondary"?"linedark linedark2":A==="experiences"?"lineExperiences lineExperiences2":"line line2",d:"M 20,50 H 80"}),t.jsx("path",{className:A==="secondary"?"linedark linedark3":A==="experiences"?"lineExperiences lineExperiences3":"line line3",d:"M 20,70.999954 H 80.000231 C 80.000231,70.999954 94.498839,71.182648 94.532987,33.288669 94.543142,22.019327 90.966081,18.329754 85.259173,18.331003 79.552261,18.332249 75.000211,25.000058 75.000211,25.000058 L 25.000021,74.999942"})]})})}),t.jsxs("div",{style:{display:"flex",flex:A==="experiences"&&s?"":"1 1 0%",alignItems:"center",justifyContent:s?"center":A==="experiences"?"flex-end":"stretch"},children:[t.jsx("div",{className:"flex flex-shrink-0 items-center",style:{paddingLeft:A==="experiences"?"20px":""},children:t.jsxs("div",{className:"flex flex-col items-center lg:ml-[120px] ml-0",children:[t.jsx("img",{className:`${s?"hidden":"block"}`,style:{height:M&&M.trim()!==""?M:"40px",width:D&&D.trim()!==""?D:"65px"},src:B&&B.trim()!==""?B:A==="secondary"?uA:mA,alt:"Logo"}),t.jsx("img",{className:`${s?"block":"hidden"}`,style:{height:M&&M.trim()!==""?M:"40px",width:D&&D.trim()!==""?D:"65px"},src:B&&B.trim()!==""?B:A==="secondary"?uA:mA,alt:"Logo"}),(!B||B.trim()==="")&&t.jsx("div",{className:`text-[10px] ${f[A]} tracking-[4px]`,children:"DATA"})]})}),t.jsx("div",{style:{display:s?"none":"block",flexGrow:1,marginLeft:"1.5rem"},children:t.jsx("nav",{style:{display:"flex",justifyContent:"flex-end"},children:t.jsx("ul",{className:"flex space-x-4",children:g.map(({label:k,href:h,refId:F,open:N,routerApp:wA,link:tA})=>t.jsx("li",{children:t.jsx(kM,{href:h,Viewport:Y[A],colorButton:d[A],setIsOpen:o,open:N,routerApp:wA,handleOpen:e,handleRouter:()=>{w.push(tA)},children:t.jsx("div",{id:F,ref:l[F],className:`
|
|
9
9
|
relative inline-block px-2 py-2
|
|
10
10
|
text-[${d[A]}]
|
|
11
11
|
after:content-['']
|