1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2521],{58988:function(t,e){e.E=function(t,e){return t.split(",").map(function(t){var e=(t=t.trim()).match(i),s=e[1],a=e[2],o=e[3]||"",l={};return l.inverse=!!s&&"not"===s.toLowerCase(),l.type=a?a.toLowerCase():"all",o=o.match(/\([^\)]+\)/g)||[],l.expressions=o.map(function(t){var e=t.match(n),i=e[1].toLowerCase().match(r);return{modifier:i[1],feature:i[2],value:e[2]}}),l}).some(function(t){var i=t.inverse,n="all"===t.type||e.type===t.type;if(n&&i||!(n||i))return!1;var r=t.expressions.every(function(t){var i=t.feature,n=t.modifier,r=t.value,s=e[i];if(!s)return!1;switch(i){case"orientation":case"scan":return s.toLowerCase()===r.toLowerCase();case"width":case"height":case"device-width":case"device-height":r=toPx(r),s=toPx(s);break;case"resolution":r=toDpi(r),s=toDpi(s);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":r=toDecimal(r),s=toDecimal(s);break;case"grid":case"color":case"color-index":case"monochrome":r=parseInt(r,10)||1,s=parseInt(s,10)||0}switch(n){case"min":return s>=r;case"max":return s<=r;default:return s===r}});return r&&!i||!r&&i})};var i=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,n=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,r=/^(?:(min|max)-)?(.+)/,s=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function toDecimal(t){var e,i=Number(t);return i||(i=(e=t.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/e[2]),i}function toDpi(t){var e=parseFloat(t);switch(String(t).match(a)[1]){case"dpcm":return e/2.54;case"dppx":return 96*e;default:return e}}function toPx(t){var e=parseFloat(t);switch(String(t).match(s)[1]){case"em":case"rem":return 16*e;case"cm":return 96*e/2.54;case"mm":return 96*e/2.54/10;case"in":return 96*e;case"pt":return 72*e;case"pc":return 72*e/12;default:return e}}},17218:function(t,e,i){i.d(e,{ZP:function(){return dist_esm}});var n=i(67294);let Burger=({color:t="currentColor",direction:e="left",distance:i="md",duration:r=.4,easing:s="cubic-bezier(0, 0, 0, 1)",hideOutline:a=!0,label:o,lines:l=3,onToggle:u,render:h,rounded:c=!1,size:d=32,toggle:p,toggled:m,disabled:f=!1,animateO
1nMount:g=!1})=>{let[y,v]=(0,n.useState)(!1),[x,T]=(0,n.useState)(!1);(0,n.useEffect)(()=>{T(!0)},[]);let b=Math.max(12,Math.min(48,d)),P=Math.round((48-b)/2),S=b/12,w=Math.round(S),A=b/(l*(("lg"===i?.25:"sm"===i?.75:.5)+(3===l?1:1.25))),V=Math.round(A),M=w*l+V*(l-1),D=(S-w+(A-V))/(3===l?1:2),E=parseFloat((b/(3===l?"lg"===i?4.0425:"sm"===i?5.1625:4.6325:"lg"===i?6.7875:"sm"===i?8.4875:7.6675)-D/(4/3)).toFixed(2)),C=Math.max(0,r),k={cursor:f?"not-allowed":"pointer",height:"48px",position:"relative",transition:`${C}s ${s}`,userSelect:"none",width:"48px"},R={background:t,height:`${w}px`,left:`${P}px`,position:"absolute"};a&&(k.outline="none"),c&&(R.borderRadius="9em");let L=p||v,B=(()=>{let t=void 0!==m?m:y;return g&&!x?!t:t})();return h({barHeight:w,barStyles:R,burgerStyles:k,easing:s,handler:()=>{L(!B),"function"==typeof u&&u(!B)},isLeft:"left"===e,isToggled:B,label:o,margin:V,move:E,time:C,topOffset:Math.round((48-M)/2),width:b})};function _extends(){return(_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}var dist_esm=t=>n.createElement(Burger,_extends({},t,{render:e=>n.createElement("div",{className:"hamburger-react","aria-label":e.label,"aria-expanded":e.isToggled,onClick:t.disabled?void 0:e.handler,onKeyUp:t.disabled?void 0:t=>"Enter"===t.key&&e.handler(),role:"button",style:{...e.burgerStyles,transform:`${e.isToggled?`rotate(${90*(e.isLeft?-1:1)}deg)`:"none"}`},tabIndex:0},n.createElement("div",{style:{...e.barStyles,width:`${e.width}px`,top:`${e.topOffset}px`,transition:`${e.time}s ${e.easing}`,transform:`${e.isToggled?`rotate(${45*(e.isLeft?-1:1)}deg) translate(${e.move*(e.isLeft?-1:1)}px, ${e.move}px)`:"none"}`}}),n.createElement("div",{style:{...e.barStyles,width:`${e.width}px`,top:`${e.topOffset+e.barHeight+e.margin}px`,transition:`${e.time}s ${e.easing}`,transform:`${e.isToggled?"scaleX(0)":"none"}`}}),n.createElement("div",{style:{...e.barStyles,width:`${e.width}px`,top:`${e.topOffset+2*e.barHeight+2*e.margin}px`,transition:`${e.time}s ${e.easing}`,transform:`${e.isToggled?`rotate(${45*(e.isLeft?1:-1)}deg) translate(${e.move*(e.isLeft?-1:1)}px, ${-1*e.move}px)`:"none"}`}}))}))},82701:function(t,e,i){i.d(e,{Z:function(){return r}});var n=i(84297);/** 2 * @license lucide-react v0.300.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let r=(0,n.Z)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},64998:function(t,e,i){i.d(e,{Z:function(){return r}});var n=i(84297);/** 7 * @license lucide-react v0.300.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */let r=(0,n.Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},78051:function(t,e,i){i.d(e,{Z:function(){return r}});var n=i(84297);/** 12 * @license lucide-react v0.300.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */let r=(0,n.Z)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]])},88402:function(t,e,i){i.d(e,{Z:function(){return r}});var n=i(84297);/** 17 * @license lucide-react v0.300.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */let r=(0,n.Z)("MinusCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]])},45657:function(t,e,i){i.d(e,{Z:function(){return r}});var n=i(84297);/** 22 * @license lucide-react v0.300.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */let r=(0,n.Z)("PlusCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]])}
26,49180:function(t,e,i){var n=i(58988).E,r="undefined"!=typeof window?window.matchMedia:null;function Mql(t,e,i){var s,a=this;function update(t){a.matches=t.matches,a.media=t.media}r&&!i&&(s=r.call(window,t)),s?(this.matches=s.matches,this.media=s.media,s.addListener(update)):(this.matches=n(t,e),this.media=t),this.addListener=function(t){s&&s.addListener(t)},this.removeListener=function(t){s&&s.removeListener(t)},this.dispose=function(){s&&s.removeListener(update)}}t.exports=function(t,e,i){return new Mql(t,e,i)}},47:function(t,e,i){i.d(e,{ac:function(){return useMediaQuery}});var n=i(67294),r=i(49180),s=i.n(r),a=/[A-Z]/g,o=/^ms-/,l={};function toHyphenLower(t){return"-"+t.toLowerCase()}var hyphenate_style_name=function(t){if(l.hasOwnProperty(t))return l[t];var e=t.replace(a,toHyphenLower);return l[t]=o.test(e)?"-"+e:e},u=i(45697),h=i.n(u);let c=h().oneOfType([h().string,h().number]),d={all:h().bool,grid:h().bool,aural:h().bool,braille:h().bool,handheld:h().bool,print:h().bool,projection:h().bool,screen:h().bool,tty:h().bool,tv:h().bool,embossed:h().bool},p={orientation:h().oneOf(["portrait","landscape"]),scan:h().oneOf(["progressive","interlace"]),aspectRatio:h().string,deviceAspectRatio:h().string,height:c,deviceHeight:c,width:c,deviceWidth:c,color:h().bool,colorIndex:h().bool,monochrome:h().bool,resolution:c,type:Object.keys(d)},{type:m,...f}=p,g={minAspectRatio:h().string,maxAspectRatio:h().string,minDeviceAspectRatio:h().string,maxDeviceAspectRatio:h().string,minHeight:c,maxHeight:c,minDeviceHeight:c,maxDeviceHeight:c,minWidth:c,maxWidth:c,minDeviceWidth:c,maxDeviceWidth:c,minColor:h().number,maxColor:h().number,minColorIndex:h().number,maxColorIndex:h().number,minMonochrome:h().number,maxMonochrome:h().number,minResolution:c,maxResolution:c,...f},y={...d,...g};var v={all:y};let negate=t=>`not ${t}`,keyVal=(t,e)=>{let i=hyphenate_style_name(t);return("number"==typeof e&&(e=`${e}px`),!0===e)?i:!1===e?negate(i):`(${i}: ${e})`},join=t=>t.join(" and "),toQuery=t=>{let e=[];return Object.keys(v.all).forEach(i=>{let n=t[i];null!=n&&e.push(keyVal(i,n))}),join(e)},x=(0,n.createContext)(void 0),makeQuery=t=>t.query||toQuery(t),hyphenateKeys=t=>{if(!t)return;let e=Object.keys(t);return e.reduce((e,i)=>(e[hyphenate_style_name(i)]=t[i],e),{})},useIsUpdate=()=>{let t=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{t.current=!0},[]),t.current},useDevice=t=>{let e=(0,n.useContext)(x),getDevice=()=>hyphenateKeys(t)||hyphenateKeys(e),[i,r]=(0,n.useState)(getDevice);return(0,n.useEffect)(()=>{let t=getDevice();!function(t,e){if(t===e)return!0;if(!t||!e)return!1;let i=Object.keys(t),n=Object.keys(e),r=i.length;if(n.length!==r)return!1;for(let n=0;n<r;n++){let r=i[n];if(t[r]!==e[r]||!Object.prototype.hasOwnProperty.call(e,r))return!1}return!0}(i,t)&&r(t)},[t,e]),i},useQuery=t=>{let getQuery=()=>makeQuery(t),[e,i]=(0,n.useState)(getQuery);return(0,n.useEffect)(()=>{let t=getQuery();e!==t&&i(t)},[t]),e},useMatchMedia=(t,e)=>{let getMatchMedia=()=>s()(t,e||{},!!e),[i,r]=(0,n.useState)(getMatchMedia),a=useIsUpdate();return(0,n.useEffect)(()=>{if(a){let t=getMatchMedia();return r(t),()=>{t&&t.dispose()}}},[t,e]),i},useMatches=t=>{let[e,i]=(0,n.useState)(t.matches);return(0,n.useEffect)(()=>{let updateMatches=t=>{i(t.matches)};return t.addListener(updateMatches),i(t.matches),()=>{t.removeListener(updateMatches)}},[t]),e},useMediaQuery=(t,e,i)=>{let r=useDevice(e),s=useQuery(t);if(!s)throw Error("Invalid or missing MediaQuery!");let a=useMatchMedia(s,r),o=useMatches(a),l=useIsUpdate();return(0,n.useEffect)(()=>{l&&i&&i(o)},[o]),(0,n.useEffect)(()=>()=>{a&&a.dispose()},[]),o}},47398:function(t,e,i){i.d(e,{VY:function(){return tr},h4:function(){return ti},ck:function(){return te},fC:function(){return tt},xz:function(){return tn}});var n=i(67294),r=i(25360),s=i(13879),a=i(28771),o=i(36206),l=i(77342),u=i(64757),h=i(9981),c=i(29115),d=i(91276),p=i(85893),m="Collapsible",[f,g]=(0,r.b)(m),[y,v]=f(m),x=n.forwardRef((t,e)=>{let{__scopeCollapsible:i,open:r,defaultOpen:s,disabled:a,onOpenChange:o,...h}=t,[c,f]=(0,l.T)({prop:r,defaultProp:s??!1,onChange:o,caller:m});return(0,p.jsx)(y,{scope:i,disabled:a,contentId:(0,d.M)(),open:c,onOpenToggle:n.useCallback(()=>f(t=>!t),[f]),children:(0,p.jsx)(u.WV.div,{"data-state":getState(c),"data-disabled":a?"":void 0,...h,ref:e})})});x.displayName=m;var T="CollapsibleTrigger",b=n.forwardRef((t,e)=>{let{__scopeCollapsible:i,...n}=t,r=v(T,i);return(0,p.jsx)(u.WV.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":getState(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...n,ref:e,onClick:(0,o.Mj)(t.onClick,r.onOpenToggle)})});b.displayName=T;var P="CollapsibleContent",S=n.forwardRef((t,e)=>{let{forceMount:i,...n}=t,r=v(P,t.__scopeCollapsible);return(0,p.jsx)(c.z,{present:i||r.open,children:({present:t})=>(0,p.jsx)(w,{...n,ref:e,present:t})})});S.displayName=P;var w=n.forwardRef((t,e)=>{let{__scopeCollapsible:i,present:r,children:s,...o}=t,l=v(P,i),[c,d]=n.useState(r),m=n.useRef(null),f=(0,a.e)(e,m),g=n.useRef(0),y=g.current,x=n.useRef(0),T=x.current,b=l.open||c,S=n.useRef(b),w=n.useRef(void 0);return n.useEffect(()=>{let t=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(t)},[]),(0,h.b)(()=>{let t=m.current;if(t){w.current=w.current||{transitionDuration:t.style.transitionDuration,animationName:t.
26style.animationName},t.style.transitionDuration="0s",t.style.animationName="none";let e=t.getBoundingClientRect();g.current=e.height,x.current=e.width,S.current||(t.style.transitionDuration=w.current.transitionDuration,t.style.animationName=w.current.animationName),d(r)}},[l.open,r]),(0,p.jsx)(u.WV.div,{"data-state":getState(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!b,...o,ref:f,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":T?`${T}px`:void 0,...t.style},children:b&&s})});function getState(t){return t?"open":"closed"}var A=i(78990),V="Accordion",M=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[D,E,C]=(0,s.B)(V),[k,R]=(0,r.b)(V,[C,g]),L=g(),B=n.forwardRef((t,e)=>{let{type:i,...n}=t;return(0,p.jsx)(D.Provider,{scope:t.__scopeAccordion,children:"multiple"===i?(0,p.jsx)(W,{...n,ref:e}):(0,p.jsx)(N,{...n,ref:e})})});B.displayName=V;var[F,j]=k(V),[I,O]=k(V,{collapsible:!1}),N=n.forwardRef((t,e)=>{let{value:i,defaultValue:r,onValueChange:s=()=>{},collapsible:a=!1,...o}=t,[u,h]=(0,l.T)({prop:i,defaultProp:r??"",onChange:s,caller:V});return(0,p.jsx)(F,{scope:t.__scopeAccordion,value:n.useMemo(()=>u?[u]:[],[u]),onItemOpen:h,onItemClose:n.useCallback(()=>a&&h(""),[a,h]),children:(0,p.jsx)(I,{scope:t.__scopeAccordion,collapsible:a,children:(0,p.jsx)(_,{...o,ref:e})})})}),W=n.forwardRef((t,e)=>{let{value:i,defaultValue:r,onValueChange:s=()=>{},...a}=t,[o,u]=(0,l.T)({prop:i,defaultProp:r??[],onChange:s,caller:V}),h=n.useCallback(t=>u((e=[])=>[...e,t]),[u]),c=n.useCallback(t=>u((e=[])=>e.filter(e=>e!==t)),[u]);return(0,p.jsx)(F,{scope:t.__scopeAccordion,value:o,onItemOpen:h,onItemClose:c,children:(0,p.jsx)(I,{scope:t.__scopeAccordion,collapsible:!0,children:(0,p.jsx)(_,{...a,ref:e})})})}),[$,U]=k(V),_=n.forwardRef((t,e)=>{let{__scopeAccordion:i,disabled:r,dir:s,orientation:l="vertical",...h}=t,c=n.useRef(null),d=(0,a.e)(c,e),m=E(i),f=(0,A.gm)(s),g="ltr"===f,y=(0,o.Mj)(t.onKeyDown,t=>{if(!M.includes(t.key))return;let e=t.target,i=m().filter(t=>!t.ref.current?.disabled),n=i.findIndex(t=>t.ref.current===e),r=i.length;if(-1===n)return;t.preventDefault();let s=n,a=r-1,moveNext=()=>{(s=n+1)>a&&(s=0)},movePrev=()=>{(s=n-1)<0&&(s=a)};switch(t.key){case"Home":s=0;break;case"End":s=a;break;case"ArrowRight":"horizontal"===l&&(g?moveNext():movePrev());break;case"ArrowDown":"vertical"===l&&moveNext();break;case"ArrowLeft":"horizontal"===l&&(g?movePrev():moveNext());break;case"ArrowUp":"vertical"===l&&movePrev()}let o=s%r;i[o].ref.current?.focus()});return(0,p.jsx)($,{scope:i,disabled:r,direction:s,orientation:l,children:(0,p.jsx)(D.Slot,{scope:i,children:(0,p.jsx)(u.WV.div,{...h,"data-orientation":l,ref:d,onKeyDown:r?void 0:y})})})}),z="AccordionItem",[H,X]=k(z),K=n.forwardRef((t,e)=>{let{__scopeAccordion:i,value:n,...r}=t,s=U(z,i),a=j(z,i),o=L(i),l=(0,d.M)(),u=n&&a.value.includes(n)||!1,h=s.disabled||t.disabled;return(0,p.jsx)(H,{scope:i,open:u,disabled:h,triggerId:l,children:(0,p.jsx)(x,{"data-orientation":s.orientation,"data-state":dist_getState(u),...o,...r,ref:e,disabled:h,open:u,onOpenChange:t=>{t?a.onItemOpen(n):a.onItemClose(n)}})})});K.displayName=z;var G="AccordionHeader",Z=n.forwardRef((t,e)=>{let{__scopeAccordion:i,...n}=t,r=U(V,i),s=X(G,i);return(0,p.jsx)(u.WV.h3,{"data-orientation":r.orientation,"data-state":dist_getState(s.open),"data-disabled":s.disabled?"":void 0,...n,ref:e})});Z.displayName=G;var Y="AccordionTrigger",q=n.forwardRef((t,e)=>{let{__scopeAccordion:i,...n}=t,r=U(V,i),s=X(Y,i),a=O(Y,i),o=L(i);return(0,p.jsx)(D.ItemSlot,{scope:i,children:(0,p.jsx)(b,{"aria-disabled":s.open&&!a.collapsible||void 0,"data-orientation":r.orientation,id:s.triggerId,...o,...n,ref:e})})});q.displayName=Y;var Q="AccordionContent",J=n.forwardRef((t,e)=>{let{__scopeAccordion:i,...n}=t,r=U(V,i),s=X(Q,i),a=L(i);return(0,p.jsx)(S,{role:"region","aria-labelledby":s.triggerId,"data-orientation":r.orientation,...a,...n,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})});function dist_getState(t){return t?"open":"closed"}J.displayName=Q;var tt=B,te=K,ti=Z,tn=q,tr=J}
26,16014:function(t,e,i){i.d(e,{_:function(){return r}});var n=i(67294);let r=(0,n.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},46711:function(t,e,i){i.d(e,{E:function(){return eE}});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set([...n,"pathRotation"]);var s,a=i(7167),o=i(58094),l=i(7159);let u=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(l.K)||[];if(!n)return t;let r=i.replace(n,""),s=u.has(e)?1:0;return n!==i&&(s*=100),e+"("+s+r+")"}let h=/\b([a-z-]*)\(.*?\)/gu,c={...o.P,getAnimatableNone:t=>{let e=t.match(h);return e?e.map(applyDefaultFilter).join(" "):t}},d={...o.P,getAnimatableNone:t=>{let e=o.P.parse(t),i=o.P.createTransformer(t);return i(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}};var p=i(57958);let m={...p.Rx,transform:Math.round};var f=i(37259);let g={rotate:f.RW,pathRotation:f.RW,rotateX:f.RW,rotateY:f.RW,rotateZ:f.RW,scale:p.bA,scaleX:p.bA,scaleY:p.bA,scaleZ:p.bA,skew:f.RW,skewX:f.RW,skewY:f.RW,distance:f.px,translateX:f.px,translateY:f.px,translateZ:f.px,x:f.px,y:f.px,z:f.px,perspective:f.px,transformPerspective:f.px,opacity:p.Fq,originX:f.$C,originY:f.$C,originZ:f.px},y={borderWidth:f.px,borderTopWidth:f.px,borderRightWidth:f.px,borderBottomWidth:f.px,borderLeftWidth:f.px,borderRadius:f.px,borderTopLeftRadius:f.px,borderTopRightRadius:f.px,borderBottomRightRadius:f.px,borderBottomLeftRadius:f.px,width:f.px,maxWidth:f.px,height:f.px,maxHeight:f.px,top:f.px,right:f.px,bottom:f.px,left:f.px,inset:f.px,insetBlock:f.px,insetBlockStart:f.px,insetBlockEnd:f.px,insetInline:f.px,insetInlineStart:f.px,insetInlineEnd:f.px,padding:f.px,paddingTop:f.px,paddingRight:f.px,paddingBottom:f.px,paddingLeft:f.px,paddingBlock:f.px,paddingBlockStart:f.px,paddingBlockEnd:f.px,paddingInline:f.px,paddingInlineStart:f.px,paddingInlineEnd:f.px,margin:f.px,marginTop:f.px,marginRight:f.px,marginBottom:f.px,marginLeft:f.px,marginBlock:f.px,marginBlockStart:f.px,marginBlockEnd:f.px,marginInline:f.px,marginInlineStart:f.px,marginInlineEnd:f.px,fontSize:f.px,backgroundPositionX:f.px,backgroundPositionY:f.px,...g,zIndex:m,fillOpacity:p.Fq,strokeOpacity:p.Fq,numOctaves:m},v={...y,color:a.$,backgroundColor:a.$,outlineColor:a.$,fill:a.$,stroke:a.$,borderColor:a.$,borderTopColor:a.$,borderRightColor:a.$,borderBottomColor:a.$,borderLeftColor:a.$,filter:c,WebkitFilter:c,mask:d,WebkitMask:d},getDefaultValueType=t=>v[t],createAxisDelta=()=>({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()}),isMotionValue=t=>!!(t&&t.getVelocity),x=new Set(["width","height","top","left","right","bottom",...n]),testValueType=t=>e=>e.test(t),T=[p.Rx,f.px,f.aQ,f.RW,f.vw,f.vh,{test:t=>"auto"===t,parse:t=>t}],findDimensionValueType=t=>T.find(testValueType(t));var b=i(25386);let isNumericalString=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);var P=i(21219);let S=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,radToDeg=t=>180*t/Math.PI,rotate=t=>{let e=radToDeg(Math.atan2(t[1],t[0]));return rebaseAngle(e)},w={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate,rotateZ:rotate,skewX:t=>radToDeg(Math.atan(t[1])),skewY:t=>radToDeg(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},rebaseAngle=t=>((t%=360)<0&&(t+=360),t),scaleX=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),scaleY=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),A={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX,scaleY,scale:t=>(scaleX(t)+scaleY(t))/2,rotateX:t=>rebaseAngle(radToDeg(Math.atan2(t[6],t[5]))),rotateY:t=>rebaseAngle(radToDeg(Math.atan2(-t[2],t[0]))),rotateZ:rotate,rotate:rotate,skewX:t=>radToDeg(Math.atan(t[4])),skewY:t=>radToDeg(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function defaultTransformValue(t){return t.includes("scale")?1:0}function parseValueFromTransform(t,e){let i,n;if(!t||"none"===t)return defaultTransformValue(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=A,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=w,n=e}if(!n)return defaultTransformValue(e);let s=i[e],a=n[1].split(",").map(convertTransformToNumber);return"function"==typeof s?s(a):a[s]}let readTransformValue=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return parseValueFromTransform(i,e)};function convertTransformToNumber(t){return parseFloat(t.trim())}let isNumOrPxType=t=>t===p.Rx||t===f.px,V=new Set(["x","y","z"]),M=n.filter(t=>!V.has(t)),D={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:n})=>{let r=t.max-t.min;return"border-box"===n?r:r-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:n})=>{let r=t.max-t.min;return"border-box"===n?r:r-parseFloat(e)-parseFloat(i)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>parseValueFromTransform(e,"x"),y:(t,{transform:e})=>parseValueFromTransform(e,"y")};D.translateX=D.x,D.translateY=D.y;var E=i(82866);let C=new Set,k=!1,R=!1,L=!1;function measureAllKeyframes(){if(R){let t=Array.from(C).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return M.forEach(i=>
26{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}R=!1,k=!1,C.forEach(t=>t.complete(L)),C.clear()}function readAllKeyframes(){C.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(R=!0)})}let KeyframeResolver=class KeyframeResolver{constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(C.add(this),k||(k=!0,E.Wi.read(readAllKeyframes),E.Wi.resolveKeyframes(measureAllKeyframes))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),C.delete(this)}cancel(){"scheduled"===this.state&&(C.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}};let isZeroValueString=t=>/^0[^.\s]+$/u.test(t),B=new Set([c,d]);function getAnimatableNone(t,e){let i=getDefaultValueType(t);return B.has(i)||(i=o.P),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let F=new Set(["auto","none","0"]);let DOMKeyframesResolver=class DOMKeyframesResolver extends KeyframeResolver{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&(n=n.trim(),(0,P.tm)(n))){let r=function getVariableValue(t,e,i=1){(0,b.k)(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,r]=function(t){let e=S.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}(t);if(!n)return;let s=window.getComputedStyle(e).getPropertyValue(n);if(s){let t=s.trim();return isNumericalString(t)?parseFloat(t):t}return(0,P.tm)(r)?getVariableValue(r,e,i+1):r}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!x.has(i)||2!==t.length)return;let[n,r]=t,s=findDimensionValueType(n),a=findDimensionValueType(r),o=(0,P.V3)(n),l=(0,P.V3)(r);if(o!==l&&D[i]){this.needsMeasurement=!0;return}if(s!==a){if(isNumOrPxType(s)&&isNumOrPxType(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else D[i]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||isZeroValueString(n)))&&i.push(e)}i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!F.has(e)&&(0,o.V)(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=getAnimatableNone(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=D[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=D[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
26h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}};let time_conversion_secondsToMilliseconds=t=>1e3*t,millisecondsToSeconds=t=>t/1e3;var j=i(88449),I=i(27726);let isCSSVar=t=>t.startsWith("--");function setStyle(t,e,i){isCSSVar(e)?t.style.setProperty(e,i):t.style[e]=i}var O=i(84548);let isNotNull=t=>null!==t;function getFinalKeyframe(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter(isNotNull),a=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return a&&void 0!==n?n:s[a]}let WithPromise=class WithPromise{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}};let isBezierDefinition=t=>Array.isArray(t)&&"number"==typeof t[0];var N=i(63898);let W=(0,N.p)(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),generateLinearEasing=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},cubicBezierAsString=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,$={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])};function isGenerator(t){return"function"==typeof t&&"applyToOptions"in t}let NativeAnimation=class NativeAnimation extends WithPromise{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,(0,b.k)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return isGenerator(t)&&W()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let c=function mapEasingToNativeEasing(t,e){if(t)return"function"==typeof t?W()?generateLinearEasing(t,e):"ease-out":isBez
26ierDefinition(t)?cubicBezierAsString(t):Array.isArray(t)?t.map(t=>mapEasingToNativeEasing(t,e)||$.easeOut):$[t]}(o,r);Array.isArray(c)&&(h.easing=c);let d={delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"};return u&&(d.pseudoElement=u),t.animate(h,d)}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=getFinalKeyframe(n,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(t),setStyle(e,i,t),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return millisecondsToSeconds(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+millisecondsToSeconds(t)}get time(){return millisecondsToSeconds(Number(this.animation.currentTime)||0)}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=time_conversion_secondsToMilliseconds(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&(0,O.t)())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),I.Z):n(this)}};let U=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);var _=i(86008),z=i(67245),H=i(68486);let X=[...T,a.$,o.P],findValueType=t=>X.find(testValueType(t)),K=new WeakMap;function isAnimationControls(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function isVariantLabel(t){return"string"==typeof t||Array.isArray(t)}let G=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Z=["initial",...G];function isControllingVariants(t){return isAnimationControls(t.animate)||Z.some(e=>isVariantLabel(t[e]))}function isVariantNode(t){return!!(isControllingVariants(t)||t.variants)}var Y=i(96779);function getValueState(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function resolveVariantFromProps(t,e,i,n){if("function"==typeof e){let[r,s]=getValueState(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=getValueState(n);e=e(void 0!==i?i:t.custom,r,s)}return e}var q=i(20964);let Q=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],J={};let VisualElement=class VisualElement{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:s,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=KeyframeResolver,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=z.X.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,E.Wi.render(this.render,!1,!0))};let{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=r,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=isControllingVariants(e),this.isVariantNode=isVariantNode(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in c){let e=c[t];void 0!==l[t]&&isMotionValue(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,K.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
26h((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(q.O.current||(0,Y.Ad)(),this.shouldReduceMotion=q.n.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,E.Pn)(this.notifyUpdate),(0,E.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&U.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:r,ease:s,duration:a}=e.accelerate,o=new NativeAnimation({element:this.current,name:t,keyframes:n,times:r,ease:s,duration:time_conversion_secondsToMilliseconds(a)}),l=i(o);this.valueSubscriptions.set(t,()=>{l(),o.cancel()});return}let n=r.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&E.Wi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in J){let e=J[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<Q.length;e++){let i=Q[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n="on"+i,r=t[n];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(isMotionValue(r))t.addValue(n,r);else if(isMotionValue(s))t.addValue(n,(0,H.BX)(r,{owner:t}));else if(s!==r){if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,(0,H.BX)(void 0!==e?e:r,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,H.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(isNumericalString(i)||isZeroValueString(i))?i=parseFloat(i):!findValueType(i)&&o.P.test(e)&&(i=getAnimatableNone(t,e)),this.setBaseTarget(t,isMotionValue(i)?i.get():i)),isMotionValue(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=resolveVariantFromProps(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||isMotionValue(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new j.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){_.g.render(this.render)}};let DOMVisualElement=class DOMVisualElement extends VisualElement{constructor(){super(...arguments),this.KeyframeResolver=DOMKeyframesResolver}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;isMotionValue(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}};function camelToDash(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let getValueAsType=(t,e)=>e&&"number"==typeof t?e.transform(t):t,tt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},te=n.length;function buildHTMLStyles(t,e,i){let{style:s,vars:a,transformOrigin:o}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(r.has(t)){l=!0;continue}if((0,P.f9)(t)){a[t]=i;continue}{let e=getValueAsType(i,y[t]);t.startsWith("origin")?(u=!0,o[t]=e):s[t]=e}}
26if(!e.transform&&(l||i?s.transform=function(t,e,i){let r="",s=!0;for(let a=0;a<te;a++){let o=n[a],l=t[o];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===(o.startsWith("scale")?1:0);else{let t=parseFloat(l);u=o.startsWith("scale")?1===t:0===t}if(!u||i){let t=getValueAsType(l,y[o]);if(!u){s=!1;let e=tt[o]||o;r+=`${e}(${t}) `}i&&(e[o]=t)}}let a=t.pathRotation;return a&&(s=!1,r+=`rotate(${getValueAsType(a,y.pathRotation)}) `),r=r.trim(),i?r=i(e,s?"":r):s&&(r="none"),r}(e,t.transform,i):s.transform&&(s.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=o;s.transformOrigin=`${t} ${e} ${i}`}}let ti={offset:"stroke-dashoffset",array:"stroke-dasharray"},tn={offset:"strokeDashoffset",array:"strokeDasharray"},tr=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function buildSVGAttrs(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:a=0,...o},l,u,h){if(buildHTMLStyles(t,o,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;for(let t of(c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),tr))void 0!==c[t]&&(d[t]=c[t],delete c[t]);void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==r&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?ti:tn;t[s.offset]=`${-n}`,t[s.array]=`${e} ${i}`}(c,r,s,a,!1)}let ts=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"]),isSVGTag=t=>"string"==typeof t&&"svg"===t.toLowerCase();function renderHTML(t,{style:e,vars:i},n,r){let s;let a=t.style;for(s in e)a[s]=e[s];for(s in r?.applyProjectionStyles(a,n),i)a.setProperty(s,i[s])}let ta=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function pixelsToPercent(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let to={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!f.px.test(t))return t;t=parseFloat(t)}let i=pixelsToPercent(t,e.target.x),n=pixelsToPercent(t,e.target.y);return`${i}% ${n}%`}};var tl=i(82659);let tu={borderRadius:{...to,applyTo:[...ta]},borderTopLeftRadius:to,borderTopRightRadius:to,borderBottomLeftRadius:to,borderBottomRightRadius:to,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=o.P.parse(t);if(n.length>5)return t;let r=o.P.createTransformer(t),s="number"!=typeof n[0]?1:0,a=i.x.scale*e.x,l=i.y.scale*e.y;n[0+s]/=a,n[1+s]/=l;let u=(0,tl.t)(a,l,.5);return"number"==typeof n[2+s]&&(n[2+s]/=u),"number"==typeof n[3+s]&&(n[3+s]/=u),r(n)}}};function isForcedMotionValue(t,{layout:e,layoutId:i}){return r.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!tu[t]||"opacity"===t)}function scrapeMotionValuesFromProps(t,e,i){let n=t.style,r=e?.style,s={};if(!n)return s;for(let e in n)(isMotionValue(n[e])||r&&isMotionValue(r[e])||isForcedMotionValue(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(s[e]=n[e]);return s}function scrape_motion_values_scrapeMotionValuesFromProps(t,e,i){let r=scrapeMotionValuesFromProps(t,e,i);for(let i in t)if(isMotionValue(t[i])||isMotionValue(e[i])){let e=-1!==n.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[e]=t[i]}return r}let SVGVisualElement=class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=createBox}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(r.has(e)){let t=getDefaultValueType(e);return t&&t.default||0}return e=ts.has(e)?e:camelToDash(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return scrape_motion_values_scrapeMotionValuesFromProps(t,e,i)}build(t,e,i){buildSVGAttrs(t,e,this.isSVGTag,i.transformTemplate,i.style)}
26renderInstance(t,e,i,n){!function(t,e,i,n){for(let i in renderHTML(t,e,void 0,n),e.attrs)t.setAttribute(ts.has(i)?i:camelToDash(i),e.attrs[i])}(t,e,0,n)}mount(t){this.isSVGTag=isSVGTag(t.tagName),super.mount(t)}};function convertBoundingBoxToBox({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function isIdentityScale(t){return void 0===t||1===t}function hasScale({scale:t,scaleX:e,scaleY:i}){return!isIdentityScale(t)||!isIdentityScale(e)||!isIdentityScale(i)}function hasTransform(t){return hasScale(t)||has2DTranslate(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function has2DTranslate(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function applyPointDelta(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function applyAxisDelta(t,e=0,i=1,n,r){t.min=applyPointDelta(t.min,e,i,n,r),t.max=applyPointDelta(t.max,e,i,n,r)}function applyBoxDelta(t,{x:e,y:i}){applyAxisDelta(t.x,e.translate,e.scale,e.originPoint),applyAxisDelta(t.y,i.translate,i.scale,i.originPoint)}function translateAxis(t,e){t.min+=e,t.max+=e}function transformAxis(t,e,i,n,r=.5){let s=(0,tl.t)(t.min,t.max,r);applyAxisDelta(t,e,i,s,n)}function resolveAxisTranslate(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function transformBox(t,e,i){let n=i??t;transformAxis(t.x,resolveAxisTranslate(e.x,n.x),e.scaleX,e.scale,e.originX),transformAxis(t.y,resolveAxisTranslate(e.y,n.y),e.scaleY,e.scale,e.originY)}function measureViewportBox(t,e){return convertBoundingBoxToBox(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let HTMLVisualElement=class HTMLVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="html",this.renderInstance=renderHTML}mount(t){(0,b.k)(!!t.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(t)}readValueFromInstance(t,e){if(r.has(e))return this.projection?.isProjecting?defaultTransformValue(e):readTransformValue(t,e);{let i=window.getComputedStyle(t),n=((0,P.f9)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return measureViewportBox(t,e)}build(t,e,i){buildHTMLStyles(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return scrapeMotionValuesFromProps(t,e,i)}};var th=i(67294);let tc=["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 isSVGComponent(t){if("string"!=typeof t||t.includes("-"));
26else if(tc.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var td=i(85893);let tp=(0,th.createContext)({}),tm=(0,th.createContext)({strict:!1});var tf=i(16014);let tg=(0,th.createContext)({});function variantLabelsAsDependency(t){return Array.isArray(t)?t.join(" "):t}let createHtmlRenderState=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly(t,e,i){for(let n in e)isMotionValue(e[n])||isForcedMotionValue(n,i)||(t[n]=e[n])}function useHTMLProps(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return copyRawValuesOnly(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,th.useMemo)(()=>{let i=createHtmlRenderState();return buildHTMLStyles(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i}let createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}});
26function useSVGProps(t,e,i,n){let r=(0,th.useMemo)(()=>{let i=createSvgRenderState();return buildSVGAttrs(i,e,isSVGTag(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};copyRawValuesOnly(e,t.style,t),r.style={...e,...r.style}}return r}let ty=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function isValidMotionProp(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ty.has(t)}let shouldForward=t=>!isValidMotionProp(t);try{s=require("@emotion/is-prop-valid").default,"function"==typeof s&&(shouldForward=t=>t.startsWith("on")?!isValidMotionProp(t):s(t))}catch{}function resolveMotionValue(t){return isMotionValue(t)?t.get():t}let tv=(0,th.createContext)(null);var tx=i(96681);let makeUseVisualState=t=>(e,i)=>{let n=(0,th.useContext)(tg),r=(0,th.useContext)(tv),make=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,r){let s={latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=resolveMotionValue(s[t]);let{initial:a,animate:o}=t,l=isControllingVariants(t),u=isVariantNode(t);e&&u&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===o&&(o=e.animate));let h=!!i&&!1===i.initial;h=h||!1===a;let c=h?o:a;if(c&&"boolean"!=typeof c&&!isAnimationControls(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=resolveVariantFromProps(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(i,n,r,t),renderState:e()};return s})(t,e,n,r);return i?make():(0,tx.h)(make)},tT=makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps,createRenderState:createHtmlRenderState}),tb=makeUseVisualState({scrapeMotionValuesFromProps:scrape_motion_values_scrapeMotionValuesFromProps,createRenderState:createSvgRenderState}),tP={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"]},tS=!1;function getInitializedFeatureDefinitions(){return!function(){if(tS)return;let t={};for(let e in tP)t[e]={isEnabled:t=>tP[e].some(e=>!!t[e])};J=t,tS=!0}(),J}let tw=Symbol.for("motionComponentSymbol"),tA="data-"+camelToDash("framerAppearId"),tV=(0,th.createContext)({});function isRefObject(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var tM=i(75062);function createMotionComponent(t,{forwardMotionProps:e=!1,type:i}={},n,r){n&&function(t){let e=getInitializedFeatureDefinitions();for(let i in t)e[i]={...e[i],...t[i]};J=e}(n);let s=i?"svg"===i:isSVGComponent(t),a=s?tb:tT;function MotionDOMComponent(i,n){let o;let l={...(0,th.useContext)(tf._),...i,layoutId:function({layoutId:t}){let e=(0,th.useContext)(tp).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:u}=l,h=function(t){let{initial:e,animate:i}=function(t,e){if(isControllingVariants(t)){let{initial:e,animate:i}=t;return{initial:!1===e||isVariantLabel(e)?e:void 0,animate:isVariantLabel(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,th.useContext)(tg));return(0,th.useMemo)(()=>({initial:e,animate:i}),[variantLabelsAsDependency(e),variantLabelsAsDependency(i)])}(i),c=a(i,u);if(!u&&"undefined"!=typeof window){(0,th.useContext)(tm).strict;let e=function(t){let e=getInitializedFeatureDefinitions(),{drag:i,layout:n}=e;if(!i&&!n)return{};let r={...i,...n};return{MeasureLayout:i?.isEnabled(t)||n?.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
26(l);o=e.MeasureLayout,h.visualElement=function(t,e,i,n,r,s){let{visualElement:a}=(0,th.useContext)(tg),o=(0,th.useContext)(tm),l=(0,th.useContext)(tv),u=(0,th.useContext)(tf._),h=u.reducedMotion,c=u.skipAnimations,d=(0,th.useRef)(null),p=(0,th.useRef)(!1);n=n||o.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:a,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:h,skipAnimations:c,isSVG:s}),p.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));let m=d.current,f=(0,th.useContext)(tV);m&&!m.projection&&r&&("html"===m.type||"svg"===m.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:c}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function getClosestProjectingNode(t){if(t)return!1!==t.options.allowProjection?t.projection:getClosestProjectingNode(t.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!a||o&&isRefObject(o),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(d.current,i,r,f);let g=(0,th.useRef)(!1);(0,th.useInsertionEffect)(()=>{m&&g.current&&m.update(i,l)});let y=i[tA],v=(0,th.useRef)(!!y&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return(0,tM.L)(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,th.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),m.enteringChildren=void 0)}),m}(t,c,l,r,e.ProjectionNode,s)}return(0,td.jsxs)(tg.Provider,{value:h,children:[o&&h.visualElement?(0,td.jsx)(o,{visualElement:h.visualElement,...l}):null,function(t,e,i,{latestValues:n},r,s=!1,a){let o=a??isSVGComponent(t)?useSVGProps:useHTMLProps,l=o(e,n,r,t),u=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&!isMotionValue(t[r])&&(shouldForward(r)||!0===i&&isValidMotionProp(r)||!e&&!isValidMotionProp(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,s),h=t!==th.Fragment?{...u,...l,ref:i}:{},{children:c}=e,d=(0,th.useMemo)(()=>isMotionValue(c)?c.get():c,[c]);return(0,th.createElement)(t,{...h,children:d})}(t,i,function(t,e,i){let n=(0,th.useRef)(i);(0,th.useInsertionEffect)(()=>{n.current=i});let r=(0,th.useRef)(null);return(0,th.useCallback)(i=>{i&&t.onMount?.(i),e&&(i?e.mount(i):e.unmount());let s=n.current;if("function"==typeof s){if(i){let t=s(i);"function"==typeof t&&(r.current=t)}else r.current?(r.current(),r.current=null):s(i)}else s&&(s.current=i)},[e])}(c,h.visualElement,n),c,u,e,s)]})}MotionDOMComponent.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let o=(0,th.forwardRef)(MotionDOMComponent);return o[tw]=t,o}let Feature=class Feature{constructor(t){this.isMounted=!1,this.node=t}update(){}};function resolveVariant(t,e,i){let n=t.getProps();return resolveVariantFromProps(n,e,void 0!==i?i:n.custom,t)}function resolveTransition(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function getValueTransition(t,e){let i=t?.[e]??t?.default??t;return i!==t?resolveTransition(i,t):i}let isKeyframesTarget=t=>Array.isArray(t);var tD=i(42218);function addValueToWillChange(t,e){let i=t.getValue("willChange");if(isMotionValue(i)&&i.add)return i.add(e);if(!i&&tD.c.WillChange){let i=new tD.c.WillChange("auto");t.addValue("willChange",i),i.add(e)}}var tE=i(377),tC=i(488),tk=i(88712);let frameloopDriver=t=>{let passTimestamp=({timestamp:e})=>t(e);return{start:(t=!0)=>E.Wi.update(passTimestamp,t),stop:()=>(0,E.Pn)(passTimestamp),now:()=>E.frameData.isProcessing?E.frameData.timestamp:z.X.now()}};function calcGeneratorDuration(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let tR={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function calcAngularFreq(t,e){return t*Math.sqrt(1-e*e)}let tL=["duration","bounce"],tB=["stiffness","damping","mass"];function isSpringType(t,e){return e.some(e=>void 0!==t[e])}function spring(t=tR.visualDuration,e=tR.bounce){let i,n,r,s,a,o;let l="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:u,restDelta:h}=l,c=l.keyframes[0],d=l.keyframes[l.keyframes.length-1],p={done:!1,value:c},{stiffness:m,damping:f,mass:g,duration:y,velocity:v,isResolvedFromDuration:x}=function(t){let e={velocity:tR.velocity,stiffness:tR.stiffness,damping:tR.damping,mass:tR.mass,isResolvedFromDuration:!1,...t};if(!isSpringType(t,tB)&&isSpringType(t,tL)){if(e.velocity=0,t.visualDuration){let i=t.visualDuration,n=2*Math.PI/(1.2*i),r=n*n,s=2*(0,tC.u)(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:tR.mass,stiffness:r,damping:s}}else{let i=function({duration:t=tR.duration,bounce:e=tR.bounce,velocity:i=tR.velocity,mass:n=tR.mass}){let r,s;(0,b.K)(t<=time_conversion_secondsToMilliseconds(tR.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=(0,tC.u)(tR.minDamping,tR.maxDamping,a),t=(0,tC.u)(tR.minDuration,tR.maxDuration,millisecondsToSeconds(t)),a<1?(r=e=>{let n=e*a,r=n*t,s=calcAngularFreq(e,a);return .001-(n-i)/s*Math.exp(-r)},s=e=>{let n=e*a,s=n*t,o=Math.pow(a,2)*Math.pow(e,2)*t,l=calcAngularFreq(Math.pow(e,2),a),u=-r(e)+.001>0?-1:1;return u*((s*i+i-o)*Math.exp(-s))/l}):(r=e=>{let n=Math.exp(-e*t),r=(e-i)*t+1;return -.001+n*r},s=e=>{let n=Math.exp(-e*t),r=(i-e)*(t*t);return n*r});
26let o=5/t,l=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,o);if(t=time_conversion_secondsToMilliseconds(t),isNaN(l))return{stiffness:tR.stiffness,damping:tR.damping,duration:t};{let e=Math.pow(l,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:tR.mass}).isResolvedFromDuration=!0}}return e}({...l,velocity:-millisecondsToSeconds(l.velocity||0)}),T=v||0,P=f/(2*Math.sqrt(m*g)),S=d-c,w=millisecondsToSeconds(Math.sqrt(m/g)),A=5>Math.abs(S);if(u||(u=A?tR.restSpeed.granular:tR.restSpeed.default),h||(h=A?tR.restDelta.granular:tR.restDelta.default),P<1)r=calcAngularFreq(w,P),s=(T+P*w*S)/r,i=t=>{let e=Math.exp(-P*w*t);return d-e*(s*Math.sin(r*t)+S*Math.cos(r*t))},a=P*w*s+S*r,o=P*w*S-s*r,n=t=>{let e=Math.exp(-P*w*t);return e*(a*Math.sin(r*t)+o*Math.cos(r*t))};else if(1===P){i=t=>d-Math.exp(-w*t)*(S+(T+w*S)*t);let t=T+w*S;n=e=>Math.exp(-w*e)*(w*t*e-T)}else{let t=w*Math.sqrt(P*P-1);i=e=>{let i=Math.exp(-P*w*e),n=Math.min(t*e,300);return d-i*((T+P*w*S)*Math.sinh(n)+t*S*Math.cosh(n))/t};let e=(T+P*w*S)/t,r=P*w*e-S*t,s=P*w*S-e*t;n=e=>{let i=Math.exp(-P*w*e),n=Math.min(t*e,300);return i*(r*Math.sinh(n)+s*Math.cosh(n))}}let V={calculatedDuration:x&&y||null,velocity:t=>time_conversion_secondsToMilliseconds(n(t)),next:t=>{if(!x&&P<1){let e=Math.exp(-P*w*t),i=Math.sin(r*t),n=Math.cos(r*t),l=d-e*(s*i+S*n),c=time_conversion_secondsToMilliseconds(e*(a*i+o*n));return p.done=Math.abs(c)<=u&&Math.abs(d-l)<=h,p.value=p.done?d:l,p}let e=i(t);if(x)p.done=t>=y;else{let i=time_conversion_secondsToMilliseconds(n(t));p.done=Math.abs(i)<=u&&Math.abs(d-e)<=h}return p.value=p.done?d:e,p},toString:()=>{let t=Math.min(calcGeneratorDuration(V),2e4),e=generateLinearEasing(e=>V.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return V}spring.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(calcGeneratorDuration(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:millisecondsToSeconds(r)}}(t,100,spring);return t.ease=e.ease,t.duration=time_conversion_secondsToMilliseconds(e.duration),t.type="keyframes",t};var tF=i(37142);function getGeneratorVelocity(t,e,i){let n=Math.max(e-5,0);return(0,tF.R)(i-t(n),e-n)}function inertia({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let c,d;let p=t[0],m={done:!1,value:p},isOutOfBounds=t=>void 0!==o&&t<o||void 0!==l&&t>l,nearestBoundary=t=>void 0===o?l:void 0===l?o:Math.abs(o-t)<Math.abs(l-t)?o:l,f=i*e,g=p+f,y=void 0===a?g:a(g);y!==g&&(f=y-p);let calcDelta=t=>-f*Math.exp(-t/n),calcLatest=t=>y+calcDelta(t),applyFriction=t=>{let e=calcDelta(t),i=calcLatest(t);m.done=Math.abs(e)<=u,m.value=m.done?y:i},checkCatchBoundary=t=>{isOutOfBounds(m.value)&&(c=t,d=spring({keyframes:[m.value,nearestBoundary(m.value)],velocity:getGeneratorVelocity(calcLatest,t,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return checkCatchBoundary(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,applyFriction(t),checkCatchBoundary(t)),void 0!==c&&t>=c)?d.next(t-c):(e||applyFriction(t),m)}}}let calcBezier=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function cubicBezier(t,e,i,n){if(t===e&&i===n)return I.Z;let getTForX=e=>(function(t,e,i,n,r){let s,a;let o=0;do(s=calcBezier(a=e+(i-e)/2,n,r)-t)>0?i=a:e=a;while(Math.abs(s)>1e-7&&++o<12);return a})(e,0,1,t,i);return t=>0===t||1===t?t:calcBezier(getTForX(t),e,n)}let tj=cubicBezier(.42,0,1,1),tI=cubicBezier(0,0,.58,1),tO=cubicBezier(.42,0,.58,1),isEasingArray=t=>Array.isArray(t)&&"number"!=typeof t[0],mirrorEasing=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,reverseEasing=t=>e=>1-t(1-e),tN=cubicBezier(.33,1.53,.69,.99),tW=reverseEasing(tN),t$=mirrorEasing(tW),anticipate=t=>t>=1?1:(t*=2)<1?.5*tW(t):.5*(2-Math.pow(2,-10*(t-1))),circIn=t=>1-Math.sin(Math.acos(t)),tU=reverseEasing(circIn),t_=mirrorEasing(circIn),tz={linear:I.Z,easeIn:tj,easeInOut:tO,easeOut:tI,circIn:circIn,circInOut:t_,circOut:tU,backIn:tW,backInOut:t$,backOut:tN,anticipate:anticipate},isValidEasing=t=>"string"==typeof t,easingDefinitionToFunction=t=>
26{if(isBezierDefinition(t)){(0,b.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return cubicBezier(e,i,n,r)}return isValidEasing(t)?((0,b.k)(void 0!==tz[t],`Invalid easing type '${t}'`,"invalid-easing-type"),tz[t]):t};var tH=i(98098),tX=i(7790);function keyframes({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=isEasingArray(n)?n.map(easingDefinitionToFunction):easingDefinitionToFunction(n),s={done:!1,value:e[0]},a=(i&&i.length===e.length?i:(0,tX.Y)(e)).map(e=>e*t),o=(0,tH.s)(a,e,{ease:Array.isArray(r)?r:e.map(()=>r||tO).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}let tK={decay:inertia,inertia:inertia,tween:keyframes,keyframes:keyframes,spring:spring};function replaceTransitionType(t){"string"==typeof t.type&&(t.type=tK[t.type])}let percentToProgress=t=>t/100;let JSAnimation=class JSAnimation extends WithPromise{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==z.X.now()&&this.tick(z.X.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;replaceTransitionType(t);let{type:e=keyframes,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:a}=t,o=e||keyframes;o!==keyframes&&"number"!=typeof a[0]&&(this.mixKeyframes=(0,tE.z)(percentToProgress,(0,tk.C)(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===r&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=calcGeneratorDuration(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i;let{generator:n,totalDuration:r,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:h,repeat:c,repeatType:d,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>r;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let x=this.currentTime,T=n;if(c){let t=Math.min(this.currentTime,r)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,e=Math.min(e,c+1);let n=!!(e%2);n&&("reverse"===d?(i=1-i,p&&(i-=p/o)):"mirror"===d&&(T=a)),x=(0,tC.u)(0,1,i)*o}v?(this.delayState.value=h[0],i=this.delayState):i=T.next(x),s&&!v&&(i.value=s(i.value));let{done:b}=i;v||null===l||(b=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return P&&m!==inertia&&(i.value=getFinalKeyframe(h,this.options,g,this.speed)),f&&f(i.value),P&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return millisecondsToSeconds(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+millisecondsToSeconds(t)}get time(){return millisecondsToSeconds(this.currentTime)}set time(t){t=time_conversion_secondsToMilliseconds(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return getGeneratorVelocity(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(z.X.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=millisecondsToSeconds(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=frameloopDriver,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(z.X.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};let tG={anticipate:anticipate,backInOut:t$,circInOut:t_};let NativeAnimationExtended=class NativeAnimationExtended extends NativeAnimation{constructor(t){"string"==typeof t.ease&&t.ease in tG&&(t.ease=tG[t.ease]),replaceTransitionType(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let a=new JSAnimation({...s,autoplay:!1}),o=Math.max(10,z.X.now()-this.startTime),l=(0,tC.u)(0,10,o-10),u=a.sample(o).value,{name:h}=this.options;r&&h&&setStyle(r,h,u),e.setWithVelocity(a.sample(Math.max(0,o-l)).value,u,l),a.stop()}};let isAnimatable=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(o.P.test(t)||"0"===t)&&!t.startsWith("url("));function makeAnimationInstant(t){t.duration=0,t.type="keyframes"}var tZ=i(70942);let tY=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,tq=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),tQ=(0,tZ.X)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));let AsyncMotionValueAnimation=class AsyncMotionValueAnimation extends WithPromise{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=z.X.now();let c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:o,motionValue:l,element:u,...h},d=u?.KeyframeResolver||KeyframeResolver;this.keyframeResolver=new d(a,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let r;this.keyframeResolver=void 0;let{name:s,type:a,velocity:o,delay:l,isHandoff:u,onUpdate:h}=i;this.resolvedAt=z.X.now();let c=!0;
26!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],a=isAnimatable(r,e),o=isAnimatable(s,e);return(0,b.K)(a===o,`You are trying to animate ${e} from "${r}" to "${s}". "${a?s:r}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||isGenerator(i))&&n)}(t,s,a,o)&&(c=!1,(tD.c.instantAnimations||!l)&&h?.(getFinalKeyframe(t,i,e)),t[0]=t[t.length-1],makeAnimationInstant(i),i.repeat=0);let d=n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,p={startTime:d,finalKeyframe:e,...i,keyframes:t},m=c&&!u&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:a,keyframes:o}=t,l=e?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:h}=e.owner.getProps();return tQ()&&i&&(U.has(i)||tq.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&tY.test(t[e]))return!0;return!1}(o))&&("transform"!==i||!h)&&!u&&!n&&"mirror"!==r&&0!==s&&"inertia"!==a}(p),f=p.motionValue?.owner?.current;if(m)try{r=new NativeAnimationExtended({...p,element:f})}catch{r=new JSAnimation(p)}else r=new JSAnimation(p);r.finished.then(()=>{this.notifyFinished()}).catch(I.Z),this.pendingTimeline&&(this.stopTimeline=r.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=r}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),L=!0,readAllKeyframes(),measureAllKeyframes(),L=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};let tJ={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),t0={type:"keyframes",duration:.8},t1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(t,{keyframes:e})=>e.length>2?t0:r.has(t)?t.startsWith("scale")?criticallyDampedSpring(e[1]):tJ:t1,t2=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),animateMotionValue=(t,e,i,n={},r,s)=>a=>{let o=getValueTransition(n,t)||{},l=o.delay||n.delay||0,{elapsed:u=0}=n;u-=time_conversion_secondsToMilliseconds(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-u,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function(t){for(let e in t)if(!t2.has(e))return!0;return!1}(o)&&Object.assign(h,getDefaultTransition(t,h)),h.duration&&(h.duration=time_conversion_secondsToMilliseconds(h.duration)),h.repeatDelay&&(h.repeatDelay=time_conversion_secondsToMilliseconds(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(makeAnimationInstant(h),0!==h.delay||(c=!0)),(tD.c.instantAnimations||tD.c.skipAnimations||r?.shouldSkipAnimations||o.skipAnimations)&&(c=!0,makeAnimationInstant(h),h.delay=0),h.allowFlatten=!o.type&&!o.ease,c&&!s&&void 0!==e.get()){let t=getFinalKeyframe(h.keyframes,o);if(void 0!==t){E.Wi.update(()=>{h.onUpdate(t),h.onComplete()});return}}return o.isSync?new JSAnimation(h):new AsyncMotionValueAnimation(h)};function animateTarget(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s,transitionEnd:a,...o}=e,l=t.getDefaultTransition();s=s?resolveTransition(s,l):l;let u=s?.reduceMotion,h=s?.skipAnimations;n&&(s=n);let c=[],d=r&&t.animationState&&t.animationState.getState()[r],p=s?.path;for(let e in p&&p.animateVisualElement(t,o,s,i,c),o){let n=t.getValue(e,t.latestValues[e]??null),r=o[e];if(void 0===r||d&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(d,e))continue;let a={delay:i,...getValueTransition(s||{},e)};h&&(a.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(r)&&r===l&&!a.velocity){E.Wi.update(()=>n.set(r));continue}let p=!1;if(window.MotionHandoffAnimation){let i=t.props[tA];
26if(i){let t=window.MotionHandoffAnimation(i,e,E.Wi);null!==t&&(a.startTime=t,p=!0)}}addValueToWillChange(t,e);let m=u??t.shouldReduceMotion;n.start(animateMotionValue(e,n,r,m&&x.has(e)?{type:!1}:a,t,p));let f=n.animation;f&&c.push(f)}if(a){let applyTransitionEnd=()=>E.Wi.update(()=>{a&&function(t,e){let i=resolveVariant(t,e),{transitionEnd:n={},transition:r={},...s}=i||{};for(let e in s={...s,...n}){var a;let i=isKeyframesTarget(a=s[e])?a[a.length-1]||0:a;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,H.BX)(i))}}(t,a)});c.length?Promise.all(c).then(applyTransitionEnd):applyTransitionEnd()}return c}function calcChildStagger(t,e,i,n=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*n;return"function"==typeof i?i(s,a):1===r?s*n:o-s*n}function animateVariant(t,e,i={}){let n=resolveVariant(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(animateTarget(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=r;return function(t,e,i=0,n=0,r=0,s=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(animateVariant(l,e,{...a,delay:i+("function"==typeof n?0:n)+calcChildStagger(t.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,n,s,a,o,i)}:()=>Promise.resolve(),{when:o}=r;if(!o)return Promise.all([s(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[s,a]:[a,s];return t().then(()=>e())}}let t9=Z.length;function shallowCompare(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let t5=[...G].reverse(),t4=G.length;function createTypeState(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function createState(){return{animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()}}let t8=0,t6={x:!1,y:!1};function eachAxis(t){return[t("x"),t("y")]}function calcLength(t){return t.max-t.min}function calcAxisDelta(t,e,i,n=.5){t.origin=n,t.originPoint=(0,tl.t)(e.min,e.max,t.origin),t.scale=calcLength(i)/calcLength(e),t.translate=(0,tl.t)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function calcBoxDelta(t,e,i,n){calcAxisDelta(t.x,e.x,i.x,n?n.originX:void 0),calcAxisDelta(t.y,e.y,i.y,n?n.originY:void 0)}function calcRelativeAxis(t,e,i,n=0){let r=n?(0,tl.t)(i.min,i.max,n):i.min;t.min=r+e.min,t.max=t.min+calcLength(e)}function calcRelativeAxisPosition(t,e,i,n=0){let r=n?(0,tl.t)(i.min,i.max,n):i.min;t.min=e.min-r,t.max=t.min+calcLength(e)}function calcRelativePosition(t,e,i,n){calcRelativeAxisPosition(t.x,e.x,i.x,n?.x),calcRelativeAxisPosition(t.y,e.y,i.y,n?.y)}let t7=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),t3=new Set(["INPUT","SELECT","TEXTAREA"]);function addDomEvent(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}var et=i(94915);let isPrimaryPointer=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function extractEventInfo(t){return{point:{x:t.pageX,y:t.pageY}}}let addPointerInfo=t=>e=>isPrimaryPointer(e)&&t(e,extractEventInfo(e));function addPointerEvent(t,e,i,n){return addDomEvent(t,e,addPointerInfo(i),n)}let getContextWindow=({current:t})=>t?t.ownerDocument.defaultView:null,distance=(t,e)=>Math.abs(t-e),ee=new Set(["auto","scroll"]);let PanSession=class PanSession{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=transformPoint(this.lastRawMoveEventInfo,this.transformPagePoint));let t=getPanInfo(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){let i=distance(t.x,e.x),n=distance(t.y,e.y);return Math.sqrt(i**2+n**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=E.frameData;this.history.push({...n,timestamp:r});let{onStart:s,onMove:a}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=transformPoint(e,this.transformPagePoint),E.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=getPanInfo("pointercancel"===t.type?this.lastMoveEventInfo:transformPoint(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!isPrimaryPointer(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;let o=extractEventInfo(t),l=transformPoint(o,this.transformPagePoint),{point:u}=l,{timestamp:h}=E.frameData;this.history=[{...u,timestamp:h}];let{onSessionStart:c}=e;c&&c(t,getPanInfo(l,this.history));let d={passive:!0,capture:!0};this.removeListeners=(0,tE.z)(addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove,d),addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp,d),addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp,d)),a&&this.startScrollTracking(a)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(ee.has(t.overflowX)||ee.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:n.x-e.x,y:n.y-e.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,n),E.Wi.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,E.Pn)(this.updatePoint)}};function transformPoint(t,e){return e?{point:e(t.point)}:t}function subtractPoint(t,e){return{x:t.x-e.x,y:t.y-e.y}}function getPanInfo({point:t},e){return{point:t,delta:subtractPoint(t,lastDevicePoint(e)),offset:subtractPoint(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=lastDevicePoint(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>time_conversion_secondsToMilliseconds(e)));)i--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&r.timestamp-n.timestamp>2*time_conversion_secondsToMilliseconds(e)&&(n=t[1]);let s=millisecondsToSeconds(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let a={x:(r.x-n.x)/s,y:(r.y-n.y)/s}
26;return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,.1)}}function lastDevicePoint(t){return t[t.length-1]}var ei=i(58946);function calcRelativeAxisConstraints(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function calcViewportAxisConstraints(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function resolveAxisElastic(t,e,i){return{min:resolvePointElastic(t,e),max:resolvePointElastic(t,i)}}function resolvePointElastic(t,e){return"number"==typeof t?t:t[e]||0}let en=new WeakMap;let VisualElementDragControls=class VisualElementDragControls{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=createBox(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new PanSession(t,{onSessionStart:t=>{e&&this.snapToCursor(extractEventInfo(t).point),this.stopAnimation()},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?t6[i]?null:(t6[i]=!0,()=>{t6[i]=!1}):t6.x||t6.y?null:(t6.x=t6.y=!0,()=>{t6.x=t6.y=!1}),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eachAxis(t=>{let e=this.getAxisMotionValue(t).get()||0;if(f.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=calcLength(n);e=t*(parseFloat(e)/100)}}}this.originPoint[t]=e}),r&&E.Wi.update(()=>r(t,e),!1,!0),addValueToWillChange(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(a),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),s&&E.Wi.update(()=>s(t,e),!1,!0)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,distanceThreshold:i,contextWindow:getContextWindow(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:a}=this.getProps();a&&E.Wi.postRender(()=>a(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!shouldDrag(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,tl.t)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,tl.t)(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&isRefObject(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:calcRelativeAxisConstraints(t.x,i,r),y:calcRelativeAxisConstraints(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:resolveAxisElastic(t,"left","right"),y:resolveAxisElastic(t,"top","bottom")}}(e),n!==this.constraints&&!isRefObject(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!isRefObject(e))return!1;let n=e.current;(0,b.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());
26let s=function(t,e,i){let n=measureViewportBox(t,i),{scroll:r}=e;return r&&(translateAxis(n.x,r.offset.x),translateAxis(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),a={x:calcViewportAxisConstraints((t=r.layout.layoutBox).x,s.x),y:calcViewportAxisConstraints(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=convertBoundingBoxToBox(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{},l=eachAxis(a=>{if(!shouldDrag(a,e,this.currentDirection))return;let l=o&&o[a]||{};(!0===s||s===a)&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,u)});return Promise.all(l).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return addValueToWillChange(this.visualElement,t),i.start(animateMotionValue(t,i,0,e,this.visualElement,!1))}stopAnimation(){eachAxis(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),n=i[e];return n||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){eachAxis(e=>{let{drag:i}=this.getProps();if(!shouldDrag(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e],a=r.get()||0;r.set(t[e]-(0,tl.t)(i,s,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!isRefObject(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};eachAxis(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=calcLength(t),r=calcLength(e);return r>n?i=(0,ei.Y)(e.min,e.max-n,t.min):n>r&&(i=(0,ei.Y)(t.min,t.max-r,e.min)),(0,tC.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),eachAxis(e=>{if(!shouldDrag(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set((0,tl.t)(r,s,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;en.set(this.visualElement,this);let e=this.visualElement.current,i=addPointerEvent(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}=this.getProps(),r=t.target,s=r!==e&&(t3.has(r.tagName)||!0===r.isContentEditable);i&&n&&!s&&this.start(t)}),measureDragConstraints=()=>{let{dragConstraints:i}=this.getProps();isRefObject(i)&&i.current&&(this.constraints=this.resolveRefConstraints(),t||(t=function(t,e,i){let n=(0,et.S)(t,skipFirstCall(i)),r=(0,et.S)(e,skipFirstCall(i));return()=>{n(),r()}}(e,i.current,()=>this.scalePositionWithinConstraints())))},{projection:n}=this.visualElement,r=n.addEventListener("measure",measureDragConstraints);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),E.Wi.read(measureDragConstraints);let s=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(eachAxis(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),i(),r(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:a}}};function skipFirstCall(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function shouldDrag(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let asyncHandler=t=>(e,i)=>{t&&E.Wi.update(()=>t(e,i),!1,!0)},er={hasAnimatedSinceResize:!0,hasEverUpdated:!1},es=!1;let MeasureLayoutWithContext=class MeasureLayoutWithContext extends th.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),es&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),er.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,t.layoutDependency!==e&&s.setOptions({...s.options,layoutDependency:e}),es=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||E.Wi.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),_.g.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;es=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function MeasureLayout(t){let[e,i]=function(t=!0){let e=(0,th.useContext)(tv);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=e,s=(0,th.useId)();(0,th.useEffect)(()=>
26{if(t)return r(s)},[t]);let a=(0,th.useCallback)(()=>t&&n&&n(s),[s,n,t]);return!i&&n?[!1,a]:[!0]}(),n=(0,th.useContext)(tp);return(0,td.jsx)(MeasureLayoutWithContext,{...t,layoutGroup:n,switchLayoutGroup:(0,th.useContext)(tV),isPresent:e,safeToRemove:i})}let ea={value:null,addProjectionMetrics:null};var eo=i(40678);let el=ta.length,asNumber=t=>"string"==typeof t?parseFloat(t):t,isPx=t=>"number"==typeof t||f.px.test(t);function getRadius(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let eu=compress(0,.5,tU),eh=compress(.5,.95,I.Z);function compress(t,e,i){return n=>n<t?0:n>e?1:i((0,ei.Y)(t,e,n))}function copyAxisInto(t,e){t.min=e.min,t.max=e.max}function copyBoxInto(t,e){copyAxisInto(t.x,e.x),copyAxisInto(t.y,e.y)}function copyAxisDeltaInto(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function removePointDelta(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function removeAxisTransforms(t,e,[i,n,r],s,a){!function(t,e=0,i=1,n=.5,r,s=t,a=t){if(f.aQ.test(e)){e=parseFloat(e);let t=(0,tl.t)(a.min,a.max,e/100);e=t-a.min}if("number"!=typeof e)return;let o=(0,tl.t)(s.min,s.max,n);t===s&&(o-=e),t.min=removePointDelta(t.min,e,i,o,r),t.max=removePointDelta(t.max,e,i,o,r)}(t,e[i],e[n],e[r],e.scale,s,a)}let ec=["x","scaleX","originX"],ed=["y","scaleY","originY"];function removeBoxTransforms(t,e,i,n){removeAxisTransforms(t.x,e,ec,i?i.x:void 0,n?n.x:void 0),removeAxisTransforms(t.y,e,ed,i?i.y:void 0,n?n.y:void 0)}function isAxisDeltaZero(t){return 0===t.translate&&1===t.scale}function isDeltaZero(t){return isAxisDeltaZero(t.x)&&isAxisDeltaZero(t.y)}function axisEquals(t,e){return t.min===e.min&&t.max===e.max}function axisEqualsRounded(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function boxEqualsRounded(t,e){return axisEqualsRounded(t.x,e.x)&&axisEqualsRounded(t.y,e.y)}function aspectRatio(t){return calcLength(t.x)/calcLength(t.y)}function axisDeltaEquals(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var ep=i(35774);let NodeStack=class NodeStack{constructor(){this.members=[]}add(t){(0,ep.y4)(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||((0,ep.cl)(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if((0,ep.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:r}=t.options;(void 0===n||n!==r)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};let compareByDepth=(t,e)=>t.depth-e.depth;let FlatTree=class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(t){(0,ep.y4)(this.children,t),this.isDirty=!0}remove(t){(0,ep.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(t)}};let em={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ef=["","X","Y","Z"],eg=0;function resetDistortingTransform(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function create_projection_node_createProjectionNode({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=eg++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ea.value&&(em.nodes=em.calculatedTargetDeltas=em.calculatedProjections=0),this.nodes.forEac
26h(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes),ea.addProjectionMetrics&&ea.addProjectionMetrics(em)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new FlatTree)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new j.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=(0,eo.v)(e)&&(!(0,eo.v)(e)||"svg"!==e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i;let n=0,resizeUnblockUpdate=()=>this.root.updateBlockedByResize=!1;E.Wi.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=z.X.now(),checkElapsed=({timestamp:n})=>{let r=n-i;r>=e&&((0,E.Pn)(checkElapsed),t(r-e))};return E.Wi.setup(checkElapsed,!0),()=>(0,E.Pn)(checkElapsed)}(resizeUnblockUpdate,250),er.hasAnimatedSinceResize&&(er.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||ey,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=r.getProps(),l=!this.targetLayout||!boxEqualsRounded(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...getValueTransition(s,"layout"),onPlay:a,onComplete:o};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u,e.path)}else e||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,E.Pn)(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(resetSkewAndRotation),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function cancelTreeOptimisedTransformAnimations(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:e}=t.options;if(!e)return;let i=e.props[tA];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",E.Wi,!(e||n))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;let t=this.isUpdateBlocked();if(t){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEac
26h(forceLayoutMeasure),this.nodes.forEach(clearMeasurements);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(clearIsLayoutDirty);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ensureDraggedNodesSnapshotted),this.nodes.forEach(resetTransformStyle),this.nodes.forEach(updateLayout),this.nodes.forEach(notifyLayoutUpdate)):this.nodes.forEach(clearIsLayoutDirty),this.clearAllSnapshots();let e=z.X.now();E.frameData.delta=(0,tC.u)(0,1e3/60,e-E.frameData.timestamp),E.frameData.timestamp=e,E.frameData.isProcessing=!0,E.yL.update.process(E.frameData),E.yL.preRender.process(E.frameData),E.yL.render.process(E.frameData),E.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,_.g.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,E.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){E.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||calcLength(this.snapshot.measuredBox.x)||calcLength(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){let e=this.path[t];e.updateScroll()}let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=createBox()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!isDeltaZero(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||hasTransform(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),roundAxis((e=n).x),roundAxis(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return createBox();let e=t.measureViewportBox(),i=this.scroll?.wasRoot||this.path.some(checkNodeWasScrollRoot);if(!i){let{scroll:t}=this.root;t&&(translateAxis(e.x,t.offset.x),translateAxis(e.y,t.offset.y))}return e}removeElementScroll(t){let e=createBox();if(copyBoxInto(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&©BoxInto(e,t),translateAxis(e.x,r.offset.x),translateAxis(e.y,r.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||createBox();copyBoxInto(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(translateAxis(n.x,-i.scroll.offset.x),translateAxis(n.y,-i.scroll.offset.y)),hasTransform(i.latestValues)&&transformBox(n,i.latestValues,i.layout?.layoutBox)}return hasTransform(this.latestValues)&&transformBox(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=createBox();copyBoxInto(e,t);for(let t=0;t<this.path.length;t++){let i;let n=this.path[t];hasTransform(n.latestValues)&&(n.instance&&(hasScale(n.latestValues)&&n.updateSnapshot(),copyBoxInto(i=createBox(),n.measurePageBox())),removeBoxTransforms(e,n.latestValues,n.snapshot?.layoutBox,i))}return hasTransform(this.latestValues)&&removeBoxTransforms(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==E.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e,n=!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize);
26if(n)return;let{layout:r,layoutId:s}=this.options;if(!this.layout||!(r||s))return;this.resolvedRelativeTargetAt=E.frameData.timestamp;let a=this.getClosestProjectingParent();if(a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=createBox(),this.targetWithTransforms=createBox()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,l,u,h;this.forceRelativeParentToResolveTarget(),o=this.target,l=this.relativeTarget,u=this.relativeParent.target,h=this.options.layoutAnchor||void 0,calcRelativeAxis(o.x,l.x,u.x,h?.x),calcRelativeAxis(o.y,l.y,u.y,h?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):copyBoxInto(this.target,this.layout.layoutBox),applyBoxDelta(this.target,this.targetDelta)):copyBoxInto(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&1!==this.animationProgress?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),ea.value&&em.calculatedTargetDeltas++}}getClosestProjectingParent(){return!this.parent||hasScale(this.parent.latestValues)||has2DTranslate(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===E.frameData.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;copyBoxInto(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let r,s;let a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){s=(r=i[o]).projectionDelta;let{visualElement:a}=r.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(translateAxis(t.x,-r.scroll.offset.x),translateAxis(t.y,-r.scroll.offset.y)),s&&(e.x*=s.x.scale,e.y*=s.y.scale,applyBoxDelta(t,s)),n&&hasTransform(r.latestValues)&&transformBox(t,r.latestValues,r.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=createBox());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(copyAxisDeltaInto(this.prevProjectionDelta.x,this.projectionDelta.x),copyAxisDeltaInto(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),calcBoxDelta(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&axisDeltaEquals(this.projectionDelta.x,this.prevProjectionDelta.x)&&axisDeltaEquals(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),ea.value&&em.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=createDelta(),this.projectionDelta=createDelta(),this.projectionDeltaWithTransform=createDelta()}setAnimationOrigin(t,e=!1,i){let n;let r=this.snapshot,s=r?r.latestValues:{},a={...this.latestValues},o=createDelta();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=createBox(),u=r?r.source:void 0,h=this.layout?this.layout.source:void 0,c=u!==h,d=this.getStack(),p=!d||d.members.length<=1,m=!!(c&&!p&&!0===this.options.crossfade&&!this.path.some(hasOpacityCrossfade));this.animationProgress=0;let g=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,r=g?.(i);if(r?(o.x.translate=r.x,o.x.scale=(0,tl.t)(t.x.scale,1,i),o.x.origin=t.x.origin,o.x.originPoint=t.x.originPoint,o.y.translate=r.y,o.y.scale=(0,tl.t)(t.y.scale,1,i),o.y.origin=t.y.origin,o.y.originPoint=t.y.originPoint):(mixAxisDeltaLinear(o.x,t.x,i),mixAxisDeltaLinear(o.y,t.y,i)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,d,y;calcRelativePosition(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),d=this.relativeTarget,y=this.relativeTargetOrigin,mixAxis(d.x,y.x,l.x,i),mixAxis(d.y,y.y,l.y,i),n&&(u=this.relativeTarget,h=n,axisEquals(u.x,h.x)&&axisEquals(u.y,h.y))&&(this.isProjectionDirty=!1),n||(n=createBox()),copyBoxInto(n,this.relativeTarget)}
26c&&(this.animationValues=a,function(t,e,i,n,r,s){r?(t.opacity=(0,tl.t)(0,i.opacity??1,eu(n)),t.opacityExit=(0,tl.t)(e.opacity??1,0,eh(n))):s&&(t.opacity=(0,tl.t)(e.opacity??1,i.opacity??1,n));for(let r=0;r<el;r++){let s=ta[r],a=getRadius(e,s),o=getRadius(i,s);if(void 0===a&&void 0===o)continue;a||(a=0),o||(o=0);let l=0===a||0===o||isPx(a)===isPx(o);l?(t[s]=Math.max((0,tl.t)(asNumber(a),asNumber(o),n),0),(f.aQ.test(o)||f.aQ.test(a))&&(t[s]+="%")):t[s]=o}(e.rotate||i.rotate)&&(t.rotate=(0,tl.t)(e.rotate||0,i.rotate||0,n))}(a,s,this.latestValues,i,m,p)),r&&void 0!==r.rotate&&(this.animationValues||(this.animationValues=a),this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,E.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=E.Wi.update(()=>{er.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=(0,H.BX)(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(t,e,i){let n=isMotionValue(t)?t:(0,H.BX)(t);return n.start(animateMotionValue("",n,e,i)),n.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||createBox();let e=calcLength(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=calcLength(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}copyBoxInto(e,i),transformBox(e,r),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new NodeStack);let i=this.sharedNodes.get(t);i.add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
26return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&resetDistortingTransform("z",t,n,this.animationValues);for(let e=0;e<ef.length;e++)resetDistortingTransform(`rotate${ef[e]}`,t,n,this.animationValues),resetDistortingTransform(`skew${ef[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=resolveMotionValue(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=resolveMotionValue(e?.pointerEvents)||""),this.hasProjected&&!hasTransform(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,a=i?.z||0;if((r||s||a)&&(n=`translate3d(${r}px, ${s}px, ${a}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,pathRotation:r,rotateX:s,rotateY:a,skewX:o,skewY:l}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotate(${r}deg) `),s&&(n+=`rotateX(${s}deg) `),a&&(n+=`rotateY(${a}deg) `),o&&(n+=`skewX(${o}deg) `),l&&(n+=`skewY(${l}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(s=i(r,s)),t.transform=s;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,n.animationValues?t.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,tu){if(void 0===r[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=tu[e],l="none"===s?r[e]:i(r[e],n);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?resolveMotionValue(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(t){t.updateLayout()}function notifyLayoutUpdate(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;if("size"===r)eachAxis(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=calcLength(n);n.min=i[t].min,n.max=n.min+r});else if("x"===r||"y"===r){let t="x"===r?"y":"x";copyAxisInto(s?e.measuredBox[t]:e.layoutBox[t],i[t])}else shouldAnimatePositionOnly(r,e.layoutBox,i)&&eachAxis(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],a=calcLength(i[n]);r.max=r.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=createDelta();calcBoxDelta(a,i,e.layoutBox);let o=createDelta();s?calcBoxDelta(o,t.applyTransform(n,!0),e.measuredBox):calcBoxDelta(o,i,e.layoutBox);let l=!isDeltaZero(a),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let a=t.options.layoutAnchor||void 0,o=createBox();calcRelativePosition(o,e.layoutBox,r.layoutBox,a);let l=createBox();calcRelativePosition(l,i,s.layoutBox,a),boxEqualsRounded(o,l)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function propagateDirtyNodes(t){ea.value&&em.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
26isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function cleanDirtyNodes(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function clearSnapshot(t){t.clearSnapshot()}function clearMeasurements(t){t.clearMeasurements()}function forceLayoutMeasure(t){t.isLayoutDirty=!0,t.updateLayout()}function clearIsLayoutDirty(t){t.isLayoutDirty=!1}function ensureDraggedNodesSnapshotted(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function resetTransformStyle(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function finishAnimation(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function resolveTargetDelta(t){t.resolveTargetDelta()}function calcProjection(t){t.calcProjection()}function resetSkewAndRotation(t){t.resetSkewAndRotation()}function removeLeadSnapshots(t){t.removeLeadSnapshot()}function mixAxisDeltaLinear(t,e,i){t.translate=(0,tl.t)(e.translate,0,i),t.scale=(0,tl.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function mixAxis(t,e,i,n){t.min=(0,tl.t)(e.min,i.min,n),t.max=(0,tl.t)(e.max,i.max,n)}function hasOpacityCrossfade(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ey={duration:.45,ease:[.4,0,.1,1]},userAgentContains=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ev=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:I.Z;function roundAxis(t){t.min=ev(t.min),t.max=ev(t.max)}function shouldAnimatePositionOnly(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(aspectRatio(e)-aspectRatio(i)))}function checkNodeWasScrollRoot(t){return t!==t.root&&t.scroll?.wasRoot}let ex=create_projection_node_createProjectionNode({attachResizeListener:(t,e)=>addDomEvent(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),eT={current:void 0},eb=create_projection_node_createProjectionNode({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eT.current){let t=new ex({});t.mount(window),t.setOptions({layoutScroll:!0}),eT.current=t}return eT.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var eP=i(11816);function setupGesture(t,e){let i=(0,eP.I)(t),n=new AbortController,r={passive:!0,...e,signal:n.signal};return[i,r,()=>n.abort()]}function handleHoverEvent(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r="onHover"+i,s=n[r];s&&E.Wi.postRender(()=>s(e,extractEventInfo(e)))}var eS=i(93243);let isNodeOrChild=(t,e)=>!!e&&(t===e||isNodeOrChild(t,e.parentElement)),ew=new WeakSet;function filterEvents(t){return e=>{"Enter"===e.key&&t(e)}}function firePointerEvent(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let enableKeyboardPress=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=filterEvents(()=>{if(ew.has(i))return;firePointerEvent(i,"down");let t=filterEvents(()=>{firePointerEvent(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>firePointerEvent(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function isValidPressEvent(t){return isPrimaryPointer(t)&&!(t6.x||t6.y)}let eA=new WeakSet;function handlePressEvent(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r="onTap"+("End"===i?"":i),s=n[r];s&&E.Wi.postRender(()=>s(e,extractEventInfo(e)))}let eV=new WeakMap,eM=new WeakMap,fireObserverCallback=t=>{let e=eV.get(t.target);e&&e(t)},fireAllObserverCallbacks=t=>{t.forEach(fireObserverCallback)},eD={some:0,all:1},eE=function(t,e){if("undefined"==typeof Proxy)return createMotionComponent;let i=new Map,factory=(i,n)=>createMotionComponent(i,n,t,e);return new Proxy((t,e)=>factory(t,e),{get:(n,r)=>"create"===r?factory:(i.has(r)||i.set(r,createMotionComponent(r,void 0,t,e)),i.get(r))})}({animation:{Feature:class extends Feature{constructor(t){super(t),t.animationState||(t.animationState=function(t){let animate=e=>Promise.all(e.map(({animation:e,options:i})=>
26(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e)){let r=e.map(e=>animateVariant(t,e,i));n=Promise.all(r)}else if("string"==typeof e)n=animateVariant(t,e,i);else{let r="function"==typeof e?resolveVariant(t,e,i.custom):e;n=Promise.all(animateTarget(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),e=createState(),i=!0,n=!1,buildResolvedTypeValues=e=>(i,n)=>{let r=resolveVariant(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function animateChanges(r){let{props:s}=t,a=function getVariantContext(t){if(!t)return;if(!t.isControllingVariants){let e=t.parent&&getVariantContext(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}let e={};for(let i=0;i<t9;i++){let n=Z[i],r=t.props[n];(isVariantLabel(r)||!1===r)&&(e[n]=r)}return e}(t.parent)||{},o=[],l=new Set,u={},h=1/0;for(let d=0;d<t4;d++){var c;let p=t5[d],m=e[p],f=void 0!==s[p]?s[p]:a[p],g=isVariantLabel(f),y=p===r?m.isActive:null;!1===y&&(h=d);let v=f===a[p]&&f!==s[p]&&g;if(v&&(i||n)&&t.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...u},!m.isActive&&null===y||!f&&!m.prevProp||isAnimationControls(f)||"boolean"==typeof f)continue;if("exit"===p&&m.isActive&&!0!==y){m.prevResolvedValues&&(u={...u,...m.prevResolvedValues});continue}let x=(c=m.prevProp,"string"==typeof f?f!==c:!!Array.isArray(f)&&!shallowCompare(f,c)),T=x||p===r&&m.isActive&&!v&&g||d>h&&g,b=!1,P=Array.isArray(f)?f:[f],S=P.reduce(buildResolvedTypeValues(p),{});!1===y&&(S={});let{prevResolvedValues:w={}}=m,A={...w,...S},markToAnimate=e=>{T=!0,l.has(e)&&(b=!0,l.delete(e)),m.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in A){let e=S[t],i=w[t];if(!u.hasOwnProperty(t))(isKeyframesTarget(e)&&isKeyframesTarget(i)?!shallowCompare(e,i)||x:e!==i)?null!=e?markToAnimate(t):l.add(t):void 0!==e&&l.has(t)?markToAnimate(t):m.protectedKeys[t]=!0}m.prevProp=f,m.prevResolvedValues=S,m.isActive&&(u={...u,...S}),(i||n)&&t.blockInitialAnimation&&(T=!1);let V=v&&x,M=!V||b;T&&M&&o.push(...P.map(e=>{let r={type:p};if("string"==typeof e&&(i||n)&&!V&&t.manuallyAnimateOnMount&&t.parent){let{parent:i}=t,n=resolveVariant(i,e);if(i.enteringChildren&&n){let{delayChildren:e}=n.transition||{};r.delay=calcChildStagger(i.enteringChildren,t,e)}}return{animation:e,options:r}}))}if(l.size){let e={};if("boolean"!=typeof s.initial){let i=resolveVariant(t,Array.isArray(s.initial)?s.initial[0]:s.initial);i&&i.transition&&(e.transition=i.transition)}l.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),o.push({animation:e})}let d=!!o.length;return i&&(!1===s.initial||s.initial===s.animate)&&!t.manuallyAnimateOnMount&&(d=!1),i=!1,n=!1,d?animate(o):Promise.resolve()}return{animateChanges,setActive:function(i,n){if(e[i].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(i,n)),e[i].isActive=n;let r=animateChanges(i);for(let t in e)e[t].protectedKeys={};return r},setAnimateFunction:function(e){animate=e(t)},getState:()=>e,reset:()=>{e=createState(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();isAnimationControls(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends Feature{constructor(){super(...arguments),this.id=t8++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let i=resolveVariant(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>
26{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:eD[n]};this.stopObserver=function(t,e,i){let n=function({root:t,...e}){let i=t||document;eM.has(i)||eM.set(i,{});let n=eM.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(fireAllObserverCallbacks,{root:t,...e})),n[r]}(e);return eV.set(t,i),n.observe(t),()=>{eV.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node,i=["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e));i&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends Feature{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[n,r,s]=setupGesture(t,i),startPress=t=>{let n=t.currentTarget;if(!isValidPressEvent(t)||eA.has(t))return;ew.add(n),i.stopPropagation&&eA.add(t);let s=e(n,t),a={...r,capture:!0},onPointerEnd=(t,e)=>{window.removeEventListener("pointerup",onPointerUp,a),window.removeEventListener("pointercancel",onPointerCancel,a),ew.has(n)&&ew.delete(n),isValidPressEvent(t)&&"function"==typeof s&&s(t,{success:e})},onPointerUp=t=>{onPointerEnd(t,n===window||n===document||i.useGlobalTarget||isNodeOrChild(n,t.target))},onPointerCancel=t=>{onPointerEnd(t,!1)};window.addEventListener("pointerup",onPointerUp,a),window.addEventListener("pointercancel",onPointerCancel,a)};return n.forEach(t=>{let e=i.useGlobalTarget?window:t;e.addEventListener("pointerdown",startPress,r),(0,eS.R)(t)&&(t.addEventListener("focus",t=>enableKeyboardPress(t,r)),t7.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(handlePressEvent(this.node,e,"Start"),(t,{success:e})=>handlePressEvent(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,tE.z)(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=setupGesture(t,i);return n.forEach(t=>{let i,n=!1,s=!1,removePointerLeave=()=>{t.removeEventListener("pointerleave",onPointerLeave)},endHover=t=>{i&&(i(t),i=void 0),removePointerLeave()},onPointerUp=t=>{n=!1,window.removeEventListener("pointerup",onPointerUp),window.removeEventListener("pointercancel",onPointerUp),s&&(s=!1,endHover(t))},onPointerLeave=t=>{if("touch"!==t.pointerType){if(n){s=!0;return}endHover(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||t6.x||t6.y)return;s=!1;let a=e(t,n);"function"==typeof a&&(i=a,t.addEventListener("pointerleave",onPointerLeave,r))},r),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",onPointerUp,r),window.addEventListener("pointercancel",onPointerUp,r)},r)}),s}(t,(t,e)=>(handleHoverEvent(this.node,e,"Start"),t=>handleHoverEvent(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends Feature{constructor(){super(...arguments),this.removePointerDownListener=I.Z}onPointerDown(t){this.session=new PanSession(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:getContextWindow(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:asyncHandler(t),onStart:asyncHandler(e),onMove:asyncHandler(i),onEnd:(t,e)=>{delete this.session,n&&E.Wi.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Feature{constructor(t){super(t),this.removeGroupControls=I.Z,this.removeListeners=I.Z,this.controls=new VisualElementDragControls(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||I.Z}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:eb,MeasureLayout:MeasureLayout},layout:{ProjectionNode:eb,MeasureLayout:MeasureLayout}},(t,e)=>{let i=e.isSVG??isSVGComponent(t);return i?new SVGVisualElement(e):new HTMLVisualElement(e,{allowProjection:t!==th.Fragment})})}
26,96681:function(t,e,i){i.d(e,{h:function(){return useConstant}});var n=i(67294);function useConstant(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},75062:function(t,e,i){i.d(e,{L:function(){return s}});var n=i(67294);let r="undefined"!=typeof window,s=r?n.useLayoutEffect:n.useEffect},7790:function(t,e,i){i.d(e,{Y:function(){return defaultOffset}});var n=i(58946),r=i(82659);function defaultOffset(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let a=(0,n.Y)(0,e,s);t.push((0,r.t)(i,1,a))}}(e,t.length-1),e}},21219:function(t,e,i){i.d(e,{V3:function(){return containsCSSVariable},f9:function(){return n},tm:function(){return isCSSVariableToken}});let checkStringStartsWith=t=>e=>"string"==typeof e&&e.startsWith(t),n=checkStringStartsWith("--"),r=checkStringStartsWith("var(--"),isCSSVariableToken=t=>{let e=r(t);return!!e&&s.test(t.split("/*")[0].trim())},s=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function containsCSSVariable(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}},93674:function(t,e,i){i.d(e,{Z:function(){return createRenderBatcher}});var n=i(42218);let r=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function createRenderBatcher(t,e){let i=!1,s=!0,a={delta:0,timestamp:0,isProcessing:!1},flagRunNextFrame=()=>i=!0,o=r.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,r=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function triggerCallback(e){s.has(e)&&(o.schedule(e),t()),e(a)}let o={schedule:(t,r=!1,a=!1)=>{let o=a&&n,l=o?e:i;return r&&s.add(t),l.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(a=t,n){r=!0;return}n=!0;let s=e;e=i,i=s,e.forEach(triggerCallback),e.clear(),n=!1,r&&(r=!1,o.process(t))}};return o}(flagRunNextFrame),t),{}),{setup:l,read:u,resolveKeyframes:h,preUpdate:c,update:d,preRender:p,render:m,postRender:f}=o,processBatch=()=>{let r=n.c.useManualTiming,o=r?a.timestamp:performance.now();i=!1,r||(a.delta=s?1e3/60:Math.max(Math.min(o-a.timestamp,40),1)),a.timestamp=o,a.isProcessing=!0,l.process(a),u.process(a),h.process(a),c.process(a),d.process(a),p.process(a),m.process(a),f.process(a),a.isProcessing=!1,i&&e&&(s=!1,t(processBatch))},wake=()=>{i=!0,s=!0,a.isProcessing||t(processBatch)},g=r.reduce((t,e)=>{let n=o[e];return t[e]=(t,e=!1,r=!1)=>(i||wake(),n.schedule(t,e,r)),t},{});return{schedule:g,cancel:t=>{for(let e=0;e<r.length;e++)o[r[e]].cancel(t)},state:a,steps:o}}},82866:function(t,e,i){i.d(e,{Pn:function(){return a},Wi:function(){return s},frameData:function(){return o},yL:function(){return l}});var n=i(27726),r=i(93674);let{schedule:s,cancel:a,state:o,steps:l}=(0,r.Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z,!0)},86008:function(t,e,i){i.d(e,{$:function(){return s},g:function(){return r}});var n=i(93674);let{schedule:r,cancel:s}=(0,n.Z)(queueMicrotask,!1)},67245:function(t,e,i){let n;i.d(e,{X:function(){return a}});var r=i(42218),s=i(82866);function clearTime(){n=void 0}let a={now:()=>(void 0===n&&a.set(s.frameData.isProcessing||r.c.useManualTiming?s.frameData.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(clearTime)}}},96779:function(t,e,i){i.d(e,{Ad:function(){return initPrefersReducedMotion}});var n=i(20964);let r="undefined"!=typeof window;function initPrefersReducedMotion(){if(n.O.current=!0,r){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),setReducedMotionPreferences=()=>n.n.current=t.matches;t.addEventListener("change",setReducedMotionPreferences),setReducedMotionPreferences()}else n.n.current=!1}}},20964:function(t,e,i){i.d(e,{O:function(){return r},n:function(){return n}});let n={current:null},r={current:!1}},94915:function(t,e,i){let n,r;i.d(e,{S:function(){return resize}});var s=i(40678),a=i(11816);let o=new WeakMap,getSize=(t,e,i)=>(n,r)=>r&&r[0]?r[0][t+"Size"]:(0,s.v)(n)&&"getBBox"in n?n.getBBox()[e]:n[i],l=getSize("inline","width","offsetWidth"),u=getSize("block","height","offsetHeight");function notifyTarget({target:t,borderBoxSize:e}){o.get(t)?.forEach(i=>
26{i(t,{get width(){return l(t,e)},get height(){return u(t,e)}})})}function notifyAll(t){t.forEach(notifyTarget)}let h=new Set;function resize(t,e){return"function"==typeof t?(h.add(t),r||(r=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};h.forEach(e=>e(t))},window.addEventListener("resize",r)),()=>{h.delete(t),h.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):function(t,e){n||"undefined"==typeof ResizeObserver||(n=new ResizeObserver(notifyAll));let i=(0,a.I)(t);return i.forEach(t=>{let i=o.get(t);i||(i=new Set,o.set(t,i)),i.add(e),n?.observe(t)}),()=>{i.forEach(t=>{let i=o.get(t);i?.delete(e),i?.size||n?.unobserve(t)})}}(t,e)}},98098:function(t,e,i){i.d(e,{s:function(){return interpolate}});var n=i(42218),r=i(27726),s=i(377),a=i(25386),o=i(58946),l=i(488),u=i(88712);function interpolate(t,e,{clamp:i=!0,ease:h,mixer:c}={}){let d=t.length;if((0,a.k)(d===e.length,"Both input and output ranges must be the same length","range-length"),1===d)return()=>e[0];if(2===d&&e[0]===e[1])return()=>e[1];let p=t[0]===t[1];t[0]>t[d-1]&&(t=[...t].reverse(),e=[...e].reverse());let m=function(t,e,i){let a=[],o=i||n.c.mix||u.C,l=t.length-1;for(let i=0;i<l;i++){let n=o(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||r.Z:e;n=(0,s.z)(t,n)}a.push(n)}return a}(e,h,c),f=m.length,interpolator=i=>{if(p&&i<t[0])return e[0];let n=0;if(f>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=(0,o.Y)(t[n],t[n+1],i);return m[n](r)};return i?e=>interpolator((0,l.u)(t[0],t[d-1],e)):interpolator}},93243:function(t,e,i){i.d(e,{R:function(){return isHTMLElement}});var n=i(36464);function isHTMLElement(t){return(0,n.K)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}},40678:function(t,e,i){i.d(e,{v:function(){return isSVGElement}});var n=i(36464);function isSVGElement(t){return(0,n.K)(t)&&"ownerSVGElement"in t}},88712:function(t,e,i){i.d(e,{C:function(){return mix}});var n=i(377),r=i(25386),s=i(21219),a=i(7167),o=i(58094),l=i(44777),u=i(66203);function hueToRgb(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var h=i(96803);function mixImmediate(t,e){return i=>i>0?e:t}var c=i(82659);let mixLinearColor=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},d=[l.$,h.m,u.J],getColorType=t=>d.find(e=>e.test(t));function asRGBA(t){let e=getColorType(t);if((0,r.K)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===u.J&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;r=hueToRgb(o,n,t+1/3),s=hueToRgb(o,n,t),a=hueToRgb(o,n,t-1/3)}else r=s=a=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*a),alpha:n}}(i)),i}let mixColor=(t,e)=>{let i=asRGBA(t),n=asRGBA(e);if(!i||!n)return mixImmediate(t,e);let r={...i};return t=>(r.red=mixLinearColor(i.red,n.red,t),r.green=mixLinearColor(i.green,n.green,t),r.blue=mixLinearColor(i.blue,n.blue,t),r.alpha=(0,c.t)(i.alpha,n.alpha,t),h.m.transform(r))},p=new Set(["none","hidden"]);function mixNumber(t,e){return i=>(0,c.t)(t,e,i)}function getMixer(t){return"number"==typeof t?mixNumber:"string"==typeof t?(0,s.tm)(t)?mixImmediate:a.$.test(t)?mixColor:mixComplex:Array.isArray(t)?mixArray:"object"==typeof t?a.$.test(t)?mixColor:mixObject:mixImmediate}function mixArray(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>getMixer(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function mixObject(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=getMixer(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let mixComplex=(t,e)=>{let i=o.P.createTransformer(e),s=(0,o.V)(t),a=(0,o.V)(e),l=s.indexes.var.length===a.indexes.var.length&&s.indexes.color.length===a.indexes.color.length&&s.indexes.number.length>=a.indexes.number.length;return l?p.has(t)&&!a.values.length||p.has(e)&&!s.values.length?p.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:(0,n.z)(mixArray(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],a=t.indexes[s][n[s]],o=t.values[a]??0;i[r]=o,n[s]++}return i}(s,a),a.values),i):((0,r.K)(!0,`Complex values '${t}' and '${e}
26' 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.`,"complex-values-different"),mixImmediate(t,e))};function mix(t,e,i){if("number"==typeof t&&"number"==typeof e&&"number"==typeof i)return(0,c.t)(t,e,i);let n=getMixer(t);return n(t,e)}},82659:function(t,e,i){i.d(e,{t:function(){return mixNumber}});let mixNumber=(t,e,i)=>t+(e-t)*i},11816:function(t,e,i){i.d(e,{I:function(){return resolveElements}});function resolveElements(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let r=i?.[t]??n.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}},63898:function(t,e,i){i.d(e,{p:function(){return memoSupports}});var n=i(70942);let r={};function memoSupports(t,e){let i=(0,n.X)(t);return()=>r[e]??i()}},84548:function(t,e,i){i.d(e,{i:function(){return s},t:function(){return r}});var n=i(63898);let r=(0,n.p)(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),s=(0,n.p)(()=>void 0!==window.ViewTimeline,"viewTimeline")},68486:function(t,e,i){i.d(e,{BX:function(){return motionValue},S1:function(){return o}});var n=i(88449),r=i(37142),s=i(67245),a=i(82866);let isFloat=t=>!isNaN(parseFloat(t)),o={current:void 0};let MotionValue=class MotionValue{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=s.X.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=s.X.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=isFloat(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new n.L);let i=this.events[t].add(e);return"change"===t?()=>{i(),a.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return o.current&&o.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=s.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,r.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function motionValue(t,e){return new MotionValue(t,e)}},44777:function(t,e,i){i.d(e,{$:function(){return s}});var n=i(96803),r=i(79946);let s={test:(0,r.i)("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alph
26a:r?parseInt(r,16)/255:1}},transform:n.m.transform}},66203:function(t,e,i){i.d(e,{J:function(){return o}});var n=i(57958),r=i(37259),s=i(6219),a=i(79946);let o={test:(0,a.i)("hsl","hue"),parse:(0,a.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:a=1})=>"hsla("+Math.round(t)+", "+r.aQ.transform((0,s.N)(e))+", "+r.aQ.transform((0,s.N)(i))+", "+(0,s.N)(n.Fq.transform(a))+")"}},7167:function(t,e,i){i.d(e,{$:function(){return a}});var n=i(44777),r=i(66203),s=i(96803);let a={test:t=>s.m.test(t)||n.$.test(t)||r.J.test(t),parse:t=>s.m.test(t)?s.m.parse(t):r.J.test(t)?r.J.parse(t):n.$.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?s.m.transform(t):r.J.transform(t),getAnimatableNone:t=>{let e=a.parse(t);return e.alpha=0,a.transform(e)}}},96803:function(t,e,i){i.d(e,{m:function(){return l}});var n=i(488),r=i(57958),s=i(6219),a=i(79946);let clampRgbUnit=t=>(0,n.u)(0,255,t),o={...r.Rx,transform:t=>Math.round(clampRgbUnit(t))},l={test:(0,a.i)("rgb","red"),parse:(0,a.d)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+o.transform(t)+", "+o.transform(e)+", "+o.transform(i)+", "+(0,s.N)(r.Fq.transform(n))+")"}},79946:function(t,e,i){i.d(e,{i:function(){return isColorString},d:function(){return splitColor}});var n=i(7159);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,isColorString=(t,e)=>i=>!!("string"==typeof i&&r.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),splitColor=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[s,a,o,l]=r.match(n.K);return{[t]:parseFloat(s),[e]:parseFloat(a),[i]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}}},58094:function(t,e,i){i.d(e,{V:function(){return analyseComplexValue},P:function(){return h}});var n=i(7167);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=i(7159),a=i(6219);let o="number",l="color",u=/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 analyseComplexValue(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},s=[],a=0,h=e.replace(u,t=>(n.$.test(t)?(r.color.push(a),s.push(l),i.push(n.$.parse(t))):t.startsWith("var(")?(r.var.push(a),s.push("var"),i.push(t)):(r.number.push(a),s.push(o),i.push(parseFloat(t))),++a,"${}")),c=h.split("${}");return{values:i,split:c,indexes:r,types:s}}function buildTransformer({split:t,types:e}){let i=t.length;return r=>{let s="";for(let u=0;u<i;u++)if(s+=t[u],void 0!==r[u]){let t=e[u];t===o?s+=(0,a.N)(r[u]):t===l?s+=n.$.transform(r[u]):s+=r[u]}return s}}let convertNumbersToZero=t=>"number"==typeof t?0:n.$.test(t)?n.$.getAnimatableNone(t):t,convertToZero=(t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:convertNumbersToZero(t),h={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(s.K)?.length||0)+(t.match(r)?.length||0)>0},parse:function(t){return analyseComplexValue(t).values},createTransformer:function(t){return buildTransformer(analyseComplexValue(t))},getAnimatableNone:function(t){let e=analyseComplexValue(t),i=buildTransformer(e);return i(e.values.map((t,i)=>convertToZero(t,e.split[i])))}}},57958:function(t,e,i){i.d(e,{Fq:function(){return s},Rx:function(){return r},bA:function(){return a}});var n=i(488);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...r,transform:t=>(0,n.u)(0,1,t)},a={...r,default:1}},37259:function(t,e,i){i.d(e,{$C:function(){return l},RW:function(){return n},aQ:function(){return r},px:function(){return s},vh:function(){return a},vw:function(){return o}});let createUnitType=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),n=createUnitType("deg"),r=createUnitType("%"),s=createUnitType("px"),a=createUnitType("vh"),o=createUnitType("vw"),l={...r,parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)}}
26,7159:function(t,e,i){i.d(e,{K:function(){return n}});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},6219:function(t,e,i){i.d(e,{N:function(){return sanitize}});let sanitize=t=>Math.round(1e5*t)/1e5},35774:function(t,e,i){function addUniqueItem(t,e){-1===t.indexOf(e)&&t.push(e)}function removeItem(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{cl:function(){return removeItem},y4:function(){return addUniqueItem}})},488:function(t,e,i){i.d(e,{u:function(){return clamp}});let clamp=(t,e,i)=>i>e?e:i<t?t:i},25386:function(t,e,i){i.d(e,{K:function(){return warning},k:function(){return invariant}}),i(83454);let warning=()=>{},invariant=()=>{}},42218:function(t,e,i){i.d(e,{c:function(){return n}});let n={}},36464:function(t,e,i){i.d(e,{K:function(){return isObject}});let isObject=t=>"object"==typeof t&&null!==t},70942:function(t,e,i){i.d(e,{X:function(){return memo}});function memo(t){let e;return()=>(void 0===e&&(e=t()),e)}},27726:function(t,e,i){i.d(e,{Z:function(){return noop}});let noop=t=>t},377:function(t,e,i){i.d(e,{z:function(){return pipe}});let pipe=(...t)=>t.reduce((t,e)=>i=>e(t(i)))},58946:function(t,e,i){i.d(e,{Y:function(){return progress}});let progress=(t,e,i)=>{let n=e-t;return n?(i-t)/n:1}},88449:function(t,e,i){i.d(e,{L:function(){return SubscriptionManager}});var n=i(35774);let SubscriptionManager=class SubscriptionManager{constructor(){this.subscriptions=[]}add(t){return(0,n.y4)(this.subscriptions,t),()=>(0,n.cl)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},37142:function(t,e,i){i.d(e,{R:function(){return velocityPerSecond}});let velocityPerSecond=(t,e)=>e?t*(1e3/e):0}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.