1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`0b359c30-3fbb-414b-97c9-ebe51ca755ba`,e._sentryDebugIdIdentifier=`sentry-dbid-0b359c30-3fbb-414b-97c9-ebe51ca755ba`)}catch(e){}})();import{a as e,n as t,o as n,r}from"./rolldown-runtime-BqCAy3LS.js";import{n as i,t as a}from"./jsx-runtime-TTevM2bl.js";import{n as o,t as s}from"./objectSpread2-CYCC7qPT.js";import{n as c,t as l}from"./objectWithoutProperties-BaaIzLAC.js";function u(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var d=t((()=>{})),f=r({default:()=>m}),p,m,h=t((()=>{d(),p=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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|disableRemotePlayback|download|draggable|encType|enterKeyHint|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|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|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)-.*))$/,m=u(function(e){return p.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})})),g=`403px`,_=`--side-panel-width`,v=a();o(),c();var y=n(i(),1),b=(0,y.createContext)({});function x(e){let t=(0,y.useRef)(null);return t.current===null&&(t.current=e()),t.current}var S=typeof window<`u`?y.useLayoutEffect:y.useEffect,C=(0,y.createContext)(null);function w(e,t){e.indexOf(t)===-1&&e.push(t)}function T(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var E=(e,t,n)=>n>t?t:n<e?e:n,D={},ee=e=>RegExp(`^-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)$`,`u`).test(e),te=e=>typeof e==`object`&&!!e,ne=e=>RegExp(`^0[^.\\s]+$`,`u`).test(e);function re(e){let t;return()=>(t===void 0&&(t=e()),t)}var O=e=>e,ie=(...e)=>e.reduce((e,t)=>
1n=>t(e(n))),ae=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},oe=class{constructor(){this.subscriptions=[]}add(e){return w(this.subscriptions,e),()=>T(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},k=e=>e*1e3,A=e=>e/1e3,se=(e,t)=>t?1e3/t*e:0,ce=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,le=1e-7,ue=12;function de(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=ce(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>le&&++s<ue);return o}function fe(e,t,n,r){if(e===t&&n===r)return O;let i=t=>de(t,0,1,e,n);return e=>e===0||e===1?e:ce(i(e),t,r)}var pe=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,me=e=>t=>1-e(1-t),he=fe(.33,1.53,.69,.99),ge=me(he),_e=pe(ge),ve=e=>e>=1?1:(e*=2)<1?.5*ge(e):.5*(2-2**(-10*(e-1))),ye=e=>1-Math.sin(Math.acos(e)),be=me(ye),xe=pe(ye),Se=fe(.42,0,1,1),Ce=fe(0,0,.58,1),we=fe(.42,0,.58,1),Te=e=>Array.isArray(e)&&typeof e[0]!=`number`,Ee=e=>Array.isArray(e)&&typeof e[0]==`number`,De={linear:O,easeIn:Se,easeInOut:we,easeOut:Ce,circIn:ye,circInOut:xe,circOut:be,backIn:ge,backInOut:_e,backOut:he,anticipate:ve},Oe=e=>typeof e==`string`,ke=e=>{if(Ee(e)){e.length;let[t,n,r,i]=e;return fe(t,n,r,i)}else if(Oe(e))return De[e],`${e}`,De[e];return e},Ae=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function je(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var Me=40;function Ne(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Ae.reduce((e,t)=>(e[t]=je(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=D.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Me),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Ae.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Ae.length;t++)o[Ae[t]].cancel(e)},state:i,steps:o}}var{schedule:j,cancel:M,state:N,steps:Pe}=Ne(typeof requestAnimationFrame<`u`?requestAnimationFrame:O,!0),Fe;function Ie(){Fe=void 0}var P={now:()=>(Fe===void 0&&P.set(N.isProcessing||D.useManualTiming?N.timestamp:performance.now()),Fe),set:e=>{Fe=e,queueMicrotask(Ie)}},Le=e=>t=>typeof t==`string`&&t.startsWith(e),Re=Le(`--`),ze=Le(`var(--`),Be=e=>ze(e)?Ve.test(e.split(`/*`)[0].trim()):!1,Ve=RegExp(`var\\(--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)$`,`iu`);function He(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Ue={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},We=s(s({},Ue),{},{transform:e=>E(0,1,e)}),Ge=s(s({},Ue),{},{default:1}),Ke=e=>Math.round(e*1e5)/1e5,qe=RegExp(`-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)`,`gu`);function Je(e){return e==null}var Ye=RegExp(`^(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))$`,`iu`),Xe=(e,t)=>n=>!!(typeof n==`string`&&Ye.test(n)&&n.startsWith(e)||t&&!Je(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ze=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(qe);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}};o();var Qe=e=>E(0,255,e),$e=s(s({},Ue),{},{transform:e=>Math.round(Qe(e))}),et={test:Xe(`rgb`,`red`),parse:Ze(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+$e.transform(e)+`, `+$e.transform(t)+`, `+$e.transform(n)+`, `+Ke(We.transform(r))+`)`};function tt(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alph
1a:i?parseInt(i,16)/255:1}}var nt={test:Xe(`#`),parse:tt,transform:et.transform};o();var rt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),F=rt(`deg`),I=rt(`%`),L=rt(`px`),it=rt(`vh`),at=rt(`vw`),ot=s(s({},I),{},{parse:e=>I.parse(e)/100,transform:e=>I.transform(e*100)}),st={test:Xe(`hsl`,`hue`),parse:Ze(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+I.transform(Ke(t))+`, `+I.transform(Ke(n))+`, `+Ke(We.transform(r))+`)`},R={test:e=>et.test(e)||nt.test(e)||st.test(e),parse:e=>et.test(e)?et.parse(e):st.test(e)?st.parse(e):nt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?et.transform(e):st.transform(e),getAnimatableNone:e=>{let t=R.parse(e);return t.alpha=0,R.transform(t)}},ct=RegExp(`(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))`,`giu`);function lt(e){var t,n;return isNaN(e)&&typeof e==`string`&&(((t=e.match(qe))==null?void 0:t.length)||0)+(((n=e.match(ct))==null?void 0:n.length)||0)>0}var ut=`number`,dt=`color`,ft=`var`,pt=`var(`,mt="${}",ht=RegExp(`var\\s*\\(\\s*--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)|#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\)|-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)`,`giu`);function gt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(ht,e=>(R.test(e)?(r.color.push(a),i.push(dt),n.push(R.parse(e))):e.startsWith(pt)?(r.var.push(a),i.push(ft),n.push(e)):(r.number.push(a),i.push(ut),n.push(parseFloat(e))),++a,mt)).split(mt),indexes:r,types:i}}function _t(e){return gt(e).values}function vt({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===ut?i+=Ke(r[a]):e===dt?i+=R.transform(r[a]):i+=r[a]}return i}}function yt(e){return vt(gt(e))}var bt=e=>typeof e==`number`?0:R.test(e)?R.getAnimatableNone(e):e,xt=(e,t)=>typeof e==`number`?t!=null&&t.trim().endsWith(`/`)?e:0:bt(e);function St(e){let t=gt(e);return vt(t)(t.values.map((e,n)=>xt(e,t.split[n])))}var z={test:lt,parse:_t,createTransformer:yt,getAnimatableNone:St};function Ct(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function wt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Ct(s,r,e+1/3),a=Ct(s,r,e),o=Ct(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Tt(e,t){return n=>n>0?t:e}var B=(e,t,n)=>e+(t-e)*n;o();var Et=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Dt=[nt,et,st],Ot=e=>Dt.find(t=>t.test(e));function kt(e){let t=Ot(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===st&&(n=wt(n)),n}var At=(e,t)=>{let n=kt(e),r=kt(t);if(!n||!r)return Tt(e,t);let i=s({},n);return e=>(i.red=Et(n.red,r.red,e),i.green=Et(n.green,r.green,e),i.blue=Et(n.blue,r.blue,e),i.alpha=B(n.alpha,r.alpha,e),et.transform(i))},jt=new Set([`none`,`hidden`]);function Mt(e,t){return jt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}o();function Nt(e,t){return n=>B(e,t,n)}function Pt(e){return typeof e==`number`?Nt:typeof e==`string`?Be(e)?Tt:R.test(e)?At:Rt:Array.isArray(e)?Ft:typeof e==`object`?R.test(e)?At:It:Tt}function Ft(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Pt(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function It(e,t){let n=s(s({},e),t),r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Pt(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Lt(e,t){let n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){var i;let o=t.types[a],s=e.indexes[o][r[o]];n[a]=(i=e.values[s])==null?0:i,r[o]++}return n}var Rt=(e,t)=>{let n=z.createTransformer(t),r=gt(e),i=gt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?jt.has(e)&&!i.values.length||jt.has(t)&&!r.values.length?Mt(e,t):ie(Ft(Lt(r,i),i.values),n):(`${e}${t}`,Tt(e,t))};function zt(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`
1number`?B(e,t,n):Pt(e)(e,t)}var Bt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>j.update(t,e),stop:()=>M(t),now:()=>N.isProcessing?N.timestamp:P.now()}},Vt=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Ht=2e4;function Ut(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}o();function Wt(e,t=100,n){let r=n(s(s({},e),{},{keyframes:[0,t]})),i=Math.min(Ut(r),Ht);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:A(i)}}o();var V={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Gt(e,t){return e*Math.sqrt(1-t*t)}var Kt=12;function qt(e,t,n){let r=n;for(let n=1;n<Kt;n++)r-=e(r)/t(r);return r}var Jt=.001;function Yt({duration:e=V.duration,bounce:t=V.bounce,velocity:n=V.velocity,mass:r=V.mass}){let i,a;V.maxDuration;let o=1-t;o=E(V.minDamping,V.maxDamping,o),e=E(V.minDuration,V.maxDuration,A(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Gt(t,o),c=Math.exp(-i);return Jt-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Gt(t**2,o);return(-i(t)+Jt>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=qt(i,a,s);if(e=k(e),isNaN(c))return{stiffness:V.stiffness,damping:V.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Xt=[`duration`,`bounce`],Zt=[`stiffness`,`damping`,`mass`];function Qt(e,t){return t.some(t=>e[t]!==void 0)}function $t(e){let t=s({velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:!1},e);if(!Qt(e,Zt)&&Qt(e,Xt))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*E(.05,1,1-(e.bounce||0))*Math.sqrt(i);t=s(s({},t),{},{mass:V.mass,stiffness:i,damping:a})}else{let n=Yt(s(s({},e),{},{velocity:0}));t=s(s(s({},t),n),{},{mass:V.mass}),t.isResolvedFromDuration=!0}return t}function en(e=V.visualDuration,t=V.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],c={done:!1,value:a},{stiffness:l,damping:u,mass:d,duration:f,velocity:p,isResolvedFromDuration:m}=$t(s(s({},n),{},{velocity:-A(n.velocity||0)})),h=p||0,g=u/(2*Math.sqrt(l*d)),_=o-a,v=A(Math.sqrt(l/d)),y=Math.abs(_)<5;r||(r=y?V.restSpeed.granular:V.restSpeed.default),i||(i=y?V.restDelta.granular:V.restDelta.default);let b,x,S,C,w,T;if(g<1)S=Gt(v,g),C=(h+g*v*_)/S,b=e=>{let t=Math.exp(-g*v*e);return o-t*(C*Math.sin(S*e)+_*Math.cos(S*e))},w=g*v*C+_*S,T=g*v*_-C*S,x=e=>Math.exp(-g*v*e)*(w*Math.sin(S*e)+T*Math.cos(S*e));else if(g===1){b=e=>o-Math.exp(-v*e)*(_+(h+v*_)*e);let e=h+v*_;x=t=>Math.exp(-v*t)*(v*e*t-h)}else{let e=v*Math.sqrt(g*g-1);b=t=>{let n=Math.exp(-g*v*t),r=Math.min(e*t,300);return o-n*((h+g*v*_)*Math.sinh(r)+e*_*Math.cosh(r))/e};let t=(h+g*v*_)/e,n=g*v*t-_*e,r=g*v*_-t*e;x=t=>{let i=Math.exp(-g*v*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let E={calculatedDuration:m&&f||null,velocity:e=>k(x(e)),next:e=>{if(!m&&g<1){let t=Math.exp(-g*v*e),n=Math.sin(S*e),a=Math.cos(S*e),s=o-t*(C*n+_*a),l=k(t*(w*n+T*a));return c.done=Math.abs(l)<=r&&Math.abs(o-s)<=i,c.value=c.done?o:s,c}let t=b(e);if(m)c.done=e>=f;else{let n=k(x(e));c.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return c.value=c.done?o:t,c},toString:()=>{let e=Math.min(Ut(E),Ht),t=Vt(t=>E.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return E}en.applyToOptions=e=>{let t=Wt(e,100,en);return e.ease=t.ease,e.duration=k(t.duration),e.type=`keyframes`,e};var tn=5;function nn(e,t,n){let r=Math.max(t-tn,0);return se(n-e(r),t-r)}function rn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>
1{p(f.value)&&(x=e,S=en({keyframes:[f.value,m(f.value)],velocity:nn(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function an(e,t,n){let r=[],i=n||D.mix||zt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=ie(Array.isArray(t)?t[n]||O:t,a)),r.push(a)}return r}function on(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=an(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=ae(e[r],e[r+1],n);return s[r](i)};return n?t=>l(E(e[0],e[a-1],t)):l}function sn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=ae(0,t,r);e.push(B(n,1,i))}}function cn(e){let t=[0];return sn(t,e.length-1),t}function ln(e,t){return e.map(e=>e*t)}function un(e,t){return e.map(()=>t||we).splice(0,e.length-1)}function dn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Te(r)?r.map(ke):ke(r),a={done:!1,value:t[0]},o=on(ln(n&&n.length===t.length?n:cn(t),e),t,{ease:Array.isArray(i)?i:un(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var fn=e=>e!==null;function pn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(fn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var mn={decay:rn,inertia:rn,tween:dn,keyframes:dn,spring:en};function hn(e){typeof e.type==`string`&&(e.type=mn[e.type])}var gn=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}};o();var _n=e=>e/100,vn=class extends gn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var e,t;let{motionValue:n}=this.options;n&&n.updatedAt!==P.now()&&this.tick(P.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),(e=(t=this.options).onStop)==null||e.call(t))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;hn(e);let{type:t=dn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,c=t||dn;c!==dn&&typeof o[0]!=`number`&&(this.mixKeyframes=ie(_n,zt(o[0],o[1])),o=[0,100]);let l=c(s(s({},e),{},{keyframes:o}));i===`mirror`&&(this.mirroredGenerator=c(s(s({},e),{},{keyframes:[...o].reverse(),velocity:-a}))),l.calculatedDuration===null&&(l.calculatedDuration=Ut(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=E(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==rn&&(b.value=pn(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return A(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+A(e)}get time(){return A(this.currentTime)}set time(e){e=k(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return nn(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(P.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=A(this.currentTime))}play(){var e,t;if(this.isStopped)return;let{driver:n=Bt,startTime:r}=this.options;this.driver||(this.driver=n(e=>this.tick(e))),(e=(t=this.options).onPlay)==null||e.call(t);let i=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=i):this.holdTime===null?this.startTime||(this.startTime=r==null?i:r):this.startTime=i-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(P.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){var e,t;this.notifyFinished(),this.teardown(),this.state=`finished`,(e=(t=this.options).onComplete)==null||e.call(t)}cancel(){var e,t;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(e=(t=this.options).onCancel)==null||e.call(t)}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var t;return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),(t=this.driver)==null||t.stop(),e.observe(this)}};function yn(e){for(let t=1;t<e.length;t++)e[t]!=null||(e[t]=e[t-1])}var H=e=>e*180/Math.PI,bn=e=>Sn(H(Math.atan2(e[1],e[0]))),xn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:bn,rotateZ:bn,skewX:e=>H(Math.atan(e[1])),skewY:e=>H(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Sn=e=>(e%=360,e<0&&(e+=360),e),Cn=bn,wn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Tn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),En={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:wn,scaleY:Tn,scale:e=>(wn(e)+Tn(e))/2,rotateX:e=>Sn(H(Math.atan2(e[6],e[5]))),rotateY:e=>Sn(H(Math.atan2(-e[2],e[0]))),rotateZ:Cn,rotate:Cn,skewX:e=>H(Math.atan(e[4])),skewY:e=>H(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Dn(e){return+!!e.includes(`scale`)}
1function On(e,t){if(!e||e===`none`)return Dn(t);let n=e.match(RegExp(`^matrix3d\\(([-\\d.e\\s,]+)\\)$`,`u`)),r,i;if(n)r=En,i=n;else{let t=e.match(RegExp(`^matrix\\(([-\\d.e\\s,]+)\\)$`,`u`));r=xn,i=t}if(!i)return Dn(t);let a=r[t],o=i[1].split(`,`).map(An);return typeof a==`function`?a(o):o[a]}var kn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return On(n,t)};function An(e){return parseFloat(e.trim())}var jn=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Mn=new Set([...jn,`pathRotation`]),Nn=e=>e===Ue||e===L,Pn=new Set([`x`,`y`,`z`]),Fn=jn.filter(e=>!Pn.has(e));function In(e){let t=[];return Fn.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var U={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>On(t,`x`),y:(e,{transform:t})=>On(t,`y`)};U.translateX=U.x,U.translateY=U.y;var W=new Set,Ln=!1,Rn=!1,zn=!1;function Bn(){if(Rn){let e=Array.from(W).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=In(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{var r;(r=e.getValue(t))==null||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Rn=!1,Ln=!1,W.forEach(e=>e.complete(zn)),W.clear()}function Vn(){W.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Rn=!0)})}function Hn(){zn=!0,Vn(),Bn(),zn=!1}var Un=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(W.add(this),Ln||(Ln=!0,j.read(Vn),j.resolveKeyframes(Bn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r==null?void 0:r.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}yn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),W.delete(this)}cancel(){this.state===`scheduled`&&(W.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Wn=e=>e.startsWith(`--`);function Gn(e,t,n){Wn(t)?e.style.setProperty(t,n):e.style[t]=n}var Kn={};function qn(e,t){let n=re(e);return()=>{var e;return(e=Kn[t])==null?n():e}}var Jn=qn(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Yn=qn(()=>{try{document.createElement(`div`).animate({opacity:0}
1,{easing:`linear(0, 1)`})}catch(e){return!1}return!0},`linearEasing`),Xn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Zn={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Xn([0,.65,.55,1]),circOut:Xn([.55,0,1,.45]),backIn:Xn([.31,.01,.66,-.59]),backOut:Xn([.33,1.53,.69,.99])};function Qn(e,t){if(e)return typeof e==`function`?Yn()?Vt(e,t):`ease-out`:Ee(e)?Xn(e):Array.isArray(e)?e.map(e=>Qn(e,t)||Zn.easeOut):Zn[e]}function $n(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Qn(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function er(e){return typeof e==`function`&&`applyToOptions`in e}var tr=[`type`];function nr(e){let{type:t}=e,n=l(e,tr);return er(t)&&Yn()?t.applyToOptions(n):(n.duration!=null||(n.duration=300),n.ease!=null||(n.ease=`easeOut`),n)}var rr=class extends gn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=nr(e);this.animation=$n(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=pn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Gn(t,n,e),this.animation.cancel()}s==null||s(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,t;(e=(t=this.animation).finish)==null||e.call(t)}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e;let t=(e=this.options)==null?void 0:e.element;if(!this.isPseudoElement&&t!=null&&t.isConnected){var n,r;(n=(r=this.animation).commitStyles)==null||n.call(r)}}get duration(){var e,t;let n=((e=this.animation.effect)==null||(t=e.getComputedTiming)==null?void 0:t.call(e).duration)||0;return A(Number(n))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+A(e)}get time(){return A(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=k(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`f
1inished`}get startTime(){var e;return(e=this.manualStartTime)==null?Number(this.animation.startTime):e}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){if(this.allowFlatten){var i;(i=this.animation.effect)==null||i.updateTiming({easing:`linear`})}return this.animation.onfinish=null,e&&Jn()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),O):r(this)}},ir={anticipate:ve,backInOut:_e,circInOut:xe};function ar(e){return e in ir}function or(e){typeof e.ease==`string`&&ar(e.ease)&&(e.ease=ir[e.ease])}c(),o();var sr=[`motionValue`,`onUpdate`,`onComplete`,`element`],cr=10,lr=class extends rr{constructor(e){or(e),hn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let t=this.options,{motionValue:n,onUpdate:r,onComplete:i,element:a}=t,o=l(t,sr);if(!n)return;if(e!==void 0){n.set(e);return}let c=new vn(s(s({},o),{},{autoplay:!1})),u=Math.max(cr,P.now()-this.startTime),d=E(0,cr,u-cr),f=c.sample(u).value,{name:p}=this.options;a&&p&&Gn(a,p,f),n.setWithVelocity(c.sample(Math.max(0,u-d)).value,f,d),c.stop()}},ur=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(z.test(e)||e===`0`)&&!e.startsWith(`url(`));function dr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function fr(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=ur(i,t),s=ur(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:dr(e)||(n===`spring`||er(n))&&r}function pr(e){e.duration=0,e.type=`keyframes`}var mr=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),hr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function gr(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&hr.test(e[t]))return!0;return!1}var _r=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),vr=re(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function yr(e){var t;let{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:o,type:s,keyframes:c}=e,l=n==null||(t=n.owner)==null?void 0:t.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:d}=n.owner.getProps();return vr()&&r&&(mr.has(r)||_r.has(r)&&gr(c))&&(r!==`transform`||!d)&&!u&&!i&&a!==`mirror`&&o!==0&&s!==`inertia`}c(),o();var br=[`autoplay`,`delay`,`type`,`repeat`,`repeatDelay`,`repeatType`,`keyframes`,`name`,`motionValue`,`element`],xr=40,Sr=class extends gn{constructor(e){var t;let{autoplay:n=!0,delay:r=0,type:i=`keyframes`,repeat:a=0,repeatDelay:o=0,repeatType:c=`loop`,keyframes:u,n
1ame:d,motionValue:f,element:p}=e,m=l(e,br);super(),this.stop=()=>{var e;if(this._animation){var t;this._animation.stop(),(t=this.stopTimeline)==null||t.call(this)}(e=this.keyframeResolver)==null||e.cancel()},this.createdAt=P.now();let h=s({autoplay:n,delay:r,type:i,repeat:a,repeatDelay:o,repeatType:c,name:d,motionValue:f,element:p},m),g=(p==null?void 0:p.KeyframeResolver)||Un;this.keyframeResolver=new g(u,(e,t,n)=>this.onKeyframesResolved(e,t,h,!n),d,f,p),(t=this.keyframeResolver)==null||t.scheduleResolve()}onKeyframesResolved(e,t,n,r){var i;this.keyframeResolver=void 0;let{name:a,type:o,velocity:c,delay:l,isHandoff:u,onUpdate:d}=n;this.resolvedAt=P.now();let f=!0;fr(e,a,o,c)||(f=!1,(D.instantAnimations||!l)&&(d==null||d(pn(e,n,t))),e[0]=e[e.length-1],pr(n),n.repeat=0);let p=s(s({startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>xr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t},n),{},{keyframes:e}),m=f&&!u&&yr(p),h=(i=p.motionValue)==null||(i=i.owner)==null?void 0:i.current,g;if(m)try{g=new lr(s(s({},p),{},{element:h}))}catch(e){g=new vn(p)}else g=new vn(p);g.finished.then(()=>{this.notifyFinished()}).catch(O),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){if(!this._animation){var e;(e=this.keyframeResolver)==null||e.resume(),Hn()}return this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}};function Cr(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var wr=30,Tr=e=>!isNaN(parseFloat(e)),Er={current:void 0},Dr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=P.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev){var n;if((n=this.events.change)==null||n.notify(this.current),this.dependents)for(let e of this.dependents)e.dirty()}},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=P.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Tr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new oe);let n=this.events[e].add(t);return e===`change`?()=>{n(),j.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Er.current&&Er.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=P.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>wr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,wr);return se(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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(){var e,t;(e=this.dependents)==null||e.clear(),(t=this.events.destroy)==null||t.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Or(e,t){return new Dr(e,t)}c(),o();var kr=[`inherit`];function Ar(e,t){if(e!=null&&e.inherit&&t){let{inherit:n}=e,r=l(e,kr);return s(s({},t),r)}return e}function jr(e,t){var n,r;let i=(n=(r=e==null?void 0:e[t])==null?e==null?void 0:e.default:r)==null?e:n;return i===e?i:Ar(i,e)}var Mr={type:`spring`,stiffness:500,damping:25,restSpeed:10},Nr=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Pr={type:`keyframes`,duration:.8},Fr={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Ir=(e,{keyframes:t})=>t.length>2?Pr:Mn.has(e)?e.startsWith(`scale`)?Nr(t[1]):Mr:Fr,Lr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Rr(e){for(let t in e)if(!Lr.has(t))return!0;return!1}o();var zr=(e,t,n,r={},i,a)=>o=>
1{let c=jr(r,e)||{},l=c.delay||r.delay||0,{elapsed:u=0}=r;u-=k(l);let d=s(s({keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity()},c),{},{delay:-u,onUpdate:e=>{t.set(e),c.onUpdate&&c.onUpdate(e)},onComplete:()=>{o(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:i});Rr(c)||Object.assign(d,Ir(e,d)),d.duration&&(d.duration=k(d.duration)),d.repeatDelay&&(d.repeatDelay=k(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(pr(d),d.delay===0&&(f=!0)),(D.instantAnimations||D.skipAnimations||i!=null&&i.shouldSkipAnimations||c.skipAnimations)&&(f=!0,pr(d),d.delay=0),d.allowFlatten=!c.type&&!c.ease,f&&!a&&t.get()!==void 0){let e=pn(d.keyframes,c);if(e!==void 0){j.update(()=>{d.onUpdate(e),d.onComplete()});return}}return c.isSync?new vn(d):new Sr(d)},Br=RegExp(`^var\\(--(?:([\\w-]+)|([\\w-]+), ?([a-zA-Z\\d ()%#.,-]+))\\)`,`u`);function Vr(e){let t=Br.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n==null?r:n}`,i]}function Hr(e,t,n=1){`${e}`;let[r,i]=Vr(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return ee(e)?parseFloat(e):e}return Be(i)?Hr(i,t,n+1):i}function Ur(e){let t=[{},{}];return e==null||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Wr(e,t,n,r){if(typeof t==`function`){let[i,a]=Ur(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Ur(r);t=t(n===void 0?e.custom:n,i,a)}return t}function G(e,t,n){let r=e.getProps();return Wr(r,t,n===void 0?r.custom:n,e)}var Gr=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...jn]),Kr=e=>Array.isArray(e);c(),o();var qr=[`transitionEnd`,`transition`];function Jr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Or(n))}function Yr(e){return Kr(e)?e[e.length-1]||0:e}function Xr(e,t){let n=G(e,t)||{},{transitionEnd:r={},transition:i={}}=n,a=l(n,qr);a=s(s({},a),r);for(let t in a)Jr(e,t,Yr(a[t]))}var K=e=>!!(e&&e.getVelocity);function Zr(e){return!!(K(e)&&e.add)}function Qr(e,t){let n=e.getValue(`willChange`);if(Zr(n))return n.add(t);if(!n&&D.WillChange){let n=new D.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function $r(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var ei=`data-`+$r(`framerAppearId`);function ti(e){return e.props[ei]}c(),o();var ni=[`transition`,`transitionEnd`];function ri({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ii(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o}=t,c=l(t,ni),u=e.getDefaultTransition();a=a?Ar(a,u):u;let d=a==null?void 0:a.reduceMotion,f=a==null?void 0:a.skipAnimations;r&&(a=r);let p=[],m=i&&e.animationState&&e.animationState.getState()[i],h=a==null?void 0:a.path;h&&h.animateVisualElement(e,c,a,n,p);for(let t in c){var g;let r=e.getValue(t,(g=e.latestValues[t])==null?null:g),i=c[t];if(i===void 0||m&&ri(m,t))continue;let o=s({delay:n},jr(a||{},t));f&&(o.skipAnimations=!0);let l=r.get();if(l!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===l&&!o.velocity){j.update(()=>r.set(i));continue}let u=!1;if(window.MotionHandoffAnimation){let n=ti(e);if(n){let e=window.MotionHandoffAnimation(n,t,j);e!==null&&(o.startTime=e,u=!0)}}Qr(e,t);let h=d==null?e.shouldReduceMotion:d;r.start(zr(t,r,i,h&&Gr.has(t)?{type:!1}:o,e,u));let _=r.animation;_&&p.push(_)}if(o){let t=()=>j.update(()=>{o&&Xr(e,o)});p.length?Promise.all(p).then(t):t()}return p}o();function ai(e,t,n={}){var r;let i=G(e,t,n.type===`exit`?(r=e.presenceContext)==null?void 0:r.custom:void 0),{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);let o=i?()=>Promise.all(ii(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:i=0,staggerChildren:o,staggerDirection:s}=a;return oi(e,t,r,i,o,s,n)}:()=>Promise.resolve(),{when:c}=a;if(c){let[e,t]=c===`beforeChildren`?[o,s]:[s,o];return e().then(()=>t())}else return Promise.all([o(),s(n.delay)])}function oi(e,t,n=0,r=0,i=0,a=1,o){let c=[];for(let l of e.variantChildren)l.notify(`AnimationStart`,t),c.push(ai(l,t,s(s({},o),{},{delay:n+(typeof r==`function`?0:r)+Cr(e.variantChildren,l,r,i,a)})).then(()=>l.notify(`AnimationComplete`,t)));return Promise.all(c)}function si(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>ai(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=ai(e,t,n);else{let i=typeof t==`function`?G(e,t,n.custom):t;r=Promise.all(ii(e,i,n))}return r.then(()=>
1{e.notify(`AnimationComplete`,t)})}var ci={test:e=>e===`auto`,parse:e=>e},li=e=>t=>t.test(e),ui=[Ue,L,I,F,at,it,ci],di=e=>ui.find(li(e));function fi(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||ne(e)}o();var pi=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function mi(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(qe)||[];if(!r)return e;let i=n.replace(r,``),a=+!!pi.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var hi=RegExp(`\\b([a-z-]*)\\(.*?\\)`,`gu`),gi=s(s({},z),{},{getAnimatableNone:e=>{let t=e.match(hi);return t?t.map(mi).join(` `):e}});o();var _i=s(s({},z),{},{getAnimatableNone:e=>{let t=z.parse(e);return z.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?s(s({},e),{},{alpha:1}):e))}});o();var vi=s(s({},Ue),{},{transform:Math.round}),yi={rotate:F,pathRotation:F,rotateX:F,rotateY:F,rotateZ:F,scale:Ge,scaleX:Ge,scaleY:Ge,scaleZ:Ge,skew:F,skewX:F,skewY:F,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:We,originX:ot,originY:ot,originZ:L};o();var bi=s(s({borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,inset:L,insetBlock:L,insetBlockStart:L,insetBlockEnd:L,insetInline:L,insetInlineStart:L,insetInlineEnd:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,paddingBlock:L,paddingBlockStart:L,paddingBlockEnd:L,paddingInline:L,paddingInlineStart:L,paddingInlineEnd:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,marginBlock:L,marginBlockStart:L,marginBlockEnd:L,marginInline:L,marginInlineStart:L,marginInlineEnd:L,fontSize:L,backgroundPositionX:L,backgroundPositionY:L},yi),{},{zIndex:vi,fillOpacity:We,strokeOpacity:We,numOctaves:vi});o();var xi=s(s({},bi),{},{color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:gi,WebkitFilter:gi,mask:_i,WebkitMask:_i}),Si=e=>xi[e],Ci=new Set([gi,_i]);function wi(e,t){let n=Si(e);return Ci.has(n)||(n=z),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Ti=new Set([`auto`,`none`,`0`]);function Ei(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Ti.has(t)&>(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=wi(n,i)}var Di=class extends Un{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Be(r))){let i=Hr(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Gr.has(n)||e.length!==2)return;let[r,i]=e,a=di(r),o=di(i);if(He(r)!==He(i)&&U[n]){this.needsMeasurement=!0;return}if(a!==o)if(Nn(a)&&Nn(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else U[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||fi(e[t]))&&n.push(t);n.length&&Ei(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=U[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;let{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);let a=r.length-1,o=r[a];r[a]=U[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(e=this.removedTransforms)!=null&&e.length&&this.removedTransforms.forEac
1h(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}},Oi=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function ki(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){var r;let i=document;t&&(i=t.current);let a=(r=n==null?void 0:n[e])==null?i.querySelectorAll(e):r;return a?Array.from(a):[]}return Array.from(e).filter(e=>e!=null)}var Ai=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function ji(e){return te(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Mi,cancel:Ni}=Ne(queueMicrotask,!1),q={x:!1,y:!1};function Pi(){return q.x||q.y}function Fi(e){return e===`x`||e===`y`?q[e]?null:(q[e]=!0,()=>{q[e]=!1}):q.x||q.y?null:(q.x=q.y=!0,()=>{q.x=q.y=!1})}o();function Ii(e,t){let n=ki(e),r=new AbortController;return[n,s(s({passive:!0},t),{},{signal:r.signal}),()=>r.abort()]}function Li(e){return!(e.pointerType===`touch`||Pi())}function Ri(e,t,n={}){let[r,i,a]=Ii(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&(a(e),a=void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Li(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var zi=(e,t)=>t?e===t||zi(e,t.parentElement):!1,Bi=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Vi=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Hi(e){return Vi.has(e.tagName)||e.isContentEditable===!0}var Ui=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Wi(e){return Ui.has(e.tagName)||e.isContentEditable===!0}var Gi=new WeakSet;function Ki(e){return t=>{t.key===`Enter`&&e(t)}}function qi(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Ji=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Ki(()=>{if(Gi.has(n))return;qi(n,`down`);let e=Ki(()=>{qi(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>qi(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};o();function Yi(e){return Bi(e)&&!Pi()}var Xi=new WeakSet;function Zi(e,t,n={}){let[r,i,a]=Ii(e,n),o=e=>{let r=e.currentTarget;if(!Yi(e)||Xi.has(e))return;Gi.add(r),n.stopPropagation&&Xi.add(e);let a=t(r,e),o=s(s({},i),{},{capture:!0}),c=(e,t)=>{window.removeEventListener(`pointerup`,l,o),window.removeEventListener(`pointercancel`,u,o),Gi.has(r)&&Gi.delete(r),Yi(e)&&typeof a==`function`&&a(e,{success:t})},l=e=>{c(e,r===window||r===document||n.useGlobalTarget||zi(r,e.target))},u=e=>{c(e,!1)};window.addEventListener(`pointerup`,l,o),window.addEventListener(`pointercancel`,u,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),ji(e)&&(e.addEventListener(`focus`,e=>Ji(e,i)),!Hi(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Qi(e){return te(e)&&`ownerSVGElement`in e}var $i=new WeakMap,ea,ta=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Qi(r)&&`getBBox`in r?r.getBBox()[t]:r[n],na=ta(`inline`,`width`,`offsetWidth`),ra=ta(`block`,`height`,`offsetHeight`);function ia({target:e,borderBoxSize:t}){var n;(n=$i.get(e))==null||n.forEach(n=>{n(e,{get width(){return na(e,t)},get height(){return ra(e,t)}})})}function aa(e){e.forEach(ia)}function oa(){typeof ResizeObserver>`u`||(ea=new ResizeObserver(aa))}function sa(e,t){ea||oa();let n=ki(e);return n.forEach(e=>{let n=$i.get(e);n||(n=new Set,$i.set(e,n)),n.add(t),ea==null||ea.observe(e)}),()=>{n.forEach(e=>{let n=$i.get(e);n==null||n.delete(t),n!=null&&n.size||ea==null||ea.unobserve(e)})}}var ca=new Set,la;function ua(){la=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ca.forEach(t=>t(e))},window.addEventListener(`resize`,la)}function da(e){return ca.add(e),la||ua(),()=>{ca.delete(e),!ca.size&&typeof la==`function`&&(window.removeEventListener(`resize`,la),la=void 0)}}function fa(e,t){return typeof e==`function`?da(e):sa(e,t)}var pa={value:null,addProjectionMetrics:null};function ma(e){return Qi(e)&&e.tagName===`svg`}var ha=[...ui,R,z],ga=e=>ha.find(li(e)),_a=()=>({translate:0,scale:1,origin:0,originPoint:0}),va=()=>({x:_a(),y:_a()}),ya=()=>({min:0,max:0}),J=()=>({x:ya(),y:ya()}),ba=new WeakMap;function xa(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Sa(e){return typeof e==`string`||Array.isArray(e)}var Ca=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],wa=[`initial`,...Ca];function Ta(e){return xa(e.animate)||wa.some(t=>Sa(e[t]))}function Ea(e){return!!(Ta(e)||e.variants)}
1function Da(e,t,n){for(let r in t){let i=t[r],a=n[r];if(K(i))e.addValue(r,i);else if(K(a))e.addValue(r,Or(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Or(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Oa={current:null},ka={current:!1},Aa=typeof window<`u`;function ja(){if(ka.current=!0,Aa)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Oa.current=e.matches;e.addEventListener(`change`,t),t()}else Oa.current=!1}o(),c();var Ma=[`willChange`],Na=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Pa={};function Fa(e){Pa=e}function Ia(){return Pa}var La=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Un,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=P.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,j.render(this.render,!1,!0))};let{latestValues:u,renderState:d}=o;this.latestValues=u,this.baseTarget=s({},u),this.initialValues=t.initial?s({},u):{},this.renderState=d,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=Ta(t),this.isVariantNode=Ea(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let f=this.scrapeMotionValuesFromProps(t,{},this),{willChange:p}=f,m=l(f,Ma);for(let e in m){let t=m[e];u[e]!==void 0&&K(t)&&t.set(u[e])}}mount(e){var t,n;if(this.hasBeenMounted)for(let e in this.initialValues){var r;(r=this.values.get(e))==null||r.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e]}this.current=e,ba.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((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(ka.current||ja(),this.shouldReduceMotion=Oa.current),this.shouldSkipAnimations=(t=this.skipAnimationsConfig)!=null&&t,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),M(this.notifyUpdate),M(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren!=null||(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&mr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new rr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:k(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Mn.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&j.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Pa){let t=Pa[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];
1t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):J()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Na.length;t++){let n=Na[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Da(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Or(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))==null?this.readValueFromInstance(this.current,e,this.options):n;return r!=null&&(typeof r==`string`&&(ee(r)||ne(r))?r=parseFloat(r):!ga(r)&&z.test(t)&&(r=wi(e,t)),this.setBaseTarget(e,K(r)?r.get():r)),K(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){var r;let i=Wr(this.props,t,(r=this.presenceContext)==null?void 0:r.custom);i&&(n=i[e])}if(t&&n!==void 0)return n;let i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!K(i)?i:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new oe),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Mi.render(this.render)}},Ra=class extends La{constructor(){super(...arguments),this.KeyframeResolver=Di}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;K(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Y=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function za({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ba({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Va(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ha(e){return e===void 0||e===1}function Ua({scale:e,scaleX:t,scaleY:n}){return!Ha(e)||!Ha(t)||!Ha(n)}function Wa(e){return Ua(e)||Ga(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ga(e){return Ka(e.x)||Ka(e.y)}function Ka(e){return e&&e!==`0%`}function qa(e,t,n){return n+t*(e-n)}function Ja(e,t,n,r,i){return i!==void 0&&(e=qa(e,i,r)),qa(e,n,r)+t}function Ya(e,t=0,n=1,r,i){e.min=Ja(e.min,t,n,r,i),e.max=Ja(e.max,t,n,r,i)}function Xa(e,{x:t,y:n}){Ya(e.x,t.translate,t.scale,t.originPoint),Ya(e.y,n.translate,n.scale,n.originPoint)}var Za=.999999999999,Qa=1.0000000000001;function $a(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let c=0;c<i;c++){a=n[c],o=a.projectionDelta;let{visualElement:i}=a.options;if(!(i&&i.props.style&&i.props.style.display===`contents`)&&(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(X(e.x,-a.scroll.offset.x),X(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Xa(e,o)),r&&Wa(a.latestValues))){var s;
1no(e,a.latestValues,(s=a.layout)==null?void 0:s.layoutBox)}}t.x<Qa&&t.x>Za&&(t.x=1),t.y<Qa&&t.y>Za&&(t.y=1)}function X(e,t){e.min+=t,e.max+=t}function eo(e,t,n,r,i=.5){Ya(e,t,n,B(e.min,e.max,i),r)}function to(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function no(e,t,n){let r=n==null?e:n;eo(e.x,to(t.x,r.x),t.scaleX,t.scale,t.originX),eo(e.y,to(t.y,r.y),t.scaleY,t.scale,t.originY)}function ro(e,t){return za(Va(e.getBoundingClientRect(),t))}function io(e,t,n){let r=ro(e,n),{scroll:i}=t;return i&&(X(r.x,i.offset.x),X(r.y,i.offset.y)),r}var ao={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},oo=jn.length;function so(e,t,n){let r=``,i=!0;for(let a=0;a<oo;a++){let o=jn[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Ai(s,bi[o]);if(!c){i=!1;let t=ao[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Ai(a,bi.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function co(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Mn.has(e)){o=!0;continue}else if(Re(e)){i[e]=n;continue}else{let t=Ai(n,bi[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=so(t,e.transform,n):r.transform&&(r.transform=`none`)),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function lo(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i==null||i.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function uo(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var fo={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(L.test(e))e=parseFloat(e);else return e;return`${uo(e,t.target.x)}% ${uo(e,t.target.y)}%`}},po={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=z.parse(e);if(i.length>5)return r;let a=z.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=B(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}};o();var mo={borderRadius:s(s({},fo),{},{applyTo:[...Oi]}),borderTopLeftRadius:fo,borderTopRightRadius:fo,borderBottomLeftRadius:fo,borderBottomRightRadius:fo,boxShadow:po};function ho(e,{layout:t,layoutId:n}){return Mn.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!mo[e]||e===`opacity`)}function go(e,t,n){let r=e.style,i=t==null?void 0:t.style,a={};if(!r)return a;for(let t in r){var o;(K(r[t])||i&&K(i[t])||ho(t,e)||(n==null||(o=n.getValue(t))==null?void 0:o.liveStyle)!==void 0)&&(a[t]=r[t])}return a}function _o(e){return window.getComputedStyle(e)}var vo=class extends Ra{constructor(){super(...arguments),this.type=`html`,this.renderInstance=lo}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(Mn.has(t)){var n;return(n=this.projection)!=null&&n.isProjecting?Dn(t):kn(e,t)}else{let n=_o(e),r=(Re(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ro(e,t)}build(e,t,n){co(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return go(e,t,n)}},yo={offset:`stroke-dashoffset`,array:`stroke-dasharray`},bo={offset:`strokeDashoffset`,array:`strokeDasharray`};function xo(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?yo:bo;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}c();var So=[`attrX`,`attrY`,`attrScale`,`pathLength`,`pathSpacing`,`pathOffset`],Co=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function wo(e,t,n,r,i){let{attrX:a,attrY:o,attrScale:s,pathLength:c,pathSpacing:u=1,pathOffset:d=0}=t;if(co(e,l(t,So),r),n){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:p}=e;if(f.transform&&(p.transform=f.transform,delete f.transform),p.transform||f.transformOrigin){var m;p.transformOrigin=(m=f.transformOrigin)==null?`50% 50%`:m,delete f.transformOrigin}if(p.transform){var h;p.transformBox=(h=i==null?void 0:i.transformBox)==null?`fill-box`:h,delete f.transformBox}for(let e of Co)f[e]!==void 0&&(p[e]=f[e],delete f[e]);a!==void 0&&(f.x=a),o!==void 0&&(f.y=o),s!==void 0&&(f.scale=s),c!==void 0&&xo(f,c,u,d,!1)}var To=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`]),Eo=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Do(e,t,n,r){lo(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(To.has(n)?n:$r(n),t.attrs[n])}function Oo(e,t,n){let r=go(e,t,n);for(let n in e)if(K(e[n])||K(t[n])){let t=jn.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var ko=class extends Ra{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=J}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Mn.has(t)){let e=Si(t);return e&&e.default||0}return t=To.has(t)?t:$r(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Oo(e,t,n)}
1build(e,t,n){wo(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Do(e,t,n,r)}mount(e){this.isSVGTag=Eo(e.tagName),super.mount(e)}},Ao=wa.length;function jo(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&jo(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Ao;n++){let r=wa[n],i=e.props[r];(Sa(i)||i===!1)&&(t[r]=i)}return t}function Mo(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}c(),o();var No=[`transition`,`transitionEnd`],Po=[...Ca].reverse(),Fo=Ca.length;function Io(e){return t=>Promise.all(t.map(({animation:t,options:n})=>si(e,t,n)))}function Lo(e){let t=Io(e),n=Bo(),r=!0,i=!1,a=t=>(n,r)=>{var i;let a=G(e,r,t===`exit`?(i=e.presenceContext)==null?void 0:i.custom:void 0);if(a){let{transition:e,transitionEnd:t}=a,r=l(a,No);n=s(s(s({},n),r),t)}return n};function o(n){t=n(e)}function c(o){let{props:c}=e,l=jo(e.parent)||{},u=[],d=new Set,f={},p=1/0;for(let t=0;t<Fo;t++){let m=Po[t],h=n[m],g=c[m]===void 0?l[m]:c[m],_=Sa(g),v=m===o?h.isActive:null;v===!1&&(p=t);let y=g===l[m]&&g!==c[m]&&_;if(y&&(r||i)&&e.manuallyAnimateOnMount&&(y=!1),h.protectedKeys=s({},f),!h.isActive&&v===null||!g&&!h.prevProp||xa(g)||typeof g==`boolean`)continue;if(m===`exit`&&h.isActive&&v!==!0){h.prevResolvedValues&&(f=s(s({},f),h.prevResolvedValues));continue}let b=Ro(h.prevProp,g),x=b||m===o&&h.isActive&&!y&&_||t>p&&_,S=!1,C=Array.isArray(g)?g:[g],w=C.reduce(a(m),{});v===!1&&(w={});let{prevResolvedValues:T={}}=h,E=s(s({},T),w),D=t=>{x=!0,d.has(t)&&(S=!0,d.delete(t)),h.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in E){let t=w[e],n=T[e];if(f.hasOwnProperty(e))continue;let r=!1;r=Kr(t)&&Kr(n)?!Mo(t,n)||b:t!==n,r?t==null?d.add(e):D(e):t!==void 0&&d.has(e)?D(e):h.protectedKeys[e]=!0}h.prevProp=g,h.prevResolvedValues=w,h.isActive&&(f=s(s({},f),w)),(r||i)&&e.blockInitialAnimation&&(x=!1);let ee=y&&b;x&&(!ee||S)&&u.push(...C.map(t=>{let n={type:m};if(typeof t==`string`&&(r||i)&&!ee&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=G(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Cr(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(d.size){let t={};if(typeof c.initial!=`boolean`){let n=G(e,Array.isArray(c.initial)?c.initial[0]:c.initial);n&&n.transition&&(t.transition=n.transition)}d.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r==null?null:r}),u.push({animation:t})}let m=!!u.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,i=!1,m?t(u):Promise.resolve()}function u(t,r){var i;if(n[t].isActive===r)return Promise.resolve();(i=e.variantChildren)==null||i.forEach(e=>{var n;return(n=e.animationState)==null?void 0:n.setActive(t,r)}),n[t].isActive=r;let a=c(t);for(let e in n)n[e].protectedKeys={};return a}return{animateChanges:c,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Bo(),i=!0}}}function Ro(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Mo(t,e):!1}function zo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Bo(){return{animate:zo(!0),whileInView:zo(),whileHover:zo(),whileTap:zo(),whileDrag:zo(),whileFocus:zo(),exit:zo()}}function Vo(e,t){e.min=t.min,e.max=t.max}function Z(e,t){Vo(e.x,t.x),Vo(e.y,t.y)}function Ho(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Uo=.9999,Wo=1.0001,Go=-.01,Ko=.01;function Q(e){return e.max-e.min}function qo(e,t,n){return Math.abs(e-t)<=n}function Jo(e,t,n,r=.5){e.origin=r,e.originPoint=B(t.min,t.max,e.origin),e.scale=Q(n)/Q(t),e.translate=B(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Uo&&e.scale<=Wo||isNaN(e.scale))&&(e.scale=1),(e.translate>=Go&&e.translate<=Ko||isNaN(e.translate))&&(e.translate=0)}function Yo(e,t,n,r){Jo(e.x,t.x,n.x,r?r.originX:void 0),Jo(e.y,t.y,n.y,r?r.originY:void 0)}function Xo(e,t,n,r=0){e.min=(r?B(n.min,n.max,r):n.min)+t.min,e.max=e.min+Q(t)}function Zo(e,t,n,r){Xo(e.x,t.x,n.x,r==null?void 0:r.x),Xo(e.y,t.y,n.y,r==null?void 0:r.y
1)}function Qo(e,t,n,r=0){let i=r?B(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Q(t)}function $o(e,t,n,r){Qo(e.x,t.x,n.x,r==null?void 0:r.x),Qo(e.y,t.y,n.y,r==null?void 0:r.y)}function es(e,t,n,r,i){return e-=t,e=qa(e,1/n,r),i!==void 0&&(e=qa(e,1/i,r)),e}function ts(e,t=0,n=1,r=.5,i,a=e,o=e){if(I.test(t)&&(t=parseFloat(t),t=B(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=B(a.min,a.max,r);e===a&&(s-=t),e.min=es(e.min,t,n,s,i),e.max=es(e.max,t,n,s,i)}function ns(e,t,[n,r,i],a,o){ts(e,t[n],t[r],t[i],t.scale,a,o)}var rs=[`x`,`scaleX`,`originX`],is=[`y`,`scaleY`,`originY`];function as(e,t,n,r){ns(e.x,t,rs,n?n.x:void 0,r?r.x:void 0),ns(e.y,t,is,n?n.y:void 0,r?r.y:void 0)}function os(e){return e.translate===0&&e.scale===1}function ss(e){return os(e.x)&&os(e.y)}function cs(e,t){return e.min===t.min&&e.max===t.max}function ls(e,t){return cs(e.x,t.x)&&cs(e.y,t.y)}function us(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ds(e,t){return us(e.x,t.x)&&us(e.y,t.y)}function fs(e){return Q(e.x)/Q(e.y)}function ps(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function $(e){return[e(`x`),e(`y`)]}function ms(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var hs=Oi.length,gs=e=>typeof e==`string`?parseFloat(e):e,_s=e=>typeof e==`number`||L.test(e);function vs(e,t,n,r,i,a){if(i){var o,s;e.opacity=B(0,(o=n.opacity)==null?1:o,bs(r)),e.opacityExit=B((s=t.opacity)==null?1:s,0,xs(r))}else if(a){var c,l;e.opacity=B((c=t.opacity)==null?1:c,(l=n.opacity)==null?1:l,r)}for(let i=0;i<hs;i++){let a=Oi[i],o=ys(t,a),s=ys(n,a);o===void 0&&s===void 0||(o||(o=0),s||(s=0),o===0||s===0||_s(o)===_s(s)?(e[a]=Math.max(B(gs(o),gs(s),r),0),(I.test(s)||I.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=B(t.rotate||0,n.rotate||0,r))}function ys(e,t){return e[t]===void 0?e.borderRadius:e[t]}var bs=Ss(0,.5,be),xs=Ss(.5,.95,O);function Ss(e,t,n){return r=>r<e?0:r>t?1:n(ae(e,t,r))}function Cs(e,t,n){let r=K(e)?e:Or(e);return r.start(zr(``,r,t,n)),r.animation}function ws(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Ts=(e,t)=>e.depth-t.depth,Es=class{constructor(){this.children=[],this.isDirty=!1}add(e){w(this.children,e),this.isDirty=!0}remove(e){T(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ts),this.isDirty=!1,this.children.forEach(e)}};function Ds(e,t){let n=P.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(M(r),e(a-t))};return j.setup(r,!0),()=>M(r)}function Os(e){return K(e)?e.get():e}var ks=class{constructor(){this.members=[]}add(e){w(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(T(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(T(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let n=this.members.indexOf(e)-1;n>=0;n--){var t;let e=this.members[n];if(e.isPresent!==!1&&((t=e.instance)==null?void 0:t.isConnected)!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:i}=n.options,{layoutDependency:a}=e.options;if(i===void 0||i!==a){var r;e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),(r=e.root)!=null&&r.isUpdating&&(e.isLayoutDirty=!0)}e.options.crossfade===!1&&n.hide()}}
1exitAnimationComplete(){this.members.forEach(e=>{var t,n,r,i,a;(t=(n=e.options).onExitComplete)==null||t.call(n),(r=e.resumingFrom)==null||(a=(i=r.options).onExitComplete)==null||a.call(i)})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){var e;(e=this.lead)!=null&&e.snapshot&&(this.lead.snapshot=void 0)}},As={hasAnimatedSinceResize:!0,hasEverUpdated:!1};o();var js={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Ms=[``,`X`,`Y`,`Z`],Ns=1e3,Ps=0;function Fs(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Is(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=ti(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,j,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Is(r)}function Ls({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t==null?void 0:t()){this.id=Ps++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,pa.value&&(js.nodes=js.calculatedTargetDeltas=js.calculatedProjections=0),this.nodes.forEach(Bs),this.nodes.forEach(Ys),this.nodes.forEach(Xs),this.nodes.forEach(Vs),pa.addProjectionMetrics&&pa.addProjectionMetrics(js)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Es)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new oe),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Qi(t)&&!ma(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;j.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Ds(i,250),As.hasAnimatedSinceResize&&(As.hasAnimatedSinceResize=!1,this.nodes.forEach(Js)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||rc,{onLayoutAnimationStart:o,onLayoutAnimationComplete:c}=i.getProps(),l=!this.targetLayout||!ds(this.targetLayout,r),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t=s(s({},jr(a,`layout`)),{},{onPlay:o,onComplete:c});(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u,t.path)}else t||Js(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),M(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.forEac
1h(Zs),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Is(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Ws),this.nodes.forEach(Us);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Gs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Ks),this.nodes.forEach(qs),this.nodes.forEach(Rs),this.nodes.forEach(zs)):this.nodes.forEach(Gs),this.clearAllSnapshots();let e=P.now();N.delta=E(0,1e3/60,e-N.timestamp),N.timestamp=e,N.isProcessing=!0,Pe.update.process(N),Pe.preRender.process(N),Pe.render.process(N),N.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Mi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Hs),this.sharedNodes.forEach(Qs)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,j.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){j.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Q(this.snapshot.measuredBox.x)&&!Q(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=J()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!ss(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Wa(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),sc(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return J();let n=t.measureViewportBox();if(!((e=this.scroll)!=null&&e.wasRoot||this.path.some(lc))){let{scroll:e}=this.root;e&&(X(n.x,e.offset.x),X(n.y,e.offset.y))}return n}removeElementScroll(e){var t;let n=J();if(Z(n,e),(t=this.scroll)!=null&&t.wasRoot)return n;for(let t=0;t<this.path.length;t++){let r=this.path[t],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Z(n,e),X(n.x,i.offset.x),X(n.y,i.offset.y))}return n}applyTransform(e,t=!1,n){let r=n||J();Z(r,e);for(let e=0;e<this.path.length;e++){var i;let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(X(r.x,-n.scroll.offset.x),X(r.y,-n.scroll.offset.y)),Wa(n.latestValues)&&no(r,n.latestValues,(i=n.layout)==null?void 0:i.layoutBox)}if(Wa(this.latestValues)){var a;no(r,this.latestValues,(a=this.layout)==null?void 0:a.layoutBox)}return r}removeTransform(e){let t=J();Z(t,e);for(let e=0;e<this.path.length;e++){var n;let r=this.path[e];if(!Wa(r.latestValues))continue;let i;r.instance&&(Ua(r.latestValues)&&r.updateSnapshot(),i=J(),Z(i,r.measurePageBox())),as(t,r.latestValues,(n=r.snapshot)==null?void 0:n.layoutBox,i)}return Wa(this.latestValues)&&as(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options=s(s(s({},this.options),e),{},{crossfade:e.crossfade===void 0||e.crossfade})}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==N.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;let n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
1haredProjectionDirty);let r=!!this.resumingFrom||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(t=this.parent)!=null&&t.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:i,layoutId:a}=this.options;if(!this.layout||!(i||a))return;this.resolvedRelativeTargetAt=N.timestamp;let o=this.getClosestProjectingParent();o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=J(),this.targetWithTransforms=J()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Zo(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Z(this.target,this.layout.layoutBox),Xa(this.target,this.targetDelta)):Z(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&this.animationProgress!==1?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),pa.value&&js.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Ua(this.parent.latestValues)||Ga(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),$o(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Z(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var e;let t=this.getLead(),n=!!this.resumingFrom||this!==t,r=!0;if((this.isProjectionDirty||(e=this.parent)!=null&&e.isProjectionDirty)&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===N.timestamp&&(r=!1),r)return;let{layout:i,layoutId:a}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||a))return;Z(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,s=this.treeScale.y;$a(this.layoutCorrected,this.treeScale,this.path,n),t.layout&&!t.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=J());let{target:c}=t;if(!c){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ho(this.prevProjectionDelta.x,this.projectionDelta.x),Ho(this.prevProjectionDelta.y,this.projectionDelta.y)),Yo(this.projectionDelta,this.layoutCorrected,c,this.latestValues),(this.treeScale.x!==o||this.treeScale.y!==s||!ps(this.projectionDelta.x,this.prevProjectionDelta.x)||!ps(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,c)),pa.value&&js.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if((t=this.options.visualElement)==null||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=va(),this.projectionDelta=va(),this.projectionDeltaWithTransform=va()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a=s({},this.latestValues),o=va();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;
1let c=J(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),d=!u||u.members.length<=1,f=!!(l&&!d&&this.options.crossfade===!0&&!this.path.some(nc));this.animationProgress=0;let p,m=n==null?void 0:n.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=m==null?void 0:m(n);r?(o.x.translate=r.x,o.x.scale=B(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=B(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):($s(o.x,e.x,n),$s(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&($o(c,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),tc(this.relativeTarget,this.relativeTargetOrigin,c,n),p&&ls(this.relativeTarget,p)&&(this.isProjectionDirty=!1),p||(p=J()),Z(p,this.relativeTarget)),l&&(this.animationValues=a,vs(a,i,this.latestValues,n,f,d)),r&&r.rotate!==void 0&&(this.animationValues||(this.animationValues=a),this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){var t,n;this.notifyListeners(`animationStart`),(t=this.currentAnimation)==null||t.stop(),(n=this.resumingFrom)==null||(n=n.currentAnimation)==null||n.stop(),this.pendingAnimation&&(M(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=j.update(()=>{As.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Or(0)),this.motionValue.jump(0,!1),this.currentAnimation=Cs(this.motionValue,[0,1e3],s(s({},e),{},{velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ns),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&cc(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||J();let t=Q(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Q(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Z(t,n),no(t,i),Yo(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ks),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&((e=this.getStack())==null?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?(e=this.getStack())==null?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Fs(`z`,e,r,this.animationValues);for(let t=0;t<Ms.length;t++)Fs(`rotate${Ms[t]}`,e,r,this.animationValues),Fs(`skew${Ms[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Os(t==null?void 0:t.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Os(t==null?void 0:t.pointerEvents)||``),this.hasProjected&&!Wa(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=ms(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;if(e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues){var c,l;
1e.opacity=r===this?(c=(l=i.opacity)==null?this.latestValues.opacity:l)==null?1:c:this.preserveOpacity?this.latestValues.opacity:i.opacityExit}else e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in mo){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=mo[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Os(t==null?void 0:t.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return(t=e.currentAnimation)==null?void 0:t.stop()}),this.root.nodes.forEach(Us),this.root.sharedNodes.clear()}}}function Rs(e){e.updateLayout()}function zs(e){var t;let n=((t=e.resumeFrom)==null?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners(`didUpdate`)){let{layoutBox:t,measuredBox:r}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;if(i===`size`)$(e=>{let r=a?n.measuredBox[e]:n.layoutBox[e],i=Q(r);r.min=t[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Vo(a?n.measuredBox[e]:n.layoutBox[e],t[e])}else cc(i,n.layoutBox,t)&&$(r=>{let i=a?n.measuredBox[r]:n.layoutBox[r],o=Q(t[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=va();Yo(o,t,n.layoutBox);let s=va();a?Yo(s,e.applyTransform(r,!0),n.measuredBox):Yo(s,t,n.layoutBox);let c=!ss(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=J();$o(s,n.layoutBox,i.layoutBox,o);let c=J();$o(c,t,a.layoutBox,o),ds(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:t,snapshot:n,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Bs(e){pa.value&&js.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Vs(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Hs(e){e.clearSnapshot()}function Us(e){e.clearMeasurements()}function Ws(e){e.isLayoutDirty=!0,e.updateLayout()}function Gs(e){e.isLayoutDirty=!1}function Ks(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function qs(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Js(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ys(e){e.resolveTargetDelta()}function Xs(e){e.calcProjection()}function Zs(e){e.resetSkewAndRotation()}function Qs(e){e.removeLeadSnapshot()}function $s(e,t,n){e.translate=B(t.translate,0,n),e.scale=B(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ec(e,t,n,r){e.min=B(t.min,n.min,r),e.max=B(t.max,n.max,r)}function tc(e,t,n,r){ec(e.x,t.x,n.x,r),ec(e.y,t.y,n.y,r)}function nc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var rc={duration:.45,ease:[.4,0,.1,1]},ic=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ac=ic(`applewebkit/`)&&!ic(`chrome/`)?Math.round:O;function oc(e){e.min=ac(e.min),e.max=ac(e.max)}function sc(e){oc(e.x),oc(e.y)}function cc(e,t,n){return e===`position`||e===`preserve-aspect`&&!qo(fs(t),fs(n),.2)}function lc(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}var uc=Ls({attachResizeListener:(e,t)=>ws(e,`resize`,t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),dc={current:void 0},fc=Ls({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!dc.current){let e=new uc({});e.mount(window),e.setOptions({layoutScroll:!0}),dc.current=e}return dc.current},resetTransform:(e,t)=>
1{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),pc=(0,y.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function mc(e=!0){let t=(0,y.useContext)(C);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,y.useId)();(0,y.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,y.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var hc=(0,y.createContext)({strict:!1}),gc={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`]},_c=!1;function vc(){if(_c)return;let e={};for(let t in gc)e[t]={isEnabled:e=>gc[t].some(t=>!!e[t])};Fa(e),_c=!0}function yc(){return vc(),Ia()}o();function bc(e){let t=yc();for(let n in e)t[n]=s(s({},t[n]),e[n]);Fa(t)}var xc=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Sc(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||xc.has(e)}var Cc=e=>!Sc(e);function wc(e){typeof e==`function`&&(Cc=t=>t.startsWith(`on`)?!Sc(t):e(t))}try{wc((h(),e(f)).default)}catch(e){}function Tc(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||K(e[i])||(Cc(i)||n===!0&&Sc(i)||!t&&!Sc(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var Ec=(0,y.createContext)({});function Dc(e,t){if(Ta(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Sa(t)?t:void 0,animate:Sa(n)?n:void 0}}return e.inherit===!1?{}:t}function Oc(e){let{initial:t,animate:n}=Dc(e,(0,y.useContext)(Ec));return(0,y.useMemo)(()=>({initial:t,animate:n}),[kc(t),kc(n)])}function kc(e){return Array.isArray(e)?e.join(` `):e}var Ac=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function jc(e,t,n){for(let r in t)!K(t[r])&&!ho(r,n)&&(e[r]=t[r])}function Mc({transformTemplate:e},t){return(0,y.useMemo)(()=>{let n=Ac();return co(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Nc(e,t){let n=e.style||{},r={};return jc(r,n,e),Object.assign(r,Mc(e,t)),r}function Pc(e,t){let n={},r=Nc(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}o();var Fc=()=>s(s({},Ac()),{},{attrs:{}});o();function Ic(e,t,n,r){let i=(0,y.useMemo)(()=>{let n=Fc();return wo(n,t,Eo(r),e.transformTemplate,e.style),s(s({},n.attrs),{},{style:s({},n.style)})},[t]);if(e.style){let t={};jc(t,e.style,e),i.style=s(s({},t),i.style)}return i}var Lc=[`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 Rc(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Lc.indexOf(e)>-1||RegExp(`[A-Z]`,`u`).test(e))}o();function zc(e,t,n,{latestValues:r},i,a=!1,o){let c=((o==null?Rc(e):o)?Ic:Pc)(t,r,i,e),l=Tc(t,typeof e==`string`,a),u=e===y.Fragment?{}:s(s(s({},l),c),{},{ref:n}),{children:d}=t,f=(0,y.useMemo)(()=>K(d)?d.get():d,[d]);return(0,y.createElement)(e,s(s({},u),{},{children:f}))}c();var Bc=[`transitionEnd`,`transition`];function Vc({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Hc(n,r,i,e),renderState:t()}}function Hc(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Os(a[e]);let{initial:o,animate:s}=e,c=Ta(e),u=Ea(e);t&&u&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;let f=d?s:o;if(f&&typeof f!=`boolean`&&!xa(f)){let t=Array.isArray(f)?f:[f];for(let n=0;n<t.length;n++){let r=Wr(e,t[n]);if(r){let{transitionEnd:e,transition:t}=r,n=l(r,Bc);for(let e in n){let t=n[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Uc=e=>(t,n)=>{let r=(0,y.useContext)(Ec),i=(0,y.useContext)(C),a=()=>Vc(e,t,r,i);return n?a():x(a)},Wc=Uc({scrapeMotionValuesFromProps:go,createRenderState:Ac}),Gc=Uc({scrapeMotionValuesFromProps:Oo,createRenderState:Fc}),Kc=Symbol.for(`motionComponentSymbol`);function qc(e,t,n){let r=(0,y.useRef)(n);(0,y.useInsertionEffect)(()=>{r.current=n});let i=(0,y.useRef)(null);return(0,y.useCallback)(n=>{if(n){var a;(a=e.onMount)==null||a.call(e,n)}t&&(n?t.mount(n):t.unmount());let o=r.current;if(typeof o==`function`)if(n){let e=o(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):o(n);else o&&(o.current=n)},[t])}var Jc=(0,y.createContext)({});function Yc(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Xc(e,t,n,r,i,a){var o,s,c,l;let{visualElement:u}=(0,y.useContext)(Ec),d=(0,y.useContext)(hc),f=(0,y.useContext)(C),p=(0,y.useContext)(pc),m=p.reducedMotion,h=p.skipAnimations,g=(0,y.useRef)(null),_=(0,y.useRef)(!1);r=r||d.renderer,!g.current&&r&&(g.current=r(e,{visualState:t,parent:u,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:m,skipAnimations:h,isSVG:a}),_.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));let v=g.current,b=(0,y.useContext)(Jc);v&&!v.projection&&i&&(v.type===`html`||v.type===`svg`)&&Zc(g.current,n,i,b);let x=(0,y.useRef)(!1);(0,y.useInsertionEffect)(()=>{v&&x.current&&v.update(n,f)});let w=n[ei],T=(0,y.useRef)(!!w&&typeof window<`u`&&!((o=(s=window).MotionHandoffIsComplete)!=null&&o.call(s,w))&&((c=(l=window).MotionHasOptimisedAnimation)==null?void 0:c.call(l,w)));return S(()=>{_.current=!0,v&&(x.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),T.current&&v.animationState&&v.animationState.animateChanges())}),(0,y.useEffect)(()=>{v&&(!T.current&&v.animationState&&v.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var e,t;(e=(t=window).MotionHandoffMarkAsComplete)==null||e.call(t,w)}),T.current=!1),v.enteringChildren=void 0)}),v}function Zc(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Qc(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Yc(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Qc(e){if(e)return e.options.allowProjection===!1?Qc(e.parent):e.projection}o();function $c(e,{forwardMotionProps:t=!1,type:n}={},r,i){var a,o;r&&bc(r);let c=n?n===`svg`:Rc(e),l=c?Gc:Wc;function u(n,a){let o,u=s(s(s({},(0,y.useContext)(pc)),n),{},{layoutId:el(n)}),{isStatic:d}=u,f=Oc(n),p=l(n,d);if(!d&&typeof window<`u`){tl(u,r);let t=nl(u);o=t.MeasureLayout,f.visualElement=Xc(e,p,u,i,t.ProjectionNode,c)}return(0,v.jsxs)(Ec.Provider,{value:f,children:[o&&f.visualElement?(0,v.jsx)(o,s({visualElement:f.visualElement},u)):null,zc(e,n,qc(p,f.visualElement,a),p,d,t,c)]})}u.displayName=`motion.${typeof e==`string`?e:`create(${(a=(o=e.displayName)==null?e.name:o)==null?``:a})`}`;let d=(0,y.forwardRef)(u);return d[Kc]=e,d}function el({layoutId:e}){let t=(0,y.useContext)(b).id;return t&&e!==void 0?t+`-`+e:e}function tl(e,t){(0,y.useContext)(hc).strict}function nl(e){let{drag:t,layout:n}=yc();if(!t&&!n)return{};let r=s(s({},t),n);return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
1function rl(e,t){if(typeof Proxy>`u`)return $c;let n=new Map,r=(n,r)=>$c(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,$c(a,void 0,e,t)),n.get(a))})}var il=(e,t)=>{var n;return((n=t.isSVG)==null?Rc(e):n)?new ko(t):new vo(t,{allowProjection:e!==y.Fragment})},al=class extends Y{constructor(e){super(e),e.animationState||(e.animationState=Lo(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();xa(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}};c();var ol=[`transition`,`transitionEnd`],sl=0,cl={animation:{Feature:al},exit:{Feature:class extends Y{constructor(){super(...arguments),this.id=sl++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=G(this.node,e,t);if(n){let{transition:e,transitionEnd:t}=n,i=l(n,ol);for(let e in i){var r;(r=this.node.getValue(e))==null||r.jump(i[e])}}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let i=this.node.animationState.setActive(`exit`,!e);t&&!e&&i.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function ll(e){return{point:{x:e.pageX,y:e.pageY}}}var ul=e=>t=>Bi(t)&&e(t,ll(t));function dl(e,t,n,r){return ws(e,t,ul(n),r)}var fl=({current:e})=>e?e.ownerDocument.defaultView:null,pl=(e,t)=>Math.abs(e-t);function ml(e,t){let n=pl(e.x,t.x),r=pl(e.y,t.y);return Math.sqrt(n**2+r**2)}o();var hl=new Set([`auto`,`scroll`]),gl=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=_l(this.lastRawMoveEventInfo,this.transformPagePoint));let e=yl(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=ml(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=N;this.history.push(s(s({},r),{},{timestamp:i}));let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=_l(t,this.transformPagePoint),j.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=yl(e.type===`pointercancel`?this.lastMoveEventInfo:_l(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Bi(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let c=_l(ll(e),this.transformPagePoint),{point:l}=c,{timestamp:u}=N;this.history=[s(s({},l),{},{timestamp:u})];let{onSessionStart:d}=t;d&&d(e,yl(c,this.history));let f={passive:!0,capture:!0};this.removeListeners=ie(dl(this.contextWindow,`pointermove`,this.handlePointerMove,f),dl(this.contextWindow,`pointerup`,this.handlePointerUp,f),dl(this.contextWindow,`pointercancel`,this.handlePointerUp,f)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(hl.has(e.overflowX)||hl.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),j.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),M(this.updatePoint)}};function _l(e,t){return t?{point:t(e.point)}:e}function vl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yl({point:e},t){return{point:e,delta:vl(e,xl(t)),offset:vl(e,bl(t)),velocity:Sl(t,.1)}}function bl(e){return e[0]}function xl(e){return e[e.length-1]}function Sl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=xl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>k(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>k(t)*2&&(r=e[1]);let a=A(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Cl(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?B(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?B(n,e,r.max):Math.min(e,n)),e}function wl(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Tl(e,{top:t,left:n,bottom:r,right:i}){return{x:wl(e.x,n,i),y:wl(e.y,t,r)}}function El(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Dl(e,t){return{x:El(e.x,t.x),y:El(e.y,t.y)}}function Ol(e,t){let n=.5,r=Q(e),i=Q(t);return i>r?n=ae(t.min,t.max-r,e.min):r>i&&(n=ae(e.min,e.max-i,t.min)),E(0,1,n)}function kl(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Al=.35;function jl(e=Al){return e===!1?e=0:e===!0&&(e=Al),{x:Ml(e,`left`,`right`),y:Ml(e,`top`,`bottom`)}}function Ml(e,t,n){return{min:Nl(e,t),max:Nl(e,n)}}function Nl(e,t){return typeof e==`number`?e:e[t]||0}o();var Pl=new WeakMap,Fl=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=J(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(ll(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Fi(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$(e=>{let t=this.getAxisMotionValue(e).get()||0;if(I.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Q(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&j.update(()=>i(e,t),!1,!0),Qr(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=zl(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&j.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new gl(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:fl(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&j.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();
1if(!n||!Rl(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Cl(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)==null?void 0:e.layout,i=this.constraints;t&&Yc(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Tl(r.layoutBox,t):this.constraints=!1,this.elastic=jl(n),i!==this.constraints&&!Yc(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&$(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=kl(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Yc(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=io(n,r.root,this.visualElement.getTransformPagePoint()),a=Dl(r.layout.layoutBox,i);if(t){let e=t(Ba(a));this.hasMutatedConstraints=!!e,e&&(a=za(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),c=this.constraints||{},l=$(o=>{if(!Rl(o,t,this.currentDirection))return;let l=c&&c[o]||{};(a===!0||a===o)&&(l={min:0,max:0});let u=r?200:1e6,d=r?40:1e7,f=s(s({type:`inertia`,velocity:n?e[o]:0,bounceStiffness:u,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10},i),l);return this.startAxisValueAnimation(o,f)});return Promise.all(l).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Qr(this.visualElement,e),n.start(zr(e,n,0,t,this.visualElement,!1))}stopAnimation(){$(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t;let n=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[n]||this.visualElement.getValue(e,(t=this.visualElement.latestValues[e])==null?0:t)}snapToCursor(e){$(t=>{let{drag:n}=this.getProps();if(!Rl(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-B(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Yc(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};$(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Ol({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),$(t=>{if(!Rl(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(B(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Pl.set(this.visualElement,this);let e=this.visualElement.current,t=dl(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Wi(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Yc(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||(n=Ll(e,t.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),j.read(r);let o=ws(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&($(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Al,dragMomentum:o=!0}=e;return s(s({},e),{},{drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o})}};function Il(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Ll(e,t,n){let r=fa(e,Il(n)),i=fa(t,Il(n));return()=>{r(),i()}}function Rl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}
1function zl(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Bl=class extends Y{constructor(e){super(e),this.removeGroupControls=O,this.removeListeners=O,this.controls=new Fl(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||O}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Vl=e=>(t,n)=>{e&&j.update(()=>e(t,n),!1,!0)},Hl=class extends Y{constructor(){super(...arguments),this.removePointerDownListener=O}onPointerDown(e){this.session=new gl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:fl(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Vl(e),onStart:Vl(t),onMove:Vl(n),onEnd:(e,t)=>{delete this.session,r&&j.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=dl(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};o();var Ul=!1,Wl=class extends y.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Ul&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions(s(s({},i.options),{},{layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()}))),As.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions(s(s({},a.options),{},{layoutDependency:t})),Ul=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||j.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Mi.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Ul=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Gl(e){let[t,n]=mc(),r=(0,y.useContext)(b);return(0,v.jsx)(Wl,s(s({},e),{},{layoutGroup:r,switchLayoutGroup:(0,y.useContext)(Jc),isPresent:t,safeToRemove:n}))}var Kl={pan:{Feature:Hl},drag:{Feature:Bl,ProjectionNode:fc,MeasureLayout:Gl}};function ql(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&j.postRender(()=>i(t,ll(t)))}var Jl=class extends Y{mount(){let{current:e}=this.node;e&&(this.unmount=Ri(e,(e,t)=>(ql(this.node,t,`Start`),e=>ql(this.node,e,`End`))))}unmount(){}},Yl=class extends Y{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch(t){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=ie(ws(this.node.current,`focus`,()=>this.onFocus()),ws(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Xl(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&j.postRender(()=>i(t,ll(t)))}var Zl=class extends Y{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Zi(e,(e,t)=>(Xl(this.node,t,`Start`),(e,{success:t})=>Xl(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:(n==null?void 0:n.tap)===!1})}unmount(){}};c(),o();var Ql=[`root`],$l=new WeakMap,eu=new WeakMap,tu=e=>{let t=$l.get(e.target);t&&t(e)},nu=e=>{e.forEach(tu)};function ru(e){let{root:t}=e,n=l(e,Ql),r=t||document;eu.has(r)||eu.set(r,{});let i=eu.get(r),a=JSON.stringify(n);
1return i[a]||(i[a]=new IntersectionObserver(nu,s({root:t},n))),i[a]}function iu(e,t,n){let r=ru(t);return $l.set(e,n),r.observe(e),()=>{$l.delete(e),r.unobserve(e)}}var au={some:0,all:1},ou=class extends Y{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;(e=this.stopObserver)==null||e.call(this);let{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i=`some`,once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i==`number`?i:au[i]},s=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)};this.stopObserver=iu(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(su(e,t))&&this.startObserver()}unmount(){var e;(e=this.stopObserver)==null||e.call(this),this.hasEnteredView=!1,this.isInView=!1}};function su({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var cu={inView:{Feature:ou},tap:{Feature:Zl},focus:{Feature:Yl},hover:{Feature:Jl}},lu={layout:{ProjectionNode:fc,MeasureLayout:Gl}};o();var uu=rl(s(s(s(s({},cl),cu),Kl),lu),il),du=0,fu=0,pu=new Set;function mu(){for(let e of pu)e()}function hu(){return du+=1,mu(),()=>{--du,mu()}}function gu(){return fu+=1,()=>{--fu}}function _u(e){return pu.add(e),()=>{pu.delete(e)}}function vu(){return du>0}function yu(){return fu>0}export{b as _,_u as a,pc as c,Oa as d,ji as f,x as g,S as h,hu as i,ja as l,C as m,vu as n,uu as o,fe as p,gu as r,mc as s,yu as t,ka as u,g as v,_ as y}; 2//# sourceMappingURL=sidePanelOpenState-CxtWHOEg.js.map
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.