@ptlm-azulejo/segmented-control 0.1.3 → 0.1.4-alpha.208
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +101 -0
- package/dist/index.js +5149 -6508
- package/dist/index.umd.cjs +1 -1
- package/dist/packages/SegmentedControl/src/index.vue.d.ts +7 -62
- package/dist/packages/SegmentedControl/src/index.vue.d.ts.map +1 -1
- package/dist/style.css +3 -1
- package/package.json +5 -9
package/dist/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(F,P){typeof exports=="object"&&typeof module!="undefined"?P(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],P):(F=typeof globalThis!="undefined"?globalThis:F||self,P(F["segmented-control"]={},F.Vue))})(this,function(F,P){"use strict";var Gd=Object.defineProperty,Wd=Object.defineProperties;var Kd=Object.getOwnPropertyDescriptors;var Ne=Object.getOwnPropertySymbols;var Ir=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable;var Jn=Math.pow,Br=(F,P,$)=>P in F?Gd(F,P,{enumerable:!0,configurable:!0,writable:!0,value:$}):F[P]=$,x=(F,P)=>{for(var $ in P||(P={}))Ir.call(P,$)&&Br(F,$,P[$]);if(Ne)for(var $ of Ne(P))Fr.call(P,$)&&Br(F,$,P[$]);return F},B=(F,P)=>Wd(F,Kd(P));var J=(F,P)=>{var $={};for(var it in F)Ir.call(F,it)&&P.indexOf(it)<0&&($[it]=F[it]);if(F!=null&&Ne)for(var it of Ne(F))P.indexOf(it)<0&&Fr.call(F,it)&&($[it]=F[it]);return $};const $=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function it(t,e){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,h=!1,f=!1)=>{const m=f&&i?n:s;return h&&o.add(u),m.has(u)||m.add(u),u},cancel:u=>{s.delete(u),o.delete(u)},process:u=>{if(a=u,i){r=!0;return}i=!0,[n,s]=[s,n],n.forEach(l),n.clear(),i=!1,r&&(r=!1,c.process(u))}};return c}const gt={},Or=40;function Qn(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=$.reduce((T,M)=>(T[M]=it(r),T),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:f,render:d,postRender:m}=o,g=()=>{const T=gt.useManualTiming?i.timestamp:performance.now();n=!1,gt.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(T-i.timestamp,Or),1)),i.timestamp=T,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),h.process(i),f.process(i),d.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(g))},y=()=>{n=!0,s=!0,i.isProcessing||t(g)};return{schedule:$.reduce((T,M)=>{const S=o[M];return T[M]=(v,V=!1,p=!1)=>(n||y(),S.schedule(v,V,p)),T},{}),cancel:T=>{for(let M=0;M<$.length;M++)o[$[M]].cancel(T)},state:i,steps:o}}const Z=t=>t,{schedule:I,cancel:yt,state:H,steps:ze}=Qn(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:Z,!0);let ge;function jr(){ge=void 0}const q={now:()=>(ge===void 0&&q.set(H.isProcessing||gt.useManualTiming?H.timestamp:performance.now()),ge),set:t=>{ge=t,queueMicrotask(jr)}},ot=t=>t*1e3,Q=t=>t/1e3;function _r(t,e){const n=q.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(yt(s),t(r-e))};return I.setup(s,!0),()=>yt(s)}const Xt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),xt=Xt("deg"),lt=Xt("%"),w=Xt("px"),Nr=Xt("vh"),zr=Xt("vw"),ts=B(x({},lt),{parse:t=>lt.parse(t)/100,transform:t=>lt.transform(t*100)});function es(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ct={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(w.test(t))t=parseFloat(t);else return t;const n=es(t,e.target.x),s=es(t,e.target.y);return`${n}% ${s}%`}},ut=(t,e,n)=>n>e?e:n<t?t:n,Ot={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},qt=B(x({},Ot),{transform:t=>ut(0,1,t)}),ye=B(x({},Ot),{default:1}),Zt=t=>Math.round(t*1e5)/1e5,Ue=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ur(t){return t==null}const $r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,$e=(t,e)=>n=>!!(typeof n=="string"&&$r.test(n)&&n.startsWith(t)||e&&!Ur(n)&&Object.prototype.hasOwnProperty.call(n,e)),ns=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(Ue);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Gr=t=>ut(0,255,t),Ge=B(x({},Ot),{transform:t=>Math.round(Gr(t))}),Ct={test:$e("rgb","red"),parse:ns("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Ge.transform(t)+", "+Ge.transform(e)+", "+Ge.transform(n)+", "+Zt(qt.transform(s))+")"};function Wr(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const We={test:$e("#"),parse:Wr,transform:Ct.transform},jt={test:$e("hsl","hue"),parse:ns("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+lt.transform(Zt(e))+", "+lt.transform(Zt(n))+", "+Zt(qt.transform(s))+")"},z={test:t=>Ct.test(t)||We.test(t)||jt.test(t),parse:t=>Ct.test(t)?Ct.parse(t):jt.test(t)?jt.parse(t):We.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Ct.transform(t):jt.transform(t),getAnimatableNone:t=>{const e=z.parse(t);return e.alpha=0,z.transform(e)}},Kr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Yr(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ue))==null?void 0:e.length)||0)+(((n=t.match(Kr))==null?void 0:n.length)||0)>0}const ss="number",is="color",Hr="var",Xr="var(",os="${}",qr=/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 Jt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(qr,l=>(z.test(l)?(s.color.push(r),i.push(is),n.push(z.parse(l))):l.startsWith(Xr)?(s.var.push(r),i.push(Hr),n.push(l)):(s.number.push(r),i.push(ss),n.push(parseFloat(l))),++r,os)).split(os);return{values:n,split:a,indexes:s,types:i}}function rs(t){return Jt(t).values}function as(t){const{split:e,types:n}=Jt(t),s=e.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=e[o],i[o]!==void 0){const a=n[o];a===ss?r+=Zt(i[o]):a===is?r+=z.transform(i[o]):r+=i[o]}return r}}const Zr=t=>typeof t=="number"?0:z.test(t)?z.getAnimatableNone(t):t;function Jr(t){const e=rs(t);return as(t)(e.map(Zr))}const wt={test:Yr,parse:rs,createTransformer:as,getAnimatableNone:Jr},O=(t,e,n)=>t+(e-t)*n,ls={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=wt.parse(t);if(i.length>5)return s;const r=wt.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const c=O(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),r(i)}},cs=t=>e=>typeof e=="string"&&e.startsWith(t),Ke=cs("--"),Qr=cs("var(--"),Ye=t=>Qr(t)?ta.test(t.split("/*")[0].trim()):!1,ta=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function us(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Qt={borderRadius:B(x({},ct),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ct,borderTopRightRadius:ct,borderBottomLeftRadius:ct,borderBottomRightRadius:ct,boxShadow:ls};function hs(t){for(const e in t)Qt[e]=t[e],Ke(e)&&(Qt[e].isCSSVariable=!0)}function te(t,e){const n=typeof t=="string"&&!e?`${t}Context`:e,s=Symbol(n);return[o=>{const a=P.inject(s,o);if(a===void 0)throw new Error(`Injection \`${s.toString()}\` not found. Component must be used within ${Array.isArray(t)?`one of the following components: ${t.join(", ")}`:`\`${t}\``}`);return a},o=>(P.provide(s,o),o)]}const[ea,na]=te("Motion"),[sa]=te("LayoutGroup");function ds(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}class vt{constructor(e){this.state=e}beforeMount(){}mount(){}unmount(){}update(){}beforeUpdate(e){}beforeUnmount(){}}var _t=function(){},ve=function(){};process.env.NODE_ENV!=="production"&&(_t=function(t,e){!t&&typeof console!="undefined"&&console.warn(e)},ve=function(t,e){if(!t)throw new Error(e)});function ee(t,e,n){if(Array.isArray(t))return t.reduce((s,i)=>{const r=ee(i,e,n);return r?x(x({},s),r):s},{});if(typeof t=="object")return t;if(t&&e){const s=e[t];return typeof s=="function"?s(n):s}}function ia(t,e){return typeof t!=typeof e?!0:Array.isArray(t)&&Array.isArray(e)?!oa(t,e):t!==e}function oa(t,e){const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}function fs(t){return t==null?void 0:t.startsWith("--")}const ra=t=>t;function aa(t){return typeof t=="number"}const la=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],ca=new Set(la);function ps(t){return ca.has(t)}class ua{constructor(e){this.features=[];const{features:n=[],lazyMotionContext:s}=e.options,i=n.concat(s.features.value);this.features=i.map(o=>new o(e));const r=this.features;P.watch(s.features,o=>{o.forEach(a=>{if(!i.includes(a)){i.push(a);const l=new a(e);r.push(l),e.isMounted()&&(l.beforeMount(),l.mount())}})},{flush:"pre"})}mount(){this.features.forEach(e=>e.mount())}beforeMount(){this.features.forEach(e=>{var n;return(n=e.beforeMount)==null?void 0:n.call(e)})}unmount(){this.features.forEach(e=>e.unmount())}update(){this.features.forEach(e=>{var n;return(n=e.update)==null?void 0:n.call(e)})}beforeUpdate(e){this.features.forEach(n=>{var s;return(s=n.beforeUpdate)==null?void 0:s.call(n,e)})}beforeUnmount(){this.features.forEach(e=>e.beforeUnmount())}}function ha(t){return typeof t=="string"||t===!1||Array.isArray(t)}const ms=new WeakMap;let da=0;class fa{constructor(e,n){var s;this.element=null,this.isExiting=!1,this.presenceContainer=null,this.children=new Set,this.activeStates={initial:!0,animate:!0},this.currentProcess=null,this._context=null,this.animateUpdates=Z,this.id=`motion-state-${da++}`,this.options=e,this.parent=n,(s=n==null?void 0:n.children)==null||s.add(this);const r=(e.initial===void 0&&e.variants?this.context.initial:e.initial)===!1?["initial","animate"]:["initial"];this.initTarget(r),this.featureManager=new ua(this),this.type=ps(this.options.as)?"svg":"html"}get context(){if(!this._context){const e={get:(n,s)=>{var i;return ha(this.options[s])?this.options[s]:(i=this.parent)==null?void 0:i.context[s]}};this._context=new Proxy({},e)}return this._context}initTarget(e){var i;var n;const s=(i=this.options.custom)!=null?i:(n=this.options.animatePresenceContext)==null?void 0:n.custom;this.baseTarget=e.reduce((r,o)=>x(x({},r),ee(this.options[o]||this.context[o],this.options.variants,s)),{}),this.target={}}updateOptions(e){var n;this.options=e,(n=this.visualElement)==null||n.update(B(x({},this.options),{whileTap:this.options.whilePress}),null)}beforeMount(){this.featureManager.beforeMount()}mount(e,n,s=!1){var i;ve(!!e,"Animation state must be mounted with valid Element"),this.element=e,this.updateOptions(n),this.featureManager.mount(),!s&&this.options.animate&&((i=this.startAnimation)==null||i.call(this))}clearAnimation(){var e,n;this.currentProcess&&yt(this.currentProcess),this.currentProcess=null,(n=(e=this.visualElement)==null?void 0:e.variantChildren)==null||n.forEach(s=>{s.state.clearAnimation()})}startAnimation(){this.clearAnimation(),this.currentProcess=I.render(()=>{this.currentProcess=null,this.animateUpdates()})}beforeUnmount(){this.featureManager.beforeUnmount()}unmount(){var e,n,s;(n=(e=this.parent)==null?void 0:e.children)==null||n.delete(this),ms.delete(this.element),this.featureManager.unmount(),(s=this.visualElement)==null||s.unmount(),this.clearAnimation()}beforeUpdate(e){this.featureManager.beforeUpdate(e)}update(e){this.updateOptions(e),this.featureManager.update(),this.startAnimation()}setActive(e,n,s=!0){var i;!this.element||this.activeStates[e]===n||(this.activeStates[e]=n,(i=this.visualElement.variantChildren)==null||i.forEach(r=>{r.state.setActive(e,n,!1)}),s&&this.animateUpdates({isExit:e==="exit"&&this.activeStates.exit}))}isMounted(){return!!this.element}getSnapshot(e,n){}didUpdate(e){}}const kt=new WeakMap;function gs(t,e,n){return new CustomEvent(t,{detail:{target:e,isExit:n}})}const ys={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>`${t}deg`},pa={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>`${t}px`},rotate:ys,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:ra},skew:ys},ma=["translate","scale","rotate","skew"],ga=["","X","Y","Z"],He=new Map,be=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];ma.forEach(t=>{ga.forEach(e=>{be.push(t+e),He.set(t+e,pa[t])})});const ya=new Set(be),va=t=>ya.has(t),vs={x:"translateX",y:"translateY",z:"translateZ"};function ba([t],[e]){return be.indexOf(t)-be.indexOf(e)}function xa(t,[e,n]){return`${t} ${e}(${n})`}function wa(t){return t.sort(ba).reduce(xa,"").trim()}const bs={translate:[0,0],rotate:0,scale:1,skew:0,x:0,y:0,z:0},U=t=>!!(t&&t.getVelocity),Ta={get:(t,e)=>{let n=fs(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!n&&n!=="0"){const s=He.get(e);s&&(n=s.initialValue)}return n},set:(t,e,n)=>{fs(e)?t.style.setProperty(e,n):t.style[e]=n}};function Sa(t){var e;const n={},s=[];for(let i in t){let r=t[i];r=U(r)?r.get():r,va(i)&&i in vs&&(i=vs[i]);let o=Array.isArray(r)?r[0]:r;const a=He.get(i);a?(o=aa(r)?(e=a.toDefaultUnit)==null?void 0:e.call(a,r):r,s.push([i,o])):n[i]=o}return s.length&&(n.transform=wa(s)),Object.keys(n).length===0?null:n}const Aa={fill:!0,stroke:!0,opacity:!0,"stroke-width":!0,"fill-opacity":!0,"stroke-opacity":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,cx:!0,cy:!0,r:!0,d:!0,x1:!0,y1:!0,x2:!0,y2:!0,points:!0,"path-length":!0,viewBox:!0,width:!0,height:!0,"preserve-aspect-ratio":!0,"clip-path":!0,filter:!0,mask:!0,"stop-color":!0,"stop-opacity":!0,"gradient-transform":!0,"gradient-units":!0,"spread-method":!0,"marker-end":!0,"marker-mid":!0,"marker-start":!0,"text-anchor":!0,"dominant-baseline":!0,"font-family":!0,"font-size":!0,"font-weight":!0,"letter-spacing":!0,"vector-effect":!0};function Pa(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function Ea(t,e,n=1,s=0){t.pathLength=1,delete t["path-length"],t["stroke-dashoffset"]=w.transform(-s);const i=w.transform(e),r=w.transform(n);t["stroke-dasharray"]=`${i} ${r}`}function Ca(t){const e={},n={};for(const s in t){const i=Pa(s);if(i in Aa){const r=t[s];e[i]=U(r)?r.get():r}else n[s]=t[s]}return e["path-length"]!==void 0&&Ea(e,e["path-length"],e["path-spacing"],e["path-offset"]),{attrs:e,style:n}}typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const xe=t=>typeof t!="undefined";function ka({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Va(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Ma(t,e){return ka(Va(t.getBoundingClientRect(),e))}const xs={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"]},Xe={};for(const t in xs)Xe[t]={isEnabled:e=>xs[t].some(n=>!!e[n])};const ws=()=>({translate:0,scale:1,origin:0,originPoint:0}),Nt=()=>({x:ws(),y:ws()}),Ts=()=>({min:0,max:0}),G=()=>({x:Ts(),y:Ts()}),Da=typeof window!="undefined",we={current:null},Ss={current:!1};function Ra(){if(Ss.current=!0,!!Da)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>we.current=t.matches;t.addEventListener("change",e),e()}else we.current=!1}function La(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Ba(t){return typeof t=="string"||Array.isArray(t)}const Ia=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function As(t){return La(t.animate)||Ia.some(e=>Ba(t[e]))}function Fa(t){return!!(As(t)||t.variants)}function qe(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}const Ps=new Set;function Es(t,e,n){t||Ps.has(e)||(console.warn(qe(e,n)),Ps.add(e))}function Ze(t,e){t.indexOf(e)===-1&&t.push(e)}function Te(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Je{constructor(){this.subscriptions=[]}add(e){return Ze(this.subscriptions,e),()=>Te(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Cs(t,e){return e?t*(1e3/e):0}const ks=30,Oa=t=>!isNaN(parseFloat(t));class ja{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var i;const r=q.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=q.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Oa(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Es(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Je);const s=this.events[e].add(n);return e==="change"?()=>{s(),I.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&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 this.current}getPrevious(){return this.prev}getVelocity(){const e=q.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ks)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ks);return Cs(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function zt(t,e){return new ja(t,e)}function _a(t,e,n){for(const s in e){const i=e[s],r=n[s];if(U(i))t.addValue(s,i);else if(U(r))t.addValue(s,zt(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,zt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}function Vs(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Ms(t,e,n,s){if(typeof e=="function"){const[i,r]=Vs(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=Vs(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function Na(t){var e;for(let n=1;n<t.length;n++)(e=t[n])!=null||(t[n]=t[n-1])}const Vt=t=>t*180/Math.PI,Qe=t=>{const e=Vt(Math.atan2(t[1],t[0]));return tn(e)},za={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Qe,rotateZ:Qe,skewX:t=>Vt(Math.atan(t[1])),skewY:t=>Vt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tn=t=>(t=t%360,t<0&&(t+=360),t),Ds=Qe,Rs=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Ls=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Ua={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Rs,scaleY:Ls,scale:t=>(Rs(t)+Ls(t))/2,rotateX:t=>tn(Vt(Math.atan2(t[6],t[5]))),rotateY:t=>tn(Vt(Math.atan2(-t[2],t[0]))),rotateZ:Ds,rotate:Ds,skewX:t=>Vt(Math.atan(t[4])),skewY:t=>Vt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function en(t){return t.includes("scale")?1:0}function nn(t,e){if(!t||t==="none")return en(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Ua,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=za,i=a}if(!i)return en(e);const r=s[e],o=i[1].split(",").map(Ga);return typeof r=="function"?r(o):o[r]}const $a=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return nn(n,e)};function Ga(t){return parseFloat(t.trim())}const Ut=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$t=new Set(Ut),Bs=t=>t===Ot||t===w,Wa=new Set(["x","y","z"]),Ka=Ut.filter(t=>!Wa.has(t));function Ya(t){const e=[];return Ka.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const Tt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>nn(e,"x"),y:(t,{transform:e})=>nn(e,"y")};Tt.translateX=Tt.x,Tt.translateY=Tt.y;const Mt=new Set;let sn=!1,on=!1,rn=!1;function Is(){if(on){const t=Array.from(Mt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Ya(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))==null||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}on=!1,sn=!1,Mt.forEach(t=>t.complete(rn)),Mt.clear()}function Fs(){Mt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(on=!0)})}function Ha(){rn=!0,Fs(),Is(),rn=!1}class an{constructor(e,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Mt.add(this),sn||(sn=!0,I.read(Fs),I.resolveKeyframes(Is))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i==null?void 0:i.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}Na(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Mt.delete(this)}cancel(){this.state==="scheduled"&&(Mt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Os=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),js=t=>/^0[^.\s]+$/u.test(t),Xa={test:t=>t==="auto",parse:t=>t},_s=t=>e=>e.test(t),Ns=[Ot,w,lt,xt,zr,Nr,Xa],zs=t=>Ns.find(_s(t)),qa=[...Ns,z,wt],Za=t=>qa.find(_s(t)),Ja=new Set(["brightness","contrast","saturate","opacity"]);function Qa(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Ue)||[];if(!s)return t;const i=n.replace(s,"");let r=Ja.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const tl=/\b([a-z-]*)\(.*?\)/gu,ln=B(x({},wt),{getAnimatableNone:t=>{const e=t.match(tl);return e?e.map(Qa).join(" "):t}}),Us=B(x({},Ot),{transform:Math.round}),cn=B(x({borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,radius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,inset:w,insetBlock:w,insetBlockStart:w,insetBlockEnd:w,insetInline:w,insetInlineStart:w,insetInlineEnd:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,paddingBlock:w,paddingBlockStart:w,paddingBlockEnd:w,paddingInline:w,paddingInlineStart:w,paddingInlineEnd:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,marginBlock:w,marginBlockStart:w,marginBlockEnd:w,marginInline:w,marginInlineStart:w,marginInlineEnd:w,backgroundPositionX:w,backgroundPositionY:w},{rotate:xt,rotateX:xt,rotateY:xt,rotateZ:xt,scale:ye,scaleX:ye,scaleY:ye,scaleZ:ye,skew:xt,skewX:xt,skewY:xt,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:qt,originX:ts,originY:ts,originZ:w}),{zIndex:Us,fillOpacity:qt,strokeOpacity:qt,numOctaves:Us}),el=B(x({},cn),{color:z,backgroundColor:z,outlineColor:z,fill:z,stroke:z,borderColor:z,borderTopColor:z,borderRightColor:z,borderBottomColor:z,borderLeftColor:z,filter:ln,WebkitFilter:ln}),$s=t=>el[t];function Gs(t,e){let n=$s(t);return n!==ln&&(n=wt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const{schedule:Ws}=Qn(queueMicrotask,!0),Ks=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ys{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=an,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=q.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,I.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget=x({},l),this.initialValues=n.initial?x({},l):{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=As(n),this.isVariantNode=Fa(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const f=this.scrapeMotionValuesFromProps(n,{},this),{willChange:u}=f,h=J(f,["willChange"]);for(const d in h){const m=h[d];l[d]!==void 0&&U(m)&&m.set(l[d])}}mount(e){var n;this.current=e,kt.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((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Ss.current||Ra(),this.shouldReduceMotion=we.current),process.env.NODE_ENV!=="production"&&Es(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),yt(this.notifyUpdate),yt(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const s=this.features[n];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(e){var n;this.children.add(e),(n=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,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=$t.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&I.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r&&r(),n.owner&&n.stop()})}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 Xe){const n=Xe[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):G()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Ks.length;s++){const i=Ks[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=_a(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=zt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var i;let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!=null?i:this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Os(s)||js(s))?s=parseFloat(s):!Za(s)&&wt.test(n)&&(s=Gs(e,n)),this.setBaseTarget(e,U(s)?s.get():s)),U(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const o=Ms(this.props,s,(n=this.presenceContext)==null?void 0:n.custom);o&&(i=o[e])}if(s&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!U(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Je),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Ws.render(this.render)}}const Hs=new Set(["width","height","top","left","right","bottom",...Ut]);var Xs;let ne=()=>{},ht=()=>{};typeof process!="undefined"&&((Xs=process.env)==null?void 0:Xs.NODE_ENV)!=="production"&&(ne=(t,e,n)=>{!t&&typeof console!="undefined"&&console.warn(qe(e,n))},ht=(t,e,n)=>{if(!t)throw new Error(qe(e,n))});const nl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sl(t){const e=nl.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n!=null?n:s}`,i]}const il=4;function qs(t,e,n=1){ht(n<=il,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[s,i]=sl(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return Os(o)?parseFloat(o):o}return Ye(i)?qs(i,e,n+1):i}function ol(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||js(t):!0}const rl=new Set(["auto","none","0"]);function al(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!rl.has(r)&&Jt(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=Gs(n,i)}class ll extends an{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let h=e[u];if(typeof h=="string"&&(h=h.trim(),Ye(h))){const f=qs(h,n.current);f!==void 0&&(e[u]=f),u===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Hs.has(s)||e.length!==2)return;const[i,r]=e,o=zs(i),a=zs(r),l=us(i),c=us(r);if(l!==c&&Tt[s]){this.needsMeasurement=!0;return}if(o!==a)if(Bs(o)&&Bs(a))for(let u=0;u<e.length;u++){const h=e[u];typeof h=="string"&&(e[u]=parseFloat(h))}else Tt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||ol(e[i]))&&s.push(i);s.length&&al(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Tt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const r=n.getValue(s);r&&r.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=Tt[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(e=this.removedTransforms)!=null&&e.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}class Zs extends Ys{constructor(){super(...arguments),this.KeyframeResolver=ll}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;U(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}const Js=(t,e)=>e&&typeof t=="number"?e.transform(t):t,cl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ul=Ut.length;function hl(t,e,n){let s="",i=!0;for(let r=0;r<ul;r++){const o=Ut[r],a=t[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=Js(a,cn[o]);if(!l){i=!1;const u=cl[o]||o;s+=`${u}(${c}) `}n&&(e[o]=c)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Qs(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const l in e){const c=e[l];if($t.has(l)){o=!0;continue}else if(Ke(l)){i[l]=c;continue}else{const u=Js(c,cn[l]);l.startsWith("origin")?(a=!0,r[l]=u):s[l]=u}}if(e.transform||(o||n?s.transform=hl(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=r;s.transformOrigin=`${l} ${c} ${u}`}}function ti(t,{style:e,vars:n},s,i){const r=t.style;let o;for(o in e)r[o]=e[o];i==null||i.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function dl(t,{layout:e,layoutId:n}){return $t.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Qt[t]||t==="opacity")}function ei(t,e,n){var s;const{style:i}=t,r={};for(const o in i)(U(i[o])||e.style&&U(e.style[o])||dl(o,t)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(r[o]=i[o]);return r}function fl(t){return window.getComputedStyle(t)}class ni extends Zs{constructor(){super(...arguments),this.type="html",this.renderInstance=ti}readValueFromInstance(e,n){var s;if($t.has(n))return(s=this.projection)!=null&&s.isProjecting?en(n):$a(e,n);{const i=fl(e),r=(Ke(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Ma(e,n)}build(e,n,s){Qs(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return ei(e,n,s)}}const un=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),pl={offset:"stroke-dashoffset",array:"stroke-dasharray"},ml={offset:"strokeDashoffset",array:"strokeDasharray"};function gl(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?pl:ml;t[r.offset]=w.transform(-s);const o=w.transform(e),a=w.transform(n);t[r.array]=`${o} ${a}`}const yl=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function vl(t,h,l,c,u){var f=h,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0}=f,a=J(f,["attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset"]);var g,y;if(Qs(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:m}=t;d.transform&&(m.transform=d.transform,delete d.transform),(m.transform||d.transformOrigin)&&(m.transformOrigin=(g=d.transformOrigin)!=null?g:"50% 50%",delete d.transformOrigin),m.transform&&(m.transformBox=(y=u==null?void 0:u.transformBox)!=null?y:"fill-box",delete d.transformBox);for(const b of yl)d[b]!==void 0&&(m[b]=d[b],delete d[b]);e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),i!==void 0&&gl(d,i,r,o,!1)}const si=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"]),bl=t=>typeof t=="string"&&t.toLowerCase()==="svg";function xl(t,e,n,s){ti(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(si.has(i)?i:un(i),e.attrs[i])}function wl(t,e,n){const s=ei(t,e,n);for(const i in t)if(U(t[i])||U(e[i])){const r=Ut.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}class ii extends Zs{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=G}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if($t.has(n)){const s=$s(n);return s&&s.default||0}return n=si.has(n)?n:un(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return wl(e,n,s)}build(e,n,s){vl(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){xl(e,n,s,i)}mount(e){this.isSVGTag=bl(e.tagName),super.mount(e)}}function Tl(t,e){return ps(t)?new ii(e):new ni(e)}function Sl(t,e,n,s=0,i=1){const r=Array.from(t),o=r.indexOf(e),a=t.size,l=(a-1)*s,c=typeof n=="function";return o===r.length-1&&(e.parent.enteringChildren=void 0),c?n(o,a):i===1?o*s:l-o*s}function hn(t){return typeof t=="object"&&!Array.isArray(t)}function dn(t,e,n){var s;if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const r=(s=n==null?void 0:n[t])!=null?s:i.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}function oi(t,e,n,s){return typeof t=="string"&&hn(e)?dn(t,n,s):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function Al(t,e,n){return t*(e+1)}function ri(t,e,n,s){var i;return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?n:e.startsWith("<")?Math.max(0,n+parseFloat(e.slice(1))):(i=s.get(e))!=null?i:t}const Pl=(t,e,n)=>{const s=e-t;return((n-t)%s+s)%s+t},ai=t=>Array.isArray(t)&&typeof t[0]!="number";function li(t,e){return ai(t)?t[Pl(0,t.length,e)]:t}function El(t,e,n){for(let s=0;s<t.length;s++){const i=t[s];i.at>e&&i.at<n&&(Te(t,i),s--)}}function Cl(t,e,n,s,i,r){El(t,i,r);for(let o=0;o<e.length;o++)t.push({value:e[o],at:O(i,r,s[o]),easing:li(n,o)})}function kl(t,e){for(let n=0;n<t.length;n++)t[n]=t[n]/(e+1)}function Vl(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}const Gt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};function ci(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Gt(0,e,s);t.push(O(n,1,i))}}function ui(t){const e=[0];return ci(e,t.length-1),e}const Se=2e4;function fn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<Se;)e+=n,s=t.next(e);return e>=Se?1/0:e}function hi(t,e=100,n){const s=n(B(x({},t),{keyframes:[0,e]})),i=Math.min(fn(s),Se);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:Q(i)}}function pn(t){return typeof t=="function"&&"applyToOptions"in t}const Ml="easeInOut",Dl=20;function Rl(t,r={},s,i){var o=r,{defaultTransition:e={}}=o,n=J(o,["defaultTransition"]);const a=e.duration||.3,l=new Map,c=new Map,u={},h=new Map;let f=0,d=0,m=0;for(let g=0;g<t.length;g++){const y=t[g];if(typeof y=="string"){h.set(y,d);continue}else if(!Array.isArray(y)){h.set(y.name,ri(d,y.at,f,h));continue}let[b,C,T={}]=y;T.at!==void 0&&(d=ri(d,T.at,f,h));let M=0;const S=(v,V,p,D=0,L=0)=>{const N=Ll(v),It=V,{delay:at=0,times:X=ui(N),type:Bt="keyframes",repeat:et,repeatType:nt,repeatDelay:Pt=0}=It,de=J(It,["delay","times","type","repeat","repeatType","repeatDelay"]);let{ease:st=e.ease||"easeOut",duration:k}=V;const fe=typeof at=="function"?at(D,L):at,pe=N.length,me=pn(Bt)?Bt:i==null?void 0:i[Bt||"keyframes"];if(pe<=2&&me){let Et=100;if(pe===2&&Fl(N)){const pt=N[1]-N[0];Et=Math.abs(pt)}const _=x({},de);k!==void 0&&(_.duration=ot(k));const Ft=hi(_,Et,me);st=Ft.ease,k=Ft.duration}k!=null||(k=a);const Ht=d+fe;X.length===1&&X[0]===0&&(X[1]=1);const K=X.length-N.length;if(K>0&&ci(X,K),N.length===1&&N.unshift(null),et){ht(et<Dl,"Repeat count too high, must be less than 20","repeat-count-high"),k=Al(k,et);const Et=[...N],_=[...X];st=Array.isArray(st)?[...st]:[st];const Ft=[...st];for(let pt=0;pt<et;pt++){N.push(...Et);for(let mt=0;mt<Et.length;mt++)X.push(_[mt]+(pt+1)),st.push(mt===0?"linear":li(Ft,mt-1))}kl(X,et)}const Y=Ht+k;Cl(p,N,st,X,Ht,Y),M=Math.max(fe+k,M),m=Math.max(Y,m)};if(U(b)){const v=di(b,c);S(C,T,fi("default",v))}else{const v=oi(b,C,s,u),V=v.length;for(let p=0;p<V;p++){C=C,T=T;const D=v[p],L=di(D,c);for(const N in C)S(C[N],Bl(T,N),fi(N,L),p,V)}}f=d,d+=M}return c.forEach((g,y)=>{for(const b in g){const C=g[b];C.sort(Vl);const T=[],M=[],S=[];for(let V=0;V<C.length;V++){const{at:p,value:D,easing:L}=C[V];T.push(D),M.push(Gt(0,m,p)),S.push(L||"easeOut")}M[0]!==0&&(M.unshift(0),T.unshift(T[0]),S.unshift(Ml)),M[M.length-1]!==1&&(M.push(1),T.push(null)),l.has(y)||l.set(y,{keyframes:{},transition:{}});const v=l.get(y);v.keyframes[b]=T,v.transition[b]=x(B(x({},e),{duration:m,ease:S,times:M}),n)}}),l}function di(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function fi(t,e){return e[t]||(e[t]=[]),e[t]}function Ll(t){return Array.isArray(t)?t:[t]}function Bl(t,e){return t&&t[e]?x(x({},t),t[e]):x({},t)}const Il=t=>typeof t=="number",Fl=t=>t.every(Il),Ol=t=>Array.isArray(t);function jl(t,e,n){const s=t.getProps();return Ms(s,e,s.custom,t)}function _l(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,zt(n))}function Nl(t){return Ol(t)?t[t.length-1]||0:t}function zl(t,e){let o=jl(t,e)||{},{transitionEnd:s={},transition:i={}}=o,r=J(o,["transitionEnd","transition"]);r=x(x({},r),s);for(const a in r){const l=Nl(r[a]);_l(t,a,l)}}function Ul(t){return!!(U(t)&&t.add)}function $l(t,e){const n=t.getValue("willChange");if(Ul(n))return n.add(e);if(!n&>.WillChange){const s=new gt.WillChange("auto");t.addValue("willChange",s),s.add(e)}}const Gl="data-"+un("framerAppearId");function pi(t){return t.props[Gl]}const Wl=t=>t!==null;function Kl(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Wl),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[r]}const Yl={type:"spring",stiffness:500,damping:25,restSpeed:10},Hl=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Xl={type:"keyframes",duration:.8},ql={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Zl=(t,{keyframes:e})=>e.length>2?Xl:$t.has(t)?t.startsWith("scale")?Hl(e[1]):Yl:ql;function Jl(h){var f=h,{when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:c}=f,u=J(f,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(u).length}function mn(t,e){var n,s;return(s=(n=t==null?void 0:t[e])!=null?n:t==null?void 0:t.default)!=null?s:t}function gn(t){t.duration=0,t.type="keyframes"}function yn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Ql({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=yn(l,a,t+1/3),r=yn(l,a,t),o=yn(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Ae(t,e){return n=>n>0?e:t}const vn=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},tc=[We,Ct,jt],ec=t=>tc.find(e=>e.test(t));function mi(t){const e=ec(t);if(ne(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===jt&&(n=Ql(n)),n}const gi=(t,e)=>{const n=mi(t),s=mi(e);if(!n||!s)return Ae(t,e);const i=x({},n);return r=>(i.red=vn(n.red,s.red,r),i.green=vn(n.green,s.green,r),i.blue=vn(n.blue,s.blue,r),i.alpha=O(n.alpha,s.alpha,r),Ct.transform(i))},bn=new Set(["none","hidden"]);function nc(t,e){return bn.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}const sc=(t,e)=>n=>e(t(n)),se=(...t)=>t.reduce(sc);function ic(t,e){return n=>O(t,e,n)}function xn(t){return typeof t=="number"?ic:typeof t=="string"?Ye(t)?Ae:z.test(t)?gi:ac:Array.isArray(t)?yi:typeof t=="object"?z.test(t)?gi:oc:Ae}function yi(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>xn(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function oc(t,e){const n=x(x({},t),e),s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=xn(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function rc(t,e){var i;const n=[],s={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const o=e.types[r],a=t.indexes[o][s[o]],l=(i=t.values[a])!=null?i:0;n[r]=l,s[o]++}return n}const ac=(t,e)=>{const n=wt.createTransformer(e),s=Jt(t),i=Jt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?bn.has(t)&&!i.values.length||bn.has(e)&&!s.values.length?nc(t,e):se(yi(rc(s,i),i.values),n):(ne(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Ae(t,e))};function vi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?O(t,e,n):xn(t)(t,e)}const lc=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>I.update(e,n),stop:()=>yt(e),now:()=>H.isProcessing?H.timestamp:q.now()}},bi=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=Math.round(t(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},cc=5;function xi(t,e,n){const s=Math.max(e-cc,0);return Cs(n-t(s),e-s)}const j={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},wn=.001;function uc({duration:t=j.duration,bounce:e=j.bounce,velocity:n=j.velocity,mass:s=j.mass}){let i,r;ne(t<=ot(j.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=ut(j.minDamping,j.maxDamping,o),t=ut(j.minDuration,j.maxDuration,Q(t)),o<1?(i=c=>{const u=c*o,h=u*t,f=u-n,d=Tn(c,o),m=Math.exp(-h);return wn-f/d*m},r=c=>{const h=c*o*t,f=h*n+n,d=Math.pow(o,2)*Math.pow(c,2)*t,m=Math.exp(-h),g=Tn(Math.pow(c,2),o);return(-i(c)+wn>0?-1:1)*((f-d)*m)/g}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-wn+u*h},r=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=dc(i,r,a);if(t=ot(t),isNaN(l))return{stiffness:j.stiffness,damping:j.damping,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:t}}}const hc=12;function dc(t,e,n){let s=n;for(let i=1;i<hc;i++)s=s-t(s)/e(s);return s}function Tn(t,e){return t*Math.sqrt(1-e*e)}const fc=["duration","bounce"],pc=["stiffness","damping","mass"];function wi(t,e){return e.some(n=>t[n]!==void 0)}function mc(t){let e=x({velocity:j.velocity,stiffness:j.stiffness,damping:j.damping,mass:j.mass,isResolvedFromDuration:!1},t);if(!wi(t,pc)&&wi(t,fc))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*ut(.05,1,1-(t.bounce||0))*Math.sqrt(i);e=B(x({},e),{mass:j.mass,stiffness:i,damping:r})}else{const n=uc(t);e=B(x(x({},e),n),{mass:j.mass}),e.isResolvedFromDuration=!0}return e}function ie(t=j.visualDuration,e=j.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:c,mass:u,duration:h,velocity:f,isResolvedFromDuration:d}=mc(B(x({},n),{velocity:-Q(n.velocity||0)})),m=f||0,g=c/(2*Math.sqrt(l*u)),y=o-r,b=Q(Math.sqrt(l/u)),C=Math.abs(y)<5;s||(s=C?j.restSpeed.granular:j.restSpeed.default),i||(i=C?j.restDelta.granular:j.restDelta.default);let T;if(g<1){const S=Tn(b,g);T=v=>{const V=Math.exp(-g*b*v);return o-V*((m+g*b*y)/S*Math.sin(S*v)+y*Math.cos(S*v))}}else if(g===1)T=S=>o-Math.exp(-b*S)*(y+(m+b*y)*S);else{const S=b*Math.sqrt(g*g-1);T=v=>{const V=Math.exp(-g*b*v),p=Math.min(S*v,300);return o-V*((m+g*b*y)*Math.sinh(p)+S*y*Math.cosh(p))/S}}const M={calculatedDuration:d&&h||null,next:S=>{const v=T(S);if(d)a.done=S>=h;else{let V=S===0?m:0;g<1&&(V=S===0?ot(m):xi(T,S,v));const p=Math.abs(V)<=s,D=Math.abs(o-v)<=i;a.done=p&&D}return a.value=a.done?o:v,a},toString:()=>{const S=Math.min(fn(M),Se),v=bi(V=>M.next(S*V).value,S,30);return S+"ms "+v},toTransition:()=>{}};return M}ie.applyToOptions=t=>{const e=hi(t,100,ie);return t.ease=e.ease,t.duration=ot(e.duration),t.type="keyframes",t};function Sn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],f={done:!1,value:h},d=p=>a!==void 0&&p<a||l!==void 0&&p>l,m=p=>a===void 0?l:l===void 0||Math.abs(a-p)<Math.abs(l-p)?a:l;let g=n*e;const y=h+g,b=o===void 0?y:o(y);b!==y&&(g=b-h);const C=p=>-g*Math.exp(-p/s),T=p=>b+C(p),M=p=>{const D=C(p),L=T(p);f.done=Math.abs(D)<=c,f.value=f.done?b:L};let S,v;const V=p=>{d(f.value)&&(S=p,v=ie({keyframes:[f.value,m(f.value)],velocity:xi(T,p,f.value),damping:i,stiffness:r,restDelta:c,restSpeed:u}))};return V(0),{calculatedDuration:null,next:p=>{let D=!1;return!v&&S===void 0&&(D=!0,M(p),V(p)),S!==void 0&&p>=S?v.next(p-S):(!D&&M(p),f)}}}function gc(t,e,n){const s=[],i=n||gt.mix||vi,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||Z:e;a=se(l,a)}s.push(a)}return s}function yc(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(ht(r===e.length,"Both input and output ranges must be the same length","range-length"),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=gc(e,s,i),l=a.length,c=u=>{if(o&&u<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const f=Gt(t[h],t[h+1],u);return a[h](f)};return n?u=>c(ut(t[0],t[r-1],u)):c}function vc(t,e){return t.map(n=>n*e)}const Ti=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,bc=1e-7,xc=12;function wc(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=Ti(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>bc&&++a<xc);return o}function oe(t,e,n,s){if(t===e&&n===s)return Z;const i=r=>wc(r,0,1,t,n);return r=>r===0||r===1?r:Ti(i(r),e,s)}const Tc=oe(.42,0,1,1),Sc=oe(0,0,.58,1),Si=oe(.42,0,.58,1),Ai=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Pi=t=>e=>1-t(1-e),Ei=oe(.33,1.53,.69,.99),An=Pi(Ei),Ci=Ai(An),ki=t=>(t*=2)<1?.5*An(t):.5*(2-Math.pow(2,-10*(t-1))),Pn=t=>1-Math.sin(Math.acos(t)),Vi=Pi(Pn),Mi=Ai(Pn),Di=t=>Array.isArray(t)&&typeof t[0]=="number",Ri={linear:Z,easeIn:Tc,easeInOut:Si,easeOut:Sc,circIn:Pn,circInOut:Mi,circOut:Vi,backIn:An,backInOut:Ci,backOut:Ei,anticipate:ki},Ac=t=>typeof t=="string",Li=t=>{if(Di(t)){ht(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,s,i]=t;return oe(e,n,s,i)}else if(Ac(t))return ht(Ri[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),Ri[t];return t};function Pc(t,e){return t.map(()=>e||Si).splice(0,t.length-1)}function Wt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=ai(s)?s.map(Li):Li(s),r={done:!1,value:e[0]},o=vc(n&&n.length===e.length?n:ui(e),t),a=yc(o,e,{ease:Array.isArray(i)?i:Pc(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const Ec=t=>t!==null;function En(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(Ec),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const Cc={decay:Sn,inertia:Sn,tween:Wt,keyframes:Wt,spring:ie};function Bi(t){typeof t.type=="string"&&(t.type=Cc[t.type])}class Cn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const kc=t=>t/100;class kn extends Cn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var n,s;const{motionValue:i}=this.options;i&&i.updatedAt!==q.now()&&this.tick(q.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(n=this.options).onStop)==null||s.call(n))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Bi(e);const{type:n=Wt,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const l=n||Wt;process.env.NODE_ENV!=="production"&&l!==Wt&&ht(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==Wt&&typeof a[0]!="number"&&(this.mixKeyframes=se(kc,vi(a[0],a[1])),a=[0,100]);const c=l(B(x({},e),{keyframes:a}));r==="mirror"&&(this.mirroredGenerator=l(B(x({},e),{keyframes:[...a].reverse(),velocity:-o}))),c.calculatedDuration===null&&(c.calculatedDuration=fn(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:u,repeat:h,repeatType:f,repeatDelay:d,type:m,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const b=this.currentTime-c*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?b<0:b>i;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let T=this.currentTime,M=s;if(h){const p=Math.min(this.currentTime,i)/a;let D=Math.floor(p),L=p%1;!L&&p>=1&&(L=1),L===1&&D--,D=Math.min(D,h+1),!!(D%2)&&(f==="reverse"?(L=1-L,d&&(L-=d/a)):f==="mirror"&&(M=o)),T=ut(0,1,L)*a}const S=C?{done:!1,value:u[0]}:M.next(T);r&&(S.value=r(S.value));let{done:v}=S;!C&&l!==null&&(v=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&v);return V&&m!==Sn&&(S.value=En(u,this.options,y,this.speed)),g&&g(S.value),V&&this.finish(),S}then(e,n){return this.finished.then(e,n)}get duration(){return Q(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Q(e)}get time(){return Q(this.currentTime)}set time(e){var n;e=ot(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),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(q.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Q(this.currentTime))}play(){var e,n;if(this.isStopped)return;const{driver:s=lc,startTime:i}=this.options;this.driver||(this.driver=s(o=>this.tick(o))),(n=(e=this.options).onPlay)==null||n.call(e);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=i!=null?i:r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(q.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}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 n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}const Vc=t=>t.startsWith("--");function Mc(t,e,n){Vc(e)?t.style.setProperty(e,n):t.style[e]=n}function Vn(t){let e;return()=>(e===void 0&&(e=t()),e)}const Dc=Vn(()=>window.ScrollTimeline!==void 0),Rc={};function Lc(t,e){const n=Vn(t);return()=>{var s;return(s=Rc[e])!=null?s:n()}}const Ii=Lc(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),re=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Fi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:re([0,.65,.55,1]),circOut:re([.55,0,1,.45]),backIn:re([.31,.01,.66,-.59]),backOut:re([.33,1.53,.69,.99])};function Oi(t,e){if(t)return typeof t=="function"?Ii()?bi(t,e):"ease-out":Di(t)?re(t):Array.isArray(t)?t.map(n=>Oi(n,e)||Fi.easeOut):Fi[t]}function Bc(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const h=Oi(a,i);Array.isArray(h)&&(u.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),t.animate(u,f)}function Ic(n){var s=n,{type:t}=s,e=J(s,["type"]);var i,r;return pn(t)&&Ii()?t.applyToOptions(e):((i=e.duration)!=null||(e.duration=300),(r=e.ease)!=null||(e.ease="easeOut"),e)}class Fc extends Cn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,ht(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=Ic(e);this.animation=Bc(n,s,i,c,r),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const u=En(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):Mc(n,s,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var e,n;const s=((n=(e=this.animation.effect)==null?void 0:e.getComputedTiming)==null?void 0:n.call(e).duration)||0;return Q(Number(s))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Q(e)}get time(){return Q(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ot(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){var e;return(e=this.manualStartTime)!=null?e:Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&Dc()?(this.animation.timeline=e,Z):n(this)}}const ji={anticipate:ki,backInOut:Ci,circInOut:Mi};function Oc(t){return t in ji}function jc(t){typeof t.ease=="string"&&Oc(t.ease)&&(t.ease=ji[t.ease])}const Mn=10;class _c extends Fc{constructor(e){jc(e),Bi(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const u=this.options,{motionValue:n,onUpdate:s,onComplete:i,element:r}=u,o=J(u,["motionValue","onUpdate","onComplete","element"]);if(!n)return;if(e!==void 0){n.set(e);return}const a=new kn(B(x({},o),{autoplay:!1})),l=Math.max(Mn,q.now()-this.startTime),c=ut(0,Mn,l-Mn);n.setWithVelocity(a.sample(Math.max(0,l-c)).value,a.sample(l).value,c),a.stop()}}const _i=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(wt.test(t)||t==="0")&&!t.startsWith("url("));function Nc(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function zc(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=_i(i,e),a=_i(r,e);return ne(o===a,`You are trying to animate ${e} from "${i}" to "${r}". "${o?r:i}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:Nc(t)||(n==="spring"||pn(n))&&s}const Uc=new Set(["opacity","clipPath","filter","transform"]),$c=Vn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Gc(t){var e;const{motionValue:n,name:s,repeatDelay:i,repeatType:r,damping:o,type:a}=t;if(!(((e=n==null?void 0:n.owner)==null?void 0:e.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=n.owner.getProps();return $c()&&s&&Uc.has(s)&&(s!=="transform"||!u)&&!c&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}const Wc=40;class Kc extends Cn{constructor(f){var d=f,{autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u}=d,h=J(d,["autoplay","delay","type","repeat","repeatDelay","repeatType","keyframes","name","motionValue","element"]);var m;super(),this.stop=()=>{var b,C;this._animation&&(this._animation.stop(),(b=this.stopTimeline)==null||b.call(this)),(C=this.keyframeResolver)==null||C.cancel()},this.createdAt=q.now();const g=x({autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:l,motionValue:c,element:u},h),y=(u==null?void 0:u.KeyframeResolver)||an;this.keyframeResolver=new y(a,(b,C,T)=>this.onKeyframesResolved(b,C,g,!T),l,c,u),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=s;this.resolvedAt=q.now(),zc(e,r,o,a)||((gt.instantAnimations||!l)&&(u==null||u(En(e,s,n))),e[0]=e[e.length-1],gn(s),s.repeat=0);const h=i?this.resolvedAt?this.resolvedAt-this.createdAt>Wc?this.resolvedAt:this.createdAt:this.createdAt:void 0,f=B(x({startTime:h,finalKeyframe:n},s),{keyframes:e}),d=!c&&Gc(f)?new _c(B(x({},f),{element:f.motionValue.owner.current})):new kn(f);d.finished.then(()=>this.notifyFinished()).catch(Z),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),Ha()),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()}}const Dn=(t,e,n,s={},i,r)=>o=>{const a=mn(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-ot(l);const u=B(x({keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity()},a),{delay:-c,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i});Jl(a)||Object.assign(u,Zl(t,u)),u.duration&&(u.duration=ot(u.duration)),u.repeatDelay&&(u.repeatDelay=ot(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(gn(u),u.delay===0&&(h=!0)),(gt.instantAnimations||gt.skipAnimations)&&(h=!0,gn(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const f=Kl(u.keyframes,a);if(f!==void 0){I.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new kn(u):new Kc(u)};function Yc({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Hc(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var h;let u=e,{transition:r=t.getDefaultTransition(),transitionEnd:o}=u,a=J(u,["transition","transitionEnd"]);s&&(r=s);const l=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const f in a){const d=t.getValue(f,(h=t.latestValues[f])!=null?h:null),m=a[f];if(m===void 0||c&&Yc(c,f))continue;const g=x({delay:n},mn(r||{},f)),y=d.get();if(y!==void 0&&!d.isAnimating&&!Array.isArray(m)&&m===y&&!g.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const T=pi(t);if(T){const M=window.MotionHandoffAnimation(T,f,I);M!==null&&(g.startTime=M,b=!0)}}$l(t,f),d.start(Dn(f,d,m,t.shouldReduceMotion&&Hs.has(f)?{type:!1}:g,t,b));const C=d.animation;C&&l.push(C)}return o&&Promise.all(l).then(()=>{I.update(()=>{o&&zl(t,o)})}),l}function Xc(t,e){return t in e}class qc extends Ys{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,n){if(Xc(n,e)){const s=e[n];if(typeof s=="string"||typeof s=="number")return s}}getBaseTargetFromProps(){}removeValueFromRenderState(e,n){delete n.output[e]}measureInstanceViewportBox(){return G()}build(e,n){Object.assign(e.output,n)}renderInstance(e,{output:n}){Object.assign(e,n)}sortInstanceNodePosition(){return 0}}function Ni(t){return typeof t=="object"&&t!==null}function Rn(t){return Ni(t)&&"ownerSVGElement"in t}function zi(t){return Rn(t)&&t.tagName==="svg"}function Zc(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Rn(t)&&!zi(t)?new ii(e):new ni(e);n.mount(t),kt.set(t,n)}function Jc(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new qc(e);n.mount(t),kt.set(t,n)}function Ui(t,e,n){const s=U(t)?t:zt(t);return s.start(Dn("",s,e,n)),s.animation}function Qc(t,e){return U(t)||typeof t=="number"||typeof t=="string"&&!hn(e)}function $i(t,e,n,s){const i=[];if(Qc(t,e))i.push(Ui(t,hn(e)&&e.default||e,n&&(n.default||n)));else{const r=oi(t,e,s),o=r.length;ht(!!o,"No valid elements provided.","no-valid-elements");for(let a=0;a<o;a++){const l=r[a];ht(l!==null,"You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.","animate-null");const c=l instanceof Element?Zc:Jc;kt.has(l)||c(l);const u=kt.get(l),h=x({},n);"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(a,o)),i.push(...Hc(u,B(x({},e),{transition:h}),{}))}}return i}function tu(t,e,n){const s=[];return Rl(t,e,n,{spring:ie}).forEach(({keyframes:r,transition:o},a)=>{s.push(...$i(a,r,o))}),s}class eu{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e){const n=this.animations.map(s=>s.attachTimeline(e));return()=>{n.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return Gi(this.animations,"duration")}get iterationDuration(){return Gi(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(n=>n[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Gi(t,e){let n=0;for(let s=0;s<t.length;s++){const i=t[s][e];i!==null&&i>n&&(n=i)}return n}class nu extends eu{then(e,n){return this.finished.finally(e).then(()=>{})}}function su(t){return Array.isArray(t)&&t.some(Array.isArray)}function iu(t){function e(n,s,i){let r=[],o;if(su(n))r=tu(n,s,t);else{const l=i||{},{onComplete:c}=l,u=J(l,["onComplete"]);typeof c=="function"&&(o=c),r=$i(n,s,u,t)}const a=new nu(r);return o&&a.finished.then(o),a}return e}const ou=iu(),ru=["initial","animate","whileInView","whileHover","whilePress","whileDrag","whileFocus","exit"];class au extends vt{constructor(e){var n,s;super(e),this.animateUpdates=({controlActiveState:i,directAnimate:r,directTransition:o,controlDelay:a=0,isExit:l}={})=>{const{reducedMotion:c}=this.state.options.motionConfig;this.state.visualElement.shouldReduceMotion=c==="always"||c==="user"&&!!we.current;const u=this.state.target;this.state.target=x({},this.state.baseTarget);let h={};h=this.resolveStateAnimation({controlActiveState:i,directAnimate:r,directTransition:o}),this.state.finalTransition=h;const f=this.createAnimationFactories(u,h,a),{getChildAnimations:d}=this.setupChildAnimations(h,this.state.activeStates);return this.executeAnimations({factories:f,getChildAnimations:d,transition:h,controlActiveState:i,isExit:l})},this.state.visualElement=Tl(this.state.options.as,{presenceContext:null,parent:(n=this.state.parent)==null?void 0:n.visualElement,props:B(x({},this.state.options),{whileTap:this.state.options.whilePress}),visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:x({},this.state.baseTarget)},reducedMotionConfig:this.state.options.motionConfig.reducedMotion}),(s=this.state.visualElement.parent)==null||s.addChild(this.state.visualElement),this.state.animateUpdates=this.animateUpdates,this.state.isMounted()&&this.state.startAnimation()}updateAnimationControlsSubscription(){const{animate:e}=this.state.options;ds(e)&&(this.unmountControls=e.subscribe(this.state))}executeAnimations({factories:e,getChildAnimations:n,transition:s,controlActiveState:i,isExit:r=!1}){const o=()=>Promise.all(e.map(h=>h()).filter(Boolean)),a=x({},this.state.target),l=this.state.element,c=h=>{var f,d;r&&(this.state.isExiting=!0),l.dispatchEvent(gs("motionstart",a)),(d=(f=this.state.options).onAnimationStart)==null||d.call(f,a),h.then(()=>{var m,g,y,b;if(r){this.state.isExiting=!1;const C=this.state.options.animatePresenceContext;if(C!=null&&C.onMotionExitComplete&&this.state.presenceContainer){const T=this.state,M=T.visualElement.projection;(m=T.options)!=null&&m.layoutId&&((g=M.currentAnimation)==null?void 0:g.state)==="running"&&!T.options.exit||C.onMotionExitComplete(T.presenceContainer,T)}}l.dispatchEvent(gs("motioncomplete",a,r)),(b=(y=this.state.options).onAnimationComplete)==null||b.call(y,a)}).catch(Z)},u=()=>{const h=s!=null&&s.when?(s.when==="beforeChildren"?o():n()).then(()=>s.when==="beforeChildren"?n():o()):Promise.all([o(),n()]);return c(h),h};return i?u:u()}setupChildAnimations(e,n){var s;const i=this.state.visualElement;if(!((s=i.variantChildren)!=null&&s.size)||!n)return{getChildAnimations:()=>Promise.resolve()};const{staggerChildren:r=0,staggerDirection:o=1,delayChildren:a=0}=e||{},l=i.variantChildren.size,c=(l-1)*r,u=typeof a=="function",h=u?d=>a(d,l):o===1?(d=0)=>d*r:(d=0)=>c-d*r,f=Array.from(i.variantChildren).map((d,m)=>d.state.animateUpdates({controlActiveState:n,controlDelay:(u?0:a)+h(m)}));return{getChildAnimations:()=>Promise.all(f.map(d=>d()))}}createAnimationFactories(e,n,s){const i=[];return Object.keys(this.state.target).forEach(r=>{var l;var o;if(!ia(e[r],this.state.target[r]))return;(l=(o=this.state.baseTarget)[r])!=null||(o[r]=Ta.get(this.state.element,r));const a=this.state.target[r]==="none"&&xe(bs[r])?bs[r]:this.state.target[r];i.push(()=>{var c;return ou(this.state.element,{[r]:a},B(x({},(n==null?void 0:n[r])||n),{delay:(((c=n==null?void 0:n[r])==null?void 0:c.delay)||(n==null?void 0:n.delay)||0)+s}))})}),i}resolveStateAnimation({controlActiveState:e,directAnimate:n,directTransition:s}){let i=this.state.options.transition,r={};const{variants:o,custom:a,transition:l,animatePresenceContext:c}=this.state.options,u=a!=null?a:c==null?void 0:c.custom;return this.state.activeStates=x(x({},this.state.activeStates),e),ru.forEach(h=>{if(!this.state.activeStates[h]||ds(this.state.options[h]))return;const f=this.state.options[h];let d=xe(f)?ee(f,o,u):void 0;if(this.state.visualElement.isVariantNode){const m=ee(this.state.context[h],o,u);d=Object.assign(m?m||{}:r,d)}d&&(h!=="initial"&&(i=d.transition||this.state.options.transition||{}),r=Object.assign(r,d))}),n&&(r=ee(n,o,u),i=r.transition||s||l),Object.entries(r).forEach(([h,f])=>{h!=="transition"&&(this.state.target[h]=f)}),i}mount(){var e,n;const{element:s}=this.state;ms.set(s,this.state),kt.get(s)||(this.state.visualElement.mount(s),kt.set(s,this.state.visualElement)),this.state.visualElement.state=this.state,this.updateAnimationControlsSubscription();const i=this.state.visualElement,r=i.parent;if(i.enteringChildren=void 0,(e=this.state.parent)!=null&&e.isMounted()&&!i.isControllingVariants&&((n=r==null?void 0:r.enteringChildren)!=null&&n.has(i))){const{delayChildren:o}=this.state.parent.finalTransition||{};this.animateUpdates({controlActiveState:this.state.parent.activeStates,controlDelay:Sl(r.enteringChildren,i,o)})()}}update(){const{animate:e}=this.state.options,{animate:n}=this.state.visualElement.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;(e=this.unmountControls)==null||e.call(this)}}function lu(t){return Ni(t)&&"offsetHeight"in t}const cu={y:!1};function uu(){return cu.y}const Wi=(t,e)=>e?t===e?!0:Wi(t,e.parentElement):!1,hu=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Ki(t,e){const n=dn(t),s=new AbortController,i=B(x({passive:!0},e),{signal:s.signal});return[n,i,()=>s.abort()]}const du=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function fu(t){return du.has(t.tagName)||t.isContentEditable===!0}const Pe=new WeakSet;function Yi(t){return e=>{e.key==="Enter"&&t(e)}}function Ln(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const pu=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Yi(()=>{if(Pe.has(n))return;Ln(n,"down");const i=Yi(()=>{Ln(n,"up")}),r=()=>Ln(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function Hi(t){return hu(t)&&!0}function mu(t,e,n={}){const[s,i,r]=Ki(t,n),o=a=>{const l=a.currentTarget;if(!Hi(a))return;Pe.add(l);const c=e(l,a),u=(d,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),Pe.has(l)&&Pe.delete(l),Hi(d)&&typeof c=="function"&&c(d,{success:m})},h=d=>{u(d,l===window||l===document||n.useGlobalTarget||Wi(l,d.target))},f=d=>{u(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),lu(a)&&(a.addEventListener("focus",c=>pu(c,i)),!fu(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function Xi(t){return{point:{x:t.pageX,y:t.pageY}}}function qi(t,e,n){const s=t.options;s.whilePress&&t.setActive("whilePress",n==="Start");const i=`onPress${n==="End"?"":n}`,r=s[i];r&&I.postRender(()=>r(e,Xi(e)))}class gu extends vt{isActive(){const{whilePress:e,onPress:n,onPressCancel:s,onPressStart:i}=this.state.options;return!!(e||n||s||i)}constructor(e){super(e)}mount(){this.register()}update(){const{whilePress:e,onPress:n,onPressCancel:s,onPressStart:i}=this.state.options;e||n||s||i||this.register()}register(){const e=this.state.element;!e||!this.isActive()||(this.unmount(),this.unmount=mu(e,(n,s)=>(qi(this.state,s,"Start"),(i,{success:r})=>qi(this.state,i,r?"End":"Cancel")),{useGlobalTarget:this.state.options.globalPressTarget}))}}function Zi(t){return!(t.pointerType==="touch"||uu())}function yu(t,e,n={}){const[s,i,r]=Ki(t,n),o=a=>{if(!Zi(a))return;const{target:l}=a,c=e(l,a);if(typeof c!="function"||!l)return;const u=h=>{Zi(h)&&(c(h),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,i)};return s.forEach(a=>{a.addEventListener("pointerenter",o,i)}),r}function Ji(t,e,n){const s=t.options;s.whileHover&&t.setActive("whileHover",n==="Start");const i=`onHover${n}`,r=s[i];r&&I.postRender(()=>r(e,Xi(e)))}class vu extends vt{isActive(){const{whileHover:e,onHoverStart:n,onHoverEnd:s}=this.state.options;return!!(e||n||s)}constructor(e){super(e)}mount(){this.register()}update(){const{whileHover:e,onHoverStart:n,onHoverEnd:s}=this.state.visualElement.prevProps;e||n||s||this.register()}register(){const e=this.state.element;!e||!this.isActive()||(this.unmount(),this.unmount=yu(e,(n,s)=>(Ji(this.state,s,"Start"),i=>{Ji(this.state,i,"End")})))}}const bu={some:0,all:1};function xu(t,e,{root:n,margin:s,amount:i="some"}={}){const r=dn(t),o=new WeakMap,a=c=>{c.forEach(u=>{const h=o.get(u.target);if(u.isIntersecting!==!!h)if(u.isIntersecting){const f=e(u.target,u);typeof f=="function"?o.set(u.target,f):l.unobserve(u.target)}else typeof h=="function"&&(h(u),o.delete(u.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:s,threshold:typeof i=="number"?i:bu[i]});return r.forEach(c=>l.observe(c)),()=>l.disconnect()}function Qi(t,e,n){const s=t.options;s.whileInView&&t.setActive("whileInView",n==="Enter");const i=`onViewport${n}`,r=s[i];r&&I.postRender(()=>r(e))}class wu extends vt{isActive(){const{whileInView:e,onViewportEnter:n,onViewportLeave:s}=this.state.options;return!!(e||n||s)}constructor(e){super(e)}startObserver(){const e=this.state.element;if(!e||!this.isActive())return;this.unmount();const i=this.state.options.inViewOptions||{},{once:n}=i,s=J(i,["once"]);this.unmount=xu(e,(r,o)=>{if(Qi(this.state,o,"Enter"),!n)return a=>{Qi(this.state,o,"Leave")}},s)}mount(){this.startObserver()}update(){const{props:e,prevProps:n}=this.state.visualElement;["amount","margin","root"].some(Tu(e,n))&&this.startObserver()}}function Tu({inViewOptions:t={}},{inViewOptions:e={}}={}){return n=>t[n]!==e[n]}function Ee(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}class Su extends vt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.state.element.matches(":focus-visible")}catch(n){e=!0}e&&(this.state.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&(this.state.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=se(Ee(this.state.element,"focus",()=>this.onFocus()),Ee(this.state.element,"blur",()=>this.onBlur()))}}const Au=(t,e)=>t.depth-e.depth;class Pu{constructor(){this.children=[],this.isDirty=!1}add(e){Ze(this.children,e),this.isDirty=!0}remove(e){Te(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Au),this.isDirty=!1,this.children.forEach(e)}}function Bn(t){return U(t)?t.get():t}const to=["TopLeft","TopRight","BottomLeft","BottomRight"],Eu=to.length,eo=t=>typeof t=="string"?parseFloat(t):t,no=t=>typeof t=="number"||w.test(t);function Cu(t,e,n,s,i,r){var o,a,l,c;i?(t.opacity=O(0,(o=n.opacity)!=null?o:1,ku(s)),t.opacityExit=O((a=e.opacity)!=null?a:1,0,Vu(s))):r&&(t.opacity=O((l=e.opacity)!=null?l:1,(c=n.opacity)!=null?c:1,s));for(let u=0;u<Eu;u++){const h=`border${to[u]}Radius`;let f=so(e,h),d=so(n,h);if(f===void 0&&d===void 0)continue;f||(f=0),d||(d=0),f===0||d===0||no(f)===no(d)?(t[h]=Math.max(O(eo(f),eo(d),s),0),(lt.test(d)||lt.test(f))&&(t[h]+="%")):t[h]=d}(e.rotate||n.rotate)&&(t.rotate=O(e.rotate||0,n.rotate||0,s))}function so(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const ku=io(0,.5,Vi),Vu=io(.5,.95,Z);function io(t,e,n){return s=>s<t?0:s>e?1:n(Gt(t,e,s))}function oo(t,e){t.min=e.min,t.max=e.max}function rt(t,e){oo(t.x,e.x),oo(t.y,e.y)}function ro(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function In(t){return t===void 0||t===1}function Fn({scale:t,scaleX:e,scaleY:n}){return!In(t)||!In(e)||!In(n)}function Dt(t){return Fn(t)||ao(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ao(t){return lo(t.x)||lo(t.y)}function lo(t){return t&&t!=="0%"}function Ce(t,e,n){const s=t-n,i=e*s;return n+i}function co(t,e,n,s,i){return i!==void 0&&(t=Ce(t,i,s)),Ce(t,n,s)+e}function On(t,e=0,n=1,s,i){t.min=co(t.min,e,n,s,i),t.max=co(t.max,e,n,s,i)}function uo(t,{x:e,y:n}){On(t.x,e.translate,e.scale,e.originPoint),On(t.y,n.translate,n.scale,n.originPoint)}const ho=.999999999999,fo=1.0000000000001;function Mu(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Kt(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,uo(t,o)),s&&Dt(r.latestValues)&&Kt(t,r.latestValues))}e.x<fo&&e.x>ho&&(e.x=1),e.y<fo&&e.y>ho&&(e.y=1)}function ke(t,e){t.min=t.min+e,t.max=t.max+e}function po(t,e,n,s,i=.5){const r=O(t.min,t.max,i);On(t,e,n,r,s)}function Kt(t,e){po(t.x,e.x,e.scaleX,e.scale,e.originX),po(t.y,e.y,e.scaleY,e.scale,e.originY)}const mo=1e-4,Du=1-mo,Ru=1+mo,go=.01,Lu=0-go,Bu=0+go;function tt(t){return t.max-t.min}function Iu(t,e,n){return Math.abs(t-e)<=n}function yo(t,e,n,s=.5){t.origin=s,t.originPoint=O(e.min,e.max,t.origin),t.scale=tt(n)/tt(e),t.translate=O(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Du&&t.scale<=Ru||isNaN(t.scale))&&(t.scale=1),(t.translate>=Lu&&t.translate<=Bu||isNaN(t.translate))&&(t.translate=0)}function ae(t,e,n,s){yo(t.x,e.x,n.x,s?s.originX:void 0),yo(t.y,e.y,n.y,s?s.originY:void 0)}function vo(t,e,n){t.min=n.min+e.min,t.max=t.min+tt(e)}function Fu(t,e,n){vo(t.x,e.x,n.x),vo(t.y,e.y,n.y)}function bo(t,e,n){t.min=e.min-n.min,t.max=t.min+tt(e)}function Ve(t,e,n){bo(t.x,e.x,n.x),bo(t.y,e.y,n.y)}function xo(t,e,n,s,i){return t-=e,t=Ce(t,1/n,s),i!==void 0&&(t=Ce(t,1/i,s)),t}function Ou(t,e=0,n=1,s=.5,i,r=t,o=t){if(lt.test(e)&&(e=parseFloat(e),e=O(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=O(r.min,r.max,s);t===r&&(a-=e),t.min=xo(t.min,e,n,a,i),t.max=xo(t.max,e,n,a,i)}function wo(t,e,[n,s,i],r,o){Ou(t,e[n],e[s],e[i],e.scale,r,o)}const ju=["x","scaleX","originX"],_u=["y","scaleY","originY"];function To(t,e,n,s){wo(t.x,e,ju,n?n.x:void 0,s?s.x:void 0),wo(t.y,e,_u,n?n.y:void 0,s?s.y:void 0)}function So(t){return t.translate===0&&t.scale===1}function Ao(t){return So(t.x)&&So(t.y)}function Po(t,e){return t.min===e.min&&t.max===e.max}function Nu(t,e){return Po(t.x,e.x)&&Po(t.y,e.y)}function Eo(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Co(t,e){return Eo(t.x,e.x)&&Eo(t.y,e.y)}function ko(t){return tt(t.x)/tt(t.y)}function Vo(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class zu{constructor(){this.members=[]}add(e){Ze(this.members,e),e.scheduleRender()}remove(e){if(Te(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1){s=r;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Uu(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:h,rotateY:f,skewX:d,skewY:m}=n;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}function Mo(t){return[t("x"),t("y")]}const Me={hasAnimatedSinceResize:!0,hasEverUpdated:!1},jn=["","X","Y","Z"],$u=1e3;let Gu=0;function _n(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Do(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=pi(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",I,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Do(s)}function Ro({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=Gu++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Yu),this.nodes.forEach(Zu),this.nodes.forEach(Ju),this.nodes.forEach(Hu)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Pu)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Je),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=Rn(o)&&!zi(o),this.instance=o;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,h=0;const f=()=>this.root.updateBlockedByResize=!1;I.read(()=>{h=window.innerWidth}),t(o,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,u&&u(),u=_r(f,250),Me.hasAnimatedSinceResize&&(Me.hasAnimatedSinceResize=!1,this.nodes.forEach(Io)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||sh,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=c.getProps(),b=!this.targetLayout||!Co(this.targetLayout,d),C=!h&&f;if(this.options.layoutRoot||this.resumeFrom||C||h&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T=B(x({},mn(m,"layout")),{onPlay:g,onComplete:y});(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(u,C)}else h||Io(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),yt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Qu),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Do(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Lo);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Bo);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(qu),this.nodes.forEach(Wu),this.nodes.forEach(Ku)):this.nodes.forEach(Bo),this.clearAllSnapshots();const a=q.now();H.delta=ut(0,1e3/60,a-H.timestamp),H.timestamp=a,H.isProcessing=!0,ze.update.process(H),ze.preRender.process(H),ze.render.process(H),H.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ws.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Xu),this.sharedNodes.forEach(th)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,I.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){I.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!tt(this.snapshot.measuredBox.x)&&!tt(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=G(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Ao(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||Dt(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),ih(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return G();const l=a.measureViewportBox();if(!(((o=this.scroll)==null?void 0:o.wasRoot)||this.path.some(oh))){const{scroll:u}=this.root;u&&(ke(l.x,u.offset.x),ke(l.y,u.offset.y))}return l}removeElementScroll(o){var a;const l=G();if(rt(l,o),(a=this.scroll)!=null&&a.wasRoot)return l;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:h,options:f}=u;u!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&rt(l,o),ke(l.x,h.offset.x),ke(l.y,h.offset.y))}return l}applyTransform(o,a=!1){const l=G();rt(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Kt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Dt(u.latestValues)&&Kt(l,u.latestValues)}return Dt(this.latestValues)&&Kt(l,this.latestValues),l}removeTransform(o){const a=G();rt(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Dt(c.latestValues))continue;Fn(c.latestValues)&&c.updateSnapshot();const u=G(),h=c.measurePageBox();rt(u,h),To(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Dt(this.latestValues)&&To(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options=B(x(x({},this.options),o),{crossfade:o.crossfade!==void 0?o.crossfade:!0})}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==H.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(a=this.parent)!=null&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!this.layout||!(h||f))return;this.resolvedRelativeTargetAt=H.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=G(),this.targetWithTransforms=G()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Fu(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rt(this.target,this.layout.layoutBox),uo(this.target,this.targetDelta)):rt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Fn(this.parent.latestValues)||ao(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=G(),this.relativeTargetOrigin=G(),Ve(this.relativeTargetOrigin,a,l),rt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||(o=this.parent)!=null&&o.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===H.timestamp&&(c=!1),c)return;const{layout:u,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||h))return;rt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;Mu(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=G());const{target:m}=a;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ro(this.prevProjectionDelta.x,this.projectionDelta.x),ro(this.prevProjectionDelta.y,this.projectionDelta.y)),ae(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!Vo(this.projectionDelta.x,this.prevProjectionDelta.x)||!Vo(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Nt(),this.projectionDelta=Nt(),this.projectionDeltaWithTransform=Nt()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u=x({},this.latestValues),h=Nt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=G(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=d!==m,y=this.getStack(),b=!y||y.members.length<=1,C=!!(g&&!b&&this.options.crossfade===!0&&!this.path.some(nh));this.animationProgress=0;let T;this.mixTargetDelta=M=>{const S=M/1e3;Fo(h.x,o.x,S),Fo(h.y,o.y,S),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ve(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),eh(this.relativeTarget,this.relativeTargetOrigin,f,S),T&&Nu(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=G()),rt(T,this.relativeTarget)),g&&(this.animationValues=u,Cu(u,c,this.latestValues,S,C,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(yt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=I.update(()=>{Me.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=zt(0)),this.currentAnimation=Ui(this.motionValue,[0,1e3],B(x({},o),{velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta($u),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&zo(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||G();const h=tt(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const f=tt(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}rt(a,l),Kt(a,u),ae(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new zu),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())==null?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())==null?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&_n("z",o,c,this.animationValues);for(let u=0;u<jn.length;u++)_n(`rotate${jn[u]}`,o,c,this.animationValues),_n(`skew${jn[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}applyProjectionStyles(o,a){var m,g;if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Bn(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Bn(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Dt(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=Uu(this.projectionDeltaWithTransform,this.treeScale,u);l&&(h=l(u,h)),o.transform=h;const{x:f,y:d}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,c.animationValues?o.opacity=c===this?(g=(m=u.opacity)!=null?m:this.latestValues.opacity)!=null?g:1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const y in Qt){if(u[y]===void 0)continue;const{correct:b,applyTo:C,isCSSVariable:T}=Qt[y],M=h==="none"?u[y]:b(u[y],c);if(C){const S=C.length;for(let v=0;v<S;v++)o[C[v]]=M}else T?this.options.visualElement.renderState.vars[y]=M:o[y]=M}this.options.layoutId&&(o.pointerEvents=c===this?Bn(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Lo),this.root.sharedNodes.clear()}}}function Wu(t){t.updateLayout()}function Ku(t){var e;const n=((e=t.resumeFrom)==null?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:r}=t.options,o=n.source!==t.layout.source;r==="size"?Mo(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=tt(f);f.min=s[h].min,f.max=f.min+d}):zo(r,n.layoutBox,s)&&Mo(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=tt(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=Nt();ae(a,s,n.layoutBox);const l=Nt();o?ae(l,t.applyTransform(i,!0),n.measuredBox):ae(l,s,n.layoutBox);const c=!Ao(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const m=G();Ve(m,n.layoutBox,f.layoutBox);const g=G();Ve(g,s,d.layoutBox),Co(m,g)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=m,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function Yu(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Hu(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Xu(t){t.clearSnapshot()}function Lo(t){t.clearMeasurements()}function Bo(t){t.isLayoutDirty=!1}function qu(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Io(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Zu(t){t.resolveTargetDelta()}function Ju(t){t.calcProjection()}function Qu(t){t.resetSkewAndRotation()}function th(t){t.removeLeadSnapshot()}function Fo(t,e,n){t.translate=O(e.translate,0,n),t.scale=O(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Oo(t,e,n,s){t.min=O(e.min,n.min,s),t.max=O(e.max,n.max,s)}function eh(t,e,n,s){Oo(t.x,e.x,n.x,s),Oo(t.y,e.y,n.y,s)}function nh(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const sh={duration:.45,ease:[.4,0,.1,1]},jo=t=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),_o=jo("applewebkit/")&&!jo("chrome/")?Math.round:Z;function No(t){t.min=_o(t.min),t.max=_o(t.max)}function ih(t){No(t.x),No(t.y)}function zo(t,e,n){return t==="position"||t==="preserve-aspect"&&!Iu(ko(e),ko(n),.2)}function oh(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}function rh(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const ah=Ro({attachResizeListener:(t,e)=>rh(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Nn={current:void 0},lh=Ro({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Nn.current){const t=new ah({});t.mount(window),t.setOptions({layoutScroll:!0}),Nn.current=t}return Nn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});function Uo(t){if(t)return t.options.allowProjection!==!1?t.projection:Uo(t.parent)}const $o={borderRadius:B(x({},ct),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ct,borderTopRightRadius:ct,borderBottomLeftRadius:ct,borderBottomRightRadius:ct,boxShadow:ls};function le(t){return typeof t=="object"&&t!==null&&"nodeType"in t}class ch extends vt{constructor(e){super(e),hs($o)}initProjection(){const e=this.state.options;this.state.visualElement.projection=new lh(this.state.visualElement.latestValues,e["data-framer-portal-id"]?void 0:Uo(this.state.visualElement.parent)),this.state.visualElement.projection.isPresent=!0,this.setOptions()}beforeMount(){this.initProjection()}setOptions(){const e=this.state.options,{layoutId:n,layout:s,drag:i=!1,dragConstraints:r=!1}=e;this.state.visualElement.projection.setOptions({layout:s,layoutId:n,alwaysMeasureLayout:!!n||!!i||r&&le(r),visualElement:this.state.visualElement,animationType:typeof e.layout=="string"?e.layout:"both",layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade,onExitComplete:()=>{var o,a;!((o=this.state.visualElement.projection)!=null&&o.isPresent)&&this.state.options.layoutId&&!this.state.isExiting&&((a=this.state.options.animatePresenceContext)==null||a.onMotionExitComplete(this.state.presenceContainer,this.state))}})}update(){this.setOptions()}mount(){var e;(e=this.state.visualElement.projection)==null||e.mount(this.state.element)}}function Go(t){return t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1}function zn(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}function uh(t){return e=>Go(e)&&t(e,zn(e))}function ce(t,e,n,s){return Ee(t,e,uh(n),s)}function Wo(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const Ko=Wo("dragHorizontal"),Yo=Wo("dragVertical");function hh(t){let e=!1;if(t==="y")e=Yo();else if(t==="x")e=Ko();else{const n=Ko(),s=Yo();n&&s?e=()=>{n(),s()}:(n&&n(),s&&s())}return e}function Un(t){return t.max-t.min}function dh(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?O(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?O(n,t,s.max):Math.min(t,n)),t}const $n=.35;function fh(t,{top:e,left:n,bottom:s,right:i}){return{x:Ho(t.x,n,i),y:Ho(t.y,e,s)}}function Ho(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function ph(t=$n){return t===!1?t=0:t===!0&&(t=$n),{x:Xo(t,"left","right"),y:Xo(t,"top","bottom")}}function Xo(t,e,n){return{min:qo(t,e),max:qo(t,n)}}function qo(t,e){return typeof t=="number"?t:t[e]||0}function mh(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}function gh(t,e){return{x:Zo(t.x,e.x),y:Zo(t.y,e.y)}}function Zo(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function yh(t,e){let n=.5;const s=Un(t),i=Un(e);return i>s?n=Gt(e.min,e.max-s,t.min):s>i&&(n=Gt(t.min,t.max-i,e.min)),ut(0,1,n)}const Jo=(t,e)=>Math.abs(t-e);function vh(t,e){const n=Jo(t.x,e.x),s=Jo(t.y,e.y);return Math.sqrt(Jn(n,2)+Jn(s,2))}const Qo=new Set(["auto","scroll"]);class tr{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:r=!1,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=f=>{this.handleScroll(f.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Wn(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,m=vh(f.offset,{x:0,y:0})>=3;if(!d&&!m)return;const{point:g}=f,{timestamp:y}=H;this.history.push(B(x({},g),{timestamp:y}));const{onStart:b,onMove:C}=this.handlers;d||(b&&b(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Gn(d,this.transformPagePoint),I.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=Wn(f.type==="pointercancel"?this.lastMoveEventInfo:Gn(d,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,b),g&&g(f,b)},!Go(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const a=zn(e),l=Gn(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=H;this.history=[B(x({},c),{timestamp:u})];const{onSessionStart:h}=n;h&&h(e,Wn(l,this.history)),this.removeListeners=se(ce(this.contextWindow,"pointermove",this.handlePointerMove),ce(this.contextWindow,"pointerup",this.handlePointerUp),ce(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}isScrollable(e){const n=window.getComputedStyle(e);return n.overflow==="auto"||n.overflow==="scroll"||n.overflowX==="auto"||n.overflowX==="scroll"||n.overflowY==="auto"||n.overflowY==="scroll"}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(Qo.has(s.overflowX)||Qo.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:i.x-n.x,y:i.y-n.y};r.x===0&&r.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,i),I.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){var e;this.removeListeners&&this.removeListeners(),(e=this.removeScrollListeners)==null||e.call(this),this.scrollPositions.clear(),yt(this.updatePoint)}}function Gn(t,e){return e?{point:e(t.point)}:t}function er(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Wn({point:t},e){return{point:t,delta:er(t,nr(e)),offset:er(t,bh(e)),velocity:xh(e,.1)}}function bh(t){return t[0]}function nr(t){return t[t.length-1]}function xh(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=nr(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>ot(e)));)n--;if(!s)return{x:0,y:0};const r=Q(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const sr=()=>({min:0,max:0});function wh(){return{x:sr(),y:sr()}}function dt(t){return[t("x"),t("y")]}function Th(t){return!!(U(t)&&t.add)}function ir(t,e){const n=t.getValue("willChange");if(Th(n))return n.add(e)}function or({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Sh(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Ah({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function rr(t,e){t.min=t.min+e,t.max=t.max+e}function Ph(t,e){return or(Sh(t.getBoundingClientRect(),e))}function Eh(t,e,n){const s=Ph(t,n),{scroll:i}=e;return i&&(rr(s.x,i.offset.x),rr(s.y,i.offset.y)),s}function Ch(t){var e;return(e=t.projection)==null?void 0:e.isPresent}function ar({current:t}){return t?t.ownerDocument.defaultView:null}const kh=new WeakMap;class Vh{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=wh(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const s=c=>{n?this.stopAnimation():this.pauseAnimation(),n&&this.snapToCursor(zn(c,"page").point)},i=(c,u)=>{this.stopAnimation();const{drag:h,dragPropagation:f,onDragStart:d}=this.getProps();if(h&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=hh(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dt(g=>{let y=this.getAxisMotionValue(g).get()||0;if(lt.test(y)){const{projection:b}=this.visualElement;if(b&&b.layout){const C=b.layout.layoutBox[g];C&&(y=Un(C)*(parseFloat(y)/100))}}this.originPoint[g]=y}),d&&I.postRender(()=>d(c,u)),ir(this.visualElement,"transform"),this.visualElement.state.setActive("whileDrag",!0)},r=(c,u)=>{const{dragPropagation:h,dragDirectionLock:f,onDirectionLock:d,onDrag:m}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:g}=u;if(f&&this.currentDirection===null){this.currentDirection=Mh(g),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",u.point,g),this.updateAxis("y",u.point,g),this.visualElement.render(),m&&m(c,u)},o=(c,u)=>this.stop(c,u),a=()=>dt(c=>{var u;return this.getAnimationState(c)==="paused"&&((u=this.getAxisMotionValue(c).animation)==null?void 0:u.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new tr(e,{onSessionStart:s,onStart:i,onMove:r,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:ar(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:r}=this.getProps();r&&I.postRender(()=>r(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.visualElement.state.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!De(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=dh(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)==null?void 0:e.layout,r=this.constraints;n&&le(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=fh(i.layoutBox,n):this.constraints=!1,this.elastic=ph(s),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&dt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=mh(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!le(e))return!1;const s=e;ve(s!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=Eh(s,i.root,this.visualElement.getTransformPagePoint());let o=gh(i.layout.layoutBox,r);if(n){const a=n(Ah(o));this.hasMutatedConstraints=!!a,a&&(o=or(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=dt(u=>{if(!De(u,n,this.currentDirection))return;let h=l&&l[u]||{};o&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,m=x(x({type:"inertia",velocity:s?e[u]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10},r),h);return this.startAxisValueAnimation(u,m)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return ir(this.visualElement,e),s.start(Dn(e,s,0,n,this.visualElement,!1))}stopAnimation(){Ch(this.visualElement)&&dt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){dt(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps();return s[n]||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){dt(n=>{const{drag:s}=this.getProps();if(!De(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];r.set(e[n]-O(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!le(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};dt(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=yh({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),dt(o=>{if(!De(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(O(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;kh.set(this.visualElement,this);const e=this.visualElement.current,n=ce(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();le(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),I.read(s);const o=Ee(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(dt(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=l[u].translate,h.set(h.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=$n,dragMomentum:a=!0}=e;return B(x({},e),{drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a})}}function De(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Mh(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Dh extends vt{constructor(e){super(e),this.removeGroupControls=Z,this.removeListeners=Z,this.controls=new Vh(e.visualElement)}mount(){const{dragControls:e}=this.state.options;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let ue=!1;class Rh extends vt{constructor(e){super(e),hs($o),e.getSnapshot=this.getSnapshot.bind(this),e.didUpdate=this.didUpdate.bind(this)}beforeUpdate(e){this.getSnapshot(e,void 0)}update(){this.didUpdate()}didUpdate(){var e,n;ue&&(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&(ue=!1,(n=(e=this.state.visualElement.projection)==null?void 0:e.root)==null||n.didUpdate())}mount(){var e;const n=this.state.options,s=this.state.options.layoutGroup;if(n.layout||n.layoutId){const i=this.state.visualElement.projection;if(i){i.promote();const r=i.getStack();r!=null&&r.prevLead&&!r.prevLead.snapshot&&(r.prevLead.willUpdate(),ue=!0),(e=s==null?void 0:s.group)==null||e.add(i)}Me.hasEverUpdated=!0}this.didUpdate()}beforeUnmount(){this.getSnapshot(this.state.options,!1)}unmount(){const e=this.state.options.layoutGroup,n=this.state.visualElement.projection;n&&(e!=null&&e.group&&(this.state.options.layout||this.state.options.layoutId)&&e.group.remove(n),this.state.options.layoutId&&(ue=!0),this.didUpdate())}getSnapshot(e,n){const s=this.state.visualElement.projection,{drag:i,layoutDependency:r,layout:o,layoutId:a}=e;if(!s||!o&&!a&&!i)return;ue=!0;const l=this.state.options;(i||l.layoutDependency!==r||r===void 0||xe(n)&&s.isPresent!==n)&&s.willUpdate(),xe(n)&&n!==s.isPresent&&(s.isPresent=n,n?s.promote():s.relegate())}}function lr(t){return(e,n)=>{t&&I.postRender(()=>t(e,n))}}class Lh extends vt{constructor(){super(...arguments),this.removePointerDownListener=Z}onPointerDown(e){this.session=new tr(e,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:ar(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:lr((e,n)=>{const{onPanSessionStart:s}=this.state.options;s&&s(e,n)}),onStart:lr((e,n)=>{const{onPanStart:s}=this.state.options;s&&s(e,n)}),onMove:(e,n)=>{const{onPan:s}=this.state.options;s&&s(e,n)},onEnd:(e,n)=>{const{onPanEnd:s}=this.state.options;delete this.session,s&&I.postRender(()=>s(e,n))}}}mount(){this.removePointerDownListener=ce(this.state.element,"pointerdown",this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Bh=[au,gu,vu,wu,Su,ch,Lh,Dh,Rh],Ih={reducedMotion:"never",transition:void 0,nonce:void 0},[Fh]=te("MotionConfig");function Oh(){return Fh(P.computed(()=>Ih))}const jh="data-ap-child",[_h]=te("AnimatePresenceContext");function Re(t){if(t)return t.nodeType===3||t.nodeType===8?Re(t.nextSibling):t}const[Nh]=te("LazyMotionContext");function zh(t){var e;const n=ea(null),s=sa({}),i=Oh(),r=_h({}),o=Nh({features:P.ref([]),strict:!1});if(process.env.NODE_ENV!=="production"&&((e=t.features)!=null&&e.length)&&o.strict){const m="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?_t(!1,m):ve(!1,m)}const a=P.useAttrs();function l(){return s.id&&t.layoutId?`${s.id}-${t.layoutId}`:t.layoutId||void 0}function c(){var m,g;return B(x({},t),{lazyMotionContext:o,layoutId:l(),transition:(m=t.transition)!=null?m:i.value.transition,layoutGroup:s,motionConfig:i.value,inViewOptions:(g=t.inViewOptions)!=null?g:i.value.inViewOptions,animatePresenceContext:r,initial:r.initial===!1?r.initial:t.initial===!0?void 0:t.initial})}function u(){return x(x({},a),c())}const h=new fa(u(),n);na(h);function f(){var T,M;var m;const g=h.type==="svg",y=x({},a);Object.keys(a).forEach(S=>{U(a[S])&&(y[S]=a[S].get())});let b=x(x({},t.style),g?{}:((m=h.visualElement)==null?void 0:m.latestValues)||h.baseTarget);if(g){const{attrs:S,style:v}=Ca(x(x({},h.isMounted()?h.target:h.baseTarget),b));(v.transform||S.transformOrigin)&&(v.transformOrigin=(T=S.transformOrigin)!=null?T:"50% 50%",delete S.transformOrigin),v.transform&&(v.transformBox=(M=v.transformBox)!=null?M:"fill-box",delete S.transformBox),Object.assign(y,S),b=v}t.drag&&t.dragListener!==!1&&Object.assign(b,{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`});const C=Sa(b);return C&&(y.style=C),y}const d=P.getCurrentInstance().proxy;return P.onBeforeMount(()=>{h.beforeMount()}),P.onMounted(()=>{if(h.mount(Re(d.$el),u(),$h(d)),r.register&&h.element){const m=h.element.closest(`[${jh}]`);m?(h.presenceContainer=m,r.register(m,h)):r.registerPending&&r.registerPending(h)}}),P.onBeforeUnmount(()=>h.beforeUnmount()),P.onUnmounted(()=>{r.unregisterPending&&r.unregisterPending(h);const m=Re(d.$el);m!=null&&m.isConnected||h.unmount()}),P.onBeforeUpdate(()=>{h.beforeUpdate(u())}),P.onUpdated(()=>{h.update(u())}),{getProps:c,getAttrs:f,layoutGroup:s,state:h}}const Uh={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},hover:{type:[String,Array,Object]},press:{type:[String,Array,Object]},inView:{type:[String,Array,Object]},focus:{type:[String,Array,Object]},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object],default:({hover:t})=>(process.env.NODE_ENV==="development"&&t&&_t(!0,"hover is deprecated. Use whileHover instead."),t)},whilePress:{type:[String,Array,Object],default:({press:t})=>(process.env.NODE_ENV==="development"&&t&&_t(!0,"press is deprecated. Use whilePress instead."),t)},whileInView:{type:[String,Array,Object],default:({inView:t})=>(process.env.NODE_ENV==="development"&&t&&_t(!0,"inView is deprecated. Use whileInView instead."),t)},whileFocus:{type:[String,Array,Object],default:({focus:t})=>(process.env.NODE_ENV==="development"&&t&&_t(!0,"focus is deprecated. Use whileFocus instead."),t)},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},layoutGroup:{type:Object},motionConfig:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:null,default:void 0},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}};function $h(t){var e;const n=((e=Re(t.$el))==null?void 0:e.style.display)==="none";return t.$.vnode.transition&&n}const Gh=new Map,Wh=new Map;function Kh(t){if(!Array.isArray(t))return[t];const e=[];for(const n of t)Array.isArray(n)?e.push(...n):e.push(n);return e}const Yh=["area","img","input"];function Hh(t,e,n){var s,i;if(typeof t=="string"&&Yh.includes(t))return P.h(t,e);if(t==="template"){if(!n.default)return null;const r=Kh(n.default()),o=r.findIndex(u=>u.type!==P.Comment);if(o===-1)return r;const a=r[o];(s=a.props)==null||delete s.ref;const l=a.props?P.mergeProps(e,a.props):e;e.class&&((i=a.props)!=null&&i.class)&&delete a.props.class;const c=P.cloneVNode(a,l);for(const u in l)u.startsWith("on")&&(c.props||(c.props={}),c.props[u]=l[u]);return r.length===1?c:(r[o]=c,r)}return null}function cr(t,e={}){var n;const s=typeof t=="string",i=s?t:t.name||"",r=((n=e.features)==null?void 0:n.length)>0?Gh:Wh;if(s&&(r!=null&&r.has(t)))return r.get(t);const o=P.defineComponent({inheritAttrs:!1,props:B(x({},Uh),{features:{type:Object,default:()=>e.features||[]},as:{type:[String,Object],default:t||"div"}}),name:i?`motion.${i}`:"Motion",setup(a,{slots:l}){const{getProps:c,getAttrs:u,state:h}=zh(a);function f(){const d=h.element;if((!(typeof a.as=="object")||a.asChild)&&d){const{style:g}=u();if(g)for(const[y,b]of Object.entries(g))d.style[y]=b}}return()=>{const d=c(),m=u(),g=a.asChild?"template":a.as,y=B(x(x({},e.forwardMotionProps||a.forwardMotionProps?d:{}),m),{onVnodeUpdated:f}),b=Hh(g,y,l);return b!==null?b:P.h(g,x({},y),l)}}});return s&&(r==null||r.set(t,o)),o}function Xh(t=[]){return new Proxy({},{get(e,n){return n==="create"?(s,i)=>cr(s,B(x({},i),{features:t})):cr(n,{features:t})}})}const ur=Xh(Bh);ur.create("div");function hr(t){var e,n,s="";if(typeof t=="string"||typeof t=="number")s+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=hr(t[e]))&&(s&&(s+=" "),s+=n)}else for(n in t)t[n]&&(s&&(s+=" "),s+=n);return s}function qh(){for(var t,e,n=0,s="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=hr(t))&&(s&&(s+=" "),s+=e);return s}const Zh=(t,e)=>{const n=new Array(t.length+e.length);for(let s=0;s<t.length;s++)n[s]=t[s];for(let s=0;s<e.length;s++)n[t.length+s]=e[s];return n},Jh=(t,e)=>({classGroupId:t,validator:e}),dr=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),Le="-",fr=[],Qh="arbitrary..",td=t=>{const e=nd(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=t;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return ed(o);const a=o.split(Le),l=a[0]===""&&a.length>1?1:0;return pr(a,l,e)},getConflictingClassGroupIds:(o,a)=>{if(a){const l=s[o],c=n[o];return l?c?Zh(c,l):l:c||fr}return n[o]||fr}}},pr=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const i=t[e],r=n.nextPart.get(i);if(r){const c=pr(t,e+1,r);if(c)return c}const o=n.validators;if(o===null)return;const a=e===0?t.join(Le):t.slice(e).join(Le),l=o.length;for(let c=0;c<l;c++){const u=o[c];if(u.validator(a))return u.classGroupId}},ed=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),s=e.slice(0,n);return s?Qh+s:void 0})(),nd=t=>{const{theme:e,classGroups:n}=t;return sd(n,e)},sd=(t,e)=>{const n=dr();for(const s in t){const i=t[s];Kn(i,n,s,e)}return n},Kn=(t,e,n,s)=>{const i=t.length;for(let r=0;r<i;r++){const o=t[r];id(o,e,n,s)}},id=(t,e,n,s)=>{if(typeof t=="string"){od(t,e,n);return}if(typeof t=="function"){rd(t,e,n,s);return}ad(t,e,n,s)},od=(t,e,n)=>{const s=t===""?e:mr(e,t);s.classGroupId=n},rd=(t,e,n,s)=>{if(ld(t)){Kn(t(s),e,n,s);return}e.validators===null&&(e.validators=[]),e.validators.push(Jh(n,t))},ad=(t,e,n,s)=>{const i=Object.entries(t),r=i.length;for(let o=0;o<r;o++){const[a,l]=i[o];Kn(l,mr(e,a),n,s)}},mr=(t,e)=>{let n=t;const s=e.split(Le),i=s.length;for(let r=0;r<i;r++){const o=s[r];let a=n.nextPart.get(o);a||(a=dr(),n.nextPart.set(o,a)),n=a}return n},ld=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,cd=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),s=Object.create(null);const i=(r,o)=>{n[r]=o,e++,e>t&&(e=0,s=n,n=Object.create(null))};return{get(r){let o=n[r];if(o!==void 0)return o;if((o=s[r])!==void 0)return i(r,o),o},set(r,o){r in n?n[r]=o:i(r,o)}}},Yn="!",gr=":",ud=[],yr=(t,e,n,s,i)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:s,isExternal:i}),hd=t=>{const{prefix:e,experimentalParseClassName:n}=t;let s=i=>{const r=[];let o=0,a=0,l=0,c;const u=i.length;for(let g=0;g<u;g++){const y=i[g];if(o===0&&a===0){if(y===gr){r.push(i.slice(l,g)),l=g+1;continue}if(y==="/"){c=g;continue}}y==="["?o++:y==="]"?o--:y==="("?a++:y===")"&&a--}const h=r.length===0?i:i.slice(l);let f=h,d=!1;h.endsWith(Yn)?(f=h.slice(0,-1),d=!0):h.startsWith(Yn)&&(f=h.slice(1),d=!0);const m=c&&c>l?c-l:void 0;return yr(r,d,f,m)};if(e){const i=e+gr,r=s;s=o=>o.startsWith(i)?r(o.slice(i.length)):yr(ud,!1,o,void 0,!0)}if(n){const i=s;s=r=>n({className:r,parseClassName:i})}return s},dd=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,s)=>{e.set(n,1e6+s)}),n=>{const s=[];let i=[];for(let r=0;r<n.length;r++){const o=n[r],a=o[0]==="[",l=e.has(o);a||l?(i.length>0&&(i.sort(),s.push(...i),i=[]),s.push(o)):i.push(o)}return i.length>0&&(i.sort(),s.push(...i)),s}},fd=t=>x({cache:cd(t.cacheSize),parseClassName:hd(t),sortModifiers:dd(t),postfixLookupClassGroupIds:pd(t)},td(t)),pd=t=>{const e=Object.create(null),n=t.postfixLookupClassGroups;if(n)for(let s=0;s<n.length;s++)e[n[s]]=!0;return e},md=/\s+/,gd=(t,e)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:i,sortModifiers:r,postfixLookupClassGroupIds:o}=e,a=[],l=t.trim().split(md);let c="";for(let u=l.length-1;u>=0;u-=1){const h=l[u],{isExternal:f,modifiers:d,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:y}=n(h);if(f){c=h+(c.length>0?" "+c:c);continue}let b=!!y,C;if(b){const V=g.substring(0,y);C=s(V);const p=C&&o[C]?s(g):void 0;p&&p!==C&&(C=p,b=!1)}else C=s(g);if(!C){if(!b){c=h+(c.length>0?" "+c:c);continue}if(C=s(g),!C){c=h+(c.length>0?" "+c:c);continue}b=!1}const T=d.length===0?"":d.length===1?d[0]:r(d).join(":"),M=m?T+Yn:T,S=M+C;if(a.indexOf(S)>-1)continue;a.push(S);const v=i(C,b);for(let V=0;V<v.length;++V){const p=v[V];a.push(M+p)}c=h+(c.length>0?" "+c:c)}return c},yd=(...t)=>{let e=0,n,s,i="";for(;e<t.length;)(n=t[e++])&&(s=vr(n))&&(i&&(i+=" "),i+=s);return i},vr=t=>{if(typeof t=="string")return t;let e,n="";for(let s=0;s<t.length;s++)t[s]&&(e=vr(t[s]))&&(n&&(n+=" "),n+=e);return n},br=(t,...e)=>{let n,s,i,r;const o=l=>{const c=e.reduce((u,h)=>h(u),t());return n=fd(c),s=n.cache.get,i=n.cache.set,r=a,a(l)},a=l=>{const c=s(l);if(c)return c;const u=gd(l,n);return i(l,u),u};return r=o,(...l)=>r(yd(...l))},vd=[],W=t=>{const e=n=>n[t]||vd;return e.isThemeGetter=!0,e},xr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,wr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,bd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,xd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Td=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Sd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ad=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,St=t=>bd.test(t),R=t=>!!t&&!Number.isNaN(Number(t)),ft=t=>!!t&&Number.isInteger(Number(t)),Hn=t=>t.endsWith("%")&&R(t.slice(0,-1)),bt=t=>xd.test(t),Tr=()=>!0,Pd=t=>wd.test(t)&&!Td.test(t),Xn=()=>!1,Ed=t=>Sd.test(t),Cd=t=>Ad.test(t),kd=t=>!A(t)&&!E(t),Vd=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),Md=t=>At(t,kr,Xn),A=t=>xr.test(t),Rt=t=>At(t,Vr,Pd),Sr=t=>At(t,jd,R),Dd=t=>At(t,Dr,Tr),Rd=t=>At(t,Mr,Xn),Ar=t=>At(t,Er,Xn),Ld=t=>At(t,Cr,Cd),Be=t=>At(t,Rr,Ed),E=t=>wr.test(t),he=t=>Lt(t,Vr),Bd=t=>Lt(t,Mr),Pr=t=>Lt(t,Er),Id=t=>Lt(t,kr),Fd=t=>Lt(t,Cr),Ie=t=>Lt(t,Rr,!0),Od=t=>Lt(t,Dr,!0),At=(t,e,n)=>{const s=xr.exec(t);return s?s[1]?e(s[1]):n(s[2]):!1},Lt=(t,e,n=!1)=>{const s=wr.exec(t);return s?s[1]?e(s[1]):n:!1},Er=t=>t==="position"||t==="percentage",Cr=t=>t==="image"||t==="url",kr=t=>t==="length"||t==="size"||t==="bg-size",Vr=t=>t==="length",jd=t=>t==="number",Mr=t=>t==="family-name",Dr=t=>t==="number"||t==="weight",Rr=t=>t==="shadow",Lr=()=>{const t=W("color"),e=W("font"),n=W("text"),s=W("font-weight"),i=W("tracking"),r=W("leading"),o=W("breakpoint"),a=W("container"),l=W("spacing"),c=W("radius"),u=W("shadow"),h=W("inset-shadow"),f=W("text-shadow"),d=W("drop-shadow"),m=W("blur"),g=W("perspective"),y=W("aspect"),b=W("ease"),C=W("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...M(),E,A],v=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],p=()=>[E,A,l],D=()=>[St,"full","auto",...p()],L=()=>[ft,"none","subgrid",E,A],N=()=>["auto",{span:["full",ft,E,A]},ft,E,A],at=()=>[ft,"auto",E,A],X=()=>["auto","min","max","fr",E,A],Bt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],et=()=>["start","end","center","stretch","center-safe","end-safe"],nt=()=>["auto",...p()],Pt=()=>[St,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...p()],de=()=>[St,"screen","full","dvw","lvw","svw","min","max","fit",...p()],st=()=>[St,"screen","full","lh","dvh","lvh","svh","min","max","fit",...p()],k=()=>[t,E,A],fe=()=>[...M(),Pr,Ar,{position:[E,A]}],pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],me=()=>["auto","cover","contain",Id,Md,{size:[E,A]}],Ht=()=>[Hn,he,Rt],K=()=>["","none","full",c,E,A],Y=()=>["",R,he,Rt],It=()=>["solid","dashed","dotted","double"],Et=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>[R,Hn,Pr,Ar],Ft=()=>["","none",m,E,A],pt=()=>["none",R,E,A],mt=()=>["none",R,E,A],Zn=()=>[R,E,A],_e=()=>[St,"full",...p()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[bt],breakpoint:[bt],color:[Tr],container:[bt],"drop-shadow":[bt],ease:["in","out","in-out"],font:[kd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[bt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[bt],shadow:[bt],spacing:["px",R],text:[bt],"text-shadow":[bt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",St,A,E,y]}],container:["container"],"container-type":[{"@container":["","normal","size",E,A]}],"container-named":[Vd],columns:[{columns:[R,A,E,a]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:v()}],"overflow-x":[{"overflow-x":v()}],"overflow-y":[{"overflow-y":v()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[ft,"auto",E,A]}],basis:[{basis:[St,"full","auto",a,...p()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[R,St,"auto","initial","none",A]}],grow:[{grow:["",R,E,A]}],shrink:[{shrink:["",R,E,A]}],order:[{order:[ft,"first","last","none",E,A]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":at()}],"col-end":[{"col-end":at()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":at()}],"row-end":[{"row-end":at()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:p()}],"gap-x":[{"gap-x":p()}],"gap-y":[{"gap-y":p()}],"justify-content":[{justify:[...Bt(),"normal"]}],"justify-items":[{"justify-items":[...et(),"normal"]}],"justify-self":[{"justify-self":["auto",...et()]}],"align-content":[{content:["normal",...Bt()]}],"align-items":[{items:[...et(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...et(),{baseline:["","last"]}]}],"place-content":[{"place-content":Bt()}],"place-items":[{"place-items":[...et(),"baseline"]}],"place-self":[{"place-self":["auto",...et()]}],p:[{p:p()}],px:[{px:p()}],py:[{py:p()}],ps:[{ps:p()}],pe:[{pe:p()}],pbs:[{pbs:p()}],pbe:[{pbe:p()}],pt:[{pt:p()}],pr:[{pr:p()}],pb:[{pb:p()}],pl:[{pl:p()}],m:[{m:nt()}],mx:[{mx:nt()}],my:[{my:nt()}],ms:[{ms:nt()}],me:[{me:nt()}],mbs:[{mbs:nt()}],mbe:[{mbe:nt()}],mt:[{mt:nt()}],mr:[{mr:nt()}],mb:[{mb:nt()}],ml:[{ml:nt()}],"space-x":[{"space-x":p()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":p()}],"space-y-reverse":["space-y-reverse"],size:[{size:Pt()}],"inline-size":[{inline:["auto",...de()]}],"min-inline-size":[{"min-inline":["auto",...de()]}],"max-inline-size":[{"max-inline":["none",...de()]}],"block-size":[{block:["auto",...st()]}],"min-block-size":[{"min-block":["auto",...st()]}],"max-block-size":[{"max-block":["none",...st()]}],w:[{w:[a,"screen",...Pt()]}],"min-w":[{"min-w":[a,"screen","none",...Pt()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...Pt()]}],h:[{h:["screen","lh",...Pt()]}],"min-h":[{"min-h":["screen","lh","none",...Pt()]}],"max-h":[{"max-h":["screen","lh",...Pt()]}],"font-size":[{text:["base",n,he,Rt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,Od,Dd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Hn,A]}],"font-family":[{font:[Bd,Rd,e]}],"font-features":[{"font-features":[A]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,E,A]}],"line-clamp":[{"line-clamp":[R,"none",E,Sr]}],leading:[{leading:[r,...p()]}],"list-image":[{"list-image":["none",E,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",E,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...It(),"wavy"]}],"text-decoration-thickness":[{decoration:[R,"from-font","auto",E,Rt]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[R,"auto",E,A]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:p()}],"tab-size":[{tab:[ft,E,A]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",E,A]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",E,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:fe()}],"bg-repeat":[{bg:pe()}],"bg-size":[{bg:me()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ft,E,A],radial:["",E,A],conic:[ft,E,A]},Fd,Ld]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:Ht()}],"gradient-via-pos":[{via:Ht()}],"gradient-to-pos":[{to:Ht()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-bs":[{"border-bs":Y()}],"border-w-be":[{"border-be":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...It(),"hidden","none"]}],"divide-style":[{divide:[...It(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-bs":[{"border-bs":k()}],"border-color-be":[{"border-be":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...It(),"none","hidden"]}],"outline-offset":[{"outline-offset":[R,E,A]}],"outline-w":[{outline:["",R,he,Rt]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",u,Ie,Be]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",h,Ie,Be]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[R,Rt]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",f,Ie,Be]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[R,E,A]}],"mix-blend":[{"mix-blend":[...Et(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Et()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[R]}],"mask-image-linear-from-pos":[{"mask-linear-from":_()}],"mask-image-linear-to-pos":[{"mask-linear-to":_()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":_()}],"mask-image-t-to-pos":[{"mask-t-to":_()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":_()}],"mask-image-r-to-pos":[{"mask-r-to":_()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":_()}],"mask-image-b-to-pos":[{"mask-b-to":_()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":_()}],"mask-image-l-to-pos":[{"mask-l-to":_()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":_()}],"mask-image-x-to-pos":[{"mask-x-to":_()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":_()}],"mask-image-y-to-pos":[{"mask-y-to":_()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[E,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":_()}],"mask-image-radial-to-pos":[{"mask-radial-to":_()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":M()}],"mask-image-conic-pos":[{"mask-conic":[R]}],"mask-image-conic-from-pos":[{"mask-conic-from":_()}],"mask-image-conic-to-pos":[{"mask-conic-to":_()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:fe()}],"mask-repeat":[{mask:pe()}],"mask-size":[{mask:me()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",E,A]}],filter:[{filter:["","none",E,A]}],blur:[{blur:Ft()}],brightness:[{brightness:[R,E,A]}],contrast:[{contrast:[R,E,A]}],"drop-shadow":[{"drop-shadow":["","none",d,Ie,Be]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",R,E,A]}],"hue-rotate":[{"hue-rotate":[R,E,A]}],invert:[{invert:["",R,E,A]}],saturate:[{saturate:[R,E,A]}],sepia:[{sepia:["",R,E,A]}],"backdrop-filter":[{"backdrop-filter":["","none",E,A]}],"backdrop-blur":[{"backdrop-blur":Ft()}],"backdrop-brightness":[{"backdrop-brightness":[R,E,A]}],"backdrop-contrast":[{"backdrop-contrast":[R,E,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",R,E,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R,E,A]}],"backdrop-invert":[{"backdrop-invert":["",R,E,A]}],"backdrop-opacity":[{"backdrop-opacity":[R,E,A]}],"backdrop-saturate":[{"backdrop-saturate":[R,E,A]}],"backdrop-sepia":[{"backdrop-sepia":["",R,E,A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":p()}],"border-spacing-x":[{"border-spacing-x":p()}],"border-spacing-y":[{"border-spacing-y":p()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",E,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[R,"initial",E,A]}],ease:[{ease:["linear","initial",b,E,A]}],delay:[{delay:[R,E,A]}],animate:[{animate:["none",C,E,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,E,A]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:pt()}],"rotate-x":[{"rotate-x":pt()}],"rotate-y":[{"rotate-y":pt()}],"rotate-z":[{"rotate-z":pt()}],scale:[{scale:mt()}],"scale-x":[{"scale-x":mt()}],"scale-y":[{"scale-y":mt()}],"scale-z":[{"scale-z":mt()}],"scale-3d":["scale-3d"],skew:[{skew:Zn()}],"skew-x":[{"skew-x":Zn()}],"skew-y":[{"skew-y":Zn()}],transform:[{transform:[E,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:_e()}],"translate-x":[{"translate-x":_e()}],"translate-y":[{"translate-y":_e()}],"translate-z":[{"translate-z":_e()}],"translate-none":["translate-none"],zoom:[{zoom:[ft,E,A]}],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",E,A]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":k()}],"scrollbar-track-color":[{"scrollbar-track":k()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mbs":[{"scroll-mbs":p()}],"scroll-mbe":[{"scroll-mbe":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pbs":[{"scroll-pbs":p()}],"scroll-pbe":[{"scroll-pbe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",E,A]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[R,he,Rt,Sr]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},_d=(t,{cacheSize:e,prefix:n,experimentalParseClassName:s,extend:i={},override:r={}})=>(Yt(t,"cacheSize",e),Yt(t,"prefix",n),Yt(t,"experimentalParseClassName",s),Fe(t.theme,r.theme),Fe(t.classGroups,r.classGroups),Fe(t.conflictingClassGroups,r.conflictingClassGroups),Fe(t.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),Yt(t,"postfixLookupClassGroups",r.postfixLookupClassGroups),Yt(t,"orderSensitiveModifiers",r.orderSensitiveModifiers),Oe(t.theme,i.theme),Oe(t.classGroups,i.classGroups),Oe(t.conflictingClassGroups,i.conflictingClassGroups),Oe(t.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),qn(t,i,"postfixLookupClassGroups"),qn(t,i,"orderSensitiveModifiers"),t),Yt=(t,e,n)=>{n!==void 0&&(t[e]=n)},Fe=(t,e)=>{if(e)for(const n in e)Yt(t,n,e[n])},Oe=(t,e)=>{if(e)for(const n in e)qn(t,e,n)},qn=(t,e,n)=>{const s=e[n];s!==void 0&&(t[n]=t[n]?t[n].concat(s):s)},Nd=((t,...e)=>typeof t=="function"?br(Lr,t,...e):br(()=>_d(Lr(),t),...e))({extend:{theme:{color:["accent","on-accent","accent-hover","accent-subtle","accent-subtle-hover","accent-strong","accent-strong-hover","fg","fg-accent","surface","surface-muted","edge","danger","danger-hover"],radius:["btn"]}}});function je(...t){return Nd(qh(t))}const zd=["aria-label","aria-disabled"],Ud=["aria-checked","aria-label","tabindex","disabled","onClick","onKeydown"],$d=P.defineComponent({__name:"index",props:{items:{},modelValue:{},size:{default:"m"},fullWidth:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},ui:{default:()=>({})},ariaLabel:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n={root:"relative isolate inline-grid grid-rows-1 items-stretch gap-1 overflow-hidden rounded-full border border-edge bg-surface font-sans",segment:["group relative z-[1] row-start-1 flex min-w-0 items-center justify-center rounded-full px-4 font-sans","disabled:cursor-not-allowed disabled:opacity-50","hover:aria-[checked=false]:not-disabled:bg-[color-mix(in_srgb,var(--color-text-primary)_5%,transparent)]","focus-visible:outline focus-visible:outline-[length:var(--border-m)] focus-visible:outline-[color:var(--color-text-accent)] focus-visible:outline-offset-[length:var(--border-m)]"].join(" "),segmentSelected:"",label:["relative text-sm leading-[1.3] whitespace-nowrap font-normal","text-[color:var(--color-text-tertiary)]","group-aria-[checked=true]:text-[color:var(--color-text-primary-inverse)] group-aria-[checked=true]:font-semibold"].join(" "),labelSelected:"",indicator:["z-0 row-start-1 self-stretch rounded-full","bg-[color:var(--color-blue-grey-600)]","motion-reduce:!transition-none"].join(" ")},s={size:{s:{root:"h-8 p-1"},m:{root:"h-12 p-2"}},fullWidth:{true:{root:"w-full"}}},i=t,r=e,o=P.ref([]),a=(v,V)=>{o.value[V]=v},l=v=>i.modelValue===v.value,c=v=>i.disabled||!!v.disabled,u=v=>{c(v)||l(v)||r("update:modelValue",v.value)},h=()=>{const v=i.items.findIndex(V=>V.value===i.modelValue);return v>=0&&!c(i.items[v])?v:i.items.findIndex(V=>!c(V))},f=v=>{const V=h();return V<0?-1:v===V?0:-1},d=(v,V)=>{const p=i.items;let D=v;for(let L=0;L<p.length;L++)if(D=(D+V+p.length)%p.length,!c(p[D]))return D;return v},m=(v,V)=>{var at;const p=i.items,D=p[V];if(!D||c(D))return;let L;switch(v.key){case"ArrowRight":case"ArrowDown":L=d(V,1);break;case"ArrowLeft":case"ArrowUp":L=d(V,-1);break;case"Home":L=p.findIndex(X=>!c(X));break;case"End":L=[...p].reverse().findIndex(X=>!c(X)),L>=0&&(L=p.length-1-L);break;default:return}if(L<0||L===V)return;v.preventDefault();const N=p[L];N&&(u(N),(at=o.value[L])==null||at.focus())},g=P.computed(()=>{const v=i.items.findIndex(V=>V.value===i.modelValue);return v>=0?v:0}),y=P.computed(()=>{const v=i.items.length;if(v!==0)return i.fullWidth?`repeat(${v}, minmax(0, 1fr))`:`repeat(${v}, auto)`}),b=P.computed(()=>je(n.root,s.size[i.size].root,i.fullWidth&&s.fullWidth.true.root,i.ui.root)),C=v=>je(n.segment,i.ui.segment,l(v)&&n.segmentSelected,l(v)&&i.ui.segmentSelected),T=v=>je(n.label,i.ui.label,l(v)&&n.labelSelected,l(v)&&i.ui.labelSelected),M=P.computed(()=>je(n.indicator,i.ui.indicator)),S={type:"spring",visualDuration:.2,bounce:.2};return(v,V)=>(P.openBlock(),P.createElementBlock("div",{"data-testid":"segmented-control",role:"radiogroup",class:P.normalizeClass(b.value),style:P.normalizeStyle(y.value?{gridTemplateColumns:y.value}:void 0),"aria-label":t.ariaLabel,"aria-disabled":t.disabled||void 0},[t.items.length>0?(P.openBlock(),P.createBlock(P.unref(ur).div,{key:0,layout:"","data-testid":"segmented-control-indicator","data-state":t.modelValue,class:P.normalizeClass(M.value),style:P.normalizeStyle({gridColumn:g.value+1}),transition:S,"aria-hidden":"true"},null,8,["data-state","class","style"])):P.createCommentVNode("",!0),(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(t.items,(p,D)=>(P.openBlock(),P.createElementBlock("button",{key:p.value,ref_for:!0,ref:L=>a(L,D),type:"button",role:"radio","data-testid":"segmented-control-segment",class:P.normalizeClass(C(p)),style:P.normalizeStyle({gridColumn:D+1}),"aria-checked":l(p),"aria-label":p.label,tabindex:f(D),disabled:c(p),onClick:L=>u(p),onKeydown:L=>m(L,D)},[P.createElementVNode("span",{"data-testid":"segmented-control-label",class:P.normalizeClass(T(p))},P.toDisplayString(p.label),3)],46,Ud))),128))],14,zd))}});F.AzSegmentedControl=$d,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(At,V){typeof exports=="object"&&typeof module!="undefined"?V(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],V):(At=typeof globalThis!="undefined"?globalThis:At||self,V(At["segmented-control"]={},At.Vue))})(this,function(At,V){Object.defineProperty(At,Symbol.toStringTag,{value:"Module"});var ve=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],rt={value:null,addProjectionMetrics:null};function Io(t,e){let i=new Set,n=new Set,r=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function c(h){s.has(h)&&(u.schedule(h),t()),l++,h(a)}const u={schedule:(h,d=!1,f=!1)=>{const g=f&&r?i:n;return d&&s.add(h),g.has(h)||g.add(h),h},cancel:h=>{n.delete(h),s.delete(h)},process:h=>{if(a=h,r){o=!0;return}r=!0,[i,n]=[n,i],i.forEach(c),e&&rt.value&&rt.value.frameloop[e].push(l),l=0,i.clear(),r=!1,o&&(o=!1,u.process(h))}};return u}var ft={},Fo=40;function qi(t,e){let i=!1,n=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>i=!0,s=ve.reduce((A,D)=>(A[D]=Io(o,e?D:void 0),A),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:d,render:f,postRender:g}=s,v=()=>{const A=ft.useManualTiming?r.timestamp:performance.now();i=!1,ft.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(A-r.timestamp,Fo),1)),r.timestamp=A,r.isProcessing=!0,a.process(r),l.process(r),c.process(r),u.process(r),h.process(r),d.process(r),f.process(r),g.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(v))},b=()=>{i=!0,n=!0,r.isProcessing||t(v)};return{schedule:ve.reduce((A,D)=>{const P=s[D];return A[D]=(y,k=!1,p=!1)=>(i||b(),P.schedule(y,k,p)),A},{}),cancel:A=>{for(let D=0;D<ve.length;D++)s[ve[D]].cancel(A)},state:r,steps:s}}var X=t=>t,{schedule:B,cancel:pt,state:$,steps:Ne}=qi(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:X,!0),ye;function _o(){ye=void 0}var Y={now:()=>(ye===void 0&&Y.set($.isProcessing||ft.useManualTiming?$.timestamp:performance.now()),ye),set:t=>{ye=t,queueMicrotask(_o)}},it=t=>t*1e3,H=t=>t/1e3;function zo(t,e){const i=Y.now(),n=({timestamp:r})=>{const o=r-i;o>=e&&(pt(n),t(o-e))};return B.setup(n,!0),()=>pt(n)}function Xt(t){"@babel/helpers - typeof";return Xt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xt(t)}function No(t,e){if(Xt(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var n=i.call(t,e||"default");if(Xt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Uo(t){var e=No(t,"string");return Xt(e)=="symbol"?e:e+""}function Go(t,e,i){return(e=Uo(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Zi(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),i.push.apply(i,n)}return i}function m(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?Zi(Object(i),!0).forEach(function(n){Go(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Zi(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}var Ht=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),vt=Ht("deg"),st=Ht("%"),x=Ht("px"),$o=Ht("vh"),Wo=Ht("vw"),Ji=(()=>m(m({},st),{},{parse:t=>st.parse(t)/100,transform:t=>st.transform(t*100)}))();function Qi(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var ot={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(x.test(t))t=parseFloat(t);else return t;return`${Qi(t,e.target.x)}% ${Qi(t,e.target.y)}%`}},at=(t,e,i)=>i>e?e:i<t?t:i,Ot={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},qt=m(m({},Ot),{},{transform:t=>at(0,1,t)}),be=m(m({},Ot),{},{default:1}),Zt=t=>Math.round(t*1e5)/1e5,Ue=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ko(t){return t==null}var Yo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ge=(t,e)=>i=>!!(typeof i=="string"&&Yo.test(i)&&i.startsWith(t)||e&&!Ko(i)&&Object.prototype.hasOwnProperty.call(i,e)),tn=(t,e,i)=>n=>{if(typeof n!="string")return n;const[r,o,s,a]=n.match(Ue);return{[t]:parseFloat(r),[e]:parseFloat(o),[i]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Xo=t=>at(0,255,t),$e=m(m({},Ot),{},{transform:t=>Math.round(Xo(t))}),Pt={test:Ge("rgb","red"),parse:tn("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+$e.transform(t)+", "+$e.transform(e)+", "+$e.transform(i)+", "+Zt(qt.transform(n))+")"};function Ho(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}}var We={test:Ge("#"),parse:Ho,transform:Pt.transform},It={test:Ge("hsl","hue"),parse:tn("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+st.transform(Zt(e))+", "+st.transform(Zt(i))+", "+Zt(qt.transform(n))+")"},F={test:t=>Pt.test(t)||We.test(t)||It.test(t),parse:t=>Pt.test(t)?Pt.parse(t):It.test(t)?It.parse(t):We.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Pt.transform(t):It.transform(t),getAnimatableNone:t=>{const e=F.parse(t);return e.alpha=0,F.transform(e)}},qo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Zo(t){var e,i;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ue))==null?void 0:e.length)||0)+(((i=t.match(qo))==null?void 0:i.length)||0)>0}var en="number",nn="color",Jo="var",Qo="var(",rn="${}",ta=/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 Jt(t){const e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[];let o=0;return{values:i,split:e.replace(ta,s=>(F.test(s)?(n.color.push(o),r.push(nn),i.push(F.parse(s))):s.startsWith(Qo)?(n.var.push(o),r.push(Jo),i.push(s)):(n.number.push(o),r.push(en),i.push(parseFloat(s))),++o,rn)).split(rn),indexes:n,types:r}}function sn(t){return Jt(t).values}function on(t){const{split:e,types:i}=Jt(t),n=e.length;return r=>{let o="";for(let s=0;s<n;s++)if(o+=e[s],r[s]!==void 0){const a=i[s];a===en?o+=Zt(r[s]):a===nn?o+=F.transform(r[s]):o+=r[s]}return o}}var ea=t=>typeof t=="number"?0:F.test(t)?F.getAnimatableNone(t):t;function ia(t){const e=sn(t);return on(t)(e.map(ea))}var yt={test:Zo,parse:sn,createTransformer:on,getAnimatableNone:ia},j=(t,e,i)=>t+(e-t)*i,an={correct:(t,{treeScale:e,projectionDelta:i})=>{const n=t,r=yt.parse(t);if(r.length>5)return n;const o=yt.createTransformer(t),s=typeof r[0]!="number"?1:0,a=i.x.scale*e.x,l=i.y.scale*e.y;r[0+s]/=a,r[1+s]/=l;const c=j(a,l,.5);return typeof r[2+s]=="number"&&(r[2+s]/=c),typeof r[3+s]=="number"&&(r[3+s]/=c),o(r)}},ln=t=>e=>typeof e=="string"&&e.startsWith(t),Ke=ln("--"),na=ln("var(--"),Ye=t=>na(t)?ra.test(t.split("/*")[0].trim()):!1,ra=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function cn(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}var Qt={borderRadius:m(m({},ot),{},{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ot,borderTopRightRadius:ot,borderBottomLeftRadius:ot,borderBottomRightRadius:ot,boxShadow:an};function un(t){for(const e in t)Qt[e]=t[e],Ke(e)&&(Qt[e].isCSSVariable=!0)}function te(t,e){const i=typeof t=="string"&&!e?`${t}Context`:e,n=Symbol(i);return[s=>{const a=(0,V.inject)(n,s);if(a===void 0)throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(t)?`one of the following components: ${t.join(", ")}`:`\`${t}\``}`);return a},s=>((0,V.provide)(n,s),s)]}var[sa,oa]=te("Motion"),[aa,ff]=te("LayoutGroup");function hn(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}var mt=class{constructor(t){this.state=t}beforeMount(){}mount(){}unmount(){}update(){}beforeUpdate(t){}beforeUnmount(){}},Ft=function(){},xe=function(){};process.env.NODE_ENV!=="production"&&(Ft=function(t,e){!t&&typeof console!="undefined"&&console.warn(e)},xe=function(t,e){if(!t)throw new Error(e)});function ee(t,e,i){if(Array.isArray(t))return t.reduce((n,r)=>{const o=ee(r,e,i);return o?m(m({},n),o):n},{});if(typeof t=="object")return t;if(t&&e){const n=e[t];return typeof n=="function"?n(i):n}}function la(t,e){return typeof t!=typeof e?!0:Array.isArray(t)&&Array.isArray(e)?!ca(t,e):t!==e}function ca(t,e){const i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function dn(t){return t==null?void 0:t.startsWith("--")}var ua=t=>t;function ha(t){return typeof t=="number"}var da=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],fa=new Set(da);function fn(t){return fa.has(t)}var pa=class{constructor(t){this.features=[];const{features:e=[],lazyMotionContext:i}=t.options,n=e.concat(i.features.value);this.features=n.map(o=>new o(t));const r=this.features;(0,V.watch)(i.features,o=>{o.forEach(s=>{if(!n.includes(s)){n.push(s);const a=new s(t);r.push(a),t.isMounted()&&(a.beforeMount(),a.mount())}})},{flush:"pre"})}mount(){this.features.forEach(t=>t.mount())}beforeMount(){this.features.forEach(t=>{var e;return(e=t.beforeMount)==null?void 0:e.call(t)})}unmount(){this.features.forEach(t=>t.unmount())}update(){this.features.forEach(t=>{var e;return(e=t.update)==null?void 0:e.call(t)})}beforeUpdate(t){this.features.forEach(e=>{var i;return(i=e.beforeUpdate)==null?void 0:i.call(e,t)})}beforeUnmount(){this.features.forEach(t=>t.beforeUnmount())}};function ma(t){return typeof t=="string"||t===!1||Array.isArray(t)}var pn=new WeakMap,ga=0,va=class{constructor(t,e){var i;this.element=null,this.isExiting=!1,this.presenceContainer=null,this.children=new Set,this.activeStates={initial:!0,animate:!0},this.currentProcess=null,this._context=null,this.animateUpdates=X,this.id=`motion-state-${ga++}`,this.options=t,this.parent=e,(i=e==null?void 0:e.children)==null||i.add(this);const n=(t.initial===void 0&&t.variants?this.context.initial:t.initial)===!1?["initial","animate"]:["initial"];this.initTarget(n),this.featureManager=new pa(this),this.type=fn(this.options.as)?"svg":"html"}get context(){if(!this._context){const t={get:(e,i)=>{var n;return ma(this.options[i])?this.options[i]:(n=this.parent)==null?void 0:n.context[i]}};this._context=new Proxy({},t)}return this._context}initTarget(t){var e,i;const n=(e=this.options.custom)!==null&&e!==void 0?e:(i=this.options.animatePresenceContext)==null?void 0:i.custom;this.baseTarget=t.reduce((r,o)=>m(m({},r),ee(this.options[o]||this.context[o],this.options.variants,n)),{}),this.target={}}updateOptions(t){var e;this.options=t,(e=this.visualElement)==null||e.update(m(m({},this.options),{},{whileTap:this.options.whilePress}),null)}beforeMount(){this.featureManager.beforeMount()}mount(t,e,i=!1){var n;xe(!!t,"Animation state must be mounted with valid Element"),this.element=t,this.updateOptions(e),this.featureManager.mount(),!i&&this.options.animate&&((n=this.startAnimation)==null||n.call(this))}clearAnimation(){var t,e;this.currentProcess&&pt(this.currentProcess),this.currentProcess=null,(e=(t=this.visualElement)==null?void 0:t.variantChildren)==null||e.forEach(i=>{i.state.clearAnimation()})}startAnimation(){this.clearAnimation(),this.currentProcess=B.render(()=>{this.currentProcess=null,this.animateUpdates()})}beforeUnmount(){this.featureManager.beforeUnmount()}unmount(){var t,e,i;(e=(t=this.parent)==null?void 0:t.children)==null||e.delete(this),pn.delete(this.element),this.featureManager.unmount(),(i=this.visualElement)==null||i.unmount(),this.clearAnimation()}beforeUpdate(t){this.featureManager.beforeUpdate(t)}update(t){this.updateOptions(t),this.featureManager.update(),this.startAnimation()}setActive(t,e,i=!0){var n;!this.element||this.activeStates[t]===e||(this.activeStates[t]=e,(n=this.visualElement.variantChildren)==null||n.forEach(r=>{r.state.setActive(t,e,!1)}),i&&this.animateUpdates({isExit:t==="exit"&&this.activeStates.exit}))}isMounted(){return!!this.element}getSnapshot(t,e){}didUpdate(t){}},Et=new WeakMap;function mn(t,e,i){return new CustomEvent(t,{detail:{target:e,isExit:i}})}var gn={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>`${t}deg`},ya={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>`${t}px`},rotate:gn,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:ua},skew:gn},ba=["translate","scale","rotate","skew"],xa=["","X","Y","Z"],Xe=new Map,we=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];ba.forEach(t=>{xa.forEach(e=>{we.push(t+e),Xe.set(t+e,ya[t])})});var wa=new Set(we),Ta=t=>wa.has(t),vn={x:"translateX",y:"translateY",z:"translateZ"};function Sa([t],[e]){return we.indexOf(t)-we.indexOf(e)}function Aa(t,[e,i]){return`${t} ${e}(${i})`}function Pa(t){return t.sort(Sa).reduce(Aa,"").trim()}var yn={translate:[0,0],rotate:0,scale:1,skew:0,x:0,y:0,z:0},_=t=>!!(t&&t.getVelocity),Ea={get:(t,e)=>{let i=dn(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!i&&i!=="0"){const n=Xe.get(e);n&&(i=n.initialValue)}return i},set:(t,e,i)=>{dn(e)?t.style.setProperty(e,i):t.style[e]=i}};function Ca(t){var e;const i={},n=[];for(let r in t){let o=t[r];o=_(o)?o.get():o,Ta(r)&&r in vn&&(r=vn[r]);let s=Array.isArray(o)?o[0]:o;const a=Xe.get(r);a?(s=ha(o)?(e=a.toDefaultUnit)==null?void 0:e.call(a,o):o,n.push([r,s])):i[r]=s}return n.length&&(i.transform=Pa(n)),Object.keys(i).length===0?null:i}var ka={fill:!0,stroke:!0,opacity:!0,"stroke-width":!0,"fill-opacity":!0,"stroke-opacity":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,cx:!0,cy:!0,r:!0,d:!0,x1:!0,y1:!0,x2:!0,y2:!0,points:!0,"path-length":!0,viewBox:!0,width:!0,height:!0,"preserve-aspect-ratio":!0,"clip-path":!0,filter:!0,mask:!0,"stop-color":!0,"stop-opacity":!0,"gradient-transform":!0,"gradient-units":!0,"spread-method":!0,"marker-end":!0,"marker-mid":!0,"marker-start":!0,"text-anchor":!0,"dominant-baseline":!0,"font-family":!0,"font-size":!0,"font-weight":!0,"letter-spacing":!0,"vector-effect":!0};function Va(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function Ma(t,e,i=1,n=0){t.pathLength=1,delete t["path-length"],t["stroke-dashoffset"]=x.transform(-n),t["stroke-dasharray"]=`${x.transform(e)} ${x.transform(i)}`}function Da(t){const e={},i={};for(const n in t){const r=Va(n);if(r in ka){const o=t[n];e[r]=_(o)?o.get():o}else i[n]=t[n]}return e["path-length"]!==void 0&&Ma(e,e["path-length"],e["path-spacing"],e["path-offset"]),{attrs:e,style:i}}function Ra(t,e){if(t==null)return{};var i={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;i[n]=t[n]}return i}function q(t,e){if(t==null)return{};var i,n,r=Ra(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)i=o[n],e.includes(i)||{}.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}var pf=typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope,Te=t=>typeof t!="undefined";function bn(t){const e=Object.create(null);return i=>e[i]||(e[i]=t(i))}var La=/\B([A-Z])/g,mf=bn(t=>t.replace(La,"-$1").toLowerCase()),Ba=/-(\w)/g,gf=bn(t=>t.replace(Ba,(e,i)=>i?i.toUpperCase():""));function ja({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function Oa(t,e){if(!e)return t;const i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}function Ia(t,e){return ja(Oa(t.getBoundingClientRect(),e))}var xn={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"]},He={};for(const t in xn)He[t]={isEnabled:e=>xn[t].some(i=>!!e[i])};var wn=()=>({translate:0,scale:1,origin:0,originPoint:0}),_t=()=>({x:wn(),y:wn()}),Tn=()=>({min:0,max:0}),z=()=>({x:Tn(),y:Tn()}),Fa=typeof window!="undefined",Se={current:null},Sn={current:!1};function _a(){if(Sn.current=!0,!!Fa)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Se.current=t.matches;t.addEventListener("change",e),e()}else Se.current=!1}function za(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Na(t){return typeof t=="string"||Array.isArray(t)}var Ua=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ga=["initial",...Ua];function An(t){return za(t.animate)||Ga.some(e=>Na(t[e]))}function $a(t){return!!(An(t)||t.variants)}function qe(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}var Pn=new Set;function En(t,e,i){t||Pn.has(e)||(console.warn(qe(e,i)),Pn.add(e))}function Ze(t,e){t.indexOf(e)===-1&&t.push(e)}function ie(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}var Je=class{constructor(){this.subscriptions=[]}add(t){return Ze(this.subscriptions,t),()=>ie(this.subscriptions,t)}notify(t,e,i){const n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){const o=this.subscriptions[r];o&&o(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function Cn(t,e){return e?t*(1e3/e):0}var kn=30,Wa=t=>!isNaN(parseFloat(t)),Vn={current:void 0},Ka=class{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{var n;const r=Y.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&((n=this.events.change)==null||n.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=Y.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Wa(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&En(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Je);const i=this.events[t].add(e);return t==="change"?()=>{i(),B.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Vn.current&&Vn.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Y.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>kn)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,kn);return Cn(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,e;(t=this.dependents)==null||t.clear(),(e=this.events.destroy)==null||e.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function zt(t,e){return new Ka(t,e)}function Ya(t,e,i){for(const n in e){const r=e[n],o=i[n];if(_(r))t.addValue(n,r);else if(_(o))t.addValue(n,zt(r,{owner:t}));else if(o!==r)if(t.hasValue(n)){const s=t.getValue(n);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=t.getStaticValue(n);t.addValue(n,zt(s!==void 0?s:r,{owner:t}))}}for(const n in i)e[n]===void 0&&t.removeValue(n);return e}function Mn(t){const e=[{},{}];return t==null||t.values.forEach((i,n)=>{e[0][n]=i.get(),e[1][n]=i.getVelocity()}),e}function Dn(t,e,i,n){if(typeof e=="function"){const[r,o]=Mn(n);e=e(i!==void 0?i:t.custom,r,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[r,o]=Mn(n);e=e(i!==void 0?i:t.custom,r,o)}return e}function Xa(t){for(let i=1;i<t.length;i++){var e;(e=t[i])!==null&&e!==void 0||(t[i]=t[i-1])}}var Ct=t=>t*180/Math.PI,Qe=t=>{const e=Ct(Math.atan2(t[1],t[0]));return ti(e)},Ha={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Qe,rotateZ:Qe,skewX:t=>Ct(Math.atan(t[1])),skewY:t=>Ct(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},ti=t=>(t=t%360,t<0&&(t+=360),t),Rn=Qe,Ln=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Bn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),qa={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ln,scaleY:Bn,scale:t=>(Ln(t)+Bn(t))/2,rotateX:t=>ti(Ct(Math.atan2(t[6],t[5]))),rotateY:t=>ti(Ct(Math.atan2(-t[2],t[0]))),rotateZ:Rn,rotate:Rn,skewX:t=>Ct(Math.atan(t[4])),skewY:t=>Ct(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ei(t){return t.includes("scale")?1:0}function ii(t,e){if(!t||t==="none")return ei(e);const i=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,r;if(i)n=qa,r=i;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Ha,r=a}if(!r)return ei(e);const o=n[e],s=r[1].split(",").map(Ja);return typeof o=="function"?o(s):s[o]}var Za=(t,e)=>{const{transform:i="none"}=getComputedStyle(t);return ii(i,e)};function Ja(t){return parseFloat(t.trim())}var Nt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ut=(()=>new Set(Nt))(),jn=t=>t===Ot||t===x,Qa=new Set(["x","y","z"]),tl=Nt.filter(t=>!Qa.has(t));function el(t){const e=[];return tl.forEach(i=>{const n=t.getValue(i);n!==void 0&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}var bt={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>ii(e,"x"),y:(t,{transform:e})=>ii(e,"y")};bt.translateX=bt.x,bt.translateY=bt.y;var kt=new Set,ni=!1,ri=!1,si=!1;function On(){if(ri){const t=Array.from(kt).filter(n=>n.needsMeasurement),e=new Set(t.map(n=>n.element)),i=new Map;e.forEach(n=>{const r=el(n);r.length&&(i.set(n,r),n.render())}),t.forEach(n=>n.measureInitialState()),e.forEach(n=>{n.render();const r=i.get(n);r&&r.forEach(([o,s])=>{var a;(a=n.getValue(o))==null||a.set(s)})}),t.forEach(n=>n.measureEndState()),t.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}ri=!1,ni=!1,kt.forEach(t=>t.complete(si)),kt.clear()}function In(){kt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ri=!0)})}function il(){si=!0,In(),On(),si=!1}var oi=class{constructor(t,e,i,n,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(kt.add(this),ni||(ni=!0,B.read(In),B.resolveKeyframes(On))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(t[0]===null){const r=n==null?void 0:n.get(),o=t[t.length-1];if(r!==void 0)t[0]=r;else if(i&&e){const s=i.readValue(e,o);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=o),n&&r===void 0&&n.set(t[0])}Xa(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),kt.delete(this)}cancel(){this.state==="scheduled"&&(kt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}},Fn=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),_n=t=>/^0[^.\s]+$/u.test(t),nl={test:t=>t==="auto",parse:t=>t},zn=t=>e=>e.test(t),Nn=[Ot,x,st,vt,Wo,$o,nl],Un=t=>Nn.find(zn(t)),rl=[...Nn,F,yt],sl=t=>rl.find(zn(t)),ol=new Set(["brightness","contrast","saturate","opacity"]);function al(t){const[e,i]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=i.match(Ue)||[];if(!n)return t;const r=i.replace(n,"");let o=ol.has(e)?1:0;return n!==i&&(o*=100),e+"("+o+r+")"}var ll=/\b([a-z-]*)\(.*?\)/gu,ai=m(m({},yt),{},{getAnimatableNone:t=>{const e=t.match(ll);return e?e.map(al).join(" "):t}}),Gn=m(m({},Ot),{},{transform:Math.round}),cl={rotate:vt,rotateX:vt,rotateY:vt,rotateZ:vt,scale:be,scaleX:be,scaleY:be,scaleZ:be,skew:vt,skewX:vt,skewY:vt,distance:x,translateX:x,translateY:x,translateZ:x,x,y:x,z:x,perspective:x,transformPerspective:x,opacity:qt,originX:Ji,originY:Ji,originZ:x},li=m(m({borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,radius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,inset:x,insetBlock:x,insetBlockStart:x,insetBlockEnd:x,insetInline:x,insetInlineStart:x,insetInlineEnd:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,paddingBlock:x,paddingBlockStart:x,paddingBlockEnd:x,paddingInline:x,paddingInlineStart:x,paddingInlineEnd:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,marginBlock:x,marginBlockStart:x,marginBlockEnd:x,marginInline:x,marginInlineStart:x,marginInlineEnd:x,backgroundPositionX:x,backgroundPositionY:x},cl),{},{zIndex:Gn,fillOpacity:qt,strokeOpacity:qt,numOctaves:Gn}),ul=m(m({},li),{},{color:F,backgroundColor:F,outlineColor:F,fill:F,stroke:F,borderColor:F,borderTopColor:F,borderRightColor:F,borderBottomColor:F,borderLeftColor:F,filter:ai,WebkitFilter:ai}),$n=t=>ul[t];function Wn(t,e){let i=$n(t);return i!==ai&&(i=yt),i.getAnimatableNone?i.getAnimatableNone(e):void 0}var{schedule:Kn,cancel:vf}=qi(queueMicrotask,!0),hl=["willChange"],Yn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Xn=class{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=oi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=Y.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,B.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget=m({},a),this.initialValues=e.initial?m({},a):{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.blockInitialAnimation=!!r,this.isControllingVariants=An(e),this.isVariantNode=$a(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const c=this.scrapeMotionValuesFromProps(e,{},this),{willChange:u}=c,h=q(c,hl);for(const d in h){const f=h[d];a[d]!==void 0&&_(f)&&f.set(a[d])}}mount(t){var e;this.current=t,Et.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,n)=>this.bindToMotionValue(n,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Sn.current||_a(),this.shouldReduceMotion=Se.current),process.env.NODE_ENV!=="production"&&En(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(e=this.parent)==null||e.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),pt(this.notifyUpdate),pt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const i=this.features[e];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(t){var e;this.children.add(t),(e=this.enteringChildren)!==null&&e!==void 0||(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const i=Ut.has(t);i&&this.onBindTransform&&this.onBindTransform();const n=e.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&B.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),r&&r(),e.owner&&e.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in He){const e=He[t];if(!e)continue;const{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):z()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let i=0;i<Yn.length;i++){const n=Yn[i];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Ya(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&e!==void 0&&(i=zt(e===null?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(i=this.getBaseTargetFromProps(this.props,t))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(Fn(n)||_n(n))?n=parseFloat(n):!sl(n)&&yt.test(e)&&(n=Wn(t,e)),this.setBaseTarget(t,_(n)?n.get():n)),_(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:i}=this.props;let n;if(typeof i=="string"||typeof i=="object"){const o=Dn(this.props,i,(e=this.presenceContext)==null?void 0:e.custom);o&&(n=o[t])}if(i&&n!==void 0)return n;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!_(r)?r:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,e){return this.events[t]||(this.events[t]=new Je),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){Kn.render(this.render)}},Hn=new Set(["width","height","top","left","right","bottom",...Nt]),qn,ne=()=>{},lt=()=>{};typeof process!="undefined"&&((qn=process.env)==null?void 0:qn.NODE_ENV)!=="production"&&(ne=(t,e,i)=>{!t&&typeof console!="undefined"&&console.warn(qe(e,i))},lt=(t,e,i)=>{if(!t)throw new Error(qe(e,i))});var dl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function fl(t){const e=dl.exec(t);if(!e)return[,];const[,i,n,r]=e;return[`--${i!=null?i:n}`,r]}var pl=4;function Zn(t,e,i=1){lt(i<=pl,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,r]=fl(t);if(!n)return;const o=window.getComputedStyle(e).getPropertyValue(n);if(o){const s=o.trim();return Fn(s)?parseFloat(s):s}return Ye(r)?Zn(r,e,i+1):r}function ml(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||_n(t):!0}var gl=new Set(["auto","none","0"]);function vl(t,e,i){let n=0,r;for(;n<t.length&&!r;){const o=t[n];typeof o=="string"&&!gl.has(o)&&Jt(o).values.length&&(r=t[n]),n++}if(r&&i)for(const o of e)t[o]=Wn(i,r)}var yl=class extends oi{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="string"&&(l=l.trim(),Ye(l))){const c=Zn(l,e.current);c!==void 0&&(t[a]=c),a===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Hn.has(i)||t.length!==2)return;const[n,r]=t,o=Un(n),s=Un(r);if(cn(n)!==cn(r)&&bt[i]){this.needsMeasurement=!0;return}if(o!==s)if(jn(o)&&jn(s))for(let a=0;a<t.length;a++){const l=t[a];typeof l=="string"&&(t[a]=parseFloat(l))}else bt[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,i=[];for(let n=0;n<t.length;n++)(t[n]===null||ml(t[n]))&&i.push(n);i.length&&vl(t,i,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=bt[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const n=e[e.length-1];n!==void 0&&t.getValue(i,n).jump(n,!1)}measureEndState(){var t;const{element:e,name:i,unresolvedKeyframes:n}=this;if(!e||!e.current)return;const r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);const o=n.length-1,s=n[o];n[o]=bt[i](e.measureViewportBox(),window.getComputedStyle(e.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(t=this.removedTransforms)!=null&&t.length&&this.removedTransforms.forEach(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}},Jn=class extends Xn{constructor(){super(...arguments),this.KeyframeResolver=yl}sortInstanceNodePosition(t,e){return t.compareDocumentPosition(e)&2?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;_(t)&&(this.childSubscription=t.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}},Qn=(t,e)=>e&&typeof t=="number"?e.transform(t):t,bl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xl=Nt.length;function wl(t,e,i){let n="",r=!0;for(let o=0;o<xl;o++){const s=Nt[o],a=t[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||i){const c=Qn(a,li[s]);if(!l){r=!1;const u=bl[s]||s;n+=`${u}(${c}) `}i&&(e[s]=c)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}function tr(t,e,i){const{style:n,vars:r,transformOrigin:o}=t;let s=!1,a=!1;for(const l in e){const c=e[l];if(Ut.has(l)){s=!0;continue}else if(Ke(l)){r[l]=c;continue}else{const u=Qn(c,li[l]);l.startsWith("origin")?(a=!0,o[l]=u):n[l]=u}}if(e.transform||(s||i?n.transform=wl(e,t.transform,i):n.transform&&(n.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=o;n.transformOrigin=`${l} ${c} ${u}`}}function er(t,{style:e,vars:i},n,r){const o=t.style;let s;for(s in e)o[s]=e[s];r==null||r.applyProjectionStyles(o,n);for(s in i)o.setProperty(s,i[s])}function Tl(t,{layout:e,layoutId:i}){return Ut.has(t)||t.startsWith("origin")||(e||i!==void 0)&&(!!Qt[t]||t==="opacity")}function ir(t,e,i){var n;const{style:r}=t,o={};for(const s in r)(_(r[s])||e.style&&_(e.style[s])||Tl(s,t)||((n=i==null?void 0:i.getValue(s))==null?void 0:n.liveStyle)!==void 0)&&(o[s]=r[s]);return o}function Sl(t){return window.getComputedStyle(t)}var nr=class extends Jn{constructor(){super(...arguments),this.type="html",this.renderInstance=er}readValueFromInstance(t,e){var i;if(Ut.has(e))return(i=this.projection)!=null&&i.isProjecting?ei(e):Za(t,e);{const n=Sl(t),r=(Ke(e)?n.getPropertyValue(e):n[e])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return Ia(t,e)}build(t,e,i){tr(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return ir(t,e,i)}},ci=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Al={offset:"stroke-dashoffset",array:"stroke-dasharray"},Pl={offset:"strokeDashoffset",array:"strokeDasharray"};function El(t,e,i=1,n=0,r=!0){t.pathLength=1;const o=r?Al:Pl;t[o.offset]=x.transform(-n);const s=x.transform(e),a=x.transform(i);t[o.array]=`${s} ${a}`}var Cl=["attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset"],kl=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Vl(t,e,i,n,r){let{attrX:o,attrY:s,attrScale:a,pathLength:l,pathSpacing:c=1,pathOffset:u=0}=e,h=q(e,Cl);if(tr(t,h,n),i){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:f}=t;if(d.transform&&(f.transform=d.transform,delete d.transform),f.transform||d.transformOrigin){var g;f.transformOrigin=(g=d.transformOrigin)!==null&&g!==void 0?g:"50% 50%",delete d.transformOrigin}if(f.transform){var v;f.transformBox=(v=r==null?void 0:r.transformBox)!==null&&v!==void 0?v:"fill-box",delete d.transformBox}for(const b of kl)d[b]!==void 0&&(f[b]=d[b],delete d[b]);o!==void 0&&(d.x=o),s!==void 0&&(d.y=s),a!==void 0&&(d.scale=a),l!==void 0&&El(d,l,c,u,!1)}var rr=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"]),Ml=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Dl(t,e,i,n){er(t,e,void 0,n);for(const r in e.attrs)t.setAttribute(rr.has(r)?r:ci(r),e.attrs[r])}function Rl(t,e,i){const n=ir(t,e,i);for(const r in t)if(_(t[r])||_(e[r])){const o=Nt.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=t[r]}return n}var sr=class extends Jn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=z}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(Ut.has(e)){const i=$n(e);return i&&i.default||0}return e=rr.has(e)?e:ci(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return Rl(t,e,i)}build(t,e,i){Vl(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){Dl(t,e,i,n)}mount(t){this.isSVGTag=Ml(t.tagName),super.mount(t)}};function Ll(t,e){return fn(t)?new sr(e):new nr(e)}function Bl(t,e,i,n=0,r=1){const o=Array.from(t),s=o.indexOf(e),a=t.size,l=(a-1)*n,c=typeof i=="function";return s===o.length-1&&(e.parent.enteringChildren=void 0),c?i(s,a):r===1?s*n:l-s*n}function ui(t){return typeof t=="object"&&!Array.isArray(t)}function hi(t,e,i){if(t instanceof EventTarget)return[t];if(typeof t=="string"){var n;let r=document;e&&(r=e.current);const o=(n=i==null?void 0:i[t])!==null&&n!==void 0?n:r.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function or(t,e,i,n){return typeof t=="string"&&ui(e)?hi(t,i,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function jl(t,e,i){return t*(e+1)}function ar(t,e,i,n){if(typeof e=="number")return e;if(e.startsWith("-")||e.startsWith("+"))return Math.max(0,t+parseFloat(e));if(e==="<")return i;if(e.startsWith("<"))return Math.max(0,i+parseFloat(e.slice(1)));var r;return(r=n.get(e))!==null&&r!==void 0?r:t}var Ol=(t,e,i)=>{const n=e-t;return((i-t)%n+n)%n+t},lr=t=>Array.isArray(t)&&typeof t[0]!="number";function cr(t,e){return lr(t)?t[Ol(0,t.length,e)]:t}function Il(t,e,i){for(let n=0;n<t.length;n++){const r=t[n];r.at>e&&r.at<i&&(ie(t,r),n--)}}function Fl(t,e,i,n,r,o){Il(t,r,o);for(let s=0;s<e.length;s++)t.push({value:e[s],at:j(r,o,n[s]),easing:cr(i,s)})}function _l(t,e){for(let i=0;i<t.length;i++)t[i]=t[i]/(e+1)}function zl(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}var Gt=(t,e,i)=>{const n=e-t;return n===0?1:(i-t)/n};function ur(t,e){const i=t[t.length-1];for(let n=1;n<=e;n++){const r=Gt(0,e,n);t.push(j(i,1,r))}}function hr(t){const e=[0];return ur(e,t.length-1),e}var dr=2e4;function di(t){let e=0;const i=50;let n=t.next(e);for(;!n.done&&e<2e4;)e+=i,n=t.next(e);return e>=2e4?1/0:e}function fr(t,e=100,i){const n=i(m(m({},t),{},{keyframes:[0,e]})),r=Math.min(di(n),dr);return{type:"keyframes",ease:o=>n.next(r*o).value/e,duration:H(r)}}function fi(t){return typeof t=="function"&&"applyToOptions"in t}var Nl=["defaultTransition"],Ul=["delay","times","type","repeat","repeatType","repeatDelay"],Gl="easeInOut",$l=20;function Wl(t,e={},i,n){let{defaultTransition:r={}}=e,o=q(e,Nl);const s=r.duration||.3,a=new Map,l=new Map,c={},u=new Map;let h=0,d=0,f=0;for(let g=0;g<t.length;g++){const v=t[g];if(typeof v=="string"){u.set(v,d);continue}else if(!Array.isArray(v)){u.set(v.name,ar(d,v.at,h,u));continue}let[b,S,C={}]=v;C.at!==void 0&&(d=ar(d,C.at,h,u));let A=0;const D=(P,y,k,p=0,M=0)=>{var L;const W=Kl(P),{delay:J=0,times:K=hr(W),type:Bt="keyframes",repeat:Q,repeatType:tt,repeatDelay:Tt=0}=y,fe=q(y,Ul);let{ease:et=r.ease||"easeOut",duration:E}=y;const pe=typeof J=="function"?J(p,M):J,me=W.length,ge=fi(Bt)?Bt:n==null?void 0:n[Bt||"keyframes"];if(me<=2&&ge){let ht=100;if(me===2&&Hl(W)){const St=W[1]-W[0];ht=Math.abs(St)}const jt=m({},fe);E!==void 0&&(jt.duration=it(E));const I=fr(jt,ht,ge);et=I.ease,E=I.duration}(L=E)!==null&&L!==void 0||(E=s);const Yt=d+pe;K.length===1&&K[0]===0&&(K[1]=1);const U=K.length-W.length;if(U>0&&ur(K,U),W.length===1&&W.unshift(null),Q){lt(Q<$l,"Repeat count too high, must be less than 20","repeat-count-high"),E=jl(E,Q);const ht=[...W],jt=[...K];et=Array.isArray(et)?[...et]:[et];const I=[...et];for(let St=0;St<Q;St++){W.push(...ht);for(let dt=0;dt<ht.length;dt++)K.push(jt[dt]+(St+1)),et.push(dt===0?"linear":cr(I,dt-1))}_l(K,Q)}const G=Yt+E;Fl(k,W,et,K,Yt,G),A=Math.max(pe+E,A),f=Math.max(G,f)};if(_(b)){const P=pr(b,l);D(S,C,mr("default",P))}else{const P=or(b,S,i,c),y=P.length;for(let k=0;k<y;k++){S=S,C=C;const p=P[k],M=pr(p,l);for(const L in S)D(S[L],Yl(C,L),mr(L,M),k,y)}}h=d,d+=A}return l.forEach((g,v)=>{for(const b in g){const S=g[b];S.sort(zl);const C=[],A=[],D=[];for(let y=0;y<S.length;y++){const{at:k,value:p,easing:M}=S[y];C.push(p),A.push(Gt(0,f,k)),D.push(M||"easeOut")}A[0]!==0&&(A.unshift(0),C.unshift(C[0]),D.unshift(Gl)),A[A.length-1]!==1&&(A.push(1),C.push(null)),a.has(v)||a.set(v,{keyframes:{},transition:{}});const P=a.get(v);P.keyframes[b]=C,P.transition[b]=m(m({},r),{},{duration:f,ease:D,times:A},o)}}),a}function pr(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function mr(t,e){return e[t]||(e[t]=[]),e[t]}function Kl(t){return Array.isArray(t)?t:[t]}function Yl(t,e){return t&&t[e]?m(m({},t),t[e]):m({},t)}var Xl=t=>typeof t=="number",Hl=t=>t.every(Xl),ql=t=>Array.isArray(t);function Zl(t,e,i){const n=t.getProps();return Dn(n,e,n.custom,t)}var Jl=["transitionEnd","transition"];function Ql(t,e,i){t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,zt(i))}function tc(t){return ql(t)?t[t.length-1]||0:t}function ec(t,e){let i=Zl(t,e)||{},{transitionEnd:n={},transition:r={}}=i,o=q(i,Jl);o=m(m({},o),n);for(const s in o)Ql(t,s,tc(o[s]))}function ic(t){return!!(_(t)&&t.add)}function nc(t,e){const i=t.getValue("willChange");if(ic(i))return i.add(e);if(!i&&ft.WillChange){const n=new ft.WillChange("auto");t.addValue("willChange",n),n.add(e)}}var rc="framerAppearId",sc="data-"+ci(rc);function gr(t){return t.props[sc]}var oc=t=>t!==null;function ac(t,{repeat:e,repeatType:i="loop"},n){const r=t.filter(oc),o=e&&i!=="loop"&&e%2===1?0:r.length-1;return!o||n===void 0?r[o]:n}var lc={type:"spring",stiffness:500,damping:25,restSpeed:10},cc=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),uc={type:"keyframes",duration:.8},hc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dc=(t,{keyframes:e})=>e.length>2?uc:Ut.has(t)?t.startsWith("scale")?cc(e[1]):lc:hc,fc=["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"];function pc(t){let{when:e,delay:i,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:a,repeatDelay:l,from:c,elapsed:u}=t,h=q(t,fc);return!!Object.keys(h).length}function pi(t,e){var i,n;return(i=(n=t==null?void 0:t[e])!==null&&n!==void 0?n:t==null?void 0:t.default)!==null&&i!==void 0?i:t}function mi(t){t.duration=0,t.type="keyframes"}var Vt={layout:0,mainThread:0,waapi:0};function gi(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function mc({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,e/=100,i/=100;let r=0,o=0,s=0;if(!e)r=o=s=i;else{const a=i<.5?i*(1+e):i+e-i*e,l=2*i-a;r=gi(l,a,t+1/3),o=gi(l,a,t),s=gi(l,a,t-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:n}}function Ae(t,e){return i=>i>0?e:t}var vi=(t,e,i)=>{const n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},gc=[We,Pt,It],vc=t=>gc.find(e=>e.test(t));function vr(t){const e=vc(t);if(ne(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===It&&(i=mc(i)),i}var yr=(t,e)=>{const i=vr(t),n=vr(e);if(!i||!n)return Ae(t,e);const r=m({},i);return o=>(r.red=vi(i.red,n.red,o),r.green=vi(i.green,n.green,o),r.blue=vi(i.blue,n.blue,o),r.alpha=j(i.alpha,n.alpha,o),Pt.transform(r))},yi=new Set(["none","hidden"]);function yc(t,e){return yi.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}var bc=(t,e)=>i=>e(t(i)),re=(...t)=>t.reduce(bc);function xc(t,e){return i=>j(t,e,i)}function bi(t){return typeof t=="number"?xc:typeof t=="string"?Ye(t)?Ae:F.test(t)?yr:Sc:Array.isArray(t)?br:typeof t=="object"?F.test(t)?yr:wc:Ae}function br(t,e){const i=[...t],n=i.length,r=t.map((o,s)=>bi(o)(o,e[s]));return o=>{for(let s=0;s<n;s++)i[s]=r[s](o);return i}}function wc(t,e){const i=m(m({},t),e),n={};for(const r in i)t[r]!==void 0&&e[r]!==void 0&&(n[r]=bi(t[r])(t[r],e[r]));return r=>{for(const o in n)i[o]=n[o](r);return i}}function Tc(t,e){const i=[],n={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){var r;const s=e.types[o],a=t.indexes[s][n[s]],l=(r=t.values[a])!==null&&r!==void 0?r:0;i[o]=l,n[s]++}return i}var Sc=(t,e)=>{const i=yt.createTransformer(e),n=Jt(t),r=Jt(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?yi.has(t)&&!r.values.length||yi.has(e)&&!n.values.length?yc(t,e):re(br(Tc(n,r),r.values),i):(ne(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Ae(t,e))};function xr(t,e,i){return typeof t=="number"&&typeof e=="number"&&typeof i=="number"?j(t,e,i):bi(t)(t,e)}var Ac=t=>{const e=({timestamp:i})=>t(i);return{start:(i=!0)=>B.update(e,i),stop:()=>pt(e),now:()=>$.isProcessing?$.timestamp:Y.now()}},wr=(t,e,i=10)=>{let n="";const r=Math.max(Math.round(e/i),2);for(let o=0;o<r;o++)n+=Math.round(t(o/(r-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},Pc=5;function Tr(t,e,i){const n=Math.max(e-Pc,0);return Cn(i-t(n),e-n)}var O={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},Sr=.001;function Ec({duration:t=O.duration,bounce:e=O.bounce,velocity:i=O.velocity,mass:n=O.mass}){let r,o;ne(t<=it(O.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-e;s=at(O.minDamping,O.maxDamping,s),t=at(O.minDuration,O.maxDuration,H(t)),s<1?(r=c=>{const u=c*s,h=u*t,d=u-i,f=xi(c,s),g=Math.exp(-h);return Sr-d/f*g},o=c=>{const u=c*s*t,h=u*i+i,d=Math.pow(s,2)*Math.pow(c,2)*t,f=Math.exp(-u),g=xi(Math.pow(c,2),s);return(-r(c)+Sr>0?-1:1)*((h-d)*f)/g}):(r=c=>-.001+Math.exp(-c*t)*((c-i)*t+1),o=c=>Math.exp(-c*t)*((i-c)*(t*t)));const a=5/t,l=kc(r,o,a);if(t=it(t),isNaN(l))return{stiffness:O.stiffness,damping:O.damping,duration:t};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:s*2*Math.sqrt(n*c),duration:t}}}var Cc=12;function kc(t,e,i){let n=i;for(let r=1;r<Cc;r++)n=n-t(n)/e(n);return n}function xi(t,e){return t*Math.sqrt(1-e*e)}var Vc=["duration","bounce"],Mc=["stiffness","damping","mass"];function Ar(t,e){return e.some(i=>t[i]!==void 0)}function Dc(t){let e=m({velocity:O.velocity,stiffness:O.stiffness,damping:O.damping,mass:O.mass,isResolvedFromDuration:!1},t);if(!Ar(t,Mc)&&Ar(t,Vc))if(t.visualDuration){const i=t.visualDuration,n=2*Math.PI/(i*1.2),r=n*n,o=2*at(.05,1,1-(t.bounce||0))*Math.sqrt(r);e=m(m({},e),{},{mass:O.mass,stiffness:r,damping:o})}else{const i=Ec(t);e=m(m(m({},e),i),{},{mass:O.mass}),e.isResolvedFromDuration=!0}return e}function se(t=O.visualDuration,e=O.bounce){const i=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:n,restDelta:r}=i;const o=i.keyframes[0],s=i.keyframes[i.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:h,velocity:d,isResolvedFromDuration:f}=Dc(m(m({},i),{},{velocity:-H(i.velocity||0)})),g=d||0,v=c/(2*Math.sqrt(l*u)),b=s-o,S=H(Math.sqrt(l/u)),C=Math.abs(b)<5;n||(n=C?O.restSpeed.granular:O.restSpeed.default),r||(r=C?O.restDelta.granular:O.restDelta.default);let A;if(v<1){const P=xi(S,v);A=y=>{const k=Math.exp(-v*S*y);return s-k*((g+v*S*b)/P*Math.sin(P*y)+b*Math.cos(P*y))}}else if(v===1)A=P=>s-Math.exp(-S*P)*(b+(g+S*b)*P);else{const P=S*Math.sqrt(v*v-1);A=y=>{const k=Math.exp(-v*S*y),p=Math.min(P*y,300);return s-k*((g+v*S*b)*Math.sinh(p)+P*b*Math.cosh(p))/P}}const D={calculatedDuration:f&&h||null,next:P=>{const y=A(P);if(f)a.done=P>=h;else{let k=P===0?g:0;v<1&&(k=P===0?it(g):Tr(A,P,y));const p=Math.abs(k)<=n,M=Math.abs(s-y)<=r;a.done=p&&M}return a.value=a.done?s:y,a},toString:()=>{const P=Math.min(di(D),dr),y=wr(k=>D.next(P*k).value,P,30);return P+"ms "+y},toTransition:()=>{}};return D}se.applyToOptions=t=>{const e=fr(t,100,se);return t.ease=e.ease,t.duration=it(e.duration),t.type="keyframes",t};function wi({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],d={done:!1,value:h},f=p=>a!==void 0&&p<a||l!==void 0&&p>l,g=p=>a===void 0?l:l===void 0||Math.abs(a-p)<Math.abs(l-p)?a:l;let v=i*e;const b=h+v,S=s===void 0?b:s(b);S!==b&&(v=S-h);const C=p=>-v*Math.exp(-p/n),A=p=>S+C(p),D=p=>{const M=C(p),L=A(p);d.done=Math.abs(M)<=c,d.value=d.done?S:L};let P,y;const k=p=>{f(d.value)&&(P=p,y=se({keyframes:[d.value,g(d.value)],velocity:Tr(A,p,d.value),damping:r,stiffness:o,restDelta:c,restSpeed:u}))};return k(0),{calculatedDuration:null,next:p=>{let M=!1;return!y&&P===void 0&&(M=!0,D(p),k(p)),P!==void 0&&p>=P?y.next(p-P):(!M&&D(p),d)}}}function Rc(t,e,i){const n=[],r=i||ft.mix||xr,o=t.length-1;for(let s=0;s<o;s++){let a=r(t[s],t[s+1]);if(e){const l=Array.isArray(e)?e[s]||X:e;a=re(l,a)}n.push(a)}return n}function Lc(t,e,{clamp:i=!0,ease:n,mixer:r}={}){const o=t.length;if(lt(o===e.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const s=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Rc(e,n,r),l=a.length,c=u=>{if(s&&u<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const d=Gt(t[h],t[h+1],u);return a[h](d)};return i?u=>c(at(t[0],t[o-1],u)):c}function Bc(t,e){return t.map(i=>i*e)}var Pr=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t,jc=1e-7,Oc=12;function Ic(t,e,i,n,r){let o,s,a=0;do s=e+(i-e)/2,o=Pr(s,n,r)-t,o>0?i=s:e=s;while(Math.abs(o)>jc&&++a<Oc);return s}function oe(t,e,i,n){if(t===e&&i===n)return X;const r=o=>Ic(o,0,1,t,i);return o=>o===0||o===1?o:Pr(r(o),e,n)}var Fc=oe(.42,0,1,1),_c=oe(0,0,.58,1),Er=oe(.42,0,.58,1),Cr=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,kr=t=>e=>1-t(1-e),Vr=oe(.33,1.53,.69,.99),Ti=kr(Vr),Mr=Cr(Ti),Dr=t=>(t*=2)<1?.5*Ti(t):.5*(2-Math.pow(2,-10*(t-1))),Si=t=>1-Math.sin(Math.acos(t)),Rr=kr(Si),Lr=Cr(Si),Br=t=>Array.isArray(t)&&typeof t[0]=="number",jr={linear:X,easeIn:Fc,easeInOut:Er,easeOut:_c,circIn:Si,circInOut:Lr,circOut:Rr,backIn:Ti,backInOut:Mr,backOut:Vr,anticipate:Dr},zc=t=>typeof t=="string",Or=t=>{if(Br(t)){lt(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,i,n,r]=t;return oe(e,i,n,r)}else if(zc(t))return lt(jr[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),jr[t];return t};function Nc(t,e){return t.map(()=>e||Er).splice(0,t.length-1)}function $t({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){const r=lr(n)?n.map(Or):Or(n),o={done:!1,value:e[0]},s=Bc(i&&i.length===e.length?i:hr(e),t),a=Lc(s,e,{ease:Array.isArray(r)?r:Nc(e,r)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}var Uc=t=>t!==null;function Ai(t,{repeat:e,repeatType:i="loop"},n,r=1){const o=t.filter(Uc),s=r<0||e&&i!=="loop"&&e%2===1?0:o.length-1;return!s||n===void 0?o[s]:n}var Gc={decay:wi,inertia:wi,tween:$t,keyframes:$t,spring:se};function Ir(t){typeof t.type=="string"&&(t.type=Gc[t.type])}var Pi=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}},$c=t=>t/100,Ei=class extends Pi{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var e,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Y.now()&&this.tick(Y.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(e=this.options).onStop)==null||i.call(e))},Vt.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ir(t);const{type:e=$t,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:o=0}=t;let{keyframes:s}=t;const a=e||$t;process.env.NODE_ENV!=="production"&&a!==$t&<(s.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${s}`,"spring-two-frames"),a!==$t&&typeof s[0]!="number"&&(this.mixKeyframes=re($c,xr(s[0],s[1])),s=[0,100]);const l=a(m(m({},t),{},{keyframes:s}));r==="mirror"&&(this.mirroredGenerator=a(m(m({},t),{},{keyframes:[...s].reverse(),velocity:-o}))),l.calculatedDuration===null&&(l.calculatedDuration=di(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:i,totalDuration:n,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:a}=this;if(this.startTime===null)return i.next(0);const{delay:l=0,keyframes:c,repeat:u,repeatType:h,repeatDelay:d,type:f,onUpdate:g,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const b=this.currentTime-l*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?b<0:b>n;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let C=this.currentTime,A=i;if(u){const k=Math.min(this.currentTime,n)/s;let p=Math.floor(k),M=k%1;!M&&k>=1&&(M=1),M===1&&p--,p=Math.min(p,u+1),p%2&&(h==="reverse"?(M=1-M,d&&(M-=d/s)):h==="mirror"&&(A=o)),C=at(0,1,M)*s}const D=S?{done:!1,value:c[0]}:A.next(C);r&&(D.value=r(D.value));let{done:P}=D;!S&&a!==null&&(P=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);const y=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return y&&f!==wi&&(D.value=Ai(c,this.options,v,this.speed)),g&&g(D.value),y&&this.finish(),D}then(t,e){return this.finished.then(t,e)}get duration(){return H(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+H(t)}get time(){return H(this.currentTime)}set time(t){var e;t=it(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(e=this.driver)==null||e.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Y.now());const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=H(this.currentTime))}play(){var t,e;if(this.isStopped)return;const{driver:i=Ac,startTime:n}=this.options;this.driver||(this.driver=i(o=>this.tick(o))),(e=(t=this.options).onPlay)==null||e.call(t);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n!=null?n:r),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(Y.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,e;this.notifyFinished(),this.teardown(),this.state="finished",(e=(t=this.options).onComplete)==null||e.call(t)}cancel(){var t,e;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,Vt.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var e;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(e=this.driver)==null||e.stop(),t.observe(this)}},Wc=t=>t.startsWith("--");function Kc(t,e,i){Wc(e)?t.style.setProperty(e,i):t.style[e]=i}function Ci(t){let e;return()=>(e===void 0&&(e=t()),e)}var Yc=Ci(()=>window.ScrollTimeline!==void 0),Xc={};function Hc(t,e){const i=Ci(t);return()=>{var n;return(n=Xc[e])!==null&&n!==void 0?n:i()}}var Fr=Hc(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ae=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,_r={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ae([0,.65,.55,1]),circOut:ae([.55,0,1,.45]),backIn:ae([.31,.01,.66,-.59]),backOut:ae([.33,1.53,.69,.99])};function zr(t,e){if(t)return typeof t=="function"?Fr()?wr(t,e):"ease-out":Br(t)?ae(t):Array.isArray(t)?t.map(i=>zr(i,e)||_r.easeOut):_r[t]}function qc(t,e,i,{delay:n=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:i};l&&(u.offset=l);const h=zr(a,r);Array.isArray(h)&&(u.easing=h),rt.value&&Vt.waapi++;const d={delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};c&&(d.pseudoElement=c);const f=t.animate(u,d);return rt.value&&f.finished.finally(()=>{Vt.waapi--}),f}var Zc=["type"];function Jc(t){let{type:e}=t,i=q(t,Zc);if(fi(e)&&Fr())return e.applyToOptions(i);var n,r;return(n=i.duration)!==null&&n!==void 0||(i.duration=300),(r=i.ease)!==null&&r!==void 0||(i.ease="easeOut"),i}var Qc=class extends Pi{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:s,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=t,lt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=Jc(t);this.animation=qc(e,i,n,l,r),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const c=Ai(n,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(c):Kc(e,i,c),this.animation.cancel()}a==null||a(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,e;(e=(t=this.animation).finish)==null||e.call(t)}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,e;this.isPseudoElement||(e=(t=this.animation).commitStyles)==null||e.call(t)}get duration(){var t,e;const i=((e=(t=this.animation.effect)==null?void 0:t.getComputedTiming)==null?void 0:e.call(t).duration)||0;return H(Number(i))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+H(t)}get time(){return H(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=it(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){var t;return(t=this.manualStartTime)!==null&&t!==void 0?t:Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Yc()?(this.animation.timeline=t,X):e(this)}},Nr={anticipate:Dr,backInOut:Mr,circInOut:Lr};function tu(t){return t in Nr}function eu(t){typeof t.ease=="string"&&tu(t.ease)&&(t.ease=Nr[t.ease])}var iu=["motionValue","onUpdate","onComplete","element"],ki=10,nu=class extends Qc{constructor(t){eu(t),Ir(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const e=this.options,{motionValue:i,onUpdate:n,onComplete:r,element:o}=e,s=q(e,iu);if(!i)return;if(t!==void 0){i.set(t);return}const a=new Ei(m(m({},s),{},{autoplay:!1})),l=Math.max(ki,Y.now()-this.startTime),c=at(0,ki,l-ki);i.setWithVelocity(a.sample(Math.max(0,l-c)).value,a.sample(l).value,c),a.stop()}},Ur=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(yt.test(t)||t==="0")&&!t.startsWith("url("));function ru(t){const e=t[0];if(t.length===1)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}function su(t,e,i,n){const r=t[0];if(r===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],s=Ur(r,e),a=Ur(o,e);return ne(s===a,`You are trying to animate ${e} from "${r}" to "${o}". "${s?o:r}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:ru(t)||(i==="spring"||fi(i))&&n}var ou=new Set(["opacity","clipPath","filter","transform"]),au=Ci(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function lu(t){var e;const{motionValue:i,name:n,repeatDelay:r,repeatType:o,damping:s,type:a}=t;if(!(((e=i==null?void 0:i.owner)==null?void 0:e.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=i.owner.getProps();return au()&&n&&ou.has(n)&&(n!=="transform"||!c)&&!l&&!r&&o!=="mirror"&&s!==0&&a!=="inertia"}var cu=["autoplay","delay","type","repeat","repeatDelay","repeatType","keyframes","name","motionValue","element"],uu=40,hu=class extends Pi{constructor(t){let{autoplay:e=!0,delay:i=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:s="loop",keyframes:a,name:l,motionValue:c,element:u}=t,h=q(t,cu);var d;super(),this.stop=()=>{var v,b;this._animation&&(this._animation.stop(),(v=this.stopTimeline)==null||v.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=Y.now();const f=m({autoplay:e,delay:i,type:n,repeat:r,repeatDelay:o,repeatType:s,name:l,motionValue:c,element:u},h),g=(u==null?void 0:u.KeyframeResolver)||oi;this.keyframeResolver=new g(a,(v,b,S)=>this.onKeyframesResolved(v,b,f,!S),l,c,u),(d=this.keyframeResolver)==null||d.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;const{name:r,type:o,velocity:s,delay:a,isHandoff:l,onUpdate:c}=i;this.resolvedAt=Y.now(),su(t,r,o,s)||((ft.instantAnimations||!a)&&(c==null||c(Ai(t,i,e))),t[0]=t[t.length-1],mi(i),i.repeat=0);const u=n?this.resolvedAt?this.resolvedAt-this.createdAt>uu?this.resolvedAt:this.createdAt:this.createdAt:void 0,h=m(m({startTime:u,finalKeyframe:e},i),{},{keyframes:t}),d=!l&&lu(h)?new nu(m(m({},h),{},{element:h.motionValue.owner.current})):new Ei(h);d.finished.then(()=>this.notifyFinished()).catch(X),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),il()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}},Vi=(t,e,i,n={},r,o)=>s=>{const a=pi(n,t)||{},l=a.delay||n.delay||0;let{elapsed:c=0}=n;c=c-it(l);const u=m(m({keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity()},a),{},{delay:-c,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:r});pc(a)||Object.assign(u,dc(t,u)),u.duration&&(u.duration=it(u.duration)),u.repeatDelay&&(u.repeatDelay=it(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(mi(u),u.delay===0&&(h=!0)),(ft.instantAnimations||ft.skipAnimations)&&(h=!0,mi(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const d=ac(u.keyframes,a);if(d!==void 0){B.update(()=>{u.onUpdate(d),u.onComplete()});return}}return a.isSync?new Ei(u):new hu(u)},du=["transition","transitionEnd"];function fu({protectedKeys:t,needsAnimating:e},i){const n=t.hasOwnProperty(i)&&e[i]!==!0;return e[i]=!1,n}function pu(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:s}=e,a=q(e,du);n&&(o=n);const l=[],c=r&&t.animationState&&t.animationState.getState()[r];for(const h in a){var u;const d=t.getValue(h,(u=t.latestValues[h])!==null&&u!==void 0?u:null),f=a[h];if(f===void 0||c&&fu(c,h))continue;const g=m({delay:i},pi(o||{},h)),v=d.get();if(v!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===v&&!g.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const C=gr(t);if(C){const A=window.MotionHandoffAnimation(C,h,B);A!==null&&(g.startTime=A,b=!0)}}nc(t,h),d.start(Vi(h,d,f,t.shouldReduceMotion&&Hn.has(h)?{type:!1}:g,t,b));const S=d.animation;S&&l.push(S)}return s&&Promise.all(l).then(()=>{B.update(()=>{s&&ec(t,s)})}),l}function mu(t,e){return t in e}var gu=class extends Xn{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(mu(e,t)){const i=t[e];if(typeof i=="string"||typeof i=="number")return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return z()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}};function Gr(t){return typeof t=="object"&&t!==null}function Mi(t){return Gr(t)&&"ownerSVGElement"in t}function $r(t){return Mi(t)&&t.tagName==="svg"}function vu(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=Mi(t)&&!$r(t)?new sr(e):new nr(e);i.mount(t),Et.set(t,i)}function yu(t){const e=new gu({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),Et.set(t,e)}function Wr(t,e,i){const n=_(t)?t:zt(t);return n.start(Vi("",n,e,i)),n.animation}function bu(t,e){return _(t)||typeof t=="number"||typeof t=="string"&&!ui(e)}function Kr(t,e,i,n){const r=[];if(bu(t,e))r.push(Wr(t,ui(e)&&e.default||e,i&&(i.default||i)));else{const o=or(t,e,n),s=o.length;lt(!!s,"No valid elements provided.","no-valid-elements");for(let a=0;a<s;a++){const l=o[a];lt(l!==null,"You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.","animate-null");const c=l instanceof Element?vu:yu;Et.has(l)||c(l);const u=Et.get(l),h=m({},i);"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(a,s)),r.push(...pu(u,m(m({},e),{},{transition:h}),{}))}}return r}function xu(t,e,i){const n=[];return Wl(t,e,i,{spring:se}).forEach(({keyframes:r,transition:o},s)=>{n.push(...Kr(s,r,o))}),n}var wu=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t){const e=this.animations.map(i=>i.attachTimeline(t));return()=>{e.forEach((i,n)=>{i&&i(),this.animations[n].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return Yr(this.animations,"duration")}get iterationDuration(){return Yr(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};function Yr(t,e){let i=0;for(let n=0;n<t.length;n++){const r=t[n][e];r!==null&&r>i&&(i=r)}return i}var Tu=class extends wu{then(t,e){return this.finished.finally(t).then(()=>{})}},Su=["onComplete"];function Au(t){return Array.isArray(t)&&t.some(Array.isArray)}function Pu(t){function e(i,n,r){let o=[],s;if(Au(i))o=xu(i,n,t);else{const l=r||{},{onComplete:c}=l,u=q(l,Su);typeof c=="function"&&(s=c),o=Kr(i,n,u,t)}const a=new Tu(o);return s&&a.finished.then(s),t&&(t.animations.push(a),a.finished.then(()=>{ie(t.animations,a)})),a}return e}var Eu=Pu(),Cu=["initial","animate","whileInView","whileHover","whilePress","whileDrag","whileFocus","exit"],ku=class extends mt{constructor(t){var e,i;super(t),this.animateUpdates=({controlActiveState:n,directAnimate:r,directTransition:o,controlDelay:s=0,isExit:a}={})=>{const{reducedMotion:l}=this.state.options.motionConfig;this.state.visualElement.shouldReduceMotion=l==="always"||l==="user"&&!!Se.current;const c=this.state.target;this.state.target=m({},this.state.baseTarget);let u={};u=this.resolveStateAnimation({controlActiveState:n,directAnimate:r,directTransition:o}),this.state.finalTransition=u;const h=this.createAnimationFactories(c,u,s),{getChildAnimations:d}=this.setupChildAnimations(u,this.state.activeStates);return this.executeAnimations({factories:h,getChildAnimations:d,transition:u,controlActiveState:n,isExit:a})},this.state.visualElement=Ll(this.state.options.as,{presenceContext:null,parent:(e=this.state.parent)==null?void 0:e.visualElement,props:m(m({},this.state.options),{},{whileTap:this.state.options.whilePress}),visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:m({},this.state.baseTarget)},reducedMotionConfig:this.state.options.motionConfig.reducedMotion}),(i=this.state.visualElement.parent)==null||i.addChild(this.state.visualElement),this.state.animateUpdates=this.animateUpdates,this.state.isMounted()&&this.state.startAnimation()}updateAnimationControlsSubscription(){const{animate:t}=this.state.options;hn(t)&&(this.unmountControls=t.subscribe(this.state))}executeAnimations({factories:t,getChildAnimations:e,transition:i,controlActiveState:n,isExit:r=!1}){const o=()=>Promise.all(t.map(u=>u()).filter(Boolean)),s=m({},this.state.target),a=this.state.element,l=u=>{var h,d;r&&(this.state.isExiting=!0),a.dispatchEvent(mn("motionstart",s)),(d=(h=this.state.options).onAnimationStart)==null||d.call(h,s),u.then(()=>{var f,g,v,b;if(r){this.state.isExiting=!1;const S=this.state.options.animatePresenceContext;if(S!=null&&S.onMotionExitComplete&&this.state.presenceContainer){const C=this.state,A=C.visualElement.projection;(f=C.options)!=null&&f.layoutId&&((g=A.currentAnimation)==null?void 0:g.state)==="running"&&!C.options.exit||S.onMotionExitComplete(C.presenceContainer,C)}}a.dispatchEvent(mn("motioncomplete",s,r)),(b=(v=this.state.options).onAnimationComplete)==null||b.call(v,s)}).catch(X)},c=()=>{const u=i!=null&&i.when?(i.when==="beforeChildren"?o():e()).then(()=>i.when==="beforeChildren"?e():o()):Promise.all([o(),e()]);return l(u),u};return n?c:c()}setupChildAnimations(t,e){var i;const n=this.state.visualElement;if(!((i=n.variantChildren)!=null&&i.size)||!e)return{getChildAnimations:()=>Promise.resolve()};const{staggerChildren:r=0,staggerDirection:o=1,delayChildren:s=0}=t||{},a=n.variantChildren.size,l=(a-1)*r,c=typeof s=="function",u=c?d=>s(d,a):o===1?(d=0)=>d*r:(d=0)=>l-d*r,h=Array.from(n.variantChildren).map((d,f)=>d.state.animateUpdates({controlActiveState:e,controlDelay:(c?0:s)+u(f)}));return{getChildAnimations:()=>Promise.all(h.map(d=>d()))}}createAnimationFactories(t,e,i){const n=[];return Object.keys(this.state.target).forEach(r=>{var o,s;if(!la(t[r],this.state.target[r]))return;(o=(s=this.state.baseTarget)[r])!==null&&o!==void 0||(s[r]=Ea.get(this.state.element,r));const a=this.state.target[r]==="none"&&Te(yn[r])?yn[r]:this.state.target[r];n.push(()=>{var l;return Eu(this.state.element,{[r]:a},m(m({},(e==null?void 0:e[r])||e),{},{delay:(((l=e==null?void 0:e[r])==null?void 0:l.delay)||(e==null?void 0:e.delay)||0)+i}))})}),n}resolveStateAnimation({controlActiveState:t,directAnimate:e,directTransition:i}){let n=this.state.options.transition,r={};const{variants:o,custom:s,transition:a,animatePresenceContext:l}=this.state.options,c=s!=null?s:l==null?void 0:l.custom;return this.state.activeStates=m(m({},this.state.activeStates),t),Cu.forEach(u=>{if(!this.state.activeStates[u]||hn(this.state.options[u]))return;const h=this.state.options[u];let d=Te(h)?ee(h,o,c):void 0;if(this.state.visualElement.isVariantNode){const f=ee(this.state.context[u],o,c);d=Object.assign(f?f||{}:r,d)}d&&(u!=="initial"&&(n=d.transition||this.state.options.transition||{}),r=Object.assign(r,d))}),e&&(r=ee(e,o,c),n=r.transition||i||a),Object.entries(r).forEach(([u,h])=>{u!=="transition"&&(this.state.target[u]=h)}),n}mount(){var t,e;const{element:i}=this.state;pn.set(i,this.state),Et.get(i)||(this.state.visualElement.mount(i),Et.set(i,this.state.visualElement)),this.state.visualElement.state=this.state,this.updateAnimationControlsSubscription();const n=this.state.visualElement,r=n.parent;if(n.enteringChildren=void 0,(t=this.state.parent)!=null&&t.isMounted()&&!n.isControllingVariants&&((e=r==null?void 0:r.enteringChildren)!=null&&e.has(n))){const{delayChildren:o}=this.state.parent.finalTransition||{};this.animateUpdates({controlActiveState:this.state.parent.activeStates,controlDelay:Bl(r.enteringChildren,n,o)})()}}update(){const{animate:t}=this.state.options,{animate:e}=this.state.visualElement.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;(t=this.unmountControls)==null||t.call(this)}};function Vu(t){return Gr(t)&&"offsetHeight"in t}var Xr={x:!1,y:!1};function Hr(){return Xr.x||Xr.y}var qr=(t,e)=>e?t===e?!0:qr(t,e.parentElement):!1,Mu=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Zr(t,e){const i=hi(t),n=new AbortController,r=m(m({passive:!0},e),{},{signal:n.signal});return[i,r,()=>n.abort()]}var Du=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ru(t){return Du.has(t.tagName)||t.isContentEditable===!0}var Pe=new WeakSet;function Jr(t){return e=>{e.key==="Enter"&&t(e)}}function Di(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}var Lu=(t,e)=>{const i=t.currentTarget;if(!i)return;const n=Jr(()=>{if(Pe.has(i))return;Di(i,"down");const r=Jr(()=>{Di(i,"up")}),o=()=>Di(i,"cancel");i.addEventListener("keyup",r,e),i.addEventListener("blur",o,e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function Qr(t){return Mu(t)&&!Hr()}function Bu(t,e,i={}){const[n,r,o]=Zr(t,i),s=a=>{const l=a.currentTarget;if(!Qr(a))return;Pe.add(l);const c=e(l,a),u=(f,g)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",d),Pe.has(l)&&Pe.delete(l),Qr(f)&&typeof c=="function"&&c(f,{success:g})},h=f=>{u(f,l===window||l===document||i.useGlobalTarget||qr(l,f.target))},d=f=>{u(f,!1)};window.addEventListener("pointerup",h,r),window.addEventListener("pointercancel",d,r)};return n.forEach(a=>{(i.useGlobalTarget?window:a).addEventListener("pointerdown",s,r),Vu(a)&&(a.addEventListener("focus",l=>Lu(l,r)),!Ru(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function ts(t){return{point:{x:t.pageX,y:t.pageY}}}function es(t,e,i){const n=t.options;n.whilePress&&t.setActive("whilePress",i==="Start");const r=n[`onPress${i==="End"?"":i}`];r&&B.postRender(()=>r(e,ts(e)))}var ju=class extends mt{isActive(){const{whilePress:t,onPress:e,onPressCancel:i,onPressStart:n}=this.state.options;return!!(t||e||i||n)}constructor(t){super(t)}mount(){this.register()}update(){const{whilePress:t,onPress:e,onPressCancel:i,onPressStart:n}=this.state.options;t||e||i||n||this.register()}register(){const t=this.state.element;!t||!this.isActive()||(this.unmount(),this.unmount=Bu(t,(e,i)=>(es(this.state,i,"Start"),(n,{success:r})=>es(this.state,n,r?"End":"Cancel")),{useGlobalTarget:this.state.options.globalPressTarget}))}};function is(t){return!(t.pointerType==="touch"||Hr())}function Ou(t,e,i={}){const[n,r,o]=Zr(t,i),s=a=>{if(!is(a))return;const{target:l}=a,c=e(l,a);if(typeof c!="function"||!l)return;const u=h=>{is(h)&&(c(h),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,r)};return n.forEach(a=>{a.addEventListener("pointerenter",s,r)}),o}function ns(t,e,i){const n=t.options;n.whileHover&&t.setActive("whileHover",i==="Start");const r=n[`onHover${i}`];r&&B.postRender(()=>r(e,ts(e)))}var Iu=class extends mt{isActive(){const{whileHover:t,onHoverStart:e,onHoverEnd:i}=this.state.options;return!!(t||e||i)}constructor(t){super(t)}mount(){this.register()}update(){const{whileHover:t,onHoverStart:e,onHoverEnd:i}=this.state.visualElement.prevProps;t||e||i||this.register()}register(){const t=this.state.element;!t||!this.isActive()||(this.unmount(),this.unmount=Ou(t,(e,i)=>(ns(this.state,i,"Start"),n=>{ns(this.state,n,"End")})))}},Fu={some:0,all:1};function _u(t,e,{root:i,margin:n,amount:r="some"}={}){const o=hi(t),s=new WeakMap,a=c=>{c.forEach(u=>{const h=s.get(u.target);if(u.isIntersecting!==!!h)if(u.isIntersecting){const d=e(u.target,u);typeof d=="function"?s.set(u.target,d):l.unobserve(u.target)}else typeof h=="function"&&(h(u),s.delete(u.target))})},l=new IntersectionObserver(a,{root:i,rootMargin:n,threshold:typeof r=="number"?r:Fu[r]});return o.forEach(c=>l.observe(c)),()=>l.disconnect()}var zu=["once"];function rs(t,e,i){const n=t.options;n.whileInView&&t.setActive("whileInView",i==="Enter");const r=n[`onViewport${i}`];r&&B.postRender(()=>r(e))}var Nu=class extends mt{isActive(){const{whileInView:t,onViewportEnter:e,onViewportLeave:i}=this.state.options;return!!(t||e||i)}constructor(t){super(t)}startObserver(){const t=this.state.element;if(!t||!this.isActive())return;this.unmount();const e=this.state.options.inViewOptions||{},{once:i}=e,n=q(e,zu);this.unmount=_u(t,(r,o)=>{if(rs(this.state,o,"Enter"),!i)return s=>{rs(this.state,o,"Leave")}},n)}mount(){this.startObserver()}update(){const{props:t,prevProps:e}=this.state.visualElement;["amount","margin","root"].some(Uu(t,e))&&this.startObserver()}};function Uu({inViewOptions:t={}},{inViewOptions:e={}}={}){return i=>t[i]!==e[i]}function Ee(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}var Gu=class extends mt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.state.element.matches(":focus-visible")}catch(e){t=!0}t&&(this.state.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&(this.state.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=re(Ee(this.state.element,"focus",()=>this.onFocus()),Ee(this.state.element,"blur",()=>this.onBlur()))}},$u=(t,e)=>t.depth-e.depth,Wu=class{constructor(){this.children=[],this.isDirty=!1}add(t){Ze(this.children,t),this.isDirty=!0}remove(t){ie(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort($u),this.isDirty=!1,this.children.forEach(t)}};function Ri(t){return _(t)?t.get():t}var ss=["TopLeft","TopRight","BottomLeft","BottomRight"],Ku=ss.length,os=t=>typeof t=="string"?parseFloat(t):t,as=t=>typeof t=="number"||x.test(t);function Yu(t,e,i,n,r,o){if(r){var s,a;t.opacity=j(0,(s=i.opacity)!==null&&s!==void 0?s:1,Xu(n)),t.opacityExit=j((a=e.opacity)!==null&&a!==void 0?a:1,0,Hu(n))}else if(o){var l,c;t.opacity=j((l=e.opacity)!==null&&l!==void 0?l:1,(c=i.opacity)!==null&&c!==void 0?c:1,n)}for(let u=0;u<Ku;u++){const h=`border${ss[u]}Radius`;let d=ls(e,h),f=ls(i,h);d===void 0&&f===void 0||(d||(d=0),f||(f=0),d===0||f===0||as(d)===as(f)?(t[h]=Math.max(j(os(d),os(f),n),0),(st.test(f)||st.test(d))&&(t[h]+="%")):t[h]=f)}(e.rotate||i.rotate)&&(t.rotate=j(e.rotate||0,i.rotate||0,n))}function ls(t,e){return t[e]!==void 0?t[e]:t.borderRadius}var Xu=cs(0,.5,Rr),Hu=cs(.5,.95,X);function cs(t,e,i){return n=>n<t?0:n>e?1:i(Gt(t,e,n))}function us(t,e){t.min=e.min,t.max=e.max}function nt(t,e){us(t.x,e.x),us(t.y,e.y)}function hs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Li(t){return t===void 0||t===1}function Bi({scale:t,scaleX:e,scaleY:i}){return!Li(t)||!Li(e)||!Li(i)}function Mt(t){return Bi(t)||ds(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ds(t){return fs(t.x)||fs(t.y)}function fs(t){return t&&t!=="0%"}function Ce(t,e,i){return i+e*(t-i)}function ps(t,e,i,n,r){return r!==void 0&&(t=Ce(t,r,n)),Ce(t,i,n)+e}function ji(t,e=0,i=1,n,r){t.min=ps(t.min,e,i,n,r),t.max=ps(t.max,e,i,n,r)}function ms(t,{x:e,y:i}){ji(t.x,e.translate,e.scale,e.originPoint),ji(t.y,i.translate,i.scale,i.originPoint)}var gs=.999999999999,vs=1.0000000000001;function qu(t,e,i,n=!1){const r=i.length;if(!r)return;e.x=e.y=1;let o,s;for(let a=0;a<r;a++){o=i[a],s=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Wt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,ms(t,s)),n&&Mt(o.latestValues)&&Wt(t,o.latestValues))}e.x<vs&&e.x>gs&&(e.x=1),e.y<vs&&e.y>gs&&(e.y=1)}function ke(t,e){t.min=t.min+e,t.max=t.max+e}function ys(t,e,i,n,r=.5){ji(t,e,i,j(t.min,t.max,r),n)}function Wt(t,e){ys(t.x,e.x,e.scaleX,e.scale,e.originX),ys(t.y,e.y,e.scaleY,e.scale,e.originY)}var Zu=.9999,Ju=1.0001,Qu=-.01,th=.01;function Z(t){return t.max-t.min}function eh(t,e,i){return Math.abs(t-e)<=i}function bs(t,e,i,n=.5){t.origin=n,t.originPoint=j(e.min,e.max,t.origin),t.scale=Z(i)/Z(e),t.translate=j(i.min,i.max,t.origin)-t.originPoint,(t.scale>=Zu&&t.scale<=Ju||isNaN(t.scale))&&(t.scale=1),(t.translate>=Qu&&t.translate<=th||isNaN(t.translate))&&(t.translate=0)}function le(t,e,i,n){bs(t.x,e.x,i.x,n?n.originX:void 0),bs(t.y,e.y,i.y,n?n.originY:void 0)}function xs(t,e,i){t.min=i.min+e.min,t.max=t.min+Z(e)}function ih(t,e,i){xs(t.x,e.x,i.x),xs(t.y,e.y,i.y)}function ws(t,e,i){t.min=e.min-i.min,t.max=t.min+Z(e)}function Ve(t,e,i){ws(t.x,e.x,i.x),ws(t.y,e.y,i.y)}function Ts(t,e,i,n,r){return t-=e,t=Ce(t,1/i,n),r!==void 0&&(t=Ce(t,1/r,n)),t}function nh(t,e=0,i=1,n=.5,r,o=t,s=t){if(st.test(e)&&(e=parseFloat(e),e=j(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=j(o.min,o.max,n);t===o&&(a-=e),t.min=Ts(t.min,e,i,a,r),t.max=Ts(t.max,e,i,a,r)}function Ss(t,e,[i,n,r],o,s){nh(t,e[i],e[n],e[r],e.scale,o,s)}var rh=["x","scaleX","originX"],sh=["y","scaleY","originY"];function As(t,e,i,n){Ss(t.x,e,rh,i?i.x:void 0,n?n.x:void 0),Ss(t.y,e,sh,i?i.y:void 0,n?n.y:void 0)}function Ps(t){return t.translate===0&&t.scale===1}function Es(t){return Ps(t.x)&&Ps(t.y)}function Cs(t,e){return t.min===e.min&&t.max===e.max}function oh(t,e){return Cs(t.x,e.x)&&Cs(t.y,e.y)}function ks(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Vs(t,e){return ks(t.x,e.x)&&ks(t.y,e.y)}function Ms(t){return Z(t.x)/Z(t.y)}function Ds(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var ah=class{constructor(){this.members=[]}add(t){Ze(this.members,t),t.scheduleRender()}remove(t){if(ie(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(t){const e=this.members.findIndex(n=>t===n);if(e===0)return!1;let i;for(let n=e;n>=0;n--){const r=this.members[n];if(r.isPresent!==!1){i=r;break}}return i?(this.promote(i),!0):!1}promote(t,e){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:n}=t.options;n===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function lh(t,e,i){let n="";const r=t.x.translate/e.x,o=t.y.translate/e.y,s=(i==null?void 0:i.z)||0;if((r||o||s)&&(n=`translate3d(${r}px, ${o}px, ${s}px) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){const{transformPerspective:c,rotate:u,rotateX:h,rotateY:d,skewX:f,skewY:g}=i;c&&(n=`perspective(${c}px) ${n}`),u&&(n+=`rotate(${u}deg) `),h&&(n+=`rotateX(${h}deg) `),d&&(n+=`rotateY(${d}deg) `),f&&(n+=`skewX(${f}deg) `),g&&(n+=`skewY(${g}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(n+=`scale(${a}, ${l})`),n||"none"}function Rs(t){return[t("x"),t("y")]}var Me={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Dt={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Oi=["","X","Y","Z"],ch=1e3,uh=0;function Ii(t,e,i,n){const{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function Ls(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const i=gr(e);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:r,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",B,!(r||o))}const{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&Ls(n)}function Bs({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(s={},a=e==null?void 0:e()){this.id=uh++,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,rt.value&&(Dt.nodes=Dt.calculatedTargetDeltas=Dt.calculatedProjections=0),this.nodes.forEach(fh),this.nodes.forEach(vh),this.nodes.forEach(yh),this.nodes.forEach(ph),rt.addProjectionMetrics&&rt.addProjectionMetrics(Dt)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Wu)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Je),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=Mi(s)&&!$r(s),this.instance=s;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,h=0;const d=()=>this.root.updateBlockedByResize=!1;B.read(()=>{h=window.innerWidth}),t(s,()=>{const f=window.innerWidth;f!==h&&(h=f,this.root.updateBlockedByResize=!0,u&&u(),u=zo(d,250),Me.hasAnimatedSinceResize&&(Me.hasAnimatedSinceResize=!1,this.nodes.forEach(Is)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:d,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||Sh,{onLayoutAnimationStart:v,onLayoutAnimationComplete:b}=c.getProps(),S=!this.targetLayout||!Vs(this.targetLayout,f),C=!h&&d;if(this.options.layoutRoot||this.resumeFrom||C||h&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const A=m(m({},pi(g,"layout")),{},{onPlay:v,onComplete:b});(c.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A),this.setAnimationOrigin(u,C)}else h||Is(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),pt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(bh),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ls(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(js);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Os);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(gh),this.nodes.forEach(hh),this.nodes.forEach(dh)):this.nodes.forEach(Os),this.clearAllSnapshots();const s=Y.now();$.delta=at(0,1e3/60,s-$.timestamp),$.timestamp=s,$.isProcessing=!0,Ne.update.process($),Ne.preRender.process($),Ne.render.process($),$.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Kn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(mh),this.sharedNodes.forEach(xh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,B.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){B.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Z(this.snapshot.measuredBox.x)&&!Z(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=z(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=n(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Es(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&this.instance&&(a||Mt(this.latestValues)||u)&&(r(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),Ah(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:a}=this.options;if(!a)return z();const l=a.measureViewportBox();if(!((s=this.scroll)!=null&&s.wasRoot||this.path.some(Ph))){const{scroll:c}=this.root;c&&(ke(l.x,c.offset.x),ke(l.y,c.offset.y))}return l}removeElementScroll(s){var a;const l=z();if(nt(l,s),(a=this.scroll)!=null&&a.wasRoot)return l;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:h,options:d}=u;u!==this.root&&h&&d.layoutScroll&&(h.wasRoot&&nt(l,s),ke(l.x,h.offset.x),ke(l.y,h.offset.y))}return l}applyTransform(s,a=!1){const l=z();nt(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Wt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Mt(u.latestValues)&&Wt(l,u.latestValues)}return Mt(this.latestValues)&&Wt(l,this.latestValues),l}removeTransform(s){const a=z();nt(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Mt(c.latestValues))continue;Bi(c.latestValues)&&c.updateSnapshot();const u=z(),h=c.measurePageBox();nt(u,h),As(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Mt(this.latestValues)&&As(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options=m(m(m({},this.options),s),{},{crossfade:s.crossfade!==void 0?s.crossfade:!0})}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==$.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(a=this.parent)!=null&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=$.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=z(),this.targetWithTransforms=z()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ih(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nt(this.target,this.layout.layoutBox),ms(this.target,this.targetDelta)):nt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0),rt.value&&Dt.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Bi(this.parent.latestValues)||ds(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,a,l){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=z(),this.relativeTargetOrigin=z(),Ve(this.relativeTargetOrigin,a,l),nt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||(s=this.parent)!=null&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===$.timestamp&&(c=!1),c)return;const{layout:u,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||h))return;nt(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;qu(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=z());const{target:g}=a;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(hs(this.prevProjectionDelta.x,this.projectionDelta.x),hs(this.prevProjectionDelta.y,this.projectionDelta.y)),le(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!Ds(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ds(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),rt.value&&Dt.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=_t(),this.projectionDelta=_t(),this.projectionDeltaWithTransform=_t()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u=m({},this.latestValues),h=_t();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=z(),f=(l?l.source:void 0)!==(this.layout?this.layout.source:void 0),g=this.getStack(),v=!g||g.members.length<=1,b=!!(f&&!v&&this.options.crossfade===!0&&!this.path.some(Th));this.animationProgress=0;let S;this.mixTargetDelta=C=>{const A=C/1e3;Fs(h.x,s.x,A),Fs(h.y,s.y,A),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ve(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wh(this.relativeTarget,this.relativeTargetOrigin,d,A),S&&oh(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=z()),nt(S,this.relativeTarget)),f&&(this.animationValues=u,Yu(u,c,this.latestValues,A,b,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(pt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=B.update(()=>{Me.hasAnimatedSinceResize=!0,Vt.layout++,this.motionValue||(this.motionValue=zt(0)),this.currentAnimation=Wr(this.motionValue,[0,1e3],m(m({},s),{},{velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),s.onUpdate&&s.onUpdate(u)},onStop:()=>{Vt.layout--},onComplete:()=>{Vt.layout--,s.onComplete&&s.onComplete(),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ch),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&Gs(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||z();const h=Z(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+h;const d=Z(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}nt(a,l),Wt(a,u),le(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new ah),this.sharedNodes.get(s).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())==null?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())==null?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Ii("z",s,c,this.animationValues);for(let u=0;u<Oi.length;u++)Ii(`rotate${Oi[u]}`,s,c,this.animationValues),Ii(`skew${Oi[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Ri(a==null?void 0:a.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Ri(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Mt(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=lh(this.projectionDeltaWithTransform,this.treeScale,u);l&&(h=l(u,h)),s.transform=h;const{x:d,y:f}=this.projectionDelta;if(s.transformOrigin=`${d.origin*100}% ${f.origin*100}% 0`,c.animationValues){var g,v;s.opacity=c===this?(g=(v=u.opacity)!==null&&v!==void 0?v:this.latestValues.opacity)!==null&&g!==void 0?g:1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit}else s.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const b in Qt){if(u[b]===void 0)continue;const{correct:S,applyTo:C,isCSSVariable:A}=Qt[b],D=h==="none"?u[b]:S(u[b],c);if(C){const P=C.length;for(let y=0;y<P;y++)s[C[y]]=D}else A?this.options.visualElement.renderState.vars[b]=D:s[b]=D}this.options.layoutId&&(s.pointerEvents=c===this?Ri(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(js),this.root.sharedNodes.clear()}}}function hh(t){t.updateLayout()}function dh(t){var e;const i=((e=t.resumeFrom)==null?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=t.layout,{animationType:o}=t.options,s=i.source!==t.layout.source;o==="size"?Rs(h=>{const d=s?i.measuredBox[h]:i.layoutBox[h],f=Z(d);d.min=n[h].min,d.max=d.min+f}):Gs(o,i.layoutBox,n)&&Rs(h=>{const d=s?i.measuredBox[h]:i.layoutBox[h],f=Z(n[h]);d.max=d.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+f)});const a=_t();le(a,n,i.layoutBox);const l=_t();s?le(l,t.applyTransform(r,!0),i.measuredBox):le(l,n,i.layoutBox);const c=!Es(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:d,layout:f}=h;if(d&&f){const g=z();Ve(g,i.layoutBox,d.layoutBox);const v=z();Ve(v,n,f.layoutBox),Vs(g,v)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=v,t.relativeTargetOrigin=g,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:i,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function fh(t){rt.value&&Dt.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ph(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function mh(t){t.clearSnapshot()}function js(t){t.clearMeasurements()}function Os(t){t.isLayoutDirty=!1}function gh(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Is(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function vh(t){t.resolveTargetDelta()}function yh(t){t.calcProjection()}function bh(t){t.resetSkewAndRotation()}function xh(t){t.removeLeadSnapshot()}function Fs(t,e,i){t.translate=j(e.translate,0,i),t.scale=j(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function _s(t,e,i,n){t.min=j(e.min,i.min,n),t.max=j(e.max,i.max,n)}function wh(t,e,i,n){_s(t.x,e.x,i.x,n),_s(t.y,e.y,i.y,n)}function Th(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}var Sh={duration:.45,ease:[.4,0,.1,1]},zs=t=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ns=zs("applewebkit/")&&!zs("chrome/")?Math.round:X;function Us(t){t.min=Ns(t.min),t.max=Ns(t.max)}function Ah(t){Us(t.x),Us(t.y)}function Gs(t,e,i){return t==="position"||t==="preserve-aspect"&&!eh(Ms(e),Ms(i),.2)}function Ph(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}function Eh(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}var Ch=Bs({attachResizeListener:(t,e)=>Eh(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Fi={current:void 0},kh=Bs({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Fi.current){const t=new Ch({});t.mount(window),t.setOptions({layoutScroll:!0}),Fi.current=t}return Fi.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});function $s(t){if(t)return t.options.allowProjection!==!1?t.projection:$s(t.parent)}var Ws={borderRadius:m(m({},ot),{},{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ot,borderTopRightRadius:ot,borderBottomLeftRadius:ot,borderBottomRightRadius:ot,boxShadow:an};function ce(t){return typeof t=="object"&&t!==null&&"nodeType"in t}var Vh=class extends mt{constructor(t){super(t),un(Ws)}initProjection(){const t=this.state.options;this.state.visualElement.projection=new kh(this.state.visualElement.latestValues,t["data-framer-portal-id"]?void 0:$s(this.state.visualElement.parent)),this.state.visualElement.projection.isPresent=!0,this.setOptions()}beforeMount(){this.initProjection()}setOptions(){const t=this.state.options,{layoutId:e,layout:i,drag:n=!1,dragConstraints:r=!1}=t;this.state.visualElement.projection.setOptions({layout:i,layoutId:e,alwaysMeasureLayout:!!e||!!n||r&&ce(r),visualElement:this.state.visualElement,animationType:typeof t.layout=="string"?t.layout:"both",layoutRoot:t.layoutRoot,layoutScroll:t.layoutScroll,crossfade:t.crossfade,onExitComplete:()=>{var o,s;!((o=this.state.visualElement.projection)!=null&&o.isPresent)&&this.state.options.layoutId&&!this.state.isExiting&&((s=this.state.options.animatePresenceContext)==null||s.onMotionExitComplete(this.state.presenceContainer,this.state))}})}update(){this.setOptions()}mount(){var t;(t=this.state.visualElement.projection)==null||t.mount(this.state.element)}};function Ks(t){return t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1}function _i(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}function Mh(t){return e=>Ks(e)&&t(e,_i(e))}function ue(t,e,i,n){return Ee(t,e,Mh(i),n)}function Ys(t){let e=null;return()=>{const i=()=>{e=null};return e===null?(e=t,i):!1}}var Xs=Ys("dragHorizontal"),Hs=Ys("dragVertical");function Dh(t){let e=!1;if(t==="y")e=Hs();else if(t==="x")e=Xs();else{const i=Xs(),n=Hs();i&&n?e=()=>{i(),n()}:(i&&i(),n&&n())}return e}function zi(t){return t.max-t.min}function Rh(t,{min:e,max:i},n){return e!==void 0&&t<e?t=n?j(e,t,n.min):Math.max(t,e):i!==void 0&&t>i&&(t=n?j(i,t,n.max):Math.min(t,i)),t}var Ni=.35;function Lh(t,{top:e,left:i,bottom:n,right:r}){return{x:qs(t.x,i,r),y:qs(t.y,e,n)}}function qs(t,e,i){return{min:e!==void 0?t.min+e:void 0,max:i!==void 0?t.max+i-(t.max-t.min):void 0}}function Bh(t=Ni){return t===!1?t=0:t===!0&&(t=Ni),{x:Zs(t,"left","right"),y:Zs(t,"top","bottom")}}function Zs(t,e,i){return{min:Js(t,e),max:Js(t,i)}}function Js(t,e){return typeof t=="number"?t:t[e]||0}function jh(t,e){const i={};return e.min!==void 0&&(i.min=e.min-t.min),e.max!==void 0&&(i.max=e.max-t.min),i}function Oh(t,e){return{x:Qs(t.x,e.x),y:Qs(t.y,e.y)}}function Qs(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function Ih(t,e){let i=.5;const n=zi(t),r=zi(e);return r>n?i=Gt(e.min,e.max-n,t.min):n>r&&(i=Gt(t.min,t.max-r,e.min)),at(0,1,i)}var to=(t,e)=>Math.abs(t-e);function Fh(t,e){const i=to(t.x,e.x),n=to(t.y,e.y);return Math.sqrt(Math.pow(i,2)+Math.pow(n,2))}var eo=new Set(["auto","scroll"]),io=class{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=u=>{this.handleScroll(u.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=Gi(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,d=Fh(u.offset,{x:0,y:0})>=3;if(!h&&!d)return;const{point:f}=u,{timestamp:g}=$;this.history.push(m(m({},f),{},{timestamp:g}));const{onStart:v,onMove:b}=this.handlers;h||(v&&v(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,u)},this.handlePointerMove=(u,h)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=Ui(h,this.transformPagePoint),B.update(this.updatePoint,!0)},this.handlePointerUp=(u,h)=>{this.end();const{onEnd:d,onSessionEnd:f,resumeAnimation:g}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Gi(u.type==="pointercancel"?this.lastMoveEventInfo:Ui(h,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,v),f&&f(u,v)},!Ks(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;const s=Ui(_i(t),this.transformPagePoint),{point:a}=s,{timestamp:l}=$;this.history=[m(m({},a),{},{timestamp:l})];const{onSessionStart:c}=e;c&&c(t,Gi(s,this.history)),this.removeListeners=re(ue(this.contextWindow,"pointermove",this.handlePointerMove),ue(this.contextWindow,"pointerup",this.handlePointerUp),ue(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}isScrollable(t){const e=window.getComputedStyle(t);return e.overflow==="auto"||e.overflow==="scroll"||e.overflowX==="auto"||e.overflowX==="scroll"||e.overflowY==="auto"||e.overflowY==="scroll"}startScrollTracking(t){let e=t.parentElement;for(;e;){const i=getComputedStyle(e);(eo.has(i.overflowX)||eo.has(i.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const e=this.scrollPositions.get(t);if(!e)return;const i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:n.x-e.x,y:n.y-e.y};r.x===0&&r.y===0||(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,n),B.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){var t;this.removeListeners&&this.removeListeners(),(t=this.removeScrollListeners)==null||t.call(this),this.scrollPositions.clear(),pt(this.updatePoint)}};function Ui(t,e){return e?{point:e(t.point)}:t}function no(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Gi({point:t},e){return{point:t,delta:no(t,ro(e)),offset:no(t,_h(e)),velocity:zh(e,.1)}}function _h(t){return t[0]}function ro(t){return t[t.length-1]}function zh(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null;const r=ro(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>it(e)));)i--;if(!n)return{x:0,y:0};const o=H(r.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const s={x:(r.x-n.x)/o,y:(r.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}var so=()=>({min:0,max:0});function Nh(){return{x:so(),y:so()}}function ct(t){return[t("x"),t("y")]}function Uh(t){return!!(_(t)&&t.add)}function oo(t,e){const i=t.getValue("willChange");if(Uh(i))return i.add(e)}function ao({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function Gh(t,e){if(!e)return t;const i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}function $h({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function lo(t,e){t.min=t.min+e,t.max=t.max+e}function Wh(t,e){return ao(Gh(t.getBoundingClientRect(),e))}function Kh(t,e,i){const n=Wh(t,i),{scroll:r}=e;return r&&(lo(n.x,r.offset.x),lo(n.y,r.offset.y)),n}function Yh(t){var e;return(e=t.projection)==null?void 0:e.isPresent}function co({current:t}){return t?t.ownerDocument.defaultView:null}var Xh=new WeakMap,Hh=class{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Nh(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const i=l=>{e?this.stopAnimation():this.pauseAnimation(),e&&this.snapToCursor(_i(l,"page").point)},n=(l,c)=>{this.stopAnimation();const{drag:u,dragPropagation:h,onDragStart:d}=this.getProps();u&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Dh(u),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ct(f=>{let g=this.getAxisMotionValue(f).get()||0;if(st.test(g)){const{projection:v}=this.visualElement;if(v&&v.layout){const b=v.layout.layoutBox[f];b&&(g=zi(b)*(parseFloat(g)/100))}}this.originPoint[f]=g}),d&&B.postRender(()=>d(l,c)),oo(this.visualElement,"transform"),this.visualElement.state.setActive("whileDrag",!0))},r=(l,c)=>{const{dragPropagation:u,dragDirectionLock:h,onDirectionLock:d,onDrag:f}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:g}=c;if(h&&this.currentDirection===null){this.currentDirection=qh(g),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",c.point,g),this.updateAxis("y",c.point,g),this.visualElement.render(),f&&f(l,c)},o=(l,c)=>this.stop(l,c),s=()=>ct(l=>{var c;return this.getAnimationState(l)==="paused"&&((c=this.getAxisMotionValue(l).animation)==null?void 0:c.play())}),{dragSnapToOrigin:a}=this.getProps();this.panSession=new io(t,{onSessionStart:i,onStart:n,onMove:r,onSessionEnd:o,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:a,contextWindow:co(this.visualElement),element:this.visualElement.current})}stop(t,e){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:n}=e;this.startAnimation(n);const{onDragEnd:r}=this.getProps();r&&B.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.visualElement.state.setActive("whileDrag",!1)}updateAxis(t,e,i){const{drag:n}=this.getProps();if(!i||!De(t,n,this.currentDirection))return;const r=this.getAxisMotionValue(t);let o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=Rh(o,this.constraints[t],this.elastic[t])),r.set(o)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)==null?void 0:t.layout,r=this.constraints;e&&ce(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=Lh(n.layoutBox,e):this.constraints=!1,this.elastic=Bh(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ct(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=jh(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!ce(t))return!1;const i=t;xe(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const r=Kh(i,n.root,this.visualElement.getTransformPagePoint());let o=Oh(n.layout.layoutBox,r);if(e){const s=e($h(o));this.hasMutatedConstraints=!!s,s&&(o=ao(s))}return o}startAnimation(t){const{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=ct(c=>{if(!De(c,e,this.currentDirection))return;let u=a&&a[c]||{};o&&(u={min:0,max:0});const h=n?200:1e6,d=n?40:1e7,f=m(m({type:"inertia",velocity:i?t[c]:0,bounceStiffness:h,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10},r),u);return this.startAxisValueAnimation(c,f)});return Promise.all(l).then(s)}startAxisValueAnimation(t,e){const i=this.getAxisMotionValue(t);return oo(this.visualElement,t),i.start(Vi(t,i,0,e,this.visualElement,!1))}stopAnimation(){Yh(this.visualElement)&&ct(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ct(t=>{var e;return(e=this.getAxisMotionValue(t).animation)==null?void 0:e.pause()})}getAnimationState(t){var e;return(e=this.getAxisMotionValue(t).animation)==null?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){ct(e=>{const{drag:i}=this.getProps();if(!De(e,i,this.currentDirection))return;const{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){const{min:o,max:s}=n.layout.layoutBox[e];r.set(t[e]-j(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!ce(e)||!i||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};ct(o=>{const s=this.getAxisMotionValue(o);if(s&&this.constraints!==!1){const a=s.get();n[o]=Ih({min:a,max:a},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),ct(o=>{if(!De(o,t,null))return;const s=this.getAxisMotionValue(o),{min:a,max:l}=this.constraints[o];s.set(j(a,l,n[o]))})}addListeners(){if(!this.visualElement.current)return;Xh.set(this.visualElement,this);const t=this.visualElement.current,e=ue(t,"pointerdown",a=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(a)}),i=()=>{const{dragConstraints:a}=this.getProps();ce(a)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",i);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),B.read(i);const o=Ee(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:a,hasLayoutChanged:l})=>{this.isDragging&&l&&(ct(c=>{const u=this.getAxisMotionValue(c);u&&(this.originPoint[c]+=a[c].translate,u.set(u.get()+a[c].translate))}),this.visualElement.render())});return()=>{o(),e(),r(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:o=Ni,dragMomentum:s=!0}=t;return m(m({},t),{},{drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:o,dragMomentum:s})}};function De(t,e,i){return(e===!0||e===t)&&(i===null||i===t)}function qh(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}var Zh=class extends mt{constructor(t){super(t),this.removeGroupControls=X,this.removeListeners=X,this.controls=new Hh(t.visualElement)}mount(){const{dragControls:t}=this.state.options;t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||X}unmount(){this.removeGroupControls(),this.removeListeners()}},he=!1,Jh=class extends mt{constructor(t){super(t),un(Ws),t.getSnapshot=this.getSnapshot.bind(this),t.didUpdate=this.didUpdate.bind(this)}beforeUpdate(t){this.getSnapshot(t,void 0)}update(){this.didUpdate()}didUpdate(){var t,e;he&&(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&(he=!1,(e=(t=this.state.visualElement.projection)==null?void 0:t.root)==null||e.didUpdate())}mount(){var t;const e=this.state.options,i=this.state.options.layoutGroup;if(e.layout||e.layoutId){const n=this.state.visualElement.projection;if(n){n.promote();const r=n.getStack();r!=null&&r.prevLead&&!r.prevLead.snapshot&&(r.prevLead.willUpdate(),he=!0),(t=i==null?void 0:i.group)==null||t.add(n)}Me.hasEverUpdated=!0}this.didUpdate()}beforeUnmount(){this.getSnapshot(this.state.options,!1)}unmount(){const t=this.state.options.layoutGroup,e=this.state.visualElement.projection;e&&(t!=null&&t.group&&(this.state.options.layout||this.state.options.layoutId)&&t.group.remove(e),this.state.options.layoutId&&(he=!0),this.didUpdate())}getSnapshot(t,e){const i=this.state.visualElement.projection,{drag:n,layoutDependency:r,layout:o,layoutId:s}=t;if(!i||!o&&!s&&!n)return;he=!0;const a=this.state.options;(n||a.layoutDependency!==r||r===void 0||Te(e)&&i.isPresent!==e)&&i.willUpdate(),Te(e)&&e!==i.isPresent&&(i.isPresent=e,e?i.promote():i.relegate())}};function uo(t){return(e,i)=>{t&&B.postRender(()=>t(e,i))}}var Qh=class extends mt{constructor(){super(...arguments),this.removePointerDownListener=X}onPointerDown(t){this.session=new io(t,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:co(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:uo((t,e)=>{const{onPanSessionStart:i}=this.state.options;i&&i(t,e)}),onStart:uo((t,e)=>{const{onPanStart:i}=this.state.options;i&&i(t,e)}),onMove:(t,e)=>{const{onPan:i}=this.state.options;i&&i(t,e)},onEnd:(t,e)=>{const{onPanEnd:i}=this.state.options;delete this.session,i&&B.postRender(()=>i(t,e))}}}mount(){this.removePointerDownListener=ue(this.state.element,"pointerdown",this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},td=[ku,ju,Iu,Nu,Gu,Vh,Qh,Zh,Jh],ed={reducedMotion:"never",transition:void 0,nonce:void 0},[id,yf]=te("MotionConfig");function nd(){return id((0,V.computed)(()=>ed))}var rd="data-ap-child",[sd,bf]=te("AnimatePresenceContext");function Re(t){if(t)return t.nodeType===3||t.nodeType===8?Re(t.nextSibling):t}var[od,xf]=te("LazyMotionContext");function ad(t){var e;const i=sa(null),n=aa({}),r=nd(),o=sd({}),s=od({features:(0,V.ref)([]),strict:!1});if(process.env.NODE_ENV!=="production"&&((e=t.features)!=null&&e.length)&&s.strict){const g="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Ft(!1,g):xe(!1,g)}const a=(0,V.useAttrs)();function l(){return n.id&&t.layoutId?`${n.id}-${t.layoutId}`:t.layoutId||void 0}function c(){var g,v;return m(m({},t),{},{lazyMotionContext:s,layoutId:l(),transition:(g=t.transition)!==null&&g!==void 0?g:r.value.transition,layoutGroup:n,motionConfig:r.value,inViewOptions:(v=t.inViewOptions)!==null&&v!==void 0?v:r.value.inViewOptions,animatePresenceContext:o,initial:o.initial===!1?o.initial:t.initial===!0?void 0:t.initial})}function u(){return m(m({},a),c())}const h=new va(u(),i);oa(h);function d(){var g;const v=h.type==="svg",b=m({},a);Object.keys(a).forEach(P=>{_(a[P])&&(b[P]=a[P].get())});let S=m(m({},t.style),v?{}:((g=h.visualElement)==null?void 0:g.latestValues)||h.baseTarget);if(v){const{attrs:P,style:y}=Da(m(m({},h.isMounted()?h.target:h.baseTarget),S));if(y.transform||P.transformOrigin){var C;y.transformOrigin=(C=P.transformOrigin)!==null&&C!==void 0?C:"50% 50%",delete P.transformOrigin}if(y.transform){var A;y.transformBox=(A=y.transformBox)!==null&&A!==void 0?A:"fill-box",delete P.transformBox}Object.assign(b,P),S=y}t.drag&&t.dragListener!==!1&&Object.assign(S,{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`});const D=Ca(S);return D&&(b.style=D),b}const f=(0,V.getCurrentInstance)().proxy;return(0,V.onBeforeMount)(()=>{h.beforeMount()}),(0,V.onMounted)(()=>{if(h.mount(Re(f.$el),u(),cd(f)),o.register&&h.element){const g=h.element.closest(`[${rd}]`);g?(h.presenceContainer=g,o.register(g,h)):o.registerPending&&o.registerPending(h)}}),(0,V.onBeforeUnmount)(()=>h.beforeUnmount()),(0,V.onUnmounted)(()=>{o.unregisterPending&&o.unregisterPending(h);const g=Re(f.$el);g!=null&&g.isConnected||h.unmount()}),(0,V.onBeforeUpdate)(()=>{h.beforeUpdate(u())}),(0,V.onUpdated)(()=>{h.update(u())}),{getProps:c,getAttrs:d,layoutGroup:n,state:h}}var ld={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},hover:{type:[String,Array,Object]},press:{type:[String,Array,Object]},inView:{type:[String,Array,Object]},focus:{type:[String,Array,Object]},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object],default:({hover:t})=>(process.env.NODE_ENV==="development"&&t&&Ft(!0,"hover is deprecated. Use whileHover instead."),t)},whilePress:{type:[String,Array,Object],default:({press:t})=>(process.env.NODE_ENV==="development"&&t&&Ft(!0,"press is deprecated. Use whilePress instead."),t)},whileInView:{type:[String,Array,Object],default:({inView:t})=>(process.env.NODE_ENV==="development"&&t&&Ft(!0,"inView is deprecated. Use whileInView instead."),t)},whileFocus:{type:[String,Array,Object],default:({focus:t})=>(process.env.NODE_ENV==="development"&&t&&Ft(!0,"focus is deprecated. Use whileFocus instead."),t)},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},layoutGroup:{type:Object},motionConfig:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:null,default:void 0},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}};function cd(t){var e;const i=((e=Re(t.$el))==null?void 0:e.style.display)==="none";return t.$.vnode.transition&&i}var ud=new Map,hd=new Map;function dd(t){if(!Array.isArray(t))return[t];const e=[];for(const i of t)Array.isArray(i)?e.push(...i):e.push(i);return e}var fd=["area","img","input"];function pd(t,e,i){var n,r;if(typeof t=="string"&&fd.includes(t))return(0,V.h)(t,e);if(t==="template"){if(!i.default)return null;const o=dd(i.default()),s=o.findIndex(u=>u.type!==V.Comment);if(s===-1)return o;const a=o[s];(n=a.props)==null||delete n.ref;const l=a.props?(0,V.mergeProps)(e,a.props):e;e.class&&((r=a.props)!=null&&r.class)&&delete a.props.class;const c=(0,V.cloneVNode)(a,l);for(const u in l)u.startsWith("on")&&(c.props||(c.props={}),c.props[u]=l[u]);return o.length===1?c:(o[s]=c,o)}return null}function ho(t,e={}){var i;const n=typeof t=="string",r=n?t:t.name||"",o=((i=e.features)==null?void 0:i.length)>0?ud:hd;if(n&&(o!=null&&o.has(t)))return o.get(t);const s=(0,V.defineComponent)({inheritAttrs:!1,props:m(m({},ld),{},{features:{type:Object,default:()=>e.features||[]},as:{type:[String,Object],default:t||"div"}}),name:r?`motion.${r}`:"Motion",setup(a,{slots:l}){const{getProps:c,getAttrs:u,state:h}=ad(a);function d(){const f=h.element;if((typeof a.as!="object"||a.asChild)&&f){const{style:g}=u();if(g)for(const[v,b]of Object.entries(g))f.style[v]=b}}return()=>{const f=c(),g=u(),v=a.asChild?"template":a.as,b=m(m(m({},e.forwardMotionProps||a.forwardMotionProps?f:{}),g),{},{onVnodeUpdated:d}),S=pd(v,b,l);return S!==null?S:(0,V.h)(v,m({},b),l)}}});return n&&(o==null||o.set(t,s)),s}function md(t=[]){return new Proxy({},{get(e,i){return i==="create"?(n,r)=>ho(n,m(m({},r),{},{features:t})):ho(i,{features:t})}})}var fo=md(td),wf=fo.create("div");function po(t){var e,i,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=po(t[e]))&&(n&&(n+=" "),n+=i)}else for(i in t)t[i]&&(n&&(n+=" "),n+=i);return n}function gd(){for(var t,e,i=0,n="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=po(t))&&(n&&(n+=" "),n+=e);return n}var vd=(t,e)=>{const i=new Array(t.length+e.length);for(let n=0;n<t.length;n++)i[n]=t[n];for(let n=0;n<e.length;n++)i[t.length+n]=e[n];return i},yd=(t,e)=>({classGroupId:t,validator:e}),mo=(t=new Map,e=null,i)=>({nextPart:t,validators:e,classGroupId:i}),Le="-",go=[],bd="arbitrary..",xd=t=>{const e=Td(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return wd(s);const a=s.split(Le),l=a[0]===""&&a.length>1?1:0;return vo(a,l,e)},getConflictingClassGroupIds:(s,a)=>{if(a){const l=n[s],c=i[s];return l?c?vd(c,l):l:c||go}return i[s]||go}}},vo=(t,e,i)=>{if(t.length-e===0)return i.classGroupId;const n=t[e],r=i.nextPart.get(n);if(r){const l=vo(t,e+1,r);if(l)return l}const o=i.validators;if(o===null)return;const s=e===0?t.join(Le):t.slice(e).join(Le),a=o.length;for(let l=0;l<a;l++){const c=o[l];if(c.validator(s))return c.classGroupId}},wd=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),i=e.indexOf(":"),n=e.slice(0,i);return n?bd+n:void 0})(),Td=t=>{const{theme:e,classGroups:i}=t;return Sd(i,e)},Sd=(t,e)=>{const i=mo();for(const n in t){const r=t[n];$i(r,i,n,e)}return i},$i=(t,e,i,n)=>{const r=t.length;for(let o=0;o<r;o++){const s=t[o];Ad(s,e,i,n)}},Ad=(t,e,i,n)=>{if(typeof t=="string"){Pd(t,e,i);return}if(typeof t=="function"){Ed(t,e,i,n);return}Cd(t,e,i,n)},Pd=(t,e,i)=>{const n=t===""?e:yo(e,t);n.classGroupId=i},Ed=(t,e,i,n)=>{if(kd(t)){$i(t(n),e,i,n);return}e.validators===null&&(e.validators=[]),e.validators.push(yd(i,t))},Cd=(t,e,i,n)=>{const r=Object.entries(t),o=r.length;for(let s=0;s<o;s++){const[a,l]=r[s];$i(l,yo(e,a),i,n)}},yo=(t,e)=>{let i=t;const n=e.split(Le),r=n.length;for(let o=0;o<r;o++){const s=n[o];let a=i.nextPart.get(s);a||(a=mo(),i.nextPart.set(s,a)),i=a}return i},kd=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Vd=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,i=Object.create(null),n=Object.create(null);const r=(o,s)=>{i[o]=s,e++,e>t&&(e=0,n=i,i=Object.create(null))};return{get(o){let s=i[o];if(s!==void 0)return s;if((s=n[o])!==void 0)return r(o,s),s},set(o,s){o in i?i[o]=s:r(o,s)}}},Wi="!",bo=":",Md=[],xo=(t,e,i,n,r)=>({modifiers:t,hasImportantModifier:e,baseClassName:i,maybePostfixModifierPosition:n,isExternal:r}),Dd=t=>{const{prefix:e,experimentalParseClassName:i}=t;let n=r=>{const o=[];let s=0,a=0,l=0,c;const u=r.length;for(let v=0;v<u;v++){const b=r[v];if(s===0&&a===0){if(b===bo){o.push(r.slice(l,v)),l=v+1;continue}if(b==="/"){c=v;continue}}b==="["?s++:b==="]"?s--:b==="("?a++:b===")"&&a--}const h=o.length===0?r:r.slice(l);let d=h,f=!1;h.endsWith(Wi)?(d=h.slice(0,-1),f=!0):h.startsWith(Wi)&&(d=h.slice(1),f=!0);const g=c&&c>l?c-l:void 0;return xo(o,f,d,g)};if(e){const r=e+bo,o=n;n=s=>s.startsWith(r)?o(s.slice(r.length)):xo(Md,!1,s,void 0,!0)}if(i){const r=n;n=o=>i({className:o,parseClassName:r})}return n},Rd=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((i,n)=>{e.set(i,1e6+n)}),i=>{const n=[];let r=[];for(let o=0;o<i.length;o++){const s=i[o],a=s[0]==="[",l=e.has(s);a||l?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(s)):r.push(s)}return r.length>0&&(r.sort(),n.push(...r)),n}},Ld=t=>m({cache:Vd(t.cacheSize),parseClassName:Dd(t),sortModifiers:Rd(t),postfixLookupClassGroupIds:Bd(t)},xd(t)),Bd=t=>{const e=Object.create(null),i=t.postfixLookupClassGroups;if(i)for(let n=0;n<i.length;n++)e[i[n]]=!0;return e},jd=/\s+/,Od=(t,e)=>{const{parseClassName:i,getClassGroupId:n,getConflictingClassGroupIds:r,sortModifiers:o,postfixLookupClassGroupIds:s}=e,a=[],l=t.trim().split(jd);let c="";for(let u=l.length-1;u>=0;u-=1){const h=l[u],{isExternal:d,modifiers:f,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:b}=i(h);if(d){c=h+(c.length>0?" "+c:c);continue}let S=!!b,C;if(S){C=n(v.substring(0,b));const k=C&&s[C]?n(v):void 0;k&&k!==C&&(C=k,S=!1)}else C=n(v);if(!C){if(!S){c=h+(c.length>0?" "+c:c);continue}if(C=n(v),!C){c=h+(c.length>0?" "+c:c);continue}S=!1}const A=f.length===0?"":f.length===1?f[0]:o(f).join(":"),D=g?A+Wi:A,P=D+C;if(a.indexOf(P)>-1)continue;a.push(P);const y=r(C,S);for(let k=0;k<y.length;++k){const p=y[k];a.push(D+p)}c=h+(c.length>0?" "+c:c)}return c},Id=(...t)=>{let e=0,i,n,r="";for(;e<t.length;)(i=t[e++])&&(n=wo(i))&&(r&&(r+=" "),r+=n);return r},wo=t=>{if(typeof t=="string")return t;let e,i="";for(let n=0;n<t.length;n++)t[n]&&(e=wo(t[n]))&&(i&&(i+=" "),i+=e);return i},To=(t,...e)=>{let i,n,r,o;const s=l=>{const c=e.reduce((u,h)=>h(u),t());return i=Ld(c),n=i.cache.get,r=i.cache.set,o=a,a(l)},a=l=>{const c=n(l);if(c)return c;const u=Od(l,i);return r(l,u),u};return o=s,(...l)=>o(Id(...l))},Fd=[],N=t=>{const e=i=>i[t]||Fd;return e.isThemeGetter=!0,e},So=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ao=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_d=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,zd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Nd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ud=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Gd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$d=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xt=t=>_d.test(t),R=t=>!!t&&!Number.isNaN(Number(t)),ut=t=>!!t&&Number.isInteger(Number(t)),Ki=t=>t.endsWith("%")&&R(t.slice(0,-1)),gt=t=>zd.test(t),Po=()=>!0,Wd=t=>Nd.test(t)&&!Ud.test(t),Yi=()=>!1,Kd=t=>Gd.test(t),Yd=t=>$d.test(t),Xd=t=>!w(t)&&!T(t),Hd=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),qd=t=>wt(t,Do,Yi),w=t=>So.test(t),Rt=t=>wt(t,Ro,Wd),Eo=t=>wt(t,sf,R),Zd=t=>wt(t,Bo,Po),Jd=t=>wt(t,Lo,Yi),Co=t=>wt(t,Vo,Yi),Qd=t=>wt(t,Mo,Yd),Be=t=>wt(t,jo,Kd),T=t=>Ao.test(t),de=t=>Lt(t,Ro),tf=t=>Lt(t,Lo),ko=t=>Lt(t,Vo),ef=t=>Lt(t,Do),nf=t=>Lt(t,Mo),je=t=>Lt(t,jo,!0),rf=t=>Lt(t,Bo,!0),wt=(t,e,i)=>{const n=So.exec(t);return n?n[1]?e(n[1]):i(n[2]):!1},Lt=(t,e,i=!1)=>{const n=Ao.exec(t);return n?n[1]?e(n[1]):i:!1},Vo=t=>t==="position"||t==="percentage",Mo=t=>t==="image"||t==="url",Do=t=>t==="length"||t==="size"||t==="bg-size",Ro=t=>t==="length",sf=t=>t==="number",Lo=t=>t==="family-name",Bo=t=>t==="number"||t==="weight",jo=t=>t==="shadow",Oo=()=>{const t=N("color"),e=N("font"),i=N("text"),n=N("font-weight"),r=N("tracking"),o=N("leading"),s=N("breakpoint"),a=N("container"),l=N("spacing"),c=N("radius"),u=N("shadow"),h=N("inset-shadow"),d=N("text-shadow"),f=N("drop-shadow"),g=N("blur"),v=N("perspective"),b=N("aspect"),S=N("ease"),C=N("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...D(),T,w],y=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],p=()=>[T,w,l],M=()=>[xt,"full","auto",...p()],L=()=>[ut,"none","subgrid",T,w],W=()=>["auto",{span:["full",ut,T,w]},ut,T,w],J=()=>[ut,"auto",T,w],K=()=>["auto","min","max","fr",T,w],Bt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],tt=()=>["auto",...p()],Tt=()=>[xt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...p()],fe=()=>[xt,"screen","full","dvw","lvw","svw","min","max","fit",...p()],et=()=>[xt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...p()],E=()=>[t,T,w],pe=()=>[...D(),ko,Co,{position:[T,w]}],me=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ge=()=>["auto","cover","contain",ef,qd,{size:[T,w]}],Yt=()=>[Ki,de,Rt],U=()=>["","none","full",c,T,w],G=()=>["",R,de,Rt],ht=()=>["solid","dashed","dotted","double"],jt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[R,Ki,ko,Co],St=()=>["","none",g,T,w],dt=()=>["none",R,T,w],_e=()=>["none",R,T,w],Hi=()=>[R,T,w],ze=()=>[xt,"full",...p()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[gt],breakpoint:[gt],color:[Po],container:[gt],"drop-shadow":[gt],ease:["in","out","in-out"],font:[Xd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[gt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[gt],shadow:[gt],spacing:["px",R],text:[gt],"text-shadow":[gt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xt,w,T,b]}],container:["container"],"container-type":[{"@container":["","normal","size",T,w]}],"container-named":[Hd],columns:[{columns:[R,w,T,a]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:y()}],"overflow-x":[{"overflow-x":y()}],"overflow-y":[{"overflow-y":y()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[ut,"auto",T,w]}],basis:[{basis:[xt,"full","auto",a,...p()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[R,xt,"auto","initial","none",w]}],grow:[{grow:["",R,T,w]}],shrink:[{shrink:["",R,T,w]}],order:[{order:[ut,"first","last","none",T,w]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":K()}],"auto-rows":[{"auto-rows":K()}],gap:[{gap:p()}],"gap-x":[{"gap-x":p()}],"gap-y":[{"gap-y":p()}],"justify-content":[{justify:[...Bt(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...Bt()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":Bt()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:p()}],px:[{px:p()}],py:[{py:p()}],ps:[{ps:p()}],pe:[{pe:p()}],pbs:[{pbs:p()}],pbe:[{pbe:p()}],pt:[{pt:p()}],pr:[{pr:p()}],pb:[{pb:p()}],pl:[{pl:p()}],m:[{m:tt()}],mx:[{mx:tt()}],my:[{my:tt()}],ms:[{ms:tt()}],me:[{me:tt()}],mbs:[{mbs:tt()}],mbe:[{mbe:tt()}],mt:[{mt:tt()}],mr:[{mr:tt()}],mb:[{mb:tt()}],ml:[{ml:tt()}],"space-x":[{"space-x":p()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":p()}],"space-y-reverse":["space-y-reverse"],size:[{size:Tt()}],"inline-size":[{inline:["auto",...fe()]}],"min-inline-size":[{"min-inline":["auto",...fe()]}],"max-inline-size":[{"max-inline":["none",...fe()]}],"block-size":[{block:["auto",...et()]}],"min-block-size":[{"min-block":["auto",...et()]}],"max-block-size":[{"max-block":["none",...et()]}],w:[{w:[a,"screen",...Tt()]}],"min-w":[{"min-w":[a,"screen","none",...Tt()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...Tt()]}],h:[{h:["screen","lh",...Tt()]}],"min-h":[{"min-h":["screen","lh","none",...Tt()]}],"max-h":[{"max-h":["screen","lh",...Tt()]}],"font-size":[{text:["base",i,de,Rt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,rf,Zd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ki,w]}],"font-family":[{font:[tf,Jd,e]}],"font-features":[{"font-features":[w]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,T,w]}],"line-clamp":[{"line-clamp":[R,"none",T,Eo]}],leading:[{leading:[o,...p()]}],"list-image":[{"list-image":["none",T,w]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",T,w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ht(),"wavy"]}],"text-decoration-thickness":[{decoration:[R,"from-font","auto",T,Rt]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[R,"auto",T,w]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:p()}],"tab-size":[{tab:[ut,T,w]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",T,w]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",T,w]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:pe()}],"bg-repeat":[{bg:me()}],"bg-size":[{bg:ge()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ut,T,w],radial:["",T,w],conic:[ut,T,w]},nf,Qd]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:Yt()}],"gradient-via-pos":[{via:Yt()}],"gradient-to-pos":[{to:Yt()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-bs":[{"border-bs":G()}],"border-w-be":[{"border-be":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ht(),"hidden","none"]}],"divide-style":[{divide:[...ht(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-bs":[{"border-bs":E()}],"border-color-be":[{"border-be":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...ht(),"none","hidden"]}],"outline-offset":[{"outline-offset":[R,T,w]}],"outline-w":[{outline:["",R,de,Rt]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",u,je,Be]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",h,je,Be]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[R,Rt]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",d,je,Be]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[R,T,w]}],"mix-blend":[{"mix-blend":[...jt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":jt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[R]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[T,w]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[R]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:pe()}],"mask-repeat":[{mask:me()}],"mask-size":[{mask:ge()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",T,w]}],filter:[{filter:["","none",T,w]}],blur:[{blur:St()}],brightness:[{brightness:[R,T,w]}],contrast:[{contrast:[R,T,w]}],"drop-shadow":[{"drop-shadow":["","none",f,je,Be]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",R,T,w]}],"hue-rotate":[{"hue-rotate":[R,T,w]}],invert:[{invert:["",R,T,w]}],saturate:[{saturate:[R,T,w]}],sepia:[{sepia:["",R,T,w]}],"backdrop-filter":[{"backdrop-filter":["","none",T,w]}],"backdrop-blur":[{"backdrop-blur":St()}],"backdrop-brightness":[{"backdrop-brightness":[R,T,w]}],"backdrop-contrast":[{"backdrop-contrast":[R,T,w]}],"backdrop-grayscale":[{"backdrop-grayscale":["",R,T,w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R,T,w]}],"backdrop-invert":[{"backdrop-invert":["",R,T,w]}],"backdrop-opacity":[{"backdrop-opacity":[R,T,w]}],"backdrop-saturate":[{"backdrop-saturate":[R,T,w]}],"backdrop-sepia":[{"backdrop-sepia":["",R,T,w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":p()}],"border-spacing-x":[{"border-spacing-x":p()}],"border-spacing-y":[{"border-spacing-y":p()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",T,w]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[R,"initial",T,w]}],ease:[{ease:["linear","initial",S,T,w]}],delay:[{delay:[R,T,w]}],animate:[{animate:["none",C,T,w]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,T,w]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:dt()}],"rotate-x":[{"rotate-x":dt()}],"rotate-y":[{"rotate-y":dt()}],"rotate-z":[{"rotate-z":dt()}],scale:[{scale:_e()}],"scale-x":[{"scale-x":_e()}],"scale-y":[{"scale-y":_e()}],"scale-z":[{"scale-z":_e()}],"scale-3d":["scale-3d"],skew:[{skew:Hi()}],"skew-x":[{"skew-x":Hi()}],"skew-y":[{"skew-y":Hi()}],transform:[{transform:[T,w,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ze()}],"translate-x":[{"translate-x":ze()}],"translate-y":[{"translate-y":ze()}],"translate-z":[{"translate-z":ze()}],"translate-none":["translate-none"],zoom:[{zoom:[ut,T,w]}],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",T,w]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":E()}],"scrollbar-track-color":[{"scrollbar-track":E()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mbs":[{"scroll-mbs":p()}],"scroll-mbe":[{"scroll-mbe":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pbs":[{"scroll-pbs":p()}],"scroll-pbe":[{"scroll-pbe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",T,w]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[R,de,Rt,Eo]}],stroke:[{stroke:["none",...E()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},of=(t,{cacheSize:e,prefix:i,experimentalParseClassName:n,extend:r={},override:o={}})=>(Kt(t,"cacheSize",e),Kt(t,"prefix",i),Kt(t,"experimentalParseClassName",n),Oe(t.theme,o.theme),Oe(t.classGroups,o.classGroups),Oe(t.conflictingClassGroups,o.conflictingClassGroups),Oe(t.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Kt(t,"postfixLookupClassGroups",o.postfixLookupClassGroups),Kt(t,"orderSensitiveModifiers",o.orderSensitiveModifiers),Ie(t.theme,r.theme),Ie(t.classGroups,r.classGroups),Ie(t.conflictingClassGroups,r.conflictingClassGroups),Ie(t.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),Xi(t,r,"postfixLookupClassGroups"),Xi(t,r,"orderSensitiveModifiers"),t),Kt=(t,e,i)=>{i!==void 0&&(t[e]=i)},Oe=(t,e)=>{if(e)for(const i in e)Kt(t,i,e[i])},Ie=(t,e)=>{if(e)for(const i in e)Xi(t,e,i)},Xi=(t,e,i)=>{const n=e[i];n!==void 0&&(t[i]=t[i]?t[i].concat(n):n)},af=(t,...e)=>typeof t=="function"?To(Oo,t,...e):To(()=>of(Oo(),t),...e),lf=af({extend:{theme:{color:["accent","on-accent","accent-hover","accent-subtle","accent-subtle-hover","accent-strong","accent-strong-hover","fg","fg-accent","surface","surface-muted","edge","danger","danger-hover"],radius:["btn"]}}});function Fe(...t){return lf(gd(t))}var cf=["aria-label","aria-disabled"],uf=["aria-checked","aria-label","tabindex","disabled","onClick","onKeydown"],hf=(0,V.defineComponent)({__name:"index",props:{items:{},modelValue:{},size:{default:"m"},fullWidth:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},ui:{default:()=>({})},ariaLabel:{}},emits:["update:modelValue"],setup(t,{emit:e}){const i={root:"relative isolate inline-grid grid-rows-1 items-stretch gap-1 overflow-hidden rounded-full border border-edge bg-surface font-sans",segment:["group relative z-[1] row-start-1 flex min-w-0 items-center justify-center rounded-full px-4 font-sans","disabled:cursor-not-allowed disabled:opacity-50","hover:aria-[checked=false]:not-disabled:bg-[color-mix(in_srgb,var(--color-text-primary)_5%,transparent)]","focus-visible:outline focus-visible:outline-[length:var(--border-m)] focus-visible:outline-[color:var(--color-text-accent)] focus-visible:outline-offset-[length:var(--border-m)]"].join(" "),segmentSelected:"",label:["relative text-sm leading-[1.3] whitespace-nowrap font-normal","text-[color:var(--color-text-tertiary)]","group-aria-[checked=true]:text-[color:var(--color-text-primary-inverse)] group-aria-[checked=true]:font-semibold"].join(" "),labelSelected:"",indicator:["z-0 row-start-1 self-stretch rounded-full","bg-[color:var(--color-blue-grey-600)]","motion-reduce:!transition-none"].join(" ")},n={size:{s:{root:"h-8 p-1"},m:{root:"h-12 p-2"}},fullWidth:{true:{root:"w-full"}}},r=t,o=e,s=(0,V.ref)([]),a=(y,k)=>{s.value[k]=y},l=y=>r.modelValue===y.value,c=y=>r.disabled||!!y.disabled,u=y=>{c(y)||l(y)||o("update:modelValue",y.value)},h=()=>{const y=r.items.findIndex(k=>k.value===r.modelValue);return y>=0&&!c(r.items[y])?y:r.items.findIndex(k=>!c(k))},d=y=>{const k=h();return k<0?-1:y===k?0:-1},f=(y,k)=>{const p=r.items;let M=y;for(let L=0;L<p.length;L++)if(M=(M+k+p.length)%p.length,!c(p[M]))return M;return y},g=(y,k)=>{const p=r.items,M=p[k];if(!M||c(M))return;let L;switch(y.key){case"ArrowRight":case"ArrowDown":L=f(k,1);break;case"ArrowLeft":case"ArrowUp":L=f(k,-1);break;case"Home":L=p.findIndex(K=>!c(K));break;case"End":L=[...p].reverse().findIndex(K=>!c(K)),L>=0&&(L=p.length-1-L);break;default:return}if(L<0||L===k)return;y.preventDefault();const W=p[L];if(W){var J;u(W),(J=s.value[L])===null||J===void 0||J.focus()}},v=(0,V.computed)(()=>{const y=r.items.findIndex(k=>k.value===r.modelValue);return y>=0?y:0}),b=(0,V.computed)(()=>{const y=r.items.length;if(y!==0)return r.fullWidth?`repeat(${y}, minmax(0, 1fr))`:`repeat(${y}, auto)`}),S=(0,V.computed)(()=>Fe(i.root,n.size[r.size].root,r.fullWidth&&n.fullWidth.true.root,r.ui.root)),C=y=>Fe(i.segment,r.ui.segment,l(y)&&i.segmentSelected,l(y)&&r.ui.segmentSelected),A=y=>Fe(i.label,r.ui.label,l(y)&&i.labelSelected,l(y)&&r.ui.labelSelected),D=(0,V.computed)(()=>Fe(i.indicator,r.ui.indicator)),P={type:"spring",visualDuration:.2,bounce:.2};return(y,k)=>((0,V.openBlock)(),(0,V.createElementBlock)("div",{"data-testid":"segmented-control",role:"radiogroup",class:(0,V.normalizeClass)(S.value),style:(0,V.normalizeStyle)(b.value?{gridTemplateColumns:b.value}:void 0),"aria-label":t.ariaLabel,"aria-disabled":t.disabled||void 0},[t.items.length>0?((0,V.openBlock)(),(0,V.createBlock)((0,V.unref)(fo).div,{key:0,layout:"","data-testid":"segmented-control-indicator","data-state":t.modelValue,class:(0,V.normalizeClass)(D.value),style:(0,V.normalizeStyle)({gridColumn:v.value+1}),transition:P,"aria-hidden":"true"},null,8,["data-state","class","style"])):(0,V.createCommentVNode)("",!0),((0,V.openBlock)(!0),(0,V.createElementBlock)(V.Fragment,null,(0,V.renderList)(t.items,(p,M)=>((0,V.openBlock)(),(0,V.createElementBlock)("button",{key:p.value,ref_for:!0,ref:L=>a(L,M),type:"button",role:"radio","data-testid":"segmented-control-segment",class:(0,V.normalizeClass)(C(p)),style:(0,V.normalizeStyle)({gridColumn:M+1}),"aria-checked":l(p),"aria-label":p.label,tabindex:d(M),disabled:c(p),onClick:L=>u(p),onKeydown:L=>g(L,M)},[(0,V.createElementVNode)("span",{"data-testid":"segmented-control-label",class:(0,V.normalizeClass)(A(p))},(0,V.toDisplayString)(p.label),3)],46,uf))),128))],14,cf))}}),df=hf;At.AzSegmentedControl=df});
|