1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[149],{7042:function(t,e,i){i.d(e,{W:function(){return clsx}});function clsx(){for(var t,e,i=0,n="",s=arguments.length;i<s;i++)(t=arguments[i])&&(e=function r(t){var e,i,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t){if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(i=r(t[e]))&&(n&&(n+=" "),n+=i)}else for(i in t)t[i]&&(n&&(n+=" "),n+=i)}return n}(t))&&(n&&(n+=" "),n+=e);return n}},3293:function(t,e,i){let n;i.d(e,{E:function(){return eE}});var s,o=i(955);let a=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],l=new Set(a),radToDeg=t=>180*t/Math.PI,rotate=t=>{let e=radToDeg(Math.atan2(t[1],t[0]));return rebaseAngle(e)},u={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate,rotateZ:rotate,skewX:t=>radToDeg(Math.atan(t[1])),skewY:t=>radToDeg(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},rebaseAngle=t=>((t%=360)<0&&(t+=360),t),scaleX=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),scaleY=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),c={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX,scaleY,scale:t=>(scaleX(t)+scaleY(t))/2,rotateX:t=>rebaseAngle(radToDeg(Math.atan2(t[6],t[5]))),rotateY:t=>rebaseAngle(radToDeg(Math.atan2(-t[2],t[0]))),rotateZ:rotate,rotate:rotate,skewX:t=>radToDeg(Math.atan(t[4])),skewY:t=>radToDeg(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function defaultTransformValue(t){return t.includes("scale")?1:0}function parseValueFromTransform(t,e){let i,n;if(!t||"none"===t)return defaultTransformValue(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=c,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=u,n=e}if(!n)return defaultTransformValue(e);let o=i[e],a=n[1].split(",").map(convertTransformToNumber);return"function"==typeof o?o(a):a[o]}let readTransformValue=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return parseValueFromTransform(i,e)};function convertTransformToNumber(t){return parseFloat(t.trim())}let checkStringStartsWith=t=>e=>"string"==typeof e&&e.startsWith(t),h=checkStringStartsWith("--"),d=checkStringStartsWith("var(--"),isCSSVariableToken=t=>{let e=d(t);return!!e&&m.test(t.split("/*")[0].trim())},m=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function convertBoundingBoxToBox({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}let mixNumber=(t,e,i)=>t+(e-t)*i;function isIdentityScale(t){return void 0===t||1===t}function hasScale({scale:t,scaleX:e,scaleY:i}){return!isIdentityScale(t)||!isIdentityScale(e)||!isIdentityScale(i)}function hasTransform(t){return hasScale(t)||has2DTranslate(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function has2DTranslate(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function applyPointDelta(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function applyAxisDelta(t,e=0,i=1,n,s){t.min=applyPointDelta(t.min,e,i,n,s),t.max=applyPointDelta(t.max,e,i,n,s)}function applyBoxDelta(t,{x:e,y:i}){applyAxisDelta(t.x,e.translate,e.scale,e.originPoint),applyAxisDelta(t.y,i.translate,i.scale,i.originPoint)}function translateAxis(t,e){t.min=t.min+e,t.max=t.max+e}function transformAxis(t,e,i,n,s=.5){let o=mixNumber(t.min,t.max,s);applyAxisDelta(t,e,i,o,n)}function transformBox(t,e){transformAxis(t.x,e.x,e.scaleX,e.scale,e.originX),transformAxis(t.y,e.y,e.scaleY,e.scale,e.originY)}function measureViewportBox(t,e){return convertBoundingBoxToBox(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let p=new Set(["width","height","top","left","right","bottom",...a]),clamp=(t,e,i)=>i>e?e:i<t?t:i,f={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},g={...f,transform:t=>clamp(0,1,t)},y={...f,default:1},createUnitType=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),v=createUnitType("deg"),b=createUnitType("%"),x=createUnitType("px"),T=createUnitType("vh"),A=createUnitType("vw"),w={...b,parse:t=>b.parse(t)/100,transform:t=>b.transform(100*t)},testValueType=t=>e=>e.test(t),S=[f,x,b,v,A,T,{test:t=>"auto"===t,parse:t=>t}],findDimensionValueType=t=>S.find(testValueType(t)),warning=()=>{},invariant=()=>{},isNumericalString=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),P=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,isNumOrPxType=t=>t===f||t===x,V=new Set(["x","y","z"]),M=a.filter(t=>!V.has(t)),C={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})=>parseValueFromTransform(e,"x"),y:(t,{transform:e})=>parseValueFromTransform(e,"y")};C.translateX=C.x,C.translateY=C.y;let noop=t=>t,D={},E=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],k={value:null,addProjectionMetrics:null};function createRenderBatcher(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},flagRunNextFrame=()=>i=!0,o=E.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,o=!1,a=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},u=0;function triggerCallback(e){a.has(e)&&(c.schedule(e),t()),u++,e(l)}let c={schedule:(t,e=!1,o=!1)=>{let l=o&&s,u=l?i:n;return e&&a.add(t),u.has(t)||u.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(l=t,s){o=!0;return}
1s=!0,[i,n]=[n,i],i.forEach(triggerCallback),e&&k.value&&k.value.frameloop[e].push(u),u=0,i.clear(),s=!1,o&&(o=!1,c.process(t))}};return c}(flagRunNextFrame,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:d,render:m,postRender:p}=o,processBatch=()=>{let o=D.useManualTiming?s.timestamp:performance.now();i=!1,D.useManualTiming||(s.delta=n?1e3/60:Math.max(Math.min(o-s.timestamp,40),1)),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),h.process(s),d.process(s),m.process(s),p.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(processBatch))},wake=()=>{i=!0,n=!0,s.isProcessing||t(processBatch)},f=E.reduce((t,e)=>{let n=o[e];return t[e]=(t,e=!1,s=!1)=>(i||wake(),n.schedule(t,e,s)),t},{});return{schedule:f,cancel:t=>{for(let e=0;e<E.length;e++)o[E[e]].cancel(t)},state:s,steps:o}}let{schedule:R,cancel:L,state:B,steps:F}=createRenderBatcher("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:noop,!0),I=new Set,N=!1,j=!1,O=!1;function measureAllKeyframes(){if(j){let t=Array.from(I).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return M.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}j=!1,N=!1,I.forEach(t=>t.complete(O)),I.clear()}function readAllKeyframes(){I.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(j=!0)})}let KeyframeResolver=class KeyframeResolver{constructor(t,e,i,n,s,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=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(I.add(this),N||(N=!0,R.read(readAllKeyframes),R.resolveKeyframes(measureAllKeyframes))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),o=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,o);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=o),n&&void 0===s&&n.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),I.delete(this)}cancel(){"scheduled"===this.state&&(I.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}};let isZeroValueString=t=>/^0[^.\s]+$/u.test(t),sanitize=t=>Math.round(1e5*t)/1e5,W=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,z=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,isColorString=(t,e)=>i=>!!("string"==typeof i&&z.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),splitColor=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,o,a,l]=n.match(W);return{[t]:parseFloat(s),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}},clampRgbUnit=t=>clamp(0,255,t),U={...f,transform:t=>Math.round(clampRgbUnit(t))},_={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+U.transform(t)+", "+U.transform(e)+", "+U.transform(i)+", "+sanitize(g.transform(n))+")"},G={test:isColorString("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:_.transform},$={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+b.transform(sanitize(e))+", "+b.transform(sanitize(i))+", "+sanitize(g.transform(n))+")"},H={test:t=>_.test(t)||G.test(t)||$.test(t),parse:t=>_.test(t)?_.parse(t):$.test(t)?$.parse(t):G.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?_.transform(t):$.transform(t),getAnimatableNone:t=>{let e=H.parse(t);return e.alpha=0,H.transform(e)}},K=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,q="number",Y="color",X=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function analyseComplexValue(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],o=0,a=e.replace(X,t=>
1(H.test(t)?(n.color.push(o),s.push(Y),i.push(H.parse(t))):t.startsWith("var(")?(n.var.push(o),s.push("var"),i.push(t)):(n.number.push(o),s.push(q),i.push(parseFloat(t))),++o,"${}")),l=a.split("${}");return{values:i,split:l,indexes:n,types:s}}function parseComplexValue(t){return analyseComplexValue(t).values}function createTransformer(t){let{split:e,types:i}=analyseComplexValue(t),n=e.length;return t=>{let s="";for(let o=0;o<n;o++)if(s+=e[o],void 0!==t[o]){let e=i[o];e===q?s+=sanitize(t[o]):e===Y?s+=H.transform(t[o]):s+=t[o]}return s}}let convertNumbersToZero=t=>"number"==typeof t?0:H.test(t)?H.getAnimatableNone(t):t,Z={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(W)?.length||0)+(t.match(K)?.length||0)>0},parse:parseComplexValue,createTransformer,getAnimatableNone:function(t){let e=parseComplexValue(t),i=createTransformer(t);return i(e.map(convertNumbersToZero))}},J=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(W)||[];if(!n)return t;let s=i.replace(n,""),o=J.has(e)?1:0;return n!==i&&(o*=100),e+"("+o+s+")"}let Q=/\b([a-z-]*)\(.*?\)/gu,tt={...Z,getAnimatableNone:t=>{let e=t.match(Q);return e?e.map(applyDefaultFilter).join(" "):t}},te={...f,transform:Math.round},ti={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,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,backgroundPositionX:x,backgroundPositionY:x,rotate:v,rotateX:v,rotateY:v,rotateZ:v,scale:y,scaleX:y,scaleY:y,scaleZ:y,skew:v,skewX:v,skewY:v,distance:x,translateX:x,translateY:x,translateZ:x,x:x,y:x,z:x,perspective:x,transformPerspective:x,opacity:g,originX:w,originY:w,originZ:x,zIndex:te,fillOpacity:g,strokeOpacity:g,numOctaves:te},tr={...ti,color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,filter:tt,WebkitFilter:tt},getDefaultValueType=t=>tr[t];function animatable_none_getAnimatableNone(t,e){let i=getDefaultValueType(t);return i!==tt&&(i=Z),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tn=new Set(["auto","none","0"]);let DOMKeyframesResolver=class DOMKeyframesResolver extends KeyframeResolver{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&isCSSVariableToken(n=n.trim())){let s=function getVariableValue(t,e,i=1){invariant(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,s]=function(t){let e=P.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(t);if(!n)return;let o=window.getComputedStyle(e).getPropertyValue(n);if(o){let t=o.trim();return isNumericalString(t)?parseFloat(t):t}return isCSSVariableToken(s)?getVariableValue(s,e,i+1):s}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!p.has(i)||2!==t.length)return;let[n,s]=t,o=findDimensionValueType(n),a=findDimensionValueType(s);if(o!==a){if(isNumOrPxType(o)&&isNumOrPxType(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else C[i]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||isZeroValueString(n)))&&i.push(e)}i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!tn.has(e)&&analyseComplexValue(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=animatable_none_getAnimatableNone(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=C[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,o=i[s];i[s]=C[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}};let isMotionValue=t=>!!(t&&t.getVelocity);function clearTime(){n=void 0}let ts={now:()=>(void 0===n&&ts.set(B.isProcessing||D.useManualTiming?B.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(clearTime)}};function addUniqueItem(t,e){-1===t.indexOf(e)&&t.push(e)}function removeItem(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}let SubscriptionManager=class SubscriptionManager{constructor(){this.subscriptions=[]}add(t){return addUniqueItem(this.subscriptions,t),()=>removeItem(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};let isFloat=t=>!isNaN(parseFloat(t)),to={current:void 0};let MotionValue=class MotionValue{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=ts.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=ts.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=isFloat(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new SubscriptionManager);let i=this.events[t].add(e);return"change"===t?()=>{i(),R.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return to.current&&to.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=ts.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?t*(1e3/i):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function motionValue(t,e){return new MotionValue(t,e)}let ta=[...S,H,Z],findValueType=t=>ta.find(testValueType(t)),{schedule:tl,cancel:tu}=createRenderBatcher(queueMicrotask,!1),tc={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"]},th={};for(let t in tc)th[t]={isEnabled:e=>tc[t].some(t=>!!e[t])};let createAxisDelta=()=>({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()}),td="undefined"!=typeof window,tm={current:null},tp={current:!1},tf=new WeakMap;function isAnimationControls(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function isVariantLabel(t){return"string"==typeof t||Array.isArray(t)}let tg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ty=["initial",...tg];function isControllingVariants(t){return isAnimationControls(t.animate)||ty.some(e=>isVariantLabel(t[e]))}function isVariantNode(t){return!!(isControllingVariants(t)||t.variants)}function getValueState(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function resolveVariantFromProps(t,e,i,n){if("function"==typeof e){let[s,o]=getValueState(n);e=e(void 0!==i?i:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,o]=getValueState(n);e=e(void 0!==i?i:t.custom,s,o)}return e}let tv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let VisualElement=class VisualElement{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=KeyframeResolver,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=()=>{let t=ts.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,R.render(this.render,!1,!0))};let{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=isControllingVariants(e),this.isVariantNode=isVariantNode(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:c,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in h){let e=h[t];void 0!==l[t]&&isMotionValue(e)&&e.set(l[t])}}mount(t){this.current=t,tf.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((t,e)=>this.bindToMotionValue(e,t)),tp.current||function(){if(tp.current=!0,td){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),setReducedMotionPreferences=()=>tm.current=t.matches;t.addEventListener("change",setReducedMotionPreferences),setReducedMotionPreferences()}else tm.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||tm.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),L(this.notifyUpdate),L(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=l.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&R.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in th){let e=th[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
1e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<tv.length;e++){let i=tv[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n="on"+i,s=t[n];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],o=i[n];if(isMotionValue(s))t.addValue(n,s);else if(isMotionValue(o))t.addValue(n,motionValue(s,{owner:t}));else if(o!==s){if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,motionValue(void 0!==e?e:s,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=motionValue(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(isNumericalString(i)||isZeroValueString(i))?i=parseFloat(i):!findValueType(i)&&Z.test(e)&&(i=animatable_none_getAnimatableNone(t,e)),this.setBaseTarget(t,isMotionValue(i)?i.get():i)),isMotionValue(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=resolveVariantFromProps(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||isMotionValue(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new SubscriptionManager),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){tl.render(this.render)}};let DOMVisualElement=class DOMVisualElement extends VisualElement{constructor(){super(...arguments),this.KeyframeResolver=DOMKeyframesResolver}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){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);let{children:t}=this.props;isMotionValue(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}};let getValueAsType=(t,e)=>e&&"number"==typeof t?e.transform(t):t,tb={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tx=a.length;function buildHTMLStyles(t,e,i){let{style:n,vars:s,transformOrigin:o}=t,u=!1,c=!1;for(let t in e){let i=e[t];if(l.has(t)){u=!0;continue}if(h(t)){s[t]=i;continue}{let e=getValueAsType(i,ti[t]);t.startsWith("origin")?(c=!0,o[t]=e):n[t]=e}}
1if(!e.transform&&(u||i?n.transform=function(t,e,i){let n="",s=!0;for(let o=0;o<tx;o++){let l=a[o],u=t[l];if(void 0===u)continue;let c=!0;if(!(c="number"==typeof u?u===(l.startsWith("scale")?1:0):0===parseFloat(u))||i){let t=getValueAsType(u,ti[l]);if(!c){s=!1;let e=tb[l]||l;n+=`${e}(${t}) `}i&&(e[l]=t)}}return n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),c){let{originX:t="50%",originY:e="50%",originZ:i=0}=o;n.transformOrigin=`${t} ${e} ${i}`}}function renderHTML(t,{style:e,vars:i},n,s){let o;let a=t.style;for(o in e)a[o]=e[o];for(o in s?.applyProjectionStyles(a,n),i)a.setProperty(o,i[o])}let tT={};function isForcedMotionValue(t,{layout:e,layoutId:i}){return l.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!tT[t]||"opacity"===t)}function scrapeMotionValuesFromProps(t,e,i){let{style:n}=t,s={};for(let o in n)(isMotionValue(n[o])||e.style&&isMotionValue(e.style[o])||isForcedMotionValue(o,t)||i?.getValue(o)?.liveStyle!==void 0)&&(s[o]=n[o]);return s}let HTMLVisualElement=class HTMLVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="html",this.renderInstance=renderHTML}readValueFromInstance(t,e){if(l.has(e))return this.projection?.isProjecting?defaultTransformValue(e):readTransformValue(t,e);{let i=window.getComputedStyle(t),n=(h(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return measureViewportBox(t,e)}build(t,e,i){buildHTMLStyles(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return scrapeMotionValuesFromProps(t,e,i)}};let camelToDash=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tA={offset:"stroke-dashoffset",array:"stroke-dasharray"},tw={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGAttrs(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:o=1,pathOffset:a=0,...l},u,c,h){if(buildHTMLStyles(t,l,c),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:m}=t;d.transform&&(m.transform=d.transform,delete d.transform),(m.transform||d.transformOrigin)&&(m.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),m.transform&&(m.transformBox=h?.transformBox??"fill-box",delete d.transformBox),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let o=s?tA:tw;t[o.offset]=x.transform(-n);let a=x.transform(e),l=x.transform(i);t[o.array]=`${a} ${l}`}(d,s,o,a,!1)}let tS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),isSVGTag=t=>"string"==typeof t&&"svg"===t.toLowerCase();function scrape_motion_values_scrapeMotionValuesFromProps(t,e,i){let n=scrapeMotionValuesFromProps(t,e,i);for(let i in t)if(isMotionValue(t[i])||isMotionValue(e[i])){let e=-1!==a.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[e]=t[i]}return n}let SVGVisualElement=class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=createBox}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(l.has(e)){let t=getDefaultValueType(e);return t&&t.default||0}return e=tS.has(e)?e:camelToDash(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return scrape_motion_values_scrapeMotionValuesFromProps(t,e,i)}build(t,e,i){buildSVGAttrs(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){!function(t,e,i,n){for(let i in renderHTML(t,e,void 0,n),e.attrs)t.setAttribute(tS.has(i)?i:camelToDash(i),e.attrs[i])}(t,e,0,n)}mount(t){this.isSVGTag=isSVGTag(t.tagName),super.mount(t)}};let tP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function isSVGComponent(t){if("string"!=typeof t||t.includes("-"));else if(tP.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var tV=i(6705);let tM=(0,o.createContext)({}),tC=(0,o.createContext)({strict:!1}),tD=(0,o.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),tE=(0,o.createContext)({});function variantLabelsAsDependency(t){return Array.isArray(t)?t.join(" "):t}let createHtmlRenderState=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly(t,e,i){for(let n in e)isMotionValue(e[n])||isForcedMotionValue(n,i)||(t[n]=e[n])}function useHTMLProps(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return copyRawValuesOnly(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,o.useMemo)(()=>{let i=createHtmlRenderState();return buildHTMLStyles(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i}let createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}});
1function useSVGProps(t,e,i,n){let s=(0,o.useMemo)(()=>{let i=createSvgRenderState();return buildSVGAttrs(i,e,isSVGTag(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};copyRawValuesOnly(e,t.style,t),s.style={...e,...s.style}}return s}let tk=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function isValidMotionProp(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||tk.has(t)}let shouldForward=t=>!isValidMotionProp(t);try{s=require("@emotion/is-prop-valid").default,"function"==typeof s&&(shouldForward=t=>t.startsWith("on")?!isValidMotionProp(t):s(t))}catch{}let tR=(0,o.createContext)(null);function resolveMotionValue(t){return isMotionValue(t)?t.get():t}let makeUseVisualState=t=>(e,i)=>{let n=(0,o.useContext)(tE),s=(0,o.useContext)(tR),make=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){let o={latestValues:function(t,e,i,n){let s={},o=n(t,{});for(let t in o)s[t]=resolveMotionValue(o[t]);let{initial:a,animate:l}=t,u=isControllingVariants(t),c=isVariantNode(t);e&&c&&!u&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let h=!!i&&!1===i.initial;h=h||!1===a;let d=h?l:a;if(d&&"boolean"!=typeof d&&!isAnimationControls(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let n=resolveVariantFromProps(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(i,n,s,t),renderState:e()};return o}
1)(t,e,n,s);return i?make():function(t){let e=(0,o.useRef)(null);return null===e.current&&(e.current=t()),e.current}(make)},tL=makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps,createRenderState:createHtmlRenderState}),tB=makeUseVisualState({scrapeMotionValuesFromProps:scrape_motion_values_scrapeMotionValuesFromProps,createRenderState:createSvgRenderState}),tF=Symbol.for("motionComponentSymbol");function isRefObject(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let tI="data-"+camelToDash("framerAppearId"),tN=(0,o.createContext)({}),tj=td?o.useLayoutEffect:o.useEffect;function createMotionComponent(t,{forwardMotionProps:e=!1}={},i,n){i&&function(t){for(let e in t)th[e]={...th[e],...t[e]}}(i);let s=isSVGComponent(t)?tB:tL;function MotionDOMComponent(i,a){var l;let u;let c={...(0,o.useContext)(tD),...i,layoutId:function({layoutId:t}){let e=(0,o.useContext)(tM).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:h}=c,d=function(t){let{initial:e,animate:i}=function(t,e){if(isControllingVariants(t)){let{initial:e,animate:i}=t;return{initial:!1===e||isVariantLabel(e)?e:void 0,animate:isVariantLabel(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(tE));return(0,o.useMemo)(()=>({initial:e,animate:i}),[variantLabelsAsDependency(e),variantLabelsAsDependency(i)])}(i),m=s(i,h);if(!h&&td){(0,o.useContext)(tC).strict;let e=function(t){let{drag:e,layout:i}=th;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(c);u=e.MeasureLayout,d.visualElement=function(t,e,i,n,s){let{visualElement:a}=(0,o.useContext)(tE),l=(0,o.useContext)(tC),u=(0,o.useContext)(tR),c=(0,o.useContext)(tD).reducedMotion,h=(0,o.useRef)(null);n=n||l.renderer,!h.current&&n&&(h.current=n(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));let d=h.current,m=(0,o.useContext)(tN);d&&!d.projection&&s&&("html"===d.type||"svg"===d.type)&&function(t,e,i,n){let{layoutId:s,layout:o,drag:a,dragConstraints:l,layoutScroll:u,layoutRoot:c,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function getClosestProjectingNode(t){if(t)return!1!==t.options.allowProjection?t.projection:getClosestProjectingNode(t.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!a||l&&isRefObject(l),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:u,layoutRoot:c})}(h.current,i,s,m);let p=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{d&&p.current&&d.update(i,u)});let f=i[tI],g=(0,o.useRef)(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return tj(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),g.current&&d.animationState&&d.animationState.animateChanges())}),(0,o.useEffect)(()=>{d&&(!g.current&&d.animationState&&d.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f)}),g.current=!1),d.enteringChildren=void 0)}),d}(t,m,c,n,e.ProjectionNode)}return(0,tV.jsxs)(tE.Provider,{value:d,children:[u&&d.visualElement?(0,tV.jsx)(u,{visualElement:d.visualElement,...c}):null,function(t,e,i,{latestValues:n},s,a=!1){let l=isSVGComponent(t)?useSVGProps:useHTMLProps,u=l(e,n,s,t),c=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(shouldForward(s)||!0===i&&isValidMotionProp(s)||!e&&!isValidMotionProp(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,a),h=t!==o.Fragment?{...c,...u,ref:i}:{},{children:d}=e,m=(0,o.useMemo)(()=>isMotionValue(d)?d.get():d,[d]);return(0,o.createElement)(t,{...h,children:m})}(t,i,(l=d.visualElement,(0,o.useCallback)(t=>{t&&m.onMount&&m.onMount(t),l&&(t?l.mount(t):l.unmount()),a&&("function"==typeof a?a(t):isRefObject(a)&&(a.current=t))},[l])),m,h,e)]})}MotionDOMComponent.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let a=(0,o.forwardRef)(MotionDOMComponent);return a[tF]=t,a}function resolveVariant(t,e,i){let n=t.getProps();return resolveVariantFromProps(n,e,void 0!==i?i:n.custom,t)}function getValueTransition(t,e){return t?.[e]??t?.default??t}let isKeyframesTarget=t=>Array.isArray(t);function addValueToWillChange(t,e){let i=t.getValue("willChange");if(isMotionValue(i)&&i.add)return i.add(e);if(!i&&D.WillChange){let i=new D.WillChange("auto");
1t.addValue("willChange",i),i.add(e)}}function makeAnimationInstant(t){t.duration=0,t.type}let combineFunctions=(t,e)=>i=>e(t(i)),pipe=(...t)=>t.reduce(combineFunctions),time_conversion_secondsToMilliseconds=t=>1e3*t,millisecondsToSeconds=t=>t/1e3,tO={layout:0,mainThread:0,waapi:0};function hueToRgb(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function mixImmediate(t,e){return i=>i>0?e:t}let mixLinearColor=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},tW=[G,_,$],getColorType=t=>tW.find(e=>e.test(t));function asRGBA(t){let e=getColorType(t);if(warning(!!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===$&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,o=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,l=2*i-n;s=hueToRgb(l,n,t+1/3),o=hueToRgb(l,n,t),a=hueToRgb(l,n,t-1/3)}else s=o=a=i;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}(i)),i}let mixColor=(t,e)=>{let i=asRGBA(t),n=asRGBA(e);if(!i||!n)return mixImmediate(t,e);let s={...i};return t=>(s.red=mixLinearColor(i.red,n.red,t),s.green=mixLinearColor(i.green,n.green,t),s.blue=mixLinearColor(i.blue,n.blue,t),s.alpha=mixNumber(i.alpha,n.alpha,t),_.transform(s))},tz=new Set(["none","hidden"]);function complex_mixNumber(t,e){return i=>mixNumber(t,e,i)}function getMixer(t){return"number"==typeof t?complex_mixNumber:"string"==typeof t?isCSSVariableToken(t)?mixImmediate:H.test(t)?mixColor:mixComplex:Array.isArray(t)?mixArray:"object"==typeof t?H.test(t)?mixColor:mixObject:mixImmediate}function mixArray(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>getMixer(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function mixObject(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=getMixer(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let mixComplex=(t,e)=>{let i=Z.createTransformer(e),n=analyseComplexValue(t),s=analyseComplexValue(e),o=n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length;return o?tz.has(t)&&!s.values.length||tz.has(e)&&!n.values.length?tz.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:pipe(mixArray(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let o=e.types[s],a=t.indexes[o][n[o]],l=t.values[a]??0;i[s]=l,n[o]++}return i}(n,s),s.values),i):(warning(!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"),mixImmediate(t,e))};function mix(t,e,i){if("number"==typeof t&&"number"==typeof e&&"number"==typeof i)return mixNumber(t,e,i);let n=getMixer(t);return n(t,e)}let frameloopDriver=t=>{let passTimestamp=({timestamp:e})=>t(e);return{start:(t=!0)=>R.update(passTimestamp,t),stop:()=>L(passTimestamp),now:()=>B.isProcessing?B.timestamp:ts.now()}},generateLinearEasing=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function calcGeneratorDuration(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function calcGeneratorVelocity(t,e,i){var n,s;let o=Math.max(e-5,0);return n=i-t(o),(s=e-o)?n*(1e3/s):0}let tU={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function calcAngularFreq(t,e){return t*Math.sqrt(1-e*e)}let t_=["duration","bounce"],tG=["stiffness","damping","mass"];function isSpringType(t,e){return e.some(e=>void 0!==t[e])}function spring(t=tU.visualDuration,e=tU.bounce){let i;let n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:s,restDelta:o}=n,a=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:a},{stiffness:c,damping:h,mass:d,duration:m,velocity:p,isResolvedFromDuration:f}=function(t){let e={velocity:tU.velocity,stiffness:tU.stiffness,damping:tU.damping,mass:tU.mass,isResolvedFromDuration:!1,...t};if(!isSpringType(t,tG)&&isSpringType(t,t_)){if(t.visualDuration){let i=t.visualDuration,n=2*Math.PI/(1.2*i),s=n*n,o=2*clamp(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:tU.mass,stiffness:s,damping:o}}else{let i=function({duration:t=tU.duration,bounce:e=tU.bounce,velocity:i=tU.velocity,mass:n=tU.mass}){let s,o;warning(t<=time_conversion_secondsToMilliseconds(tU.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=clamp(tU.minDamping,tU.maxDamping,a),t=clamp(tU.minDuration,tU.maxDuration,millisecondsToSeconds(t)),a<1?(s=e=>{let n=e*a,s=n*t,o=calcAngularFreq(e,a);return .001-(n-i)/o*Math.exp(-s)},o=e=>{let n=e*a,o=n*t,l=Math.pow(a,2)*Math.pow(e,2)*t,u=calcAngularFreq(Math.pow(e,2),a),c=-s(e)+.001>0?-1:1;return c*((o*i+i-l)*Math.exp(-o))/u}):(s=e=>
1{let n=Math.exp(-e*t),s=(e-i)*t+1;return -.001+n*s},o=e=>{let n=Math.exp(-e*t),s=(i-e)*(t*t);return n*s});let l=5/t,u=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,o,l);if(t=time_conversion_secondsToMilliseconds(t),isNaN(u))return{stiffness:tU.stiffness,damping:tU.damping,duration:t};{let e=Math.pow(u,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:tU.mass}).isResolvedFromDuration=!0}}return e}({...n,velocity:-millisecondsToSeconds(n.velocity||0)}),g=p||0,y=h/(2*Math.sqrt(c*d)),v=l-a,b=millisecondsToSeconds(Math.sqrt(c/d)),x=5>Math.abs(v);if(s||(s=x?tU.restSpeed.granular:tU.restSpeed.default),o||(o=x?tU.restDelta.granular:tU.restDelta.default),y<1){let t=calcAngularFreq(b,y);i=e=>{let i=Math.exp(-y*b*e);return l-i*((g+y*b*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}}else if(1===y)i=t=>l-Math.exp(-b*t)*(v+(g+b*v)*t);else{let t=b*Math.sqrt(y*y-1);i=e=>{let i=Math.exp(-y*b*e),n=Math.min(t*e,300);return l-i*((g+y*b*v)*Math.sinh(n)+t*v*Math.cosh(n))/t}}let T={calculatedDuration:f&&m||null,next:t=>{let e=i(t);if(f)u.done=t>=m;else{let n=0===t?g:0;y<1&&(n=0===t?time_conversion_secondsToMilliseconds(g):calcGeneratorVelocity(i,t,e));let a=Math.abs(n)<=s,c=Math.abs(l-e)<=o;u.done=a&&c}return u.value=u.done?l:e,u},toString:()=>{let t=Math.min(calcGeneratorDuration(T),2e4),e=generateLinearEasing(e=>T.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return T}function inertia({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:a,min:l,max:u,restDelta:c=.5,restSpeed:h}){let d,m;let p=t[0],f={done:!1,value:p},isOutOfBounds=t=>void 0!==l&&t<l||void 0!==u&&t>u,nearestBoundary=t=>void 0===l?u:void 0===u?l:Math.abs(l-t)<Math.abs(u-t)?l:u,g=i*e,y=p+g,v=void 0===a?y:a(y);v!==y&&(g=v-p);let calcDelta=t=>-g*Math.exp(-t/n),calcLatest=t=>v+calcDelta(t),applyFriction=t=>{let e=calcDelta(t),i=calcLatest(t);f.done=Math.abs(e)<=c,f.value=f.done?v:i},checkCatchBoundary=t=>{isOutOfBounds(f.value)&&(d=t,m=spring({keyframes:[f.value,nearestBoundary(f.value)],velocity:calcGeneratorVelocity(calcLatest,t,f.value),damping:s,stiffness:o,restDelta:c,restSpeed:h}))};return checkCatchBoundary(0),{calculatedDuration:null,next:t=>{let e=!1;return(m||void 0!==d||(e=!0,applyFriction(t),checkCatchBoundary(t)),void 0!==d&&t>=d)?m.next(t-d):(e||applyFriction(t),f)}}}spring.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(calcGeneratorDuration(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:millisecondsToSeconds(s)}}(t,100,spring);return t.ease=e.ease,t.duration=time_conversion_secondsToMilliseconds(e.duration),t.type="keyframes",t};let calcBezier=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function cubicBezier(t,e,i,n){if(t===e&&i===n)return noop;let getTForX=e=>(function(t,e,i,n,s){let o,a;let l=0;do(o=calcBezier(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(o)>1e-7&&++l<12);return a})(e,0,1,t,i);return t=>0===t||1===t?t:calcBezier(getTForX(t),e,n)}let t$=cubicBezier(.42,0,1,1),tH=cubicBezier(0,0,.58,1),tK=cubicBezier(.42,0,.58,1),isEasingArray=t=>Array.isArray(t)&&"number"!=typeof t[0],mirrorEasing=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,reverseEasing=t=>e=>1-t(1-e),tq=cubicBezier(.33,1.53,.69,.99),tY=reverseEasing(tq),tX=mirrorEasing(tY),anticipate=t=>(t*=2)<1?.5*tY(t):.5*(2-Math.pow(2,-10*(t-1))),circIn=t=>1-Math.sin(Math.acos(t)),tZ=reverseEasing(circIn),tJ=mirrorEasing(circIn),isBezierDefinition=t=>Array.isArray(t)&&"number"==typeof t[0],tQ={linear:noop,easeIn:t$,easeInOut:tK,easeOut:tH,circIn:circIn,circInOut:tJ,circOut:tZ,backIn:tY,backInOut:tX,backOut:tq,anticipate:anticipate},isValidEasing=t=>"string"==typeof t,easingDefinitionToFunction=t=>{if(isBezierDefinition(t)){invariant(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,s]=t;return cubicBezier(e,i,n,s)}return isValidEasing(t)?(invariant(void 0!==tQ[t],`Invalid easing type '${t}'`,"invalid-easing-type"),tQ[t]):t},progress=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function keyframes({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let s=isEasingArray(n)?n.map(easingDefinitionToFunction):easingDefinitionToFunction(n),o={done:!1,value:e[0]}
1,a=(i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=progress(0,e,n);t.push(mixNumber(i,1,s))}}(e,t.length-1),e}(e)).map(e=>e*t),l=function(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let o=t.length;if(invariant(o===e.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());let l=function(t,e,i){let n=[],s=i||D.mix||mix,o=t.length-1;for(let i=0;i<o;i++){let o=s(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||noop:e;o=pipe(t,o)}n.push(o)}return n}(e,n,s),u=l.length,interpolator=i=>{if(a&&i<t[0])return e[0];let n=0;if(u>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=progress(t[n],t[n+1],i);return l[n](s)};return i?e=>interpolator(clamp(t[0],t[o-1],e)):interpolator}(a,e,{ease:Array.isArray(s)?s:e.map(()=>s||tK).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=l(e),o.done=e>=t,o)}}let isNotNull=t=>null!==t;function getFinalKeyframe(t,{repeat:e,repeatType:i="loop"},n,s=1){let o=t.filter(isNotNull),a=s<0||e&&"loop"!==i&&e%2==1?0:o.length-1;return a&&void 0!==n?n:o[a]}let t0={decay:inertia,inertia:inertia,tween:keyframes,keyframes:keyframes,spring:spring};function replaceTransitionType(t){"string"==typeof t.type&&(t.type=t0[t.type])}let WithPromise=class WithPromise{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}};let percentToProgress=t=>t/100;let JSAnimation=class JSAnimation extends WithPromise{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==ts.now()&&this.tick(ts.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},tO.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;replaceTransitionType(t);let{type:e=keyframes,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:o=0}=t,{keyframes:a}=t,l=e||keyframes;l!==keyframes&&"number"!=typeof a[0]&&(this.mixKeyframes=pipe(percentToProgress,mix(a[0],a[1])),a=[0,100]);let u=l({...t,keyframes:a});"mirror"===s&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=calcGeneratorDuration(u));let{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=u}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return i.next(0);let{delay:u=0,keyframes:c,repeat:h,repeatType:d,repeatDelay:m,type:p,onUpdate:f,finalKeyframe:g}=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);let y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let b=this.currentTime,x=i;if(h){let t=Math.min(this.currentTime,n)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,e=Math.min(e,h+1);let s=!!(e%2);s&&("reverse"===d?(i=1-i,m&&(i-=m/a)):"mirror"===d&&(x=o)),b=clamp(0,1,i)*a}let T=v?{done:!1,value:c[0]}:x.next(b);s&&(T.value=s(T.value));let{done:A}=T;v||null===l||(A=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&A);return w&&p!==inertia&&(T.value=getFinalKeyframe(c,this.options,g,this.speed)),f&&f(T.value),w&&this.finish(),T}then(t,e){return this.finished.then(t,e)}get duration(){return millisecondsToSeconds(this.calculatedDuration)}get time(){return millisecondsToSeconds(this.currentTime)}set time(t){t=time_conversion_secondsToMilliseconds(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ts.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=millisecondsToSeconds(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=frameloopDriver,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ts.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,tO.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};let isCSSVar=t=>t.startsWith("--");function memo(t){let e;return()=>(void 0===e&&(e=t()),e)}let t1=memo(()=>void 0!==window.ScrollTimeline),t2={},t5=function(t,e){let i=memo(t);return()=>t2[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),cubicBezierAsString=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,t3={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])};function isGenerator(t){return"function"==typeof t&&"applyToOptions"in t}let NativeAnimation=class NativeAnimation extends WithPromise{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,invariant("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let u=function({type:t,...e}){return isGenerator(t)&&t5()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:o=0,repeatType:a="loop",ease:l="easeOut",times:u}={},c){let h={[e]:i};u&&(h.offset=u);let d=function mapEasingToNativeEasing(t,e){if(t)return"function"==typeof t?t5()?generateLinearEasing(t,e):"ease-out":isBez
1ierDefinition(t)?cubicBezierAsString(t):Array.isArray(t)?t.map(t=>mapEasingToNativeEasing(t,e)||t3.easeOut):t3[t]}(l,s);Array.isArray(d)&&(h.easing=d),k.value&&tO.waapi++;let m={delay:n,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"};c&&(m.pseudoElement=c);let p=t.animate(h,m);return k.value&&p.finished.finally(()=>{tO.waapi--}),p}(e,i,n,u,s),!1===u.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=getFinalKeyframe(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(t):isCSSVar(i)?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return millisecondsToSeconds(Number(t))}get time(){return millisecondsToSeconds(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=time_conversion_secondsToMilliseconds(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&t1())?(this.animation.timeline=t,noop):e(this)}};let t9={anticipate:anticipate,backInOut:tX,circInOut:tJ};let NativeAnimationExtended=class NativeAnimationExtended extends NativeAnimation{constructor(t){"string"==typeof t.ease&&t.ease in t9&&(t.ease=t9[t.ease]),replaceTransitionType(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...o}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let a=new JSAnimation({...o,autoplay:!1}),l=time_conversion_secondsToMilliseconds(this.finishedTime??this.time);e.setWithVelocity(a.sample(l-10).value,a.sample(l).value,10),a.stop()}};let isAnimatable=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(Z.test(t)||"0"===t)&&!t.startsWith("url(")),t4=new Set(["opacity","clipPath","filter","transform"]),t6=memo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));let AsyncMotionValueAnimation=class AsyncMotionValueAnimation extends WithPromise{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ts.now();let d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:o,name:l,motionValue:u,element:c,...h},m=c?.KeyframeResolver||KeyframeResolver;this.keyframeResolver=new m(a,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=i;this.resolvedAt=ts.now(),!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let o=t[t.length-1],a=isAnimatable(s,e),l=isAnimatable(o,e);return warning(a===l,`You are trying to animate ${e} from "${s}" to "${o}". "${a?o:s}" is not an animatable value.`,"value-not-animatable"),!!a&&!!l&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||isGenerator(i))&&n)}(t,s,o,a)&&((D.instantAnimations||!l)&&c?.(getFinalKeyframe(t,i,e)),t[0]=t[t.length-1],makeAnimationInstant(i),i.repeat=0);let h=n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,d={startTime:h,finalKeyframe:e,...i,keyframes:t},m=!u&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:o,type:a}=t,l=e?.owner?.current;if(!(l instanceof HTMLElement))return!1;
1let{onUpdate:u,transformTemplate:c}=e.owner.getProps();return t6()&&i&&t4.has(i)&&("transform"!==i||!c)&&!u&&!n&&"mirror"!==s&&0!==o&&"inertia"!==a}(d)?new NativeAnimationExtended({...d,element:d.motionValue.owner.current}):new JSAnimation(d);m.finished.then(()=>this.notifyFinished()).catch(noop),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),O=!0,readAllKeyframes(),measureAllKeyframes(),O=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};let get_final_keyframe_isNotNull=t=>null!==t,t8={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),t7={type:"keyframes",duration:.8},et={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(t,{keyframes:e})=>e.length>2?t7:l.has(t)?t.startsWith("scale")?criticallyDampedSpring(e[1]):t8:et,animateMotionValue=(t,e,i,n={},s,o)=>a=>{let l=getValueTransition(n,t)||{},u=l.delay||n.delay||0,{elapsed:c=0}=n;c-=time_conversion_secondsToMilliseconds(u);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-c,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:o?void 0:s};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:l,from:u,elapsed:c,...h}){return!!Object.keys(h).length}(l)&&Object.assign(h,getDefaultTransition(t,h)),h.duration&&(h.duration=time_conversion_secondsToMilliseconds(h.duration)),h.repeatDelay&&(h.repeatDelay=time_conversion_secondsToMilliseconds(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(makeAnimationInstant(h),0!==h.delay||(d=!0)),(D.instantAnimations||D.skipAnimations)&&(d=!0,makeAnimationInstant(h),h.delay=0),h.allowFlatten=!l.type&&!l.ease,d&&!o&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let s=t.filter(get_final_keyframe_isNotNull),o=e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}(h.keyframes,l);if(void 0!==t){R.update(()=>{h.onUpdate(t),h.onComplete()});return}}return l.isSync?new JSAnimation(h):new AsyncMotionValueAnimation(h)};function animateTarget(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;n&&(o=n);let u=[],c=s&&t.animationState&&t.animationState.getState()[s];for(let e in l){let n=t.getValue(e,t.latestValues[e]??null),s=l[e];if(void 0===s||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let a={delay:i,...getValueTransition(o||{},e)},h=n.get();if(void 0!==h&&!n.isAnimating&&!Array.isArray(s)&&s===h&&!a.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let i=t.props[tI];if(i){let t=window.MotionHandoffAnimation(i,e,R);null!==t&&(a.startTime=t,d=!0)}}addValueToWillChange(t,e),n.start(animateMotionValue(e,n,s,t.shouldReduceMotion&&p.has(e)?{type:!1}:a,t,d));let m=n.animation;m&&u.push(m)}return a&&Promise.all(u).then(()=>{R.update(()=>{a&&function(t,e){let i=resolveVariant(t,e),{transitionEnd:n={},transition:s={},...o}=i||{};for(let e in o={...o,...n}){var a;let i=isKeyframesTarget(a=o[e])?a[a.length-1]||0:a;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,motionValue(i))}}(t,a)})}),u}function calcChildStagger(t,e,i,n=0,s=1){let o=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,l=(a-1)*n;return"function"==typeof i?i(o,a):1===s?o*n:l-o*n}function animateVariant(t,e,i={}){let n=resolveVariant(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let o=n?()=>Promise.all(animateTarget(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:l}=s;
1return function(t,e,i=0,n=0,s=0,o=1,a){let l=[];for(let u of t.variantChildren)u.notify("AnimationStart",e),l.push(animateVariant(u,e,{...a,delay:i+("function"==typeof n?0:n)+calcChildStagger(t.variantChildren,u,n,s,o)}).then(()=>u.notify("AnimationComplete",e)));return Promise.all(l)}(t,e,n,o,a,l,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function shallowCompare(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let ee=ty.length,ei=[...tg].reverse(),er=tg.length;function createTypeState(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function createState(){return{animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()}}let Feature=class Feature{constructor(t){this.isMounted=!1,this.node=t}update(){}};let en=0,es={x:!1,y:!1};function addDomEvent(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let isPrimaryPointer=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function extractEventInfo(t){return{point:{x:t.pageX,y:t.pageY}}}let addPointerInfo=t=>e=>isPrimaryPointer(e)&&t(e,extractEventInfo(e));function addPointerEvent(t,e,i,n){return addDomEvent(t,e,addPointerInfo(i),n)}function calcLength(t){return t.max-t.min}function calcAxisDelta(t,e,i,n=.5){t.origin=n,t.originPoint=mixNumber(e.min,e.max,t.origin),t.scale=calcLength(i)/calcLength(e),t.translate=mixNumber(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function calcBoxDelta(t,e,i,n){calcAxisDelta(t.x,e.x,i.x,n?n.originX:void 0),calcAxisDelta(t.y,e.y,i.y,n?n.originY:void 0)}function calcRelativeAxis(t,e,i){t.min=i.min+e.min,t.max=t.min+calcLength(e)}function calcRelativeAxisPosition(t,e,i){t.min=e.min-i.min,t.max=t.min+calcLength(e)}function calcRelativePosition(t,e,i){calcRelativeAxisPosition(t.x,e.x,i.x),calcRelativeAxisPosition(t.y,e.y,i.y)}function eachAxis(t){return[t("x"),t("y")]}let getContextWindow=({current:t})=>t?t.ownerDocument.defaultView:null,distance=(t,e)=>Math.abs(t-e);let PanSession=class PanSession{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=getPanInfo(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){let i=distance(t.x,e.x),n=distance(t.y,e.y);return Math.sqrt(i**2+n**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!i)return;let{point:n}=t,{timestamp:s}=B;this.history.push({...n,timestamp:s});let{onStart:o,onMove:a}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=transformPoint(e,this.transformPagePoint),R.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=getPanInfo("pointercancel"===t.type?this.lastMoveEventInfo:transformPoint(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),n&&n(t,o)},!isPrimaryPointer(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=o,this.contextWindow=n||window;let a=extractEventInfo(t),l=transformPoint(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=B;this.history=[{...u,timestamp:c}];let{onSessionStart:h}=e;h&&h(t,getPanInfo(l,this.history)),this.removeListeners=pipe(addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove),addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp),addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),L(this.updatePoint)}};function transformPoint(t,e){return e?{point:e(t.point)}:t}function subtractPoint(t,e){return{x:t.x-e.x,y:t.y-e.y}}function getPanInfo({point:t},e){return{point:t,delta:subtractPoint(t,lastDevicePoint(e)),offset:subtractPoint(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=lastDevicePoint(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>time_conversion_secondsToMilliseconds(.1)));)i--;if(!n)return{x:0,y:0};let o=millisecondsToSeconds(s.timestamp-n.timestamp);if(0===o)return{x:0,y:0};let a={x:(s.x-n.x)/o,y:(s.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,0)}}function lastDevicePoint(t){return t[t.length-1]}function calcRelativeAxisConstraints(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function calcViewportAxisConstraints(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function resolveAxisElastic(t,e,i){return{min:resolvePointElastic(t,e),max:resolvePointElastic(t,i)}}function resolvePointElastic(t,e){return"number"==typeof t?t:t[e]||0}let eo=new WeakMap;let VisualElementDragControls=class VisualElementDragControls{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=createBox(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:s}=this.getProps();this.panSession=new PanSession(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(extractEventInfo(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?es[i]?null:(es[i]=!0,()=>{es[i]=!1}):es.x||es.y?null:(es.x=es.y=!0,()=>{es.x=es.y=!1}),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eachAxis(t=>{let e=this.getAxisMotionValue(t).get()||0;if(b.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=calcLength(n);e=t*(parseFloat(e)/100)}}}this.originPoint[t]=e}),s&&R.postRender(()=>s(t,e)),addValueToWillChange(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:o}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>eachAxis(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,distanceThreshold:i,contextWindow:getContextWindow(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:o}=n;this.startAnimation(o);let{onDragEnd:a}=this.getProps();a&&R.postRender(()=>a(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!shouldDrag(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?mixNumber(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?mixNumber(i,t,n.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&isRefObject(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:calcRelativeAxisConstraints(t.x,i,s),y:calcRelativeAxisConstraints(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:resolveAxisElastic(t,"left","right"),y:resolveAxisElastic(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!isRefObject(e))return!1;let n=e.current;invariant(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;
1let o=function(t,e,i){let n=measureViewportBox(t,i),{scroll:s}=e;return s&&(translateAxis(n.x,s.offset.x),translateAxis(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),a={x:calcViewportAxisConstraints((t=s.layout.layoutBox).x,o.x),y:calcViewportAxisConstraints(t.y,o.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=convertBoundingBoxToBox(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=eachAxis(a=>{if(!shouldDrag(a,e,this.currentDirection))return;let u=l&&l[a]||{};o&&(u={min:0,max:0});let c={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...u};return this.startAxisValueAnimation(a,c)});return Promise.all(u).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return addValueToWillChange(this.visualElement,t),i.start(animateMotionValue(t,i,0,e,this.visualElement,!1))}stopAnimation(){eachAxis(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){eachAxis(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),n=i[e];return n||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){eachAxis(e=>{let{drag:i}=this.getProps();if(!shouldDrag(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:o}=n.layout.layoutBox[e];s.set(t[e]-mixNumber(i,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!isRefObject(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};eachAxis(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=calcLength(t),s=calcLength(e);return s>n?i=progress(e.min,e.max-n,t.min):n>s&&(i=progress(t.min,t.max-s,e.min)),clamp(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),eachAxis(e=>{if(!shouldDrag(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];i.set(mixNumber(s,o,n[e]))})}addListeners(){if(!this.visualElement.current)return;eo.set(this.visualElement,this);let t=this.visualElement.current,e=addPointerEvent(t,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),measureDragConstraints=()=>{let{dragConstraints:t}=this.getProps();isRefObject(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",measureDragConstraints);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),R.read(measureDragConstraints);let s=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(eachAxis(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),e(),n(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:o=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:o,dragMomentum:a}}};function shouldDrag(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let asyncHandler=t=>(e,i)=>{t&&R.postRender(()=>t(e,i))},ea={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pixelsToPercent(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let el={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!x.test(t))return t;t=parseFloat(t)}let i=pixelsToPercent(t,e.target.x),n=pixelsToPercent(t,e.target.y);return`${i}% ${n}%`}},eu=!1;let MeasureLayoutWithContext=class MeasureLayoutWithContext extends o.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;!function(t){for(let e in t)tT[e]=t[e],h(e)&&(tT[e].isCSSVariable=!0)}(ec),s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),eu&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ea.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:o}=i;return o&&(o.isPresent=s,eu=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent===s||(s?o.promote():o.relegate()||R.postRender(()=>
1{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tl.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;eu=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function MeasureLayout(t){let[e,i]=function(t=!0){let e=(0,o.useContext)(tR);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,a=(0,o.useId)();(0,o.useEffect)(()=>{if(t)return s(a)},[t]);let l=(0,o.useCallback)(()=>t&&n&&n(a),[a,n,t]);return!i&&n?[!1,l]:[!0]}(),n=(0,o.useContext)(tM);return(0,tV.jsx)(MeasureLayoutWithContext,{...t,layoutGroup:n,switchLayoutGroup:(0,o.useContext)(tN),isPresent:e,safeToRemove:i})}let ec={borderRadius:{...el,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:el,borderTopRightRadius:el,borderBottomLeftRadius:el,borderBottomRightRadius:el,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=Z.parse(t);if(n.length>5)return t;let s=Z.createTransformer(t),o="number"!=typeof n[0]?1:0,a=i.x.scale*e.x,l=i.y.scale*e.y;n[0+o]/=a,n[1+o]/=l;let u=mixNumber(a,l,.5);return"number"==typeof n[2+o]&&(n[2+o]/=u),"number"==typeof n[3+o]&&(n[3+o]/=u),s(n)}}};function isObject(t){return"object"==typeof t&&null!==t}function isSVGElement(t){return isObject(t)&&"ownerSVGElement"in t}let compareByDepth=(t,e)=>t.depth-e.depth;let FlatTree=class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(t){addUniqueItem(this.children,t),this.isDirty=!0}remove(t){removeItem(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(t)}};let eh=["TopLeft","TopRight","BottomLeft","BottomRight"],ed=eh.length,asNumber=t=>"string"==typeof t?parseFloat(t):t,isPx=t=>"number"==typeof t||x.test(t);function getRadius(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let em=compress(0,.5,tZ),ep=compress(.5,.95,noop);function compress(t,e,i){return n=>n<t?0:n>e?1:i(progress(t,e,n))}function copyAxisInto(t,e){t.min=e.min,t.max=e.max}function copyBoxInto(t,e){copyAxisInto(t.x,e.x),copyAxisInto(t.y,e.y)}function copyAxisDeltaInto(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function removePointDelta(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function removeAxisTransforms(t,e,[i,n,s],o,a){!function(t,e=0,i=1,n=.5,s,o=t,a=t){if(b.test(e)){e=parseFloat(e);let t=mixNumber(a.min,a.max,e/100);e=t-a.min}if("number"!=typeof e)return;let l=mixNumber(o.min,o.max,n);t===o&&(l-=e),t.min=removePointDelta(t.min,e,i,l,s),t.max=removePointDelta(t.max,e,i,l,s)}(t,e[i],e[n],e[s],e.scale,o,a)}let ef=["x","scaleX","originX"],eg=["y","scaleY","originY"];function removeBoxTransforms(t,e,i,n){removeAxisTransforms(t.x,e,ef,i?i.x:void 0,n?n.x:void 0),removeAxisTransforms(t.y,e,eg,i?i.y:void 0,n?n.y:void 0)}function isAxisDeltaZero(t){return 0===t.translate&&1===t.scale}function isDeltaZero(t){return isAxisDeltaZero(t.x)&&isAxisDeltaZero(t.y)}function axisEquals(t,e){return t.min===e.min&&t.max===e.max}function axisEqualsRounded(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function boxEqualsRounded(t,e){return axisEqualsRounded(t.x,e.x)&&axisEqualsRounded(t.y,e.y)}function aspectRatio(t){return calcLength(t.x)/calcLength(t.y)}function axisDeltaEquals(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}let NodeStack=class NodeStack{constructor(){this.members=[]}add(t){addUniqueItem(this.members,t),t.scheduleRender()}remove(t){if(removeItem(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let 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);let{crossfade:n}=t.options;!1===n&&i.hide()}}
1exitAnimationComplete(){this.members.forEach(t=>{let{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)}};let ey={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ev=["","X","Y","Z"],eb=0;function resetDistortingTransform(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function create_projection_node_createProjectionNode({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=eb++,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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,k.value&&(ey.nodes=ey.calculatedTargetDeltas=ey.calculatedProjections=0),this.nodes.forEach(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes),k.addProjectionMetrics&&k.addProjectionMetrics(ey)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new FlatTree)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new SubscriptionManager),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=isSVGElement(e)&&!(isSVGElement(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i;let n=0,resizeUnblockUpdate=()=>this.root.updateBlockedByResize=!1;R.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=ts.now(),checkElapsed=({timestamp:n})=>{let s=n-i;s>=e&&(L(checkElapsed),t(s-e))};return R.setup(checkElapsed,!0),()=>L(checkElapsed)}(resizeUnblockUpdate,250),ea.hasAnimatedSinceResize&&(ea.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||s.getDefaultTransition()||ex,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=s.getProps(),u=!this.targetLayout||!boxEqualsRounded(this.targetLayout,n),c=!e&&i;if(this.options.layoutRoot||this.resumeFrom||c||e&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...getValueTransition(o,"layout"),onPlay:a,onComplete:l};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,c)}else e||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),L(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(resetSkewAndRotation),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function cancelTreeOptimisedTransformAnimations(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:e}=t.options;if(!e)return;let i=e.props[tI];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",R,!(e||n))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;let t=this.isUpdateBlocked();if(t){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(clearMeasurements);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(clearIsLayoutDirty);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(resetTransformStyle),this.nodes.forEach(updateLayout),this.nodes.forEach(notifyLayoutUpdate)):this.nodes.forEach(clearIsLayoutDirty),this.clearAllSnapshots();let e=ts.now();B.delta=clamp(0,1e3/60,e-B.timestamp),B.timestamp=e,B.isProcessing=!0,F.update.process(B),F.preRender.process(B),F.render.process(B),B.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tl.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,R.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){R.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||calcLength(this.snapshot.measuredBox.x)||calcLength(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){let e=this.path[t];e.updateScroll()}let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=createBox(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!isDeltaZero(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||hasTransform(this.latestValues)||o)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),roundAxis((e=n).x),roundAxis(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return createBox();let e=t.measureViewportBox(),i=this.scroll?.wasRoot||this.path.some(checkNodeWasScrollRoot);if(!i){let{scroll:t}=this.root;t&&(translateAxis(e.x,t.offset.x),translateAxis(e.y,t.offset.y))}return e}removeElementScroll(t){let e=createBox();if(copyBoxInto(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:o}=n;n!==this.root&&s&&o.layoutScroll&&(s.wasRoot&©BoxInto(e,t),translateAxis(e.x,s.offset.x),translateAxis(e.y,s.offset.y))}return e}applyTransform(t,e=!1){let i=createBox();copyBoxInto(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&transformBox(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),hasTransform(n.latestValues)&&transformBox(i,n.latestValues)}return hasTransform(this.latestValues)&&transformBox(i,this.latestValues),i}removeTransform(t){let e=createBox();copyBoxInto(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!hasTransform(i.latestValues))continue;hasScale(i.latestValues)&&i.updateSnapshot();let n=createBox(),s=i.measurePageBox();copyBoxInto(n,s),removeBoxTransforms(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return hasTransform(this.latestValues)&&removeBoxTransforms(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==B.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e,n=!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize);
1if(n)return;let{layout:s,layoutId:o}=this.options;if(this.layout&&(s||o)){if(this.resolvedRelativeTargetAt=B.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=createBox(),this.targetWithTransforms=createBox()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,l,u;this.forceRelativeParentToResolveTarget(),a=this.target,l=this.relativeTarget,u=this.relativeParent.target,calcRelativeAxis(a.x,l.x,u.x),calcRelativeAxis(a.y,l.y,u.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):copyBoxInto(this.target,this.layout.layoutBox),applyBoxDelta(this.target,this.targetDelta)):copyBoxInto(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.target,t.target),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}k.value&&ey.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||hasScale(this.parent.latestValues)||has2DTranslate(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===B.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;copyBoxInto(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let s,o;let a=i.length;if(a){e.x=e.y=1;for(let l=0;l<a;l++){o=(s=i[l]).projectionDelta;let{visualElement:a}=s.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&transformBox(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,applyBoxDelta(t,o)),n&&hasTransform(s.latestValues)&&transformBox(t,s.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=createBox());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(copyAxisDeltaInto(this.prevProjectionDelta.x,this.projectionDelta.x),copyAxisDeltaInto(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),calcBoxDelta(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&axisDeltaEquals(this.projectionDelta.x,this.prevProjectionDelta.x)&&axisDeltaEquals(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),k.value&&ey.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=createDelta(),this.projectionDelta=createDelta(),this.projectionDeltaWithTransform=createDelta()}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,s=n?n.latestValues:{},o={...this.latestValues},a=createDelta();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=createBox(),u=n?n.source:void 0,c=this.layout?this.layout.source:void 0,h=u!==c,d=this.getStack(),m=!d||d.members.length<=1,p=!!(h&&!m&&!0===this.options.crossfade&&!this.path.some(hasOpacityCrossfade));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(mixAxisDelta(a.x,t.x,n),mixAxisDelta(a.y,t.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,d,f;calcRelativePosition(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),d=this.relativeTarget,f=this.relativeTargetOrigin,mixAxis(d.x,f.x,l.x,n),mixAxis(d.y,f.y,l.y,n),i&&(u=this.relativeTarget,c=i,axisEquals(u.x,c.x)&&axisEquals(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=createBox()),copyBoxInto(i,this.relativeTarget)}
1h&&(this.animationValues=o,function(t,e,i,n,s,o){s?(t.opacity=mixNumber(0,i.opacity??1,em(n)),t.opacityExit=mixNumber(e.opacity??1,0,ep(n))):o&&(t.opacity=mixNumber(e.opacity??1,i.opacity??1,n));for(let s=0;s<ed;s++){let o=`border${eh[s]}Radius`,a=getRadius(e,o),l=getRadius(i,o);if(void 0===a&&void 0===l)continue;a||(a=0),l||(l=0);let u=0===a||0===l||isPx(a)===isPx(l);u?(t[o]=Math.max(mixNumber(asNumber(a),asNumber(l),n),0),(b.test(l)||b.test(a))&&(t[o]+="%")):t[o]=l}(e.rotate||i.rotate)&&(t.rotate=mixNumber(e.rotate||0,i.rotate||0,n))}(o,s,this.latestValues,n,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(L(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=R.update(()=>{ea.hasAnimatedSinceResize=!0,tO.layout++,this.motionValue||(this.motionValue=motionValue(0)),this.currentAnimation=function(t,e,i){let n=isMotionValue(t)?t:motionValue(t);return n.start(animateMotionValue("",n,e,i)),n.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{tO.layout--},onComplete:()=>{tO.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||createBox();let e=calcLength(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=calcLength(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}copyBoxInto(e,i),transformBox(e,s),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new NodeStack);let i=this.sharedNodes.get(t);i.add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&resetDistortingTransform("z",t,n,this.animationValues);for(let e=0;e<ev.length;e++)resetDistortingTransform(`rotate${ev[e]}`,t,n,this.animationValues),resetDistortingTransform(`skew${ev[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=resolveMotionValue(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=resolveMotionValue(e?.pointerEvents)||""),this.hasProjected&&!hasTransform(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let o=function(t,e,i){let n="",s=t.x.translate/e.x,o=t.y.translate/e.y,a=i?.z||0;if((s||o||a)&&(n=`translate3d(${s}px, ${o}px, ${a}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:o,skewX:a,skewY:l}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),o&&(n+=`rotateY(${o}deg) `),a&&(n+=`skewX(${a}deg) `),l&&(n+=`skewY(${l}deg) `)}let l=t.x.scale*e.x,u=t.y.scale*e.y;return(1!==l||1!==u)&&(n+=`scale(${l}, ${u})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(o=i(s,o)),t.transform=o;let{x:a,y:l}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,tT){if(void 0===s[e])continue;let{correct:i,applyTo:a,isCSSVariable:l}=tT[e],u="none"===o?s[e]:i(s[e],n);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=u}else l?this.options.visualElement.renderState.vars[e]=u:t[e]=u}this.options.layoutId&&(t.pointerEvents=n===this?resolveMotionValue(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(t){t.updateLayout()}function notifyLayoutUpdate(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,o=e.source!==t.layout.source;"size"===s?eachAxis(t=>{let n=o?e.measuredBox[t]:e.layoutBox[t],s=calcLength(n);n.min=i[t].min,n.max=n.min+s}):shouldAnimatePositionOnly(s,e.layoutBox,i)&&eachAxis(n=>{let s=o?e.measuredBox[n]:e.layoutBox[n],a=calcLength(i[n]);s.max=s.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=createDelta();calcBoxDelta(a,i,e.layoutBox);let l=createDelta();o?calcBoxDelta(l,t.applyTransform(n,!0),e.measuredBox):calcBoxDelta(l,i,e.layoutBox);let u=!isDeltaZero(a),c=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:o}=n;
1if(s&&o){let a=createBox();calcRelativePosition(a,e.layoutBox,s.layoutBox);let l=createBox();calcRelativePosition(l,i,o.layoutBox),boxEqualsRounded(a,l)||(c=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function propagateDirtyNodes(t){k.value&&ey.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 cleanDirtyNodes(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function clearSnapshot(t){t.clearSnapshot()}function clearMeasurements(t){t.clearMeasurements()}function clearIsLayoutDirty(t){t.isLayoutDirty=!1}function resetTransformStyle(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function finishAnimation(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function resolveTargetDelta(t){t.resolveTargetDelta()}function calcProjection(t){t.calcProjection()}function resetSkewAndRotation(t){t.resetSkewAndRotation()}function removeLeadSnapshots(t){t.removeLeadSnapshot()}function mixAxisDelta(t,e,i){t.translate=mixNumber(e.translate,0,i),t.scale=mixNumber(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function mixAxis(t,e,i,n){t.min=mixNumber(e.min,i.min,n),t.max=mixNumber(e.max,i.max,n)}function hasOpacityCrossfade(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ex={duration:.45,ease:[.4,0,.1,1]},userAgentContains=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eT=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:noop;function roundAxis(t){t.min=eT(t.min),t.max=eT(t.max)}function shouldAnimatePositionOnly(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(aspectRatio(e)-aspectRatio(i)))}function checkNodeWasScrollRoot(t){return t!==t.root&&t.scroll?.wasRoot}let eA=create_projection_node_createProjectionNode({attachResizeListener:(t,e)=>addDomEvent(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ew={current:void 0},eS=create_projection_node_createProjectionNode({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ew.current){let t=new eA({});t.mount(window),t.setOptions({layoutScroll:!0}),ew.current=t}return ew.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function setupGesture(t,e){let i=function(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let i=document;e&&(i=e.current);let n=(void 0)??i.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t)}(t),n=new AbortController,s={passive:!0,...e,signal:n.signal};return[i,s,()=>n.abort()]}function isValidHover(t){return!("touch"===t.pointerType||es.x||es.y)}function handleHoverEvent(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s="onHover"+i,o=n[s];o&&R.postRender(()=>o(e,extractEventInfo(e)))}let isNodeOrChild=(t,e)=>!!e&&(t===e||isNodeOrChild(t,e.parentElement)),eP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),eV=new WeakSet;function filterEvents(t){return e=>{"Enter"===e.key&&t(e)}}function firePointerEvent(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let enableKeyboardPress=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=filterEvents(()=>{if(eV.has(i))return;firePointerEvent(i,"down");let t=filterEvents(()=>{firePointerEvent(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>firePointerEvent(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function isValidPressEvent(t){return isPrimaryPointer(t)&&!(es.x||es.y)}function handlePressEvent(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s="onTap"+("End"===i?"":i),o=n[s];o&&R.postRender(()=>o(e,extractEventInfo(e)))}let eM=new WeakMap,eC=new WeakMap,fireObserverCallback=t=>{let e=eM.get(t.target);e&&e(t)}
1,fireAllObserverCallbacks=t=>{t.forEach(fireObserverCallback)},eD={some:0,all:1},eE=function(t,e){if("undefined"==typeof Proxy)return createMotionComponent;let i=new Map,factory=(i,n)=>createMotionComponent(i,n,t,e);return new Proxy((t,e)=>factory(t,e),{get:(n,s)=>"create"===s?factory:(i.has(s)||i.set(s,createMotionComponent(s,void 0,t,e)),i.get(s))})}({animation:{Feature:class extends Feature{constructor(t){super(t),t.animationState||(t.animationState=function(t){let animate=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e)){let s=e.map(e=>animateVariant(t,e,i));n=Promise.all(s)}else if("string"==typeof e)n=animateVariant(t,e,i);else{let s="function"==typeof e?resolveVariant(t,e,i.custom):e;n=Promise.all(animateTarget(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),e=createState(),i=!0,buildResolvedTypeValues=e=>(i,n)=>{let s=resolveVariant(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function animateChanges(n){let{props:s}=t,o=function getVariantContext(t){if(!t)return;if(!t.isControllingVariants){let e=t.parent&&getVariantContext(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}let e={};for(let i=0;i<ee;i++){let n=ty[i],s=t.props[n];(isVariantLabel(s)||!1===s)&&(e[n]=s)}return e}(t.parent)||{},a=[],l=new Set,u={},c=1/0;for(let d=0;d<er;d++){var h;let m=ei[d],p=e[m],f=void 0!==s[m]?s[m]:o[m],g=isVariantLabel(f),y=m===n?p.isActive:null;!1===y&&(c=d);let v=f===o[m]&&f!==s[m]&&g;if(v&&i&&t.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...u},!p.isActive&&null===y||!f&&!p.prevProp||isAnimationControls(f)||"boolean"==typeof f)continue;let b=(h=p.prevProp,"string"==typeof f?f!==h:!!Array.isArray(f)&&!shallowCompare(f,h)),x=b||m===n&&p.isActive&&!v&&g||d>c&&g,T=!1,A=Array.isArray(f)?f:[f],w=A.reduce(buildResolvedTypeValues(m),{});!1===y&&(w={});let{prevResolvedValues:S={}}=p,P={...S,...w},markToAnimate=e=>{x=!0,l.has(e)&&(T=!0,l.delete(e)),p.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in P){let e=w[t],i=S[t];if(!u.hasOwnProperty(t))(isKeyframesTarget(e)&&isKeyframesTarget(i)?shallowCompare(e,i):e===i)?void 0!==e&&l.has(t)?markToAnimate(t):p.protectedKeys[t]=!0:null!=e?markToAnimate(t):l.add(t)}p.prevProp=f,p.prevResolvedValues=w,p.isActive&&(u={...u,...w}),i&&t.blockInitialAnimation&&(x=!1);let V=v&&b,M=!V||T;x&&M&&a.push(...A.map(e=>{let n={type:m};if("string"==typeof e&&i&&!V&&t.manuallyAnimateOnMount&&t.parent){let{parent:i}=t,s=resolveVariant(i,e);if(i.enteringChildren&&s){let{delayChildren:e}=s.transition||{};n.delay=calcChildStagger(i.enteringChildren,t,e)}}return{animation:e,options:n}}))}if(l.size){let e={};if("boolean"!=typeof s.initial){let i=resolveVariant(t,Array.isArray(s.initial)?s.initial[0]:s.initial);i&&i.transition&&(e.transition=i.transition)}l.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),a.push({animation:e})}let d=!!a.length;return i&&(!1===s.initial||s.initial===s.animate)&&!t.manuallyAnimateOnMount&&(d=!1),i=!1,d?animate(a):Promise.resolve()}return{animateChanges,setActive:function(i,n){if(e[i].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(i,n)),e[i].isActive=n;let s=animateChanges(i);for(let t in e)e[t].protectedKeys={};return s},setAnimateFunction:function(e){animate=e(t)},getState:()=>e,reset:()=>{e=createState(),i=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();isAnimationControls(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends Feature{constructor(){super(...arguments),this.id=en++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>
1{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:eD[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;eC.has(i)||eC.set(i,{});let n=eC.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(fireAllObserverCallbacks,{root:t,...e})),n[s]}(e);return eM.set(t,i),n.observe(t),()=>{eM.delete(t),n.unobserve(t)}}(this.node.current,o,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),o=e?i:n;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node,i=["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e));i&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,o]=setupGesture(t,i),startPress=t=>{let n=t.currentTarget;if(!isValidPressEvent(t))return;eV.add(n);let o=e(n,t),onPointerEnd=(t,e)=>{window.removeEventListener("pointerup",onPointerUp),window.removeEventListener("pointercancel",onPointerCancel),eV.has(n)&&eV.delete(n),isValidPressEvent(t)&&"function"==typeof o&&o(t,{success:e})},onPointerUp=t=>{onPointerEnd(t,n===window||n===document||i.useGlobalTarget||isNodeOrChild(n,t.target))},onPointerCancel=t=>{onPointerEnd(t,!1)};window.addEventListener("pointerup",onPointerUp,s),window.addEventListener("pointercancel",onPointerCancel,s)};return n.forEach(t=>{let e=i.useGlobalTarget?window:t;e.addEventListener("pointerdown",startPress,s),isObject(t)&&"offsetHeight"in t&&(t.addEventListener("focus",t=>enableKeyboardPress(t,s)),eP.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}(t,(t,e)=>(handlePressEvent(this.node,e,"Start"),(t,{success:e})=>handlePressEvent(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pipe(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,o]=setupGesture(t,i),onPointerEnter=t=>{if(!isValidHover(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let onPointerLeave=t=>{isValidHover(t)&&(n(t),i.removeEventListener("pointerleave",onPointerLeave))};i.addEventListener("pointerleave",onPointerLeave,s)};return n.forEach(t=>{t.addEventListener("pointerenter",onPointerEnter,s)}),o}(t,(t,e)=>(handleHoverEvent(this.node,e,"Start"),t=>handleHoverEvent(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends Feature{constructor(){super(...arguments),this.removePointerDownListener=noop}onPointerDown(t){this.session=new PanSession(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:getContextWindow(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:asyncHandler(t),onStart:asyncHandler(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&R.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Feature{constructor(t){super(t),this.removeGroupControls=noop,this.removeListeners=noop,this.controls=new VisualElementDragControls(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||noop}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:eS,MeasureLayout:MeasureLayout},layout:{ProjectionNode:eS,MeasureLayout:MeasureLayout}},(t,e)=>isSVGComponent(t)?new SVGVisualElement(e):new HTMLVisualElement(e,{allowProjection:t!==o.Fragment}))}
1,3986:function(t,e,i){i.d(e,{m:function(){return d}});var n=/^\[(.+)\]$/;function getPart(t,e){var i=t;return e.split("-").forEach(function(t){i.nextPart.has(t)||i.nextPart.set(t,{nextPart:new Map,validators:[]}),i=i.nextPart.get(t)}),i}var s=/\s+/;function twJoin(){for(var t,e,i=0,n="";i<arguments.length;)(t=arguments[i++])&&(e=function toValue(t){if("string"==typeof t)return t;for(var e,i="",n=0;n<t.length;n++)t[n]&&(e=toValue(t[n]))&&(i&&(i+=" "),i+=e);return i}(t))&&(n&&(n+=" "),n+=e);return n}function fromTheme(t){var themeGetter=function(e){return e[t]||[]};return themeGetter.isThemeGetter=!0,themeGetter}var o=/^\[(?:([a-z-]+):)?(.+)\]$/i,a=/^\d+\/\d+$/,l=new Set(["px","full","screen"]),u=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,c=/\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$/,h=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function isLength(t){return isNumber(t)||l.has(t)||a.test(t)||isArbitraryLength(t)}function isArbitraryLength(t){return getIsArbitraryValue(t,"length",isLengthOnly)}function isArbitrarySize(t){return getIsArbitraryValue(t,"size",isNever)}function isArbitraryPosition(t){return getIsArbitraryValue(t,"position",isNever)}function isArbitraryUrl(t){return getIsArbitraryValue(t,"url",isUrl)}function isArbitraryNumber(t){return getIsArbitraryValue(t,"number",isNumber)}function isNumber(t){return!Number.isNaN(Number(t))}function isPercent(t){return t.endsWith("%")&&isNumber(t.slice(0,-1))}function isInteger(t){return isIntegerOnly(t)||getIsArbitraryValue(t,"number",isIntegerOnly)}function isArbitraryValue(t){return o.test(t)}function isAny(){return!0}function isTshirtSize(t){return u.test(t)}function isArbitraryShadow(t){return getIsArbitraryValue(t,"",isShadow)}function getIsArbitraryValue(t,e,i){var n=o.exec(t);return!!n&&(n[1]?n[1]===e:i(n[2]))}function isLengthOnly(t){return c.test(t)}function isNever(){return!1}function isUrl(t){return t.startsWith("url(")}function isIntegerOnly(t){return Number.isInteger(Number(t))}function isShadow(t){return h.test(t)}var d=function(){for(var t,e,i,o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];var functionToCall=function(s){var o=a[0];return e=(t=function(t){var e,i,s,o,a,l,u,c,h,d,m;return{cache:function(t){if(t<1)return{get:function(){},set:function(){}};var e=0,i=new Map,n=new Map;function update(s,o){i.set(s,o),++e>t&&(e=0,n=i,i=new Map)}return{get:function(t){var e=i.get(t);return void 0!==e?e:void 0!==(e=n.get(t))?(update(t,e),e):void 0},set:function(t,e){i.has(t)?i.set(t,e):update(t,e)}}}(t.cacheSize),splitModifiers:(i=1===(e=t.separator||":").length,s=e[0],o=e.length,function(t){for(var n,a=[],l=0,u=0,c=0;c<t.length;c++){var h=t[c];if(0===l){if(h===s&&(i||t.slice(c,c+o)===e)){a.push(t.slice(u,c)),u=c+o;continue}if("/"===h){n=c;continue}}"["===h?l++:"]"===h&&l--}var d=0===a.length?t:t.substring(u),m=d.startsWith("!"),p=m?d.substring(1):d;return{modifiers:a,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:n&&n>u?n-u:void 0}}),...(c=t.theme,h=t.prefix,d={nextPart:new Map,validators:[]},(m=Object.entries(t.classGroups),h?m.map(function(t){return[t[0],t[1].map(function(t){return"string"==typeof t?h+t:"object"==typeof t?Object.fromEntries(Object.entries(t).map(function(t){return[h+t[0],t[1]]})):t})]}):m).forEach(function(t){var e=t[0];(function processClassesRecursively(t,e,i,n){t.forEach(function(t){if("string"==typeof t){(""===t?e:getPart(e,t)).classGroupId=i;return}if("function"==typeof t){if(t.isThemeGetter){processClassesRecursively(t(n),e,i,n);return}e.validators.push({validator:t,classGroupId:i});return}Object.entries(t).forEach(function(t){var s=t[0];processClassesRecursively(t[1],getPart(e,s),i,n)})})})(t[1],d,e,c)}),a=t.conflictingClassGroups,u=void 0===(l=t.conflictingClassGroupModifiers)?{}:l,{getClassGroupId:function(t){var e=t.split("-");return""===e[0]&&1!==e.length&&e.shift(),function getGroupRecursive(t,e){if(0===t.length)return e.classGroupId;var i=t[0],n=e.nextPart.get(i),s=n?getGroupRecursive(t.slice(1),n):void 0;if(s)return s;if(0!==e.validators.length){var o=t.join("-");return e.validators.find(function(t){return(0,t.validator)(o)})?.classGroupId}}
1(e,d)||function(t){if(n.test(t)){var e=n.exec(t)[1],i=e?.substring(0,e.indexOf(":"));if(i)return"arbitrary.."+i}}(t)},getConflictingClassGroupIds:function(t,e){var i=a[t]||[];return e&&u[t]?[].concat(i,u[t]):i}})}}(a.slice(1).reduce(function(t,e){return e(t)},o()))).cache.get,i=t.cache.set,functionToCall=tailwindMerge,tailwindMerge(s)};function tailwindMerge(n){var o,a,l,u,c,h=e(n);if(h)return h;var d=(a=(o=t).splitModifiers,l=o.getClassGroupId,u=o.getConflictingClassGroupIds,c=new Set,n.trim().split(s).map(function(t){var e=a(t),i=e.modifiers,n=e.hasImportantModifier,s=e.baseClassName,o=e.maybePostfixModifierPosition,u=l(o?s.substring(0,o):s),c=!!o;if(!u){if(!o||!(u=l(s)))return{isTailwindClass:!1,originalClassName:t};c=!1}var h=(function(t){if(t.length<=1)return t;var e=[],i=[];return t.forEach(function(t){"["===t[0]?(e.push.apply(e,i.sort().concat([t])),i=[]):i.push(t)}),e.push.apply(e,i.sort()),e})(i).join(":");return{isTailwindClass:!0,modifierId:n?h+"!":h,classGroupId:u,originalClassName:t,hasPostfixModifier:c}}).reverse().filter(function(t){if(!t.isTailwindClass)return!0;var e=t.modifierId,i=t.classGroupId,n=t.hasPostfixModifier,s=e+i;return!c.has(s)&&(c.add(s),u(i,n).forEach(function(t){return c.add(e+t)}),!0)}).reverse().map(function(t){return t.originalClassName}).join(" "));return i(n,d),d}return function(){return functionToCall(twJoin.apply(null,arguments))}}(function(){var t=fromTheme("colors"),e=fromTheme("spacing"),i=fromTheme("blur"),n=fromTheme("brightness"),s=fromTheme("borderColor"),o=fromTheme("borderRadius"),a=fromTheme("borderSpacing"),l=fromTheme("borderWidth"),u=fromTheme("contrast"),c=fromTheme("grayscale"),h=fromTheme("hueRotate"),d=fromTheme("invert"),m=fromTheme("gap"),p=fromTheme("gradientColorStops"),f=fromTheme("gradientColorStopPositions"),g=fromTheme("inset"),y=fromTheme("margin"),v=fromTheme("opacity"),b=fromTheme("padding"),x=fromTheme("saturate"),T=fromTheme("scale"),A=fromTheme("sepia"),w=fromTheme("skew"),S=fromTheme("space"),P=fromTheme("translate"),getOverscroll=function(){return["auto","contain","none"]},getOverflow=function(){return["auto","hidden","clip","visible","scroll"]},getSpacingWithAutoAndArbitrary=function(){return["auto",isArbitraryValue,e]},getSpacingWithArbitrary=function(){return[isArbitraryValue,e]},getLengthWithEmpty=function(){return["",isLength]},getNumberWithAutoAndArbitrary=function(){return["auto",isNumber,isArbitraryValue]},getPositions=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},getLineStyles=function(){return["solid","dashed","dotted","double","none"]},getBlendModes=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},getAlign=function(){return["start","end","center","between","around","evenly","stretch"]},getZeroAndEmpty=function(){return["","0",isArbitraryValue]},getBreaks=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},getNumber=function(){return[isNumber,isArbitraryNumber]}
vendor: 9,611 bytes, line 1
1,getNumberAndArbitrary=function(){return[isNumber,isArbitraryValue]};return{cacheSize:500,theme:{colors:[isAny],spacing:[isLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:getNumber(),borderColor:[t],borderRadius:["none","","full",isTshirtSize,isArbitraryValue],borderSpacing:getSpacingWithArbitrary(),borderWidth:getLengthWithEmpty(),contrast:getNumber(),grayscale:getZeroAndEmpty(),hueRotate:getNumberAndArbitrary(),invert:getZeroAndEmpty(),gap:getSpacingWithArbitrary(),gradientColorStops:[t],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:getSpacingWithAutoAndArbitrary(),margin:getSpacingWithAutoAndArbitrary(),opacity:getNumber(),padding:getSpacingWithArbitrary(),saturate:getNumber(),scale:getNumber(),sepia:getZeroAndEmpty(),skew:getNumberAndArbitrary(),space:getSpacingWithArbitrary(),translate:getSpacingWithArbitrary()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":getBreaks()}],"break-before":[{"break-before":getBreaks()}],"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"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(getPositions(),[isArbitraryValue])}],overflow:[{overflow:getOverflow()}],"overflow-x":[{"overflow-x":getOverflow()}],"overflow-y":[{"overflow-y":getOverflow()}],overscroll:[{overscroll:getOverscroll()}],"overscroll-x":[{"overscroll-x":getOverscroll()}],"overscroll-y":[{"overscroll-y":getOverscroll()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger]}],basis:[{basis:getSpacingWithAutoAndArbitrary()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:getZeroAndEmpty()}],shrink:[{shrink:getZeroAndEmpty()}],order:[{order:["first","last","none",isInteger]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger]},isArbitraryValue]}],"col-start":[{"col-start":getNumberWithAutoAndArbitrary()}],"col-end":[{"col-end":getNumberWithAutoAndArbitrary()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger]},isArbitraryValue]}],"row-start":[{"row-start":getNumberWithAutoAndArbitrary()}],"row-end":[{"row-end":getNumberWithAutoAndArbitrary()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal"].concat(getAlign())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(getAlign(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(getAlign(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",isArbitraryValue,e]}],"min-w":[{"min-w":["min","max","fit",isArbitraryValue,isLength]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize,isArbitraryValue]}],h:[{h:[isArbitraryValue,e,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",isArbitraryValue,isLength]}],"max-h":[{"max-h":[isArbitraryValue,e,"min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}],"font-family":[{font:[isAny]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber,isArbitraryNumber]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isArbitraryValue,isLength]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(getLineStyles(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength]}],"underline-offset":[{"underline-offset":["auto",isArbitraryValue,isLength]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:getSpacingWithArbitrary()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(getPositions(),[isArbitraryPosition])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryUrl]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[].concat(getLineStyles(),["hidden"])}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:getLineStyles()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:[""].concat(getLineStyles())}],"outline-offset":[{"outline-offset":[isArbitraryValue,isLength]}],"outline-w":[{outline:[isLength]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:getLengthWithEmpty()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[isLength]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[v]}
vendor: 4,020 bytes, line 1
1],"mix-blend":[{"mix-blend":getBlendModes()}],"bg-blend":[{"bg-blend":getBlendModes()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",isArbitraryValue]}],duration:[{duration:getNumberAndArbitrary()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:getNumberAndArbitrary()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[isInteger,isArbitraryValue]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[w]}],"skew-y":[{"skew-y":[w]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],accent:[{accent:["auto",t]}],appearance:["appearance-none"],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",isArbitraryValue]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":getSpacingWithArbitrary()}],"scroll-mx":[{"scroll-mx":getSpacingWithArbitrary()}],"scroll-my":[{"scroll-my":getSpacingWithArbitrary()}],"scroll-ms":[{"scroll-ms":getSpacingWithArbitrary()}],"scroll-me":[{"scroll-me":getSpacingWithArbitrary()}],"scroll-mt":[{"scroll-mt":getSpacingWithArbitrary()}],"scroll-mr":[{"scroll-mr":getSpacingWithArbitrary()}],"scroll-mb":[{"scroll-mb":getSpacingWithArbitrary()}],"scroll-ml":[{"scroll-ml":getSpacingWithArbitrary()}],"scroll-p":[{"scroll-p":getSpacingWithArbitrary()}],"scroll-px":[{"scroll-px":getSpacingWithArbitrary()}],"scroll-py":[{"scroll-py":getSpacingWithArbitrary()}],"scroll-ps":[{"scroll-ps":getSpacingWithArbitrary()}],"scroll-pe":[{"scroll-pe":getSpacingWithArbitrary()}],"scroll-pt":[{"scroll-pt":getSpacingWithArbitrary()}],"scroll-pr":[{"scroll-pr":getSpacingWithArbitrary()}],"scroll-pb":[{"scroll-pb":getSpacingWithArbitrary()}],"scroll-pl":[{"scroll-pl":getSpacingWithArbitrary()}],"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","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryValue]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[isLength,isArbitraryNumber]}
1],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"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"],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-s","border-w-e","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-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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.