@ptlm-azulejo/segmented-control 0.1.4-alpha.251 → 0.1.4
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/dist/index.js +447 -240
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -101
package/dist/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
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});
|
|
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});
|