1import{a as M}from"/build/_shared/chunk-NHWAAQBQ.js";import{b as xn,d as rl,e as w,f as nl}from"/build/_shared/chunk-XDMRC4Q6.js";function ml(t){var e={};return function(o){return e[o]===void 0&&(e[o]=t(o)),e[o]}}var _n,qn=xn(()=>{_n=ml});var Yn={};rl(Yn,{default:()=>hl});var fl,pl,hl,Xn=xn(()=>{qn();fl=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,pl=_n(function(t){return fl.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),hl=pl});var hr=w(M(),1),jt=w(M(),1);var vn=w(M(),1),Pt=(0,vn.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});var Pn=w(M(),1),Tt=(0,Pn.createContext)({});var et=w(M(),1);var Tn=w(M(),1),Vt=(0,Tn.createContext)(null);var Ze=w(M(),1);var bt=typeof document<"u";var it=bt?Ze.useLayoutEffect:Ze.useEffect;var Vn=w(M(),1),Je=(0,Vn.createContext)({strict:!1});function bn(t,e,o,r){let{visualElement:n}=(0,et.useContext)(Tt),s=(0,et.useContext)(Je),i=(0,et.useContext)(Vt),a=(0,et.useContext)(Pt).reducedMotion,l=(0,et.useRef)();r=r||s.renderer,!l.current&&r&&(l.current=r(t,{visualState:e,parent:n,props:o,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:a}));let c=l.current;(0,et.useInsertionEffect)(()=>{c&&c.update(o,i)});let u=(0,et.useRef)(Boolean(window.HandoffAppearAnimations));return it(()=>{!c||(c.render(),u.current&&c.animationState&&c.animationState.animateChanges())}),(0,et.useEffect)(()=>{!c||(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,u.current=!1)}),c}var Sn=w(M(),1);function ft(t){return typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Cn(t,e,o){return(0,Sn.useCallback)(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),o&&(typeof o=="function"?o(r):ft(o)&&(o.current=r))},[e])}var eo=w(M(),1);function pt(t){return typeof t=="string"||Array.isArray(t)}function St(t){return typeof t=="object"&&typeof t.start=="function"}var Qe=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Re=["initial",...Qe];function Ot(t){return St(t.animate)||Re.some(e=>pt(t[e]))}function to(t){return Boolean(Ot(t)||t.variants)}function An(t,e){if(Ot(t)){let{initial:o,animate:r}=t;return{initial:o===!1||pt(o)?o:void 0,animate:pt(r)?r:void 0}}return t.inherit!==!1?e:{}}function Mn(t){let{initial:e,animate:o}=An(t,(0,eo.useContext)(Tt));return(0,eo.useMemo)(()=>({initial:e,animate:o}),[wn(e),wn(o)])}function wn(t){return Array.isArray(t)?t.join(" "):t}var Dn={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"]},It={};for(let t in Dn)It[t]={isEnabled:e=>Dn[t].some(o=>!!e[o])};function Rn(t){for(let e in t)It[e]={...It[e],...t[e]}}var Ln=w(M(),1),Xt=(0,Ln.createContext)({});var En=w(M(),1),oo=(0,En.createContext)({});var kn=Symbol.for("motionComponentSymbol");function Bn({preloadedFeatures:t,createVisualElement:e,useRender:o,useVisualState:r,Component:n}){t&&Rn(t);function s(a,l){let c,u={...(0,jt.useContext)(Pt),...a,layoutId:il(a)},{isStatic:m}=u,f=Mn(a),p=r(a,m);if(!m&&bt){f.visualElement=bn(n,p,u,e);let h=(0,jt.useContext)(oo),y=(0,jt.useContext)(Je).strict;f.visualElement&&(c=f.visualElement.loadFeatures(u,y,t,h))}return hr.createElement(Tt.Provider,{value:f},c&&f.visualElement?hr.createElement(c,{visualElement:f.visualElement,...u}):null,o(n,a,Cn(p,f.visualElement,l),p,m,f.visualElement))}let i=(0,jt.forwardRef)(s);return i[kn]=n,i}function il({layoutId:t}){let e=(0,jt.useContext)(Xt).id;return e&&t!==void 0?e+"-"+t:t}function Fn(t){function e(r,n={}){return Bn(t(r,n))}if(typeof Proxy>"u")return e;let o=new Map;return new Proxy(e,{get:(r,n)=>(o.has(n)||o.set(n,e(n)),o.get(n))})}var On=["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 Zt(t){return typeof t!="string"||t.includes("-")?!1:!!(On.indexOf(t)>-1||/[A-Z]/.test(t))}var lo=w(M(),1);var $n=w(M(),1);var Jt={};function In(t){Object.assign(Jt,t)}var Ct=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_=new Set(Ct);function ro(t,{layout:e,layoutId:o}){return _.has(t)||t.startsWith("origin")||(e||o!==void 0)&&(!!Jt[t]||t==="opacity")}var E=t=>Boolean(t&&t.getVelocity);var sl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},al=Ct.length;function jn(t,{enableHardwareAcceleration:e=!0,allowTransformNone:o=!0},r,n){let s="";for(let i=0;i<al;i++){let a=Ct[i];if(t[a]!==void 0){let l=sl[a]||a;s+=`${l}(${t[a]}) `}}return e&&!t.z&&(s+="translateZ(0)"),s=s.trim(),n?s=n(t,r?"":s):o&&r&&(s="none"),s}var Nn=t=>e=>typeof e=="string"&&e.startsWith(t),no=Nn("--"),io=Nn("var(--"),zn=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?
1:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g;var Un=(t,e)=>e&&typeof t=="number"?e.transform(t):t;var W=(t,e,o)=>Math.min(Math.max(o,t),e);var ot={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},At={...ot,transform:t=>W(0,1,t)},Le={...ot,default:1};var wt=t=>Math.round(t*1e5)/1e5,Nt=/(-)?([\d]*\.?[\d])+/g,dr=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Hn=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ht(t){return typeof t=="string"}var Ee=t=>({test:e=>ht(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),st=Ee("deg"),$=Ee("%"),x=Ee("px"),Gn=Ee("vh"),Wn=Ee("vw"),gr={...$,parse:t=>$.parse(t)/100,transform:t=>$.transform(t*100)};var yr={...ot,transform:Math.round};var so={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,radius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,size:x,top:x,right:x,bottom:x,left:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,rotate:st,rotateX:st,rotateY:st,rotateZ:st,scale:Le,scaleX:Le,scaleY:Le,scaleZ:Le,skew:st,skewX:st,skewY:st,distance:x,translateX:x,translateY:x,translateZ:x,x,y:x,z:x,perspective:x,transformPerspective:x,opacity:At,originX:gr,originY:gr,originZ:x,zIndex:yr,fillOpacity:At,strokeOpacity:At,numOctaves:yr};function Qt(t,e,o,r){let{style:n,vars:s,transform:i,transformOrigin:a}=t,l=!1,c=!1,u=!0;for(let m in e){let f=e[m];if(no(m)){s[m]=f;continue}let p=so[m],h=Un(f,p);if(_.has(m)){if(l=!0,i[m]=h,!u)continue;f!==(p.default||0)&&(u=!1)}else m.startsWith("origin")?(c=!0,a[m]=h):n[m]=h}if(e.transform||(l||r?n.transform=jn(t.transform,o,u,r):n.transform&&(n.transform="none")),c){let{originX:m="50%",originY:f="50%",originZ:p=0}=a;n.transformOrigin=`${m} ${f} ${p}`}}var te=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function xr(t,e,o){for(let r in e)!E(e[r])&&!ro(r,o)&&(t[r]=e[r])}function ll({transformTemplate:t},e,o){return(0,$n.useMemo)(()=>{let r=te();return Qt(r,e,{enableHardwareAcceleration:!o},t),Object.assign({},r.vars,r.style)},[e])}function cl(t,e,o){let r=t.style||{},n={};return xr(n,r,t),Object.assign(n,ll(t,e,o)),t.transformValues?t.transformValues(n):n}function Kn(t,e,o){let r={},n=cl(t,e,o);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=n,r}var ul=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function ke(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||ul.has(t)}var Zn=t=>!ke(t);function dl(t){!t||(Zn=e=>e.startsWith("on")?!ke(e):t(e))}try{dl((Xn(),nl(Yn)).default)}catch{}function Jn(t,e,o){let r={};for(let n in t)n==="values"&&typeof t.values=="object"||(Zn(n)||o===!0&&ke(n)||!e&&!ke(n)||t.draggable&&n.startsWith("onDrag"))&&(r[n]=t[n]);return r}var oi=w(M(),1);function Qn(t,e,o){return typeof t=="string"?t:x.transform(e+o*t)}function ti(t,e,o){let r=Qn(e,t.x,t.width),n=Qn(o,t.y,t.height);return`${r} ${n}`}var gl={offset:"stroke-dashoffset",array:"stroke-dasharray"},yl={offset:"strokeDashoffset",array:"strokeDasharray"};function ei(t,e,o=1,r=0,n=!0){t.pathLength=1;let s=n?gl:yl;t[s.offset]=x.transform(-r);let i=x.transform(e),a=x.transform(o);t[s.array]=`${i} ${a}`}function ee(t,{attrX:e,attrY:o,attrScale:r,originX:n,originY:s,pathLength:i,pathSpacing:a=1,pathOffset:l=0,...c}
vendor: 10,405 bytes, line 1
1,u,m,f){if(Qt(t,c,u,f),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:p,style:h,dimensions:y}=t;p.transform&&(y&&(h.transform=p.transform),delete p.transform),y&&(n!==void 0||s!==void 0||h.transform)&&(h.transformOrigin=ti(y,n!==void 0?n:.5,s!==void 0?s:.5)),e!==void 0&&(p.x=e),o!==void 0&&(p.y=o),r!==void 0&&(p.scale=r),i!==void 0&&ei(p,i,a,l,!1)}var ao=()=>({...te(),attrs:{}});var oe=t=>typeof t=="string"&&t.toLowerCase()==="svg";function ri(t,e,o,r){let n=(0,oi.useMemo)(()=>{let s=ao();return ee(s,e,{enableHardwareAcceleration:!1},oe(r),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){let s={};xr(s,t.style,t),n.style={...s,...n.style}}return n}function ni(t=!1){return(o,r,n,{latestValues:s},i)=>{let l=(Zt(o)?ri:Kn)(r,s,i,o),u={...Jn(r,typeof o=="string",t),...l,ref:n},{children:m}=r,f=(0,lo.useMemo)(()=>E(m)?m.get():m,[m]);return(0,lo.createElement)(o,{...u,children:f})}}var re=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function co(t,{style:e,vars:o},r,n){Object.assign(t.style,e,n&&n.getProjectionStyles(r));for(let s in o)t.style.setProperty(s,o[s])}var uo=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function mo(t,e,o,r){co(t,e,void 0,r);for(let n in e.attrs)t.setAttribute(uo.has(n)?n:re(n),e.attrs[n])}function ne(t,e){let{style:o}=t,r={};for(let n in o)(E(o[n])||e.style&&E(e.style[n])||ro(n,t))&&(r[n]=o[n]);return r}function fo(t,e){let o=ne(t,e);for(let r in t)if(E(t[r])||E(e[r])){let n=Ct.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[n]=t[r]}return o}var vr=w(M(),1);function ie(t,e,o,r={},n={}){return typeof e=="function"&&(e=e(o!==void 0?o:t.custom,r,n)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(o!==void 0?o:t.custom,r,n)),e}var ii=w(M(),1);function at(t){let e=(0,ii.useRef)(null);return e.current===null&&(e.current=t()),e.current}var zt=t=>Array.isArray(t);var si=t=>Boolean(t&&typeof t=="object"&&t.mix&&t.toValue),ai=t=>zt(t)?t[t.length-1]||0:t;function se(t){let e=E(t)?t.get():t;return si(e)?e.toValue():e}function xl({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:o},r,n,s){let i={latestValues:vl(r,n,s,t),renderState:e()};return o&&(i.mount=a=>o(r,a,i)),i}var po=t=>(e,o)=>{let r=(0,vr.useContext)(Tt),n=(0,vr.useContext)(Vt),s=()=>xl(t,e,r,n);return o?s():at(s)};function vl(t,e,o,r){let n={},s=r(t,{});for(let f in s)n[f]=se(s[f]);let{initial:i,animate:a}=t,l=Ot(t),c=to(t);e&&c&&!l&&t.inherit!==!1&&(i===void 0&&(i=e.initial),a===void 0&&(a=e.animate));let u=o?o.initial===!1:!1;u=u||i===!1;let m=u?a:i;return m&&typeof m!="boolean"&&!St(m)&&(Array.isArray(m)?m:[m]).forEach(p=>{let h=ie(t,p);if(!h)return;let{transitionEnd:y,transition:P,...b}=h;for(let g in b){let d=b[g];if(Array.isArray(d)){let T=u?d.length-1:0;d=d[T]}d!==null&&(n[g]=d)}for(let g in y)n[g]=y[g]}),n}var C=t=>t;var ho=class{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let o=this.order.indexOf(e);o!==-1&&(this.order.splice(o,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}};function li(t){let e=new ho,o=new ho,r=0,n=!1,s=!1,i=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{let m=u&&n,f=m?e:o;return c&&i.add(l),f.add(l)&&m&&n&&(r=e.order.length),l},cancel:l=>{o.remove(l),i.delete(l)},process:l=>{if(n){s=!0;return}if(n=!0,[e,o]=[o,e],o.clear(),r=e.order.length,r)for(let c=0;c<r;c++){let u=e.order[c];u(l),i.has(u)&&(a.schedule(u),t())}n=!1,s&&(s=!1,a.process(l))}};return a}var go=["prepare","read","update","preRender","render","postRender"],Pl=40;function ci(t,e){let o=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},s=go.reduce((m,f)=>(m[f]=li(()=>o=!0),m),{}),i=m=>s[m].process(n),a=()=>{let m=performance.now();o=!1,n.delta=r?1e3/60:Math.max(Math.min(m-n.timestamp,Pl),1),n.timestamp=m,n.isProcessing=!0,go.forEach(i),n.isProcessing=!1,o&&e&&(r=!1,t(a))},l=()=>{o=!0,r=!0,n.isProcessing||t(a)};return{schedule:go.reduce((m,f)=>{let p=s[f];return m[f]=(h,y=!1,P=!1)=>(o||l(),p.schedule(h,y,P)),m},{}),cancel:m=>go.forEach(f=>s[f].cancel(m)),state:n,steps:s}}var{schedule:v,cancel:F,state:R,steps:yo}=ci(typeof requestAnimationFrame<"u"?requestAnimationFrame:C,!0);var ui={useVisualState:po({scrapeMotionValuesFromProps:fo,createRenderState:ao,onMount:(t,e,{renderState:o,latestValues:r})=>{v.read(()=>{try{o.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{o.dimensions={x:0,y:0,width:0,height:0}}}),v.render(()=>{ee(o,r,{enableHardwareAcceleration:!1},oe(e.tagName),t.transformTemplate),mo(e,o)})}})};var mi={useVisualState:po({scrapeMotionValuesFromProps:ne,createRenderState:te})};function fi(t,{forwardMotionProps:e=!1},o,r){return{...Zt(t)?ui:mi,preloadedFeatures:o,useRender:ni(e),createVisualElement:r,Component:t}}function q(t,e,o,r={passive:!0}){return t.addEventListener(e,o,r),()=>t.removeEventListener(e,o)}var xo=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Ut(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}var pi=t=>e=>xo(e)&&t(e,Ut(e));function Y(t,e,o,r){return q(t,e,pi(o),r)}var Tl=(t,e)=>o=>e(t(o)),X=(...t)=>t.reduce(Tl);function gi(t){let e=null;return()=>{let o=()=>{e=null};return e===null?(e=t,o):!1}}var hi=gi("dragHorizontal"),di=gi("dragVertical");function Pr(t){let e=!1;if(t==="y")e=di();else if(t==="x")e=hi();else{let o=hi(),r=di();o&&r?e=()=>{o(),r()}:(o&&o(),r&&r())}return e}function vo(){let t=Pr(!0);return t?(t(),!1):!0}var z=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function yi(t,e){let o="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),n=(s,i)=>{if(s.type==="touch"||vo())return;let a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[r]&&v.update(()=>a[r](s,i))};return Y(t.current,o,n,{passive:!t.getProps()[r]})}var Po=class extends z{mount(){this.unmount=X(yi(this.node,!0),yi(this.node,!1))}unmount(){}};var To=class extends z{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=X(q(this.node.current,"focus",()=>this.onFocus()),q(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};var Tr=(t,e)=>e?t===e?!0:Tr(t,e.parentElement):!1;function Vr(t,e){if(!e)return;let o=new PointerEvent("pointer"+t);e(o,Ut(o))}var Vo=class extends z{constructor(){super(...arguments),this.removeStartListeners=C,this.removeEndListeners=C,this.removeAccessibleListeners=C,this.startPointerPress=(e,o)=>{if(this.removeEndListeners(),this.isPressing)return;let r=this.node.getProps(),s=Y(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;let{onTap:c,onTapCancel:u}=this.node.getProps();v.update(()=>{Tr(this.node.current,a.target)?c&&c(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),i=Y(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=X(s,i),this.startPress(e,o)},this.startAccessiblePress=()=>{let e=s=>{if(s.key!=="Enter"||this.isPressing)return;let i=a=>{a.key!=="Enter"||!this.checkPressEnd()||Vr("up",(l,c)=>{let{onTap:u}=this.node.getProps();u&&v.update(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=q(this.node.current,"keyup",i),Vr("down",(a,l)=>{this.startPress(a,l)})},o=q(this.node.current,"keydown",e),r=()=>{!this.isPressing||Vr("cancel",(s,i)=>this.cancelPress(s,i))},n=q(this.node.current,"blur",r);this.removeAccessibleListeners=X(o,n)}}startPress(e,o){this.isPressing=!0;let{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&v.update(()=>r(e,o))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!vo()}cancelPress(e,o){if(!this.checkPressEnd())return;let{onTapCancel:r}=this.node.getProps();r&&v.update(()=>r(e,o))}mount(){let e=this.node.getProps(),o=Y(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=q(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=X(o,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}};var Sr=new WeakMap,br=new WeakMap,Vl=t=>{let e=Sr.get(t.target);e&&e(t)},bl=t=>{t.forEach(Vl)};function Sl({root:t,...e}){let o=t||document;br.has(o)||br.set(o,{});let r=br.get(o),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(bl,{root:t,...e})),r[n]}function xi(t,e,o){let r=Sl(e);return Sr.set(t,o),r.observe(t),()=>{Sr.delete(t),r.unobserve(t)}}var Cl={some:0,all:1},bo=class extends z{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:o,margin:r,amount:n="some",once:s}=e,i={root:o?o.current:void 0,rootMargin:r,threshold:typeof n=="number"?n:Cl[n]},a=l=>{let{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);let{onViewportEnter:u,onViewportLeave:m}=this.node.getProps(),f=c?u:m;f&&f(l)};return xi(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:e,prevProps:o}=this.node;["amount","margin","root"].some(Al(e,o))&&this.startObserver()}unmount(){}};function Al({viewport:t={}},{viewport:e={}}={}){return o=>t[o]!==e[o]}var vi={inView:{Feature:bo},tap:{Feature:Vo},focus:{Feature:To},hover:{Feature:Po}};function Cr(t,e){if(!Array.isArray(e))return!1;let o=e.length;if(o!==t.length)return!1;for(let r=0;r<o;r++)if(e[r]!==t[r])return!1;return!0}function wl(t){let e={};
1return t.values.forEach((o,r)=>e[r]=o.get()),e}function Ml(t){let e={};return t.values.forEach((o,r)=>e[r]=o.getVelocity()),e}function Mt(t,e,o){let r=t.getProps();return ie(r,e,o!==void 0?o:r.custom,wl(t),Ml(t))}var Dl="framerAppearId",Pi="data-"+re(Dl);var Dt=C,U=C;var J=t=>t*1e3,Z=t=>t/1e3;var Ar={current:!1};var wr=t=>Array.isArray(t)&&typeof t[0]=="number";function Mr(t){return Boolean(!t||typeof t=="string"&&Ti[t]||wr(t)||Array.isArray(t)&&t.every(Mr))}var Be=([t,e,o,r])=>`cubic-bezier(${t}, ${e}, ${o}, ${r})`,Ti={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Be([0,.65,.55,1]),circOut:Be([.55,0,1,.45]),backIn:Be([.31,.01,.66,-.59]),backOut:Be([.33,1.53,.69,.99])};function Dr(t){if(!!t)return wr(t)?Be(t):Array.isArray(t)?t.map(Dr):Ti[t]}function Vi(t,e,o,{delay:r=0,duration:n,repeat:s=0,repeatType:i="loop",ease:a,times:l}={}){let c={[e]:o};l&&(c.offset=l);let u=Dr(a);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:r,duration:n,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"})}function bi(t,{repeat:e,repeatType:o="loop"}){let r=e&&o!=="loop"&&e%2===1?0:t.length-1;return t[r]}var Si=(t,e,o)=>(((1-3*o+3*e)*t+(3*o-6*e))*t+3*e)*t,Rl=1e-7,Ll=12;function El(t,e,o,r,n){let s,i,a=0;do i=e+(o-e)/2,s=Si(i,r,n)-t,s>0?o=i:e=i;while(Math.abs(s)>Rl&&++a<Ll);return i}function Rt(t,e,o,r){if(t===e&&o===r)return C;let n=s=>El(s,0,1,t,o);return s=>s===0||s===1?s:Si(n(s),e,r)}var Ci=Rt(.42,0,1,1),Ai=Rt(0,0,.58,1),So=Rt(.42,0,.58,1);var wi=t=>Array.isArray(t)&&typeof t[0]!="number";var Co=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2;var Ao=t=>e=>1-t(1-e);var Rr=t=>1-Math.sin(Math.acos(t)),Fe=Ao(Rr),Mi=Co(Fe);var Lr=Rt(.33,1.53,.69,.99),Oe=Ao(Lr),Di=Co(Oe);var Ri=t=>(t*=2)<1?.5*Oe(t):.5*(2-Math.pow(2,-10*(t-1)));var Li={linear:C,easeIn:Ci,easeInOut:So,easeOut:Ai,circIn:Rr,circInOut:Mi,circOut:Fe,backIn:Oe,backInOut:Di,backOut:Lr,anticipate:Ri},Er=t=>{if(Array.isArray(t)){U(t.length===4,"Cubic bezier arrays must contain four numerical values.");let[e,o,r,n]=t;return Rt(e,o,r,n)}else if(typeof t=="string")return U(Li[t]!==void 0,`Invalid easing type '${t}'`),Li[t];return t};var ae=(t,e)=>o=>Boolean(ht(o)&&Hn.test(o)&&o.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(o,e)),wo=(t,e,o)=>r=>{if(!ht(r))return r;let[n,s,i,a]=r.match(Nt);return{[t]:parseFloat(n),[e]:parseFloat(s),[o]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}};var kl=t=>W(0,255,t),kr={...ot,transform:t=>Math.round(kl(t))},lt={test:ae("rgb","red"),parse:wo("red","green","blue"),transform:({red:t,green:e,blue:o,alpha:r=1})=>"rgba("+kr.transform(t)+", "+kr.transform(e)+", "+kr.transform(o)+", "+wt(At.transform(r))+")"};function Bl(t){let e="",o="",r="",n="";return t.length>5?(e=t.substring(1,3),o=t.substring(3,5),r=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),o=t.substring(2,3),r=t.substring(3,4),n=t.substring(4,5),e+=e,o+=o,r+=r,n+=n),{red:parseInt(e,16),green:parseInt(o,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}}var Ie={test:ae("#"),parse:Bl,transform:lt.transform};var Lt={test:ae("hsl","hue"),parse:wo("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:o,alpha:r=1})=>"hsla("+Math.round(t)+", "+$.transform(wt(e))+", "+$.transform(wt(o))+", "+wt(At.transform(r))+")"};var I={test:t=>lt.test(t)||Ie.test(t)||Lt.test(t),parse:t=>lt.test(t)?lt.parse(t):Lt.test(t)?Lt.parse(t):Ie.parse(t),transform:t=>ht(t)?t:t.hasOwnProperty("red")?lt.transform(t):Lt.transform(t)};var A=(t,e,o)=>-o*t+o*e+t;function Br(t,e,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?t+(e-t)*6*o:o<1/2?e:o<2/3?t+(e-t)*(2/3-o)*6:t}function Ei({hue:t,saturation:e,lightness:o,alpha:r}){t/=360,e/=100,o/=100;let n=0,s=0,i=0;if(!e)n=s=i=o;else{let a=o<.5?o*(1+e):o+e-o*e,l=2*o-a;n=Br(l,a,t+1/3),s=Br(l,a,t),i=Br(l,a,t-1/3)}return{red:Math.round(n*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:r}}var Fr=(t,e,o)=>{let r=t*t;return Math.sqrt(Math.max(0,o*(e*e-r)+r))},Fl=[Ie,lt,Lt],Ol=t=>Fl.find(e=>e.test(t));function ki(t){let e=Ol(t);U(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let o=e.parse(t);return e===Lt&&(o=Ei(o)),o}var Mo=(t,e)=>{let o=ki(t),r=ki(e),n={...o};return s=>(n.red=Fr(o.red,r.red,s),n.green=Fr(o.green,r.green,s),n.blue=Fr(o.blue,r.blue,s),n.alpha=A(o.alph
1a,r.alpha,s),lt.transform(n))};function Il(t){var e,o;return isNaN(t)&&ht(t)&&(((e=t.match(Nt))===null||e===void 0?void 0:e.length)||0)+(((o=t.match(dr))===null||o===void 0?void 0:o.length)||0)>0}var Bi={regex:zn,countKey:"Vars",token:"${v}",parse:C},Fi={regex:dr,countKey:"Colors",token:"${c}",parse:I.parse},Oi={regex:Nt,countKey:"Numbers",token:"${n}",parse:ot.parse};function Or(t,{regex:e,countKey:o,token:r,parse:n}){let s=t.tokenised.match(e);!s||(t["num"+o]=s.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...s.map(n)))}function je(t){let e=t.toString(),o={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return o.value.includes("var(--")&&Or(o,Bi),Or(o,Fi),Or(o,Oi),o}function Ii(t){return je(t).values}function ji(t){let{values:e,numColors:o,numVars:r,tokenised:n}=je(t),s=e.length;return i=>{let a=n;for(let l=0;l<s;l++)l<r?a=a.replace(Bi.token,i[l]):l<r+o?a=a.replace(Fi.token,I.transform(i[l])):a=a.replace(Oi.token,wt(i[l]));return a}}var jl=t=>typeof t=="number"?0:t;function Nl(t){let e=Ii(t);return ji(t)(e.map(jl))}var K={test:Il,parse:Ii,createTransformer:ji,getAnimatableNone:Nl};var Ni=(t,e)=>o=>`${o>0?e:t}`;function zi(t,e){return typeof t=="number"?o=>A(t,e,o):I.test(t)?Mo(t,e):t.startsWith("var(")?Ni(t,e):jr(t,e)}var Ir=(t,e)=>{let o=[...t],r=o.length,n=t.map((s,i)=>zi(s,e[i]));return s=>{for(let i=0;i<r;i++)o[i]=n[i](s);return o}},Ui=(t,e)=>{let o={...t,...e},r={};for(let n in o)t[n]!==void 0&&e[n]!==void 0&&(r[n]=zi(t[n],e[n]));return n=>{for(let s in r)o[s]=r[s](n);return o}},jr=(t,e)=>{let o=K.createTransformer(e),r=je(t),n=je(e);return r.numVars===n.numVars&&r.numColors===n.numColors&&r.numNumbers>=n.numNumbers?X(Ir(r.values,n.values),o):(Dt(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Ni(t,e))};var nt=(t,e,o)=>{let r=e-t;return r===0?1:(o-t)/r};var Hi=(t,e)=>o=>A(t,e,o);function zl(t){return typeof t=="number"?Hi:typeof t=="string"?I.test(t)?Mo:jr:Array.isArray(t)?Ir:typeof t=="object"?Ui:Hi}function Ul(t,e,o){let r=[],n=o||zl(t[0]),s=t.length-1;for(let i=0;i<s;i++){let a=n(t[i],t[i+1]);if(e){let l=Array.isArray(e)?e[i]||C:e;a=X(l,a)}r.push(a)}return r}function Et(t,e,{clamp:o=!0,ease:r,mixer:n}={}){let s=t.length;if(U(s===e.length,"Both input and output ranges must be the same length"),s===1)return()=>e[0];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let i=Ul(e,r,n),a=i.length,l=c=>{let u=0;if(a>1)for(;u<t.length-2&&!(c<t[u+1]);u++);let m=nt(t[u],t[u+1],c);return i[u](m)};return o?c=>l(W(t[0],t[s-1],c)):l}function Gi(t,e){let o=t[t.length-1];for(let r=1;r<=e;r++){let n=nt(0,e,r);t.push(A(o,1,n))}}function Do(t){let e=[0];return Gi(e,t.length-1),e}function Wi(t,e){return t.map(o=>o*e)}function Hl(t,e){return t.map(()=>e||So).splice(0,t.length-1)}function Ne({duration:t=300,keyframes:e,times:o,ease:r="easeInOut"}){let n=wi(r)?r.map(Er):Er(r),s={done:!1,value:e[0]},i=Wi(o&&o.length===e.length?o:Do(e),t),a=Et(i,e,{ease:Array.isArray(n)?n:Hl(e,n)});return{calculatedDuration:t,next:l=>(s.value=a(l),s.done=l>=t,s)}}function le(t,e){return e?t*(1e3/e):0}var Gl=5;function Ro(t,e,o){let r=Math.max(e-Gl,0);return le(o-t(r),e-r)}var Nr=.001,Wl=.01,$i=10,$l=.05,Kl=1;function Ki({duration:t=800,bounce:e=.25,velocity:o=0,mass:r=1}){let n,s;Dt(t<=J($i),"Spring duration must be 10 seconds or less");let i=1-e;i=W($l,Kl,i),t=W(Wl,$i,Z(t)),i<1?(n=c=>{let u=c*i,m=u*t,f=u-o,p=Lo(c,i),h=Math.exp(-m);return Nr-f/p*h},s=c=>{let m=c*i*t,f=m*o+o,p=Math.pow(i,2)*Math.pow(c,2)*t,h=Math.exp(-m),y=Lo(Math.pow(c,2),i);return(-n(c)+Nr>0?-1:1)*((f-p)*h)/y}):(n=c=>{let u=Math.exp(-c*t),m=(c-o)*t+1;return-Nr+u*m},s=c=>{let u=Math.exp(-c*t),m=(o-c)*(t*t);return u*m});let a=5/t,l=ql(n,s,a);if(t=J(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{let c=Math.pow(l,2)*r;return{stiffness:c,damping:i*2*Math.sqrt(r*c),duration:t}}}var _l=12;function ql(t,e,o){let r=o;for(let n=1;n<_l;n++)r=r-t(r)/e(r);return r}function Lo(t,e){return t*Math.sqrt(1-e*e)}var Yl=["duration","bounce"],Xl=["stiffness","damping","mass"];function _i(t,e){return e.some(o=>t[o]!==void 0)}function Zl(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!_i(t,Xl)&&_i(t,Yl)){let o=Ki(t);e={...e,...o,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}
vendor: 4,378 bytes, line 1
1function Eo({keyframes:t,restDelta:e,restSpeed:o,...r}){let n=t[0],s=t[t.length-1],i={done:!1,value:n},{stiffness:a,damping:l,mass:c,velocity:u,duration:m,isResolvedFromDuration:f}=Zl(r),p=u?-Z(u):0,h=l/(2*Math.sqrt(a*c)),y=s-n,P=Z(Math.sqrt(a/c)),b=Math.abs(y)<5;o||(o=b?.01:2),e||(e=b?.005:.5);let g;if(h<1){let d=Lo(P,h);g=T=>{let V=Math.exp(-h*P*T);return s-V*((p+h*P*y)/d*Math.sin(d*T)+y*Math.cos(d*T))}}else if(h===1)g=d=>s-Math.exp(-P*d)*(y+(p+P*y)*d);else{let d=P*Math.sqrt(h*h-1);g=T=>{let V=Math.exp(-h*P*T),O=Math.min(d*T,300);return s-V*((p+h*P*y)*Math.sinh(O)+d*y*Math.cosh(O))/d}}return{calculatedDuration:f&&m||null,next:d=>{let T=g(d);if(f)i.done=d>=m;else{let V=p;d!==0&&(h<1?V=Ro(g,d,T):V=0);let O=Math.abs(V)<=o,D=Math.abs(s-T)<=e;i.done=O&&D}return i.value=i.done?s:T,i}}}function zr({keyframes:t,velocity:e=0,power:o=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:i,min:a,max:l,restDelta:c=.5,restSpeed:u}){let m=t[0],f={done:!1,value:m},p=S=>a!==void 0&&S<a||l!==void 0&&S>l,h=S=>a===void 0?l:l===void 0||Math.abs(a-S)<Math.abs(l-S)?a:l,y=o*e,P=m+y,b=i===void 0?P:i(P);b!==P&&(y=b-m);let g=S=>-y*Math.exp(-S/r),d=S=>b+g(S),T=S=>{let L=g(S),ut=d(S);f.done=Math.abs(L)<=c,f.value=f.done?b:ut},V,O,D=S=>{!p(f.value)||(V=S,O=Eo({keyframes:[f.value,h(f.value)],velocity:Ro(d,S,f.value),damping:n,stiffness:s,restDelta:c,restSpeed:u}))};return D(0),{calculatedDuration:null,next:S=>{let L=!1;return!O&&V===void 0&&(L=!0,T(S),D(S)),V!==void 0&&S>V?O.next(S-V):(!L&&T(S),f)}}}var qi=t=>{let e=({timestamp:o})=>t(o);return{start:()=>v.update(e,!0),stop:()=>F(e),now:()=>R.isProcessing?R.timestamp:performance.now()}};function Ur(t){let e=0,o=50,r=t.next(e);for(;!r.done&&e<2e4;)e+=o,r=t.next(e);return e>=2e4?1/0:e}var Jl={decay:zr,inertia:zr,tween:Ne,keyframes:Ne,spring:Eo};function Ht({autoplay:t=!0,delay:e=0,driver:o=qi,keyframes:r,type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:m,...f}){let p=1,h=!1,y,P,b=()=>{P=new Promise(B=>{y=B})};b();let g,d=Jl[n]||Ne,T;d!==Ne&&typeof r[0]!="number"&&(T=Et([0,100],r,{clamp:!1}),r=[0,100]);let V=d({...f,keyframes:r}),O;a==="mirror"&&(O=d({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let D="idle",S=null,L=null,ut=null;V.calculatedDuration===null&&s&&(V.calculatedDuration=Ur(V));let{calculatedDuration:mt}=V,yt=1/0,xt=1/0;mt!==null&&(yt=mt+i,xt=yt*(s+1)-i);let N=0,j=B=>{if(L===null)return;p>0&&(L=Math.min(L,B)),p<0&&(L=Math.min(B-xt/p,L)),S!==null?N=S:N=Math.round(B-L)*p;let Me=N-e*(p>=0?1:-1),fn=p>=0?Me<0:Me>xt;N=Math.max(Me,0),D==="finished"&&S===null&&(N=xt);let pn=N,hn=V;if(s){let pr=N/yt,Xe=Math.floor(pr),Ft=pr%1;!Ft&&pr>=1&&(Ft=1),Ft===1&&Xe--,Xe=Math.min(Xe,s+1);let gn=Boolean(Xe%2);gn&&(a==="reverse"?(Ft=1-Ft,i&&(Ft-=i/yt)):a==="mirror"&&(hn=O));let yn=W(0,1,Ft);N>xt&&(yn=a==="reverse"&&gn?1:0),pn=yn*yt}let De=fn?{done:!1,value:r[0]}:hn.next(pn);T&&(De.value=T(De.value));let{done:dn}=De;!fn&&mt!==null&&(dn=p>=0?N>=xt:N<=0);let ol=S===null&&(D==="finished"||D==="running"&&dn);return m&&m(De.value),ol&&el(),De},vt=()=>{g&&g.stop(),g=void 0},Yt=()=>{D="idle",vt(),y(),b(),L=ut=null},el=()=>{D="finished",u&&u(),vt(),y()},un=()=>{if(h)return;g||(g=o(j));let B=g.now();l&&l(),S!==null?L=B-S:(!L||D==="finished")&&(L=B),D==="finished"&&b(),ut=L,S=null,D="running",g.start()};t&&un();let mn={then(B,Me){return P.then(B,Me)},get time(){return Z(N)},set time(B){B=J(B),N=B,S!==null||!g||p===0?S=B:L=g.now()-B/p},get duration(){let B=V.calculatedDuration===null?Ur(V):V.calculatedDuration;return Z(B)},get speed(){return p},set speed(B){B===p||!g||(p=B,mn.time=Z(N))},get state(){return D},play:un,pause:()=>{D="paused",S=N},stop:()=>{h=!0,D!=="idle"&&(D="idle",c&&c(),Yt())},cancel:()=>{ut!==null&&j(ut),Yt()},complete:()=>{D="finished"},sample:B=>(L=0,j(B))};return mn}function Yi(t){let e;return()=>(e===void 0&&(e=t()),e)}var Ql=Yi(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tc=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ko=10,ec=2e4,oc=(t,e)=>e.type==="spring"||t==="backgroundColor"||!Mr(e.ease);function Xi(t,e,{onUpdate:o,onComplete:r,...n}){if(!(Ql()&&tc.has(e)&&!n.repeatDelay&&n.repeatType!=="mirror"&&n.damping!==0&&n.type!=="inertia"))return!1;let i=!1,a,l,c=()=>{l=new Promise(g=>{a=g})};c();let{keyframes:u,duration:m=300,ease:f,times:p}=n;
1if(oc(e,n)){let g=Ht({...n,repeat:0,delay:0}),d={done:!1,value:u[0]},T=[],V=0;for(;!d.done&&V<ec;)d=g.sample(V),T.push(d.value),V+=ko;p=void 0,u=T,m=V-ko,f="linear"}let h=Vi(t.owner.current,e,u,{...n,duration:m,ease:f,times:p});n.syncStart&&(h.startTime=R.isProcessing?R.timestamp:document.timeline?document.timeline.currentTime:performance.now());let y=()=>h.cancel(),P=()=>{v.update(y),a(),c()};return h.onfinish=()=>{t.set(bi(u,n)),r&&r(),P()},{then(g,d){return l.then(g,d)},attachTimeline(g){return h.timeline=g,h.onfinish=null,C},get time(){return Z(h.currentTime||0)},set time(g){h.currentTime=J(g)},get speed(){return h.playbackRate},set speed(g){h.playbackRate=g},get duration(){return Z(m)},play:()=>{i||(h.play(),F(y))},pause:()=>h.pause(),stop:()=>{if(i=!0,h.playState==="idle")return;let{currentTime:g}=h;if(g){let d=Ht({...n,autoplay:!1});t.setWithVelocity(d.sample(g-ko).value,d.sample(g).value,ko)}P()},complete:()=>h.finish(),cancel:P}}function Zi({keyframes:t,delay:e,onUpdate:o,onComplete:r}){let n=()=>(o&&o(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:C,pause:C,stop:C,then:s=>(s(),Promise.resolve()),cancel:C,complete:C});return e?Ht({keyframes:[0,1],duration:0,delay:e,onComplete:n}):n()}var rc={type:"spring",stiffness:500,damping:25,restSpeed:10},nc=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),ic={type:"keyframes",duration:.8},sc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ji=(t,{keyframes:e})=>e.length>2?ic:_.has(t)?t.startsWith("scale")?nc(e[1]):rc:sc;var ze=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(K.test(e)||e==="0")&&!e.startsWith("url("));var ac=new Set(["brightness","contrast","saturate","opacity"]);function lc(t){let[e,o]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;let[r]=o.match(Nt)||[];if(!r)return t;let n=o.replace(r,""),s=ac.has(e)?1:0;return r!==o&&(s*=100),e+"("+s+n+")"}var cc=/([a-z-]*)\(.*?\)/g,Ue={...K,getAnimatableNone:t=>{let e=t.match(cc);return e?e.map(lc).join(" "):t}};var uc={...so,color:I,backgroundColor:I,outlineColor:I,fill:I,stroke:I,borderColor:I,borderTopColor:I,borderRightColor:I,borderBottomColor:I,borderLeftColor:I,filter:Ue,WebkitFilter:Ue},ce=t=>uc[t];function Bo(t,e){let o=ce(t);return o!==Ue&&(o=K),o.getAnimatableNone?o.getAnimatableNone(e):void 0}var Fo=t=>/^0[^.\s]+$/.test(t);function Qi(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||Fo(t)}function ts(t,e,o,r){let n=ze(e,o),s;Array.isArray(o)?s=[...o]:s=[null,o];let i=r.from!==void 0?r.from:t.get(),a,l=[];for(let c=0;c<s.length;c++)s[c]===null&&(s[c]=c===0?i:s[c-1]),Qi(s[c])&&l.push(c),typeof s[c]=="string"&&s[c]!=="none"&&s[c]!=="0"&&(a=s[c]);if(n&&l.length&&a)for(let c=0;c<l.length;c++){let u=l[c];s[u]=Bo(e,a)}return s}function es({when:t,delay:e,delayChildren:o,staggerChildren:r,staggerDirection:n,repeat:s,repeatType:i,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function Oo(t,e){return t[e]||t.default||t}var ue=(t,e,o,r={})=>n=>{let s=Oo(r,t)||{},i=s.delay||r.delay||0,{elapsed:a=0}=r;a=a-J(i);let l=ts(e,t,o,s),c=l[0],u=l[l.length-1],m=ze(t,c),f=ze(t,u);Dt(m===f,`You are trying to animate ${t} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let p={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:h=>{e.set(h),s.onUpdate&&s.onUpdate(h)},onComplete:()=>{n(),s.onComplete&&s.onComplete()}};if(es(s)||(p={...p,...Ji(t,p)}),p.duration&&(p.duration=J(p.duration)),p.repeatDelay&&(p.repeatDelay=J(p.repeatDelay)),!m||!f||Ar.current||s.type===!1)return Zi(Ar.current?{...p,delay:0}:p);if(e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let h=Xi(e,t,p);if(h)return h}return Ht(p)};function Gt(t){return Boolean(E(t)&&t.add)}var Io=t=>/^\-?\d*\.?\d+$/.test(t);function me(t,e){t.indexOf(e)===-1&&t.push(e)}function fe(t,e){let o=t.indexOf(e);o>-1&&t.splice(o,1)}var kt=class{constructor(){this.subscriptions=[]}add(e){return me(this.subscriptions,e),()=>fe(this.subscriptions,e)}notify(e,o,r){let n=this.subscriptions.length;if(!!n)if(n===1)this.subscriptions[0](e,o,r);else for(let s=0;s<n;s++){let i=this.subscriptions[s];i&&i(e,o,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var mc=t=>!isNaN(parseFloat(t)),pe={current:void 0},Hr=class{constructor(e,o={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,n=!0)=>{this.prev=this.current,this.current=r;let{delta:s,timestamp:i}=R;this.lastUpdated!==i&&(this.timeDelta=s,this.lastUpdated=i,v.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),n&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>v.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=mc(this.current),this.owner=o.owner}onChange(e){return this.on("change",e)}on(e,o){this.events[e]||(this.events[e]=new kt);let r=this.events[e].add(o);return e==="change"?()=>{r(),v.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,o){this.passiveEffect=e,this.stopPassiveEffect=o}set(e,o=!0){!o||!this.passiveEffect?this.updateAndNotify(e,o):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,o,r){this.set(o),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return pe.current&&pe.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?le(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=e(o),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function H(t,e){return new Hr(t,e)}var jo=t=>e=>e.test(t);var os={test:t=>t==="auto",parse:t=>t};var Gr=[ot,x,$,st,Wn,Gn,os],he=t=>Gr.find(jo(t));var fc=[...Gr,I,K],rs=t=>fc.find(jo(t));function pc(t,e,o){t.hasValue(e)?t.getValue(e).set(o):t.addValue(e,H(o))}function ns(t,e){let o=Mt(t,e),{transitionEnd:r={},transition:n={},...s}=o?t.makeTargetAnimatable(o,!1):{};s={...s,...r};for(let i in s){let a=ai(s[i]);pc(t,i,a)}}function is(t,e,o){var r,n;let s=Object.keys(e).filter(a=>!t.hasValue(a)),i=s.length;if(!!i)for(let a=0;a<i;a++){let l=s[a],c=e[l],u=null;Array.isArray(c)&&(u=c[0]),u===null&&(u=(n=(r=o[l])!==null&&r!==void 0?r:t.readValue(l))!==null&&n!==void 0?n:e[l]),u!=null&&(typeof u=="string"&&(Io(u)||Fo(u))?u=parseFloat(u):!rs(u)&&K.test(c)&&(u=Bo(l,c)),t.addValue(l,H(u,{owner:t})),o[l]===void 0&&(o[l]=u),u!==null&&t.setBaseTarget(l,u))}}function hc(t,e){return e?(e[t]||e.default||e).from:void 0}function ss(t,e,o){let r={};for(let n in t){let s=hc(n,e);if(s!==void 0)r[n]=s;else{let i=o.getValue(n);i&&(r[n]=i.get())}}return r}function dc({protectedKeys:t,needsAnimating:e},o){let r=t.hasOwnProperty(o)&&e[o]!==!0;return e[o]=!1,r}function No(t,e,{delay:o=0,transitionOverride:r,type:n}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:i,...a}=t.makeTargetAnimatable(e),l=t.getValue("willChange");r&&(s=r);let c=[],u=n&&t.animationState&&t.animationState.getState()[n];for(let m in a){let f=t.getValue(m),p=a[m];if(!f||p===void 0||u&&dc(u,m))continue;let h={delay:o,elapsed:0,...s};if(window.HandoffAppearAnimations&&!f.hasAnimated){let P=t.getProps()[Pi];P&&(h.elapsed=window.HandoffAppearAnimations(P,m,f,v),h.syncStart=!0)}f.start(ue(m,f,p,t.shouldReduceMotion&&_.has(m)?{type:!1}:h));let y=f.animation;Gt(l)&&(l.add(m),y.then(()=>l.remove(m))),c.push(y)}return i&&Promise.all(c).then(()=>{i&&ns(t,i)}),c}function zo(t,e,o={}){let r=Mt(t,e,o.custom),{transition:n=t.getDefaultTransition()||{}}=r||{};o.transitionOverride&&(n=o.transitionOverride);let s=r?()=>Promise.all(No(t,r,o)):()=>Promise.resolve(),i=t.variantChildren&&t.variantChildren.size?(l=0)=>{let{delayChildren:c=0,staggerChildren:u,staggerDirection:m}=n;return gc(t,e,c+l,u,m,o)}:()=>Promise.resolve(),{when:a}=n;if(a){let[l,c]=a==="beforeChildren"?[s,i]:[i,s];return l().then(()=>c())}else return Promise.all([s(),i(o.delay)])}function gc(t,e,o=0,r=0,n=1,s){let i=[],a=(t.variantChildren.size-1)*r,l=n===1?(c=0)=>c*r:(c=0)=>a-c*r;
1return Array.from(t.variantChildren).sort(yc).forEach((c,u)=>{c.notify("AnimationStart",e),i.push(zo(c,e,{...s,delay:o+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(i)}function yc(t,e){return t.sortNodePosition(e)}function as(t,e,o={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){let n=e.map(s=>zo(t,s,o));r=Promise.all(n)}else if(typeof e=="string")r=zo(t,e,o);else{let n=typeof e=="function"?Mt(t,e,o.custom):e;r=Promise.all(No(t,n,o))}return r.then(()=>t.notify("AnimationComplete",e))}var xc=[...Qe].reverse(),vc=Qe.length;function Pc(t){return e=>Promise.all(e.map(({animation:o,options:r})=>as(t,o,r)))}function ls(t){let e=Pc(t),o=Vc(),r=!0,n=(l,c)=>{let u=Mt(t,c);if(u){let{transition:m,transitionEnd:f,...p}=u;l={...l,...p,...f}}return l};function s(l){e=l(t)}function i(l,c){let u=t.getProps(),m=t.getVariantContext(!0)||{},f=[],p=new Set,h={},y=1/0;for(let b=0;b<vc;b++){let g=xc[b],d=o[g],T=u[g]!==void 0?u[g]:m[g],V=pt(T),O=g===c?d.isActive:null;O===!1&&(y=b);let D=T===m[g]&&T!==u[g]&&V;if(D&&r&&t.manuallyAnimateOnMount&&(D=!1),d.protectedKeys={...h},!d.isActive&&O===null||!T&&!d.prevProp||St(T)||typeof T=="boolean")continue;let S=Tc(d.prevProp,T),L=S||g===c&&d.isActive&&!D&&V||b>y&&V,ut=Array.isArray(T)?T:[T],mt=ut.reduce(n,{});O===!1&&(mt={});let{prevResolvedValues:yt={}}=d,xt={...yt,...mt},N=j=>{L=!0,p.delete(j),d.needsAnimating[j]=!0};for(let j in xt){let vt=mt[j],Yt=yt[j];h.hasOwnProperty(j)||(vt!==Yt?zt(vt)&&zt(Yt)?!Cr(vt,Yt)||S?N(j):d.protectedKeys[j]=!0:vt!==void 0?N(j):p.add(j):vt!==void 0&&p.has(j)?N(j):d.protectedKeys[j]=!0)}d.prevProp=T,d.prevResolvedValues=mt,d.isActive&&(h={...h,...mt}),r&&t.blockInitialAnimation&&(L=!1),L&&!D&&f.push(...ut.map(j=>({animation:j,options:{type:g,...l}})))}if(p.size){let b={};p.forEach(g=>{let d=t.getBaseTarget(g);d!==void 0&&(b[g]=d)}),f.push({animation:b})}let P=Boolean(f.length);return r&&u.initial===!1&&!t.manuallyAnimateOnMount&&(P=!1),r=!1,P?e(f):Promise.resolve()}function a(l,c,u){var m;if(o[l].isActive===c)return Promise.resolve();(m=t.variantChildren)===null||m===void 0||m.forEach(p=>{var h;return(h=p.animationState)===null||h===void 0?void 0:h.setActive(l,c)}),o[l].isActive=c;let f=i(u,l);for(let p in o)o[p].protectedKeys={};return f}return{animateChanges:i,setActive:a,setAnimateFunction:s,getState:()=>o}}function Tc(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Cr(e,t):!1}function Wt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Vc(){return{animate:Wt(!0),whileInView:Wt(),whileHover:Wt(),whileTap:Wt(),whileDrag:Wt(),whileFocus:Wt(),exit:Wt()}}var Uo=class extends z{constructor(e){super(e),e.animationState||(e.animationState=ls(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),St(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:o}=this.node.prevProps||{};e!==o&&this.updateAnimationControlsSubscription()}unmount(){}};var bc=0,Ho=class extends z{constructor(){super(...arguments),this.id=bc++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:o,custom:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let s=this.node.animationState.setActive("exit",!e,{custom:r??this.node.getProps().custom});o&&!e&&s.then(()=>o(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}};var cs={animation:{Feature:Uo},exit:{Feature:Ho}};var us=(t,e)=>Math.abs(t-e);function ms(t,e){let o=us(t.x,e.x),r=us(t.y,e.y);return Math.sqrt(o**2+r**2)}var de=class{constructor(e,o,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let c=$r(this.lastMoveEventInfo,this.history),u=this.startEvent!==null,m=ms(c.offset,{x:0,y:0})>=3;if(!u&&!m)return;let{point:f}=c,{timestamp:p}=R;this.history.push({...f,timestamp:p});let{onStart:h,onMove:y}=this.handlers;u||(h&&h(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,c)},this.handlePointerMove=(c,u)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=Wr(u,this.transformPagePoint),v.update(this.updatePoint,!0)},this.handlePointerUp=(c,u)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:m,onSessionEnd:f}=this.handlers,p=$r(c.type==="pointercancel"?this.lastMoveEventInfo:Wr(u,this.transformPagePoint),this.history);this.startEvent&&m&&m(c,p),f&&f(c,p)}
vendor: 49,950 bytes, line 1
1,!xo(e))return;this.handlers=o,this.transformPagePoint=r;let n=Ut(e),s=Wr(n,this.transformPagePoint),{point:i}=s,{timestamp:a}=R;this.history=[{...i,timestamp:a}];let{onSessionStart:l}=o;l&&l(e,$r(s,this.history)),this.removeListeners=X(Y(window,"pointermove",this.handlePointerMove),Y(window,"pointerup",this.handlePointerUp),Y(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),F(this.updatePoint)}};function Wr(t,e){return e?{point:e(t.point)}:t}function fs(t,e){return{x:t.x-e.x,y:t.y-e.y}}function $r({point:t},e){return{point:t,delta:fs(t,ps(e)),offset:fs(t,Sc(e)),velocity:Cc(e,.1)}}function Sc(t){return t[0]}function ps(t){return t[t.length-1]}function Cc(t,e){if(t.length<2)return{x:0,y:0};let o=t.length-1,r=null,n=ps(t);for(;o>=0&&(r=t[o],!(n.timestamp-r.timestamp>J(e)));)o--;if(!r)return{x:0,y:0};let s=Z(n.timestamp-r.timestamp);if(s===0)return{x:0,y:0};let i={x:(n.x-r.x)/s,y:(n.y-r.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function G(t){return t.max-t.min}function Go(t,e=0,o=.01){return Math.abs(t-e)<=o}function hs(t,e,o,r=.5){t.origin=r,t.originPoint=A(e.min,e.max,t.origin),t.scale=G(o)/G(e),(Go(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=A(o.min,o.max,t.origin)-t.originPoint,(Go(t.translate)||isNaN(t.translate))&&(t.translate=0)}function ge(t,e,o,r){hs(t.x,e.x,o.x,r?r.originX:void 0),hs(t.y,e.y,o.y,r?r.originY:void 0)}function ds(t,e,o){t.min=o.min+e.min,t.max=t.min+G(e)}function ys(t,e,o){ds(t.x,e.x,o.x),ds(t.y,e.y,o.y)}function gs(t,e,o){t.min=e.min-o.min,t.max=t.min+G(e)}function ye(t,e,o){gs(t.x,e.x,o.x),gs(t.y,e.y,o.y)}function Vs(t,{min:e,max:o},r){return e!==void 0&&t<e?t=r?A(e,t,r.min):Math.max(t,e):o!==void 0&&t>o&&(t=r?A(o,t,r.max):Math.min(t,o)),t}function xs(t,e,o){return{min:e!==void 0?t.min+e:void 0,max:o!==void 0?t.max+o-(t.max-t.min):void 0}}function bs(t,{top:e,left:o,bottom:r,right:n}){return{x:xs(t.x,o,n),y:xs(t.y,e,r)}}function vs(t,e){let o=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([o,r]=[r,o]),{min:o,max:r}}function Ss(t,e){return{x:vs(t.x,e.x),y:vs(t.y,e.y)}}function Cs(t,e){let o=.5,r=G(t),n=G(e);return n>r?o=nt(e.min,e.max-r,t.min):r>n&&(o=nt(t.min,t.max-n,e.min)),W(0,1,o)}function As(t,e){let o={};return e.min!==void 0&&(o.min=e.min-t.min),e.max!==void 0&&(o.max=e.max-t.min),o}var Wo=.35;function ws(t=Wo){return t===!1?t=0:t===!0&&(t=Wo),{x:Ps(t,"left","right"),y:Ps(t,"top","bottom")}}function Ps(t,e,o){return{min:Ts(t,e),max:Ts(t,o)}}function Ts(t,e){return typeof t=="number"?t:t[e]||0}var Ms=()=>({translate:0,scale:1,origin:0,originPoint:0}),$t=()=>({x:Ms(),y:Ms()}),Ds=()=>({min:0,max:0}),k=()=>({x:Ds(),y:Ds()});function rt(t){return[t("x"),t("y")]}function $o({top:t,left:e,right:o,bottom:r}){return{x:{min:e,max:o},y:{min:t,max:r}}}function Rs({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Ls(t,e){if(!e)return t;let o=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:o.y,left:o.x,bottom:r.y,right:r.x}}function Kr(t){return t===void 0||t===1}function Ko({scale:t,scaleX:e,scaleY:o}){return!Kr(t)||!Kr(e)||!Kr(o)}function dt(t){return Ko(t)||_r(t)||t.z||t.rotate||t.rotateX||t.rotateY}function _r(t){return Es(t.x)||Es(t.y)}function Es(t){return t&&t!=="0%"}function He(t,e,o){let r=t-o,n=e*r;return o+n}function ks(t,e,o,r,n){return n!==void 0&&(t=He(t,n,r)),He(t,o,r)+e}function qr(t,e=0,o=1,r,n){t.min=ks(t.min,e,o,r,n),t.max=ks(t.max,e,o,r,n)}function Yr(t,{x:e,y:o}){qr(t.x,e.translate,e.scale,e.originPoint),qr(t.y,o.translate,o.scale,o.originPoint)}function Os(t,e,o,r=!1){let n=o.length;if(!n)return;e.x=e.y=1;let s,i;for(let a=0;a<n;a++){s=o[a],i=s.projectionDelta;let l=s.instance;l&&l.style&&l.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Kt(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),i&&(e.x*=i.x.scale,e.y*=i.y.scale,Yr(t,i)),r&&dt(s.latestValues)&&Kt(t,s.latestValues))}e.x=Bs(e.x),e.y=Bs(e.y)}function Bs(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function ct(t,e){t.min=t.min+e,t.max=t.max+e}function Fs(t,e,[o,r,n]){let s=e[n]!==void 0?e[n]:.5,i=A(t.min,t.max,s);qr(t,e[o],e[r],i,e.scale)}var Ac=["x","scaleX","originX"],wc=["y","scaleY","originY"];function Kt(t,e){Fs(t.x,e,Ac),Fs(t.y,e,wc)}function Xr(t,e){return $o(Ls(t.getBoundingClientRect(),e))}function Is(t,e,o){let r=Xr(t,o),{scroll:n}=e;return n&&(ct(r.x,n.offset.x),ct(r.y,n.offset.y)),r}var Mc=new WeakMap,qo=class{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=k(),this.visualElement=e}start(e,{snapToCursor:o=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let n=l=>{this.stopAnimation(),o&&this.snapToCursor(Ut(l,"page").point)},s=(l,c)=>{let{drag:u,dragPropagation:m,onDragStart:f}=this.getProps();if(u&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Pr(u),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rt(h=>{let y=this.getAxisMotionValue(h).get()||0;if($.test(y)){let{projection:P}=this.visualElement;if(P&&P.layout){let b=P.layout.layoutBox[h];b&&(y=G(b)*(parseFloat(y)/100))}}this.originPoint[h]=y}),f&&v.update(()=>f(l,c),!1,!0);let{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},i=(l,c)=>{let{dragPropagation:u,dragDirectionLock:m,onDirectionLock:f,onDrag:p}=this.getProps();if(!u&&!this.openGlobalLock)return;let{offset:h}=c;if(m&&this.currentDirection===null){this.currentDirection=Dc(h),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",c.point,h),this.updateAxis("y",c.point,h),this.visualElement.render(),p&&p(l,c)},a=(l,c)=>this.stop(l,c);this.panSession=new de(e,{onSessionStart:n,onStart:s,onMove:i,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,o){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=o;this.startAnimation(n);let{onDragEnd:s}=this.getProps();s&&v.update(()=>s(e,o))}cancel(){this.isDragging=!1;let{projection:e,animationState:o}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),o&&o.setActive("whileDrag",!1)}updateAxis(e,o,r){let{drag:n}=this.getProps();if(!r||!_o(e,n,this.currentDirection))return;let s=this.getAxisMotionValue(e),i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=Vs(i,this.constraints[e],this.elastic[e])),s.set(i)}resolveConstraints(){let{dragConstraints:e,dragElastic:o}=this.getProps(),{layout:r}=this.visualElement.projection||{},n=this.constraints;e&&ft(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=bs(r.layoutBox,e):this.constraints=!1,this.elastic=ws(o),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&rt(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=As(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:o}=this.getProps();if(!e||!ft(e))return!1;let r=e.current;U(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let s=Is(r,n.root,this.visualElement.getTransformPagePoint()),i=Ss(n.layout.layoutBox,s);if(o){let a=o(Rs(i));this.hasMutatedConstraints=!!a,a&&(i=$o(a))}return i}startAnimation(e){let{drag:o,dragMomentum:r,dragElastic:n,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=rt(u=>{if(!_o(u,o,this.currentDirection))return;let m=l&&l[u]||{};i&&(m={min:0,max:0});let f=n?200:1e6,p=n?40:1e7,h={type:"inertia",velocity:r?e[u]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...s,...m};return this.startAxisValueAnimation(u,h)});return Promise.all(c).then(a)}startAxisValueAnimation(e,o){let r=this.getAxisMotionValue(e);return r.start(ue(e,r,0,o))}stopAnimation(){rt(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let o="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),n=r[o];return n||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){rt(o=>{let{drag:r}=this.getProps();if(!_o(o,r,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(o);if(n&&n.layout){let{min:i,max:a}=n.layout.layoutBox[o];s.set(e[o]-A(i,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:o}=this.getProps(),{projection:r}=this.visualElement;if(!ft(o)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};rt(i=>{let a=this.getAxisMotionValue(i);if(a){let l=a.get();n[i]=Cs({min:l,max:l},this.constraints[i])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rt(i=>{if(!_o(i,e,null))return;let a=this.getAxisMotionValue(i),{min:l,max:c}=this.constraints[i];a.set(A(l,c,n[i]))})}addListeners(){if(!this.visualElement.current)return;Mc.set(this.visualElement,this);let e=this.visualElement.current,o=Y(e,"pointerdown",l=>{let{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{let{dragConstraints:l}=this.getProps();ft(l)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,s=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),r();let i=q(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(rt(u=>{let m=this.getAxisMotionValue(u);!m||(this.originPoint[u]+=l[u].translate,m.set(m.get()+l[u].translate))}),this.visualElement.render())});return()=>{i(),o(),s(),a&&a()}}getProps(){let e=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:i=Wo,dragMomentum:a=!0}=e;return{...e,drag:o,dragDirectionLock:r,dragPropagation:n,dragConstraints:s,dragElastic:i,dragMomentum:a}}};function _o(t,e,o){return(e===!0||e===t)&&(o===null||o===t)}function Dc(t,e=10){let o=null;return Math.abs(t.y)>e?o="y":Math.abs(t.x)>e&&(o="x"),o}var Yo=class extends z{constructor(e){super(e),this.removeGroupControls=C,this.removeListeners=C,this.controls=new qo(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||C}unmount(){this.removeGroupControls(),this.removeListeners()}};var js=t=>(e,o)=>{t&&v.update(()=>t(e,o))},Xo=class extends z{constructor(){super(...arguments),this.removePointerDownListener=C}onPointerDown(e){this.session=new de(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:o,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:js(e),onStart:js(o),onMove:r,onEnd:(s,i)=>{delete this.session,n&&v.update(()=>n(s,i))}}}mount(){this.removePointerDownListener=Y(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var Te=w(M(),1);var xe=w(M(),1);function Ns(){let t=(0,xe.useContext)(Vt);if(t===null)return[!0,null];let{isPresent:e,onExitComplete:o,register:r}=t,n=(0,xe.useId)();return(0,xe.useEffect)(()=>r(n),[]),!e&&o?[!1,()=>o&&o(n)]:[!0]}var ve={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var Pe={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(x.test(t))t=parseFloat(t);else return t;let o=zs(t,e.target.x),r=zs(t,e.target.y);return`${o}% ${r}%`}};var Us={correct:(t,{treeScale:e,projectionDelta:o})=>{let r=t,n=K.parse(t);if(n.length>5)return r;let s=K.createTransformer(t),i=typeof n[0]!="number"?1:0,a=o.x.scale*e.x,l=o.y.scale*e.y;n[0+i]/=a,n[1+i]/=l;let c=A(a,l,.5);return typeof n[2+i]=="number"&&(n[2+i]/=c),typeof n[3+i]=="number"&&(n[3+i]/=c),s(n)}};var Zr=class extends Te.default.Component{componentDidMount(){let{visualElement:e,layoutGroup:o,switchLayoutGroup:r,layoutId:n}=this.props,{projection:s}=e;In(Rc),s&&(o.group&&o.group.add(s),r&&r.register&&n&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ve.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:o,visualElement:r,drag:n,isPresent:s}=this.props,i=r.projection;return i&&(i.isPresent=s,n||e.layoutDependency!==o||o===void 0?i.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?i.promote():i.relegate()||v.postRender(()=>{let a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:o,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Zo(t){let[e,o]=Ns(),r=(0,Te.useContext)(Xt);return Te.default.createElement(Zr,{...t,layoutGroup:r,switchLayoutGroup:(0,Te.useContext)(oo),isPresent:e,safeToRemove:o})}var Rc={borderRadius:{...Pe,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pe,borderTopRightRadius:Pe,borderBottomLeftRadius:Pe,borderBottomRightRadius:Pe,boxShadow:Us};var $s=["TopLeft","TopRight","BottomLeft","BottomRight"],Lc=$s.length,Hs=t=>typeof t=="string"?parseFloat(t):t,Gs=t=>typeof t=="number"||x.test(t);function Ks(t,e,o,r,n,s){n?(t.opacity=A(0,o.opacity!==void 0?o.opacity:1,Ec(r)),t.opacityExit=A(e.opacity!==void 0?e.opacity:1,0,kc(r))):s&&(t.opacity=A(e.opacity!==void 0?e.opacity:1,o.opacity!==void 0?o.opacity:1,r));for(let i=0;i<Lc;i++){let a=`border${$s[i]}Radius`,l=Ws(e,a),c=Ws(o,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Gs(l)===Gs(c)?(t[a]=Math.max(A(Hs(l),Hs(c),r),0),($.test(c)||$.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||o.rotate)&&(t.rotate=A(e.rotate||0,o.rotate||0,r))}function Ws(t,e){return t[e]!==void 0?t[e]:t.borderRadius}var Ec=_s(0,.5,Fe),kc=_s(.5,.95,C);function _s(t,e,o){return r=>r<t?0:r>e?1:o(nt(t,e,r))}function qs(t,e){t.min=e.min,t.max=e.max}function Q(t,e){qs(t.x,e.x),qs(t.y,e.y)}function Ys(t,e,o,r,n){return t-=e,t=He(t,1/o,r),n!==void 0&&(t=He(t,1/n,r)),t}function Bc(t,e=0,o=1,r=.5,n,s=t,i=t){if($.test(e)&&(e=parseFloat(e),e=A(i.min,i.max,e/100)-i.min),typeof e!="number")return;let a=A(s.min,s.max,r);t===s&&(a-=e),t.min=Ys(t.min,e,o,a,n),t.max=Ys(t.max,e,o,a,n)}function Xs(t,e,[o,r,n],s,i){Bc(t,e[o],e[r],e[n],e.scale,s,i)}var Fc=["x","scaleX","originX"],Oc=["y","scaleY","originY"];function Jr(t,e,o,r){Xs(t.x,e,Fc,o?o.x:void 0,r?r.x:void 0),Xs(t.y,e,Oc,o?o.y:void 0,r?r.y:void 0)}function Zs(t){return t.translate===0&&t.scale===1}function Qr(t){return Zs(t.x)&&Zs(t.y)}function Js(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function tn(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function en(t){return G(t.x)/G(t.y)}var Jo=class{constructor(){this.members=[]}add(e){me(this.members,e),e.scheduleRender()}remove(e){if(fe(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(e){let o=this.members.findIndex(n=>e===n);if(o===0)return!1;let r;for(let n=o;n>=0;n--){let s=this.members[n];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(e,o){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,o&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;n===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:o,resumingFrom:r}=e;o.onExitComplete&&o.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function on(t,e,o){let r="",n=t.x.translate/e.x,s=t.y.translate/e.y;if((n||s)&&(r=`translate3d(${n}px, ${s}px, 0) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),o){let{rotate:l,rotateX:c,rotateY:u}=o;l&&(r+=`rotate(${l}deg) `),c&&(r+=`rotateX(${c}deg) `),u&&(r+=`rotateY(${u}deg) `)}let i=t.x.scale*e.x,a=t.y.scale*e.y;return(i!==1||a!==1)&&(r+=`scale(${i}, ${a})`),r||"none"}var Qs=(t,e)=>t.depth-e.depth;var Qo=class{constructor(){this.children=[],this.isDirty=!1}add(e){me(this.children,e),this.isDirty=!0}remove(e){fe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Qs),this.isDirty=!1,this.children.forEach(e)}};function ta(t,e){let o=performance.now(),r=({timestamp:n})=>{let s=n-o;s>=e&&(F(r),t(s-e))};return v.read(r,!0),()=>F(r)}function ea(t){window.MotionDebug&&window.MotionDebug.record(t)}function oa(t){return t instanceof SVGElement&&t.tagName!=="svg"}function ra(t,e,o){let r=E(t)?t:H(t);return r.start(ue("",r,e,o)),r.animation}var na=["","X","Y","Z"],ia=1e3,Ic=0,_t={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function tr({attachResizeListener:t,defaultParent:e,measureScroll:o,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(i={},a=e?.()){this.id=Ic++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{_t.totalNodes=_t.resolvedTargetDeltas=_t.recalculatedProjection=0,this.nodes.forEach(zc),this.nodes.forEach($c),this.nodes.forEach(Kc),this.nodes.forEach(Uc),ea(_t)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Qo)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new kt),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){let l=this.eventHandlers.get(i);l&&l.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=oa(i),this.instance=i;let{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),t){let m,f=()=>this.root.updateBlockedByResize=!1;t(i,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=ta(f,250),ve.hasAnimatedSinceResize&&(ve.hasAnimatedSinceResize=!1,this.nodes.forEach(aa))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let y=this.options.transition||u.getDefaultTransition()||Zc,{onLayoutAnimationStart:P,onLayoutAnimationComplete:b}=u.getProps(),g=!this.targetLayout||!tn(this.targetLayout,h)||p,d=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||d||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,d);let T={...Oo(y,"layout"),onPlay:P,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||aa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,F(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(_c),this.animationId++)}getTransformTemplate(){let{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){let m=this.path[u];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}let{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;let c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(sa);return}this.isUpdating||this.nodes.forEach(Gc),this.isUpdating=!1,this.nodes.forEach(Wc),this.nodes.forEach(jc),this.nodes.forEach(Nc),this.clearAllSnapshots();let a=performance.now();R.delta=W(0,1e3/60,a-R.timestamp),R.timestamp=a,R.isProcessing=!0,yo.update.process(R),yo.preRender.process(R),yo.render.process(R),R.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Hc),this.sharedNodes.forEach(qc)}scheduleUpdateProjection(){v.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){v.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=k(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:i,isRoot:r(this.instance),offset:o(this.instance)})}resetTransform(){if(!n)return;let i=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!Qr(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;i&&(a||dt(this.latestValues)||u)&&(n(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){let a=this.measurePageBox(),l=this.removeElementScroll(a);return i&&(l=this.removeTransform(l)),Jc(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:i}=this.options;if(!i)return k();let a=i.measureViewportBox(),{scroll:l}=this.root;return l&&(ct(a.x,l.offset.x),ct(a.y,l.offset.y)),a}removeElementScroll(i){let a=k();Q(a,i);for(let l=0;l<this.path.length;l++){let c=this.path[l],{scroll:u,options:m}=c;if(c!==this.root&&u&&m.layoutScroll){if(u.isRoot){Q(a,i);let{scroll:f}=this.root;f&&(ct(a.x,-f.offset.x),ct(a.y,-f.offset.y))}ct(a.x,u.offset.x),ct(a.y,u.offset.y)}}return a}applyTransform(i,a=!1){let l=k();Q(l,i);for(let c=0;c<this.path.length;c++){let u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Kt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),dt(u.latestValues)&&Kt(l,u.latestValues)}return dt(this.latestValues)&&Kt(l,this.latestValues),l}removeTransform(i){let a=k();Q(a,i);for(let l=0;l<this.path.length;l++){let c=this.path[l];if(!c.instance||!dt(c.latestValues))continue;Ko(c.latestValues)&&c.updateSnapshot();let u=k(),m=c.measurePageBox();Q(u,m),Jr(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return dt(this.latestValues)&&Jr(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){!this.relativeParent||this.relativeParent.resolvedRelativeTargetAt!==R.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var a;let l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);let c=Boolean(this.resumingFrom)||this!==l;if(!(i||c&&this.isSharedProjectionDirty||this.isProjectionDirty||((a=this.parent)===null||a===void 0?void 0:a.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:m,layoutId:f}=this.options;if(!(!this.layout||!(m||f))){if(this.resolvedRelativeTargetAt=R.timestamp,!this.targetDelta&&!this.relativeTarget){let p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=k(),this.relativeTargetOrigin=k(),ye(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),Q(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=k(),this.targetWithTransforms=k()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ys(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Q(this.target,this.layout.layoutBox),Yr(this.target,this.targetDelta)):Q(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let p=this.getClosestProjectingParent();p&&Boolean(p.resumingFrom)===Boolean(this.resumingFrom)&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=k(),this.relativeTargetOrigin=k(),ye(this.relativeTargetOrigin,this.target,p.target),Q(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}_t.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ko(this.parent.latestValues)||_r(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var i;let a=this.getLead(),l=Boolean(this.resumingFrom)||this!==a,c=!0;if((this.isProjectionDirty||((i=this.parent)===null||i===void 0?void 0:i.isProjectionDirty))&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===R.timestamp&&(c=!1),c)return;let{layout:u,layoutId:m}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||m))return;Q(this.layoutCorrected,this.layout.layoutBox);let f=this.treeScale.x,p=this.treeScale.y;Os(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);let{target:h}=a;if(!h){this.projectionTransform&&(this.projectionDelta=$t(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=$t(),this.projectionDeltaWithTransform=$t());let y=this.projectionTransform;ge(this.projectionDelta,this.layoutCorrected,h,this.latestValues),this.projectionTransform=on(this.projectionDelta,this.treeScale),(this.projectionTransform!==y||this.treeScale.x!==f||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h)),_t.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),i){let a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(i,a=!1){let l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},m=$t();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;let f=k(),p=l?l.source:void 0,h=this.layout?this.layout.source:void 0,y=p!==h,P=this.getStack(),b=!P||P.members.length<=1,g=Boolean(y&&!b&&this.options.crossfade===!0&&!this.path.some(Xc));this.animationProgress=0;let d;this.mixTargetDelta=T=>{let V=T/1e3;la(m.x,i.x,V),la(m.y,i.y,V),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ye(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Yc(this.relativeTarget,this.relativeTargetOrigin,f,V),d&&Js(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=k()),Q(d,this.relativeTarget)),y&&(this.animationValues=u,Ks(u,c,this.latestValues,V,g,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=V},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(F(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=v.update(()=>{ve.hasAnimatedSinceResize=!0,this.currentAnimation=ra(0,ia,{...i,onUpdate:a=>{this.mixTargetDelta(a),i.onUpdate&&i.onUpdate(a)},onComplete:()=>{i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ia),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let i=this.getLead(),{targetWithTransforms:a,target:l,layout:c,latestValues:u}=i;if(!(!a||!l||!c)){if(this!==i&&this.layout&&c&&pa(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||k();let m=G(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+m;let f=G(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+f}Q(a,l),Kt(a,u),ge(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Jo),this.sharedNodes.get(i).add(a);let c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){let i=this.getStack();return i?i.lead===this:!0}getLead(){var i;let{layoutId:a}=this.options;return a?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this}getPrevLead(){var i;let{layoutId:a}=this.options;return a?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0}getStack(){let{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:l}={}){let c=this.getStack();c&&c.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){let i=this.getStack();return i?i.relegate(this):!1}resetRotation(){let{visualElement:i}=this.options;if(!i)return;let a=!1,{latestValues:l}=i;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;let c={};for(let u=0;u<na.length;u++){let m="rotate"+na[u];l[m]&&(c[m]=l[m],i.setStaticValue(m,0))}i.render();for(let u in c)i.setStaticValue(u,c[u]);i.scheduleRender()}getProjectionStyles(i={}){var a,l;let c={};if(!this.instance||this.isSVG)return c;if(this.isVisible)c.visibility="";else return{visibility:"hidden"};let u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=se(i.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;let m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){let y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=se(i.pointerEvents)||""),this.hasProjected&&!dt(this.latestValues)&&(y.transform=u?u({},""):"none",this.hasProjected=!1),y}let f=m.animationValues||m.latestValues;this.applyTransformsToTarget(),c.transform=on(this.projectionDeltaWithTransform,this.treeScale,f),u&&(c.transform=u(f,c.transform));let{x:p,y:h}=this.projectionDelta;c.transformOrigin=`${p.origin*100}% ${h.origin*100}% 0`,m.animationValues?c.opacity=m===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:c.opacity=m===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(let y in Jt){if(f[y]===void 0)continue;let{correct:P,applyTo:b}=Jt[y],g=c.transform==="none"?f[y]:P(f[y],m);if(b){let d=b.length;for(let T=0;T<d;T++)c[b[T]]=g}else c[y]=g}return this.options.layoutId&&(c.pointerEvents=m===this?se(i.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var a;return(a=i.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(sa),this.root.sharedNodes.clear()}}}function jc(t){t.updateLayout()}function Nc(t){var e;let o=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&o&&t.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:n}=t.layout,{animationType:s}=t.options,i=o.source!==t.layout.source;s==="size"?rt(m=>{let f=i?o.measuredBox[m]:o.layoutBox[m],p=G(f);f.min=r[m].min,f.max=f.min+p}):pa(s,o.layoutBox,r)&&rt(m=>{let f=i?o.measuredBox[m]:o.layoutBox[m],p=G(r[m]);f.max=f.min+p,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[m].max=t.relativeTarget[m].min+p)});let a=$t();ge(a,r,o.layoutBox);let l=$t();i?ge(l,t.applyTransform(n,!0),o.measuredBox):ge(l,r,o.layoutBox);let c=!Qr(a),u=!1;if(!t.resumeFrom){let m=t.getClosestProjectingParent();if(m&&!m.resumeFrom){let{snapshot:f,layout:p}=m;if(f&&p){let h=k();ye(h,o.layoutBox,f.layoutBox);let y=k();ye(y,r,p.layoutBox),tn(h,y)||(u=!0),m.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=h,t.relativeParent=m)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:o,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function zc(t){_t.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Uc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Hc(t){t.clearSnapshot()}function sa(t){t.clearMeasurements()}function Gc(t){t.isLayoutDirty=!1}function Wc(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function aa(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function $c(t){t.resolveTargetDelta()}function Kc(t){t.calcProjection()}function _c(t){t.resetRotation()}function qc(t){t.removeLeadSnapshot()}function la(t,e,o){t.translate=A(e.translate,0,o),t.scale=A(e.scale,1,o),t.origin=e.origin,t.originPoint=e.originPoint}function ca(t,e,o,r){t.min=A(e.min,o.min,r),t.max=A(e.max,o.max,r)}function Yc(t,e,o,r){ca(t.x,e.x,o.x,r),ca(t.y,e.y,o.y,r)}function Xc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}var Zc={duration:.45,ease:[.4,0,.1,1]},ua=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),ma=ua("applewebkit/")&&!ua("chrome/")?Math.round:C;function fa(t){t.min=ma(t.min),t.max=ma(t.max)}function Jc(t){fa(t.x),fa(t.y)}function pa(t,e,o){return t==="position"||t==="preserve-aspect"&&!Go(en(e),en(o),.2)}var ha=tr({attachResizeListener:(t,e)=>q(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var rn={current:void 0},er=tr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rn.current){let t=new ha({});t.mount(window),t.setOptions({layoutScroll:!0}),rn.current=t}return rn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>Boolean(window.getComputedStyle(t).position==="fixed")});var da={pan:{Feature:Xo},drag:{Feature:Yo,ProjectionNode:er,MeasureLayout:Zo}};var Qc=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function tu(t){let e=Qc.exec(t);if(!e)return[,];let[,o,r]=e;return[o,r]}var eu=4;function nn(t,e,o=1){U(o<=eu,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[r,n]=tu(t);if(!r)return;let s=window.getComputedStyle(e).getPropertyValue(r);if(s){let i=s.trim();return Io(i)?parseFloat(i):i}else return io(n)?nn(n,e,o+1):n}function ga(t,{...e},o){let r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:o};o&&(o={...o}),t.values.forEach(n=>{let s=n.get();if(!io(s))return;let i=nn(s,r);i&&n.set(i)});for(let n in e){let s=e[n];if(!io(s))continue;let i=nn(s,r);!i||(e[n]=i,o||(o={}),o[n]===void 0&&(o[n]=s))}return{target:e,transitionEnd:o}}var ou=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),va=t=>ou.has(t),ru=t=>Object.keys(t).some(va),or=t=>t===ot||t===x,ya=(t,e)=>parseFloat(t.split(", ")[e]),xa=(t,e)=>(o,{transform:r})=>{if(r==="none"||!r)return 0;let n=r.match(/^matrix3d\((.+)\)$/);if(n)return ya(n[1],e);{let s=r.match(/^matrix\((.+)\)$/);return s?ya(s[1],t):0}},nu=new Set(["x","y","z"]),iu=Ct.filter(t=>!nu.has(t));function su(t){let e=[];return iu.forEach(o=>{let r=t.getValue(o);r!==void 0&&(e.push([o,r.get()]),r.set(o.startsWith("scale")?1:0))}),e.length&&t.render(),e}var Ve={width:({x:t},{paddingLeft:e="0",paddingRight:o="0"})=>t.max-t.min-parseFloat(e)-parseFloat(o),height:({y:t},{paddingTop:e="0",paddingBottom:o="0"})=>t.max-t.min-parseFloat(e)-parseFloat(o),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:xa(4,13),y:xa(5,14)};Ve.translateX=Ve.x;Ve.translateY=Ve.y;var au=(t,e,o)=>{let r=e.measureViewportBox(),n=e.current,s=getComputedStyle(n),{display:i}=s,a={};i==="none"&&e.setStaticValue("display",t.display||"block"),o.forEach(c=>{a[c]=Ve[c](r,s)}),e.render();let l=e.measureViewportBox();return o.forEach(c=>{let u=e.getValue(c);u&&u.jump(a[c]),t[c]=Ve[c](l,s)}),t},lu=(t,e,o={},r={})=>{e={...e},r={...r};let n=Object.keys(e).filter(va),s=[],i=!1,a=[];if(n.forEach(l=>{let c=t.getValue(l);if(!t.hasValue(l))return;let u=o[l],m=he(u),f=e[l],p;if(zt(f)){let h=f.length,y=f[0]===null?1:0;u=f[y],m=he(u);for(let P=y;P<h&&f[P]!==null;P++)p?U(he(f[P])===p,"All keyframes must be of the same type"):(p=he(f[P]),U(p===m||or(m)&&or(p),"Keyframes must be of the same dimension as the current value"))}else p=he(f);if(m!==p)if(or(m)&&or(p)){let h=c.get();typeof h=="string"&&c.set(parseFloat(h)),typeof f=="string"?e[l]=parseFloat(f):Array.isArray(f)&&p===x&&(e[l]=f.map(parseFloat))}else m?.transform&&p?.transform&&(u===0||f===0)?u===0?c.set(p.transform(u)):e[l]=m.transform(f):(i||(s=su(t),i=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:e[l],c.jump(f))}),a.length){let l=a.indexOf("height")>=0?window.pageYOffset:null,c=au(e,t,a);return s.length&&s.forEach(([u,m])=>{t.getValue(u).set(m)}),t.render(),bt&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:e,transitionEnd:r}};function Pa(t,e,o,r){return ru(e)?lu(t,e,o,r):{target:e,transitionEnd:r}}var Ta=(t,e,o,r)=>{let n=ga(t,e,r);return e=n.target,r=n.transitionEnd,Pa(t,e,o,r)};var Ge={current:null},rr={current:!1};function Va(){if(rr.current=!0,!!bt)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ge.current=t.matches;t.addListener(e),e()}else Ge.current=!1}function ba(t,e,o){let{willChange:r}=e;for(let n in e){let s=e[n],i=o[n];if(E(s))t.addValue(n,s),Gt(r)&&r.add(n);else if(E(i))t.addValue(n,H(s,{owner:t})),Gt(r)&&r.remove(n);else if(i!==s)if(t.hasValue(n)){let a=t.getValue(n);!a.hasAnimated&&a.set(s)}else{let a=t.getStaticValue(n);t.addValue(n,H(a!==void 0?a:s,{owner:t}))}}for(let n in o)e[n]===void 0&&t.removeValue(n);return e}var sn=new WeakMap;var Ca=Object.keys(It),cu=Ca.length,Sa=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],uu=Re.length,nr=class{constructor({parent:e,props:o,presenceContext:r,reducedMotionConfig:n,visualState:s},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{!this.current||(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>v.render(this.render,!1,!0);let{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=o.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=o,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=Ot(o),this.isVariantNode=to(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);let{willChange:c,...u}=this.scrapeMotionValuesFromProps(o,{});for(let m in u){let f=u[m];a[m]!==void 0&&E(f)&&(f.set(a[m],!1),Gt(c)&&c.add(m))}}scrapeMotionValuesFromProps(e,o){return{}}mount(e){this.current=e,sn.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,r)=>this.bindToMotionValue(r,o)),rr.current||Va(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ge.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){sn.delete(this.current),this.projection&&this.projection.unmount(),F(this.notifyUpdate),F(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let e in this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,o){let r=_.has(e),n=o.on("change",i=>{this.latestValues[e]=i,this.props.onUpdate&&v.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=o.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),s()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...o},r,n,s){let i,a;for(let l=0;l<cu;l++){let c=Ca[l],{isEnabled:u,Feature:m,ProjectionNode:f,MeasureLayout:p}=It[c];f&&(i=f),u(o)&&(!this.features[c]&&m&&(this.features[c]=new m(this)),p&&(a=p))}if(!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);let{layoutId:l,layout:c,drag:u,dragConstraints:m,layoutScroll:f,layoutRoot:p}=o;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:Boolean(u)||m&&ft(m),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,layoutScroll:f,layoutRoot:p})}return a}updateFeatures(){for(let e in this.features){let o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):k()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,o){this.latestValues[e]=o}makeTargetAnimatable(e,o=!0){return this.makeTargetAnimatableFromInstance(e,this.props,o)}update(e,o){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let r=0;r<Sa.length;r++){let n=Sa[r];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let s=e["on"+n];s&&(this.propEventSubscriptions[n]=this.on(n,s))}this.prevMotionValues=ba(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}let o={};for(let r=0;r<uu;r++){let n=Re[r],s=this.props[n];(pt(s)||s===!1)&&(o[n]=s)}return o}addVariantChild(e){let o=this.getClosestVariantNode();if(o)return o.variantChildren&&o.variantChildren.add(e),()=>o.variantChildren.delete(e)}addValue(e,o){o!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,o)),this.values.set(e,o),this.latestValues[e]=o.get()}removeValue(e){this.values.delete(e);let o=this.valueSubscriptions.get(e);o&&(o(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,o){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&o!==void 0&&(r=H(o,{owner:this}),this.addValue(e,r)),r}readValue(e){var o;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(o=this.getBaseTargetFromProps(this.props,e))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,o){this.baseTarget[e]=o}getBaseTarget(e){var o;let{initial:r}=this.props,n=typeof r=="string"||typeof r=="object"?(o=ie(this.props,r))===null||o===void 0?void 0:o[e]:void 0;if(r&&n!==void 0)return n;let s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!E(s)?s:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,o){return this.events[e]||(this.events[e]=new kt),this.events[e].add(o)}notify(e,...o){this.events[e]&&this.events[e].notify(...o)}};var be=class extends nr{sortInstanceNodePosition(e,o){return e.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(e,o){return e.style?e.style[o]:void 0}removeValueFromRenderState(e,{vars:o,style:r}){delete o[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:o,...r},{transformValues:n},s){let i=ss(r,e||{},this);
1if(n&&(o&&(o=n(o)),r&&(r=n(r)),i&&(i=n(i))),s){is(this,r,i);let a=Ta(this,r,i,o);o=a.transitionEnd,r=a.target}return{transition:e,transitionEnd:o,...r}}};function mu(t){return window.getComputedStyle(t)}var ir=class extends be{readValueFromInstance(e,o){if(_.has(o)){let r=ce(o);return r&&r.default||0}else{let r=mu(e),n=(no(o)?r.getPropertyValue(o):r[o])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:o}){return Xr(e,o)}build(e,o,r,n){Qt(e,o,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,o){return ne(e,o)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;E(e)&&(this.childSubscription=e.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}renderInstance(e,o,r,n){co(e,o,r,n)}};var sr=class extends be{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,o){return e[o]}readValueFromInstance(e,o){if(_.has(o)){let r=ce(o);return r&&r.default||0}return o=uo.has(o)?o:re(o),e.getAttribute(o)}measureInstanceViewportBox(){return k()}scrapeMotionValuesFromProps(e,o){return fo(e,o)}
vendor: 3,498 bytes, lines 1-9
1build(e,o,r,n){ee(e,o,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,o,r,n){mo(e,o,r,n)}mount(e){this.isSVGTag=oe(e.tagName),super.mount(e)}};var Aa=(t,e)=>Zt(t)?new sr(e,{enableHardwareAcceleration:!1}):new ir(e,{enableHardwareAcceleration:!0});var wa={layout:{ProjectionNode:er,MeasureLayout:Zo}};var fu={...cs,...vi,...da,...wa},pu=Fn((t,e)=>fi(t,e,fu,Aa));var gt=w(M(),1),tt=w(M(),1);var We=w(M(),1);var Ma=w(M(),1);function ar(){let t=(0,Ma.useRef)(!1);return it(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function Da(){let t=ar(),[e,o]=(0,We.useState)(0),r=(0,We.useCallback)(()=>{t.current&&o(e+1)},[e]);return[(0,We.useCallback)(()=>v.postRender(r),[r]),e]}var $e=w(M(),1),Ke=w(M(),1);var Se=w(M(),1),qt=w(M(),1),an=class extends Se.Component{getSnapshotBeforeUpdate(e){let o=this.props.childRef.current;if(o&&e.isPresent&&!this.props.isPresent){let r=this.props.sizeRef.current;r.height=o.offsetHeight||0,r.width=o.offsetWidth||0,r.top=o.offsetTop,r.left=o.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function Ra({children:t,isPresent:e}){let o=(0,qt.useId)(),r=(0,qt.useRef)(null),n=(0,qt.useRef)({width:0,height:0,top:0,left:0});return(0,qt.useInsertionEffect)(()=>{let{width:s,height:i,top:a,left:l}=n.current;if(e||!r.current||!s||!i)return;r.current.dataset.motionPopId=o;let c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` 2 [data-motion-pop-id="${o}"] { 3 position: absolute !important; 4 width: ${s}px !important; 5 height: ${i}px !important; 6 top: ${a}px !important; 7 left: ${l}px !important; 8 } 9 `),()=>{document.head.removeChild(c)}},[e]),Se.createElement(an,{isPresent:e,childRef:r,sizeRef:n},Se.cloneElement(t,{ref:r}))}var lr=({children:t,initial:e,isPresent:o,onExitComplete:r,custom:n,presenceAffectsLayout:s,mode:i})=>{let a=at(hu),l=(0,Ke.useId)(),c=(0,Ke.useMemo)(()=>({id:l,initial:e,isPresent:o,custom:n,onExitComplete:u=>{a.set(u,!0);for(let m of a.values())if(!m)return;r&&r()},register:u=>(a.set(u,!1),()=>a.delete(u))}),s?void 0:[o]);return(0,Ke.useMemo)(()=>{a.forEach((u,m)=>a.set(m,!1))},[o]),$e.useEffect(()=>{!o&&!a.size&&r&&r()},[o]),i==="popLayout"&&(t=$e.createElement(Ra,{isPresent:o},t)),$e.createElement(Vt.Provider,{value:c},t)};function hu(){return new Map}var La=w(M(),1);function Ea(t){return(0,La.useEffect)(()=>()=>t(),[])}var Ce=t=>t.key||"";function du(t,e){t.forEach(o=>{let r=Ce(o);e.set(r,o)})}function gu(t){let e=[];return tt.Children.forEach(t,o=>{(0,tt.isValidElement)(o)&&e.push(o)}),e}var yu=({children:t,custom:e,initial:o=!0,onExitComplete:r,exitBeforeEnter:n,presenceAffectsLayout:s=!0,mode:i="sync"})=>{U(!n,"Replace exitBeforeEnter with mode='wait'");let a=(0,tt.useContext)(Xt).forceRender||Da()[0],l=ar(),c=gu(t),u=c,m=(0,tt.useRef)(new Map).current,f=(0,tt.useRef)(u),p=(0,tt.useRef)(new Map).current,h=(0,tt.useRef)(!0);if(it(()=>{h.current=!1,du(c,p),f.current=u}),Ea(()=>{h.current=!0,p.clear(),m.clear()}),h.current)return gt.createElement(gt.Fragment,null,u.map(g=>gt.createElement(lr,{key:Ce(g),isPresent:!0,initial:o?void 0:!1,presenceAffectsLayout:s,mode:i},g)));u=[...u];let y=f.current.map(Ce),P=c.map(Ce),b=y.length;for(let g=0;g<b;g++){let d=y[g];P.indexOf(d)===-1&&!m.has(d)&&m.set(d,void 0)}return i==="wait"&&m.size&&(u=[]),m.forEach((g,d)=>{if(P.indexOf(d)!==-1)return;let T=p.get(d);if(!T)return;let V=y.indexOf(d),O=g;if(!O){let D=()=>
9{p.delete(d),m.delete(d);let S=f.current.findIndex(L=>L.key===d);if(f.current.splice(S,1),!m.size){if(f.current=c,l.current===!1)return;a(),r&&r()}};O=gt.createElement(lr,{key:Ce(T),isPresent:!1,onExitComplete:D,custom:e,presenceAffectsLayout:s,mode:i},T),m.set(d,O)}u.splice(V,0,O)}),u=u.map(g=>{let d=g.key;return m.has(d)?g:gt.createElement(lr,{key:Ce(g),isPresent:!0,presenceAffectsLayout:s,mode:i},g)}),gt.createElement(gt.Fragment,null,m.size?u:u.map(g=>(0,tt.cloneElement)(g)))};var Ae=w(M(),1);function _e(t){let e=at(()=>H(t)),{isStatic:o}=(0,Ae.useContext)(Pt);if(o){let[,r]=(0,Ae.useState)(t);(0,Ae.useEffect)(()=>e.on("change",r),[])}return e}var xu=t=>typeof t=="object"&&t.mix,vu=t=>xu(t)?t.mix:void 0;function ka(...t){let e=!Array.isArray(t[0]),o=e?0:-1,r=t[0+o],n=t[1+o],s=t[2+o],i=t[3+o],a=Et(n,s,{mixer:vu(s[0]),...i});return e?a(r):a}function cr(t,e){let o=_e(e()),r=()=>o.set(e());return r(),it(()=>{let n=()=>v.update(r,!1,!0),s=t.map(i=>i.on("change",n));return()=>{s.forEach(i=>i()),F(r)}}),o}function Ba(t){pe.current=[],t();let e=cr(pe.current,t);return pe.current=void 0,e}function Pu(t,e,o,r){if(typeof t=="function")return Ba(t);let n=typeof e=="function"?e:ka(e,o,r);return Array.isArray(t)?Fa(t,n):Fa([t],([s])=>n(s))}function Fa(t,e){let o=at(()=>[]);return cr(t,()=>{o.length=0;let r=t.length;for(let n=0;n<r;n++)o[n]=t[n].get();return e(o)})}var Qa=w(M(),1);function Oa(t,e,o){var r;if(typeof t=="string"){let n=document;e&&(U(Boolean(e.current),"Scope provided, but no element detected."),n=e.current),o?((r=o[t])!==null&&r!==void 0||(o[t]=n.querySelectorAll(t)),t=o[t]):t=n.querySelectorAll(t)}else t instanceof Element&&(t=[t]);return Array.from(t||[])}var ur=new WeakMap,Bt;function Tu(t,e){if(e){let{inlineSize:o,blockSize:r}=e[0];return{width:o,height:r}}else return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}function Vu({target:t,contentRect:e,borderBoxSize:o}){var r;(r=ur.get(t))===null||r===void 0||r.forEach(n=>{n({target:t,contentSize:e,get size(){return Tu(t,o)}})})}function bu(t){t.forEach(Vu)}function Su(){typeof ResizeObserver>"u"||(Bt=new ResizeObserver(bu))}function Ia(t,e){Bt||Su();let o=Oa(t);return o.forEach(r=>{let n=ur.get(r);n||(n=new Set,ur.set(r,n)),n.add(e),Bt?.observe(r)}),()=>{o.forEach(r=>{let n=ur.get(r);n?.delete(e),n?.size||Bt?.unobserve(r)})}}var mr=new Set,qe;function Cu(){qe=()=>{let t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};mr.forEach(o=>o(e))},window.addEventListener("resize",qe)}function ja(t){return mr.add(t),qe||Cu(),()=>{mr.delete(t),!mr.size&&qe&&(qe=void 0)}}function Na(t,e){return typeof t=="function"?ja(t):Ia(t,e)}var Au=50,za=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Ha=()=>({time:0,x:za(),y:za()}),wu={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Ua(t,e,o,r){let n=o[e],{length:s,position:i}=wu[e],a=n.current,l=o.time;n.current=t["scroll"+i],n.scrollLength=t["scroll"+s]-t["client"+s],n.offset.length=0,n.offset[0]=0,n.offset[1]=n.scrollLength,n.progress=nt(0,n.scrollLength,n.current);let c=r-l;n.velocity=c>Au?0:le(n.current-a,c)}function Ga(t,e,o){Ua(t,"x",e,o),Ua(t,"y",e,o),e.time=o}function Wa(t,e){let o={x:0,y:0},r=t;for(;r&&r!==e;)if(r instanceof HTMLElement)o.x+=r.offsetLeft,o.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){let n=r.getBoundingClientRect();r=r.parentElement;let s=r.getBoundingClientRect();o.x+=n.left-s.left,o.y+=n.top-s.top}else if(r instanceof SVGGraphicsElement){let{x:n,y:s}=r.getBBox();o.x+=n,o.y+=s;let i=null,a=r.parentNode;for(;!i;)a.tagName==="svg"&&(i=a),a=r.parentNode;r=i}else break;return o}var $a={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]};var fr={start:0,center:.5,end:1};function ln(t,e,o=0){let r=0;if(fr[t]!==void 0&&(t=fr[t]),typeof t=="string"){let n=parseFloat(t);t.endsWith("px")?r=n:t.endsWith("%")?t=n/100:t.endsWith("vw")?r=n/100*document.documentElement.clientWidth:t.endsWith("vh")?r=n/100*document.documentElement.clientHeight:t=n}return typeof t=="number"&&(r=e*t),o+r}var Mu=[0,0];function Ka(t,e,o,r){let n=Array.isArray(t)?t:Mu,s=0,i=0;return typeof t=="number"?n=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?n=t.split(" "):n=[t,fr[t]?t:"0"]),s=ln(n[0],o,r),i=ln(n[1],e),s-i}var Du={x:0,y:0};function Ru(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function _a(t,e,o){let{offset:r=$a.All}=o,{target:n=t,axis:s="y"}=o,i=s==="y"?"height":"width",a=n!==t?Wa(n,t):Du,l=n===t?{width:t.scrollWidth,height:t.scrollHeight}:Ru(n),c={width:t.clientWidth,height:t.clientHeight};e[s].offset.length=0;let u=!e[s].interpolate,m=r.length;for(let f=0;f<m;f++){let p=Ka(r[f],c[i],l[i],a[s]);
9!u&&p!==e[s].interpolatorOffsets[f]&&(u=!0),e[s].offset[f]=p}u&&(e[s].interpolate=Et(e[s].offset,Do(r)),e[s].interpolatorOffsets=[...e[s].offset]),e[s].progress=e[s].interpolate(e[s].current)}function Lu(t,e=t,o){if(o.x.targetOffset=0,o.y.targetOffset=0,e!==t){let r=e;for(;r&&r!==t;)o.x.targetOffset+=r.offsetLeft,o.y.targetOffset+=r.offsetTop,r=r.offsetParent}o.x.targetLength=e===t?e.scrollWidth:e.clientWidth,o.y.targetLength=e===t?e.scrollHeight:e.clientHeight,o.x.containerLength=t.clientWidth,o.y.containerLength=t.clientHeight}function qa(t,e,o,r={}){return{measure:()=>Lu(t,r.target,o),update:n=>{Ga(t,o,n),(r.offset||r.target)&&_a(t,o,r)},notify:()=>e(o)}}var Ye=new WeakMap,Ya=new WeakMap,cn=new WeakMap,Xa=t=>t===document.documentElement?window:t;function Za(t,{container:e=document.documentElement,...o}={}){let r=cn.get(e);r||(r=new Set,cn.set(e,r));let n=Ha(),s=qa(e,t,n,o);if(r.add(s),!Ye.has(e)){let a=()=>{for(let f of r)f.measure()},l=()=>{for(let f of r)f.update(R.timestamp)},c=()=>{for(let f of r)f.notify()},u=()=>{v.read(a,!1,!0),v.update(l,!1,!0),v.update(c,!1,!0)};Ye.set(e,u);let m=Xa(e);window.addEventListener("resize",u,{passive:!0}),e!==document.documentElement&&Ya.set(e,Na(e,u)),m.addEventListener("scroll",u,{passive:!0})}let i=Ye.get(e);return v.read(i,!1,!0),()=>{var a;F(i);let l=cn.get(e);if(!l||(l.delete(s),l.size))return;let c=Ye.get(e);Ye.delete(e),c&&(Xa(e).removeEventListener("scroll",c),(a=Ya.get(e))===null||a===void 0||a(),window.removeEventListener("resize",c))}}function Ja(t,e){Dt(Boolean(!e||e.current),`You have defined a ${t} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}var Eu=()=>({scrollX:H(0),scrollY:H(0),scrollXProgress:H(0),scrollYProgress:H(0)});function ku({container:t,target:e,layoutEffect:o=!0,...r}={}){let n=at(Eu);return(o?it:Qa.useEffect)(()=>(Ja("target",e),Ja("container",t),Za(({x:i,y:a})=>{n.scrollX.set(i.current),n.scrollXProgress.set(i.progress),n.scrollY.set(a.current),n.scrollYProgress.set(a.progress)},{...r,container:t?.current||void 0,target:e?.current||void 0})),[t,e,JSON.stringify(r.offset)]),n}var we=w(M(),1);function tl(t){let e=(0,we.useRef)(0),{isStatic:o}=(0,we.useContext)(Pt);(0,we.useEffect)(()=>{if(o)return;let r=({timestamp:n,delta:s})=>{e.current||(e.current=n),t(n-e.current,s)};return v.update(r,!0),()=>F(r)},[t])}function Bu(){let t=_e(0);return tl(e=>t.set(e)),t}export{pu as a,yu as b,_e as c,Pu as d,ku as e,Bu as f};
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.