1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[801],{91373:function(t,e,i){i.d(e,{Z:function(){return createLucideIcon}});var n=i(67294);/** 2 * @license lucide-react v0.539.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let toKebabCase=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),toCamelCase=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,i)=>i?i.toUpperCase():e.toLowerCase()),toPascalCase=t=>{let e=toCamelCase(t);return e.charAt(0).toUpperCase()+e.slice(1)},mergeClasses=(...t)=>t.filter((t,e,i)=>!!t&&""!==t.trim()&&i.indexOf(t)===e).join(" ").trim(),hasA11yProp=t=>{for(let e in t)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0};/** 7 * @license lucide-react v0.539.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 12 * @license lucide-react v0.539.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */let r=(0,n.forwardRef)(({color:t="currentColor",size:e=24,strokeWidth:i=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:l,...u},h)=>(0,n.createElement)("svg",{ref:h,...s,width:e,height:e,stroke:t,strokeWidth:r?24*Number(i)/Number(e):i,className:mergeClasses("lucide",a),...!o&&!hasA11yProp(u)&&{"aria-hidden":"true"},...u},[...l.map(([t,e])=>(0,n.createElement)(t,e)),...Array.isArray(o)?o:[o]])),createLucideIcon=(t,e)=>{let i=(0,n.forwardRef)(({className:i,...s},a)=>(0,n.createElement)(r,{ref:a,iconNode:e,className:mergeClasses(`lucide-${toKebabCase(toPascalCase(t))}`,`lucide-${t}`,i),...s}));return i.displayName=toPascalCase(t),i}},82701:function(t,e,i){i.d(e,{Z:function(){return s}});var n=i(91373);let s=(0,n.Z)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},31222:function(t,e,i){i.d(e,{Z:function(){return s}});var n=i(91373);let s=(0,n.Z)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])},13742:function(t,e,i){i.d(e,{Z:function(){return s}});var n=i(91373);let s=(0,n.Z)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},32891:function(t,e,i){i.d(e,{Z:function(){return s}});var n=i(91373);let s=(0,n.Z)("coffee",[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]])},63231:function(t,e,i){i.d(e,{Z:function(){return s}});var n=i(91373);let s=(0,n.Z)("crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]])},69283:function(t,e,i){i.d(e,{Z:function(){return s}});var n=i(91373);let s=(0,n.Z)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]])},54976:function(t,e,i){i.d(e,{Z:function(){return s}});var n=i(91373);let s=(0,n.Z)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},19887:function(t,e,i){i.d(e,{Z:function(){return s}});var n=i(91373);let s=(0,n.Z)("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]])}
16,23766:function(t,e,i){i.d(e,{Z:function(){return s}});var n=i(91373);let s=(0,n.Z)("scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]])},19858:function(t,e,i){i.d(e,{Z:function(){return s}});var n=i(91373);let s=(0,n.Z)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]])},49525:function(t,e,i){i.d(e,{Z:function(){return s}});var n=i(91373);let s=(0,n.Z)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},49461:function(t,e,i){i.d(e,{Z:function(){return s}});var n=i(91373);let s=(0,n.Z)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},15947:function(t,e,i){i.d(e,{oO:function(){return usePresence}});var n=i(67294),s=i(240);function usePresence(t=!0){let e=(0,n.useContext)(s.O);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:a}=e,o=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return a(o)},[t]);let l=(0,n.useCallback)(()=>t&&r&&r(o),[o,r,t]);return!i&&r?[!1,l]:[!0]}},25364:function(t,e,i){i.d(e,{p:function(){return s}});var n=i(67294);let s=(0,n.createContext)({})},16014:function(t,e,i){i.d(e,{_:function(){return s}});var n=i(67294);let s=(0,n.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},240:function(t,e,i){i.d(e,{O:function(){return s}});var n=i(67294);let s=(0,n.createContext)(null)},89681:function(t,e,i){let n;i.d(e,{E:function(){return eB}});var s,r=i(67294);let a=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],o=new Set(a),radToDeg=t=>180*t/Math.PI,rotate=t=>{let e=radToDeg(Math.atan2(t[1],t[0]));return rebaseAngle(e)},l={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]),u={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=u,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=l,n=e}if(!n)return defaultTransformValue(e);let r=i[e],a=n[1].split(",").map(convertTransformToNumber);return"function"==typeof r?r(a):a[r]}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("--"),c=checkStringStartsWith("var(--"),isCSSVariableToken=t=>{let e=c(t);return!!e&&d.test(t.split("/*")[0].trim())},d=/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 r=mixNumber(t.min,t.max,s);applyAxisDelta(t,e,i,r,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 m=new Set(["width","height","top","left","right","bottom",...a]),clamp=(t,e,i)=>i>e?e:i<t?t:i,p={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},f={...p,transform:t=>clamp(0,1,t)},g={...p,default:1},createUnitType=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),y=createUnitType("deg"),v=createUnitType("%"),x=createUnitType("px"),T=createUnitType("vh"),P=createUnitType("vw"),b={...v,parse:t=>v.parse(t)/100,transform:t=>v.transform(100*t)},testValueType=t=>e=>e.test(t),A=[p,x,v,y,P,T,{test:t=>"auto"===t,parse:t=>t}],findDimensionValueType=t=>A.find(testValueType(t)),warning=()=>{},invariant=()=>{},isNumericalString=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),V=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,isNumOrPxType=t=>t===p||t===x,S=new Set(["x","y","z"]),w=a.filter(t=>!S.has(t)),M={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")};M.translateX=M.x,M.translateY=M.y;let noop=t=>t,C={},D=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],E={value:null,addProjectionMetrics:null};function createRenderBatcher(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},flagRunNextFrame=()=>i=!0,r=D.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,r=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function triggerCallback(e){a.has(e)&&(u.schedule(e),t()),l++,e(o)}let u={schedule:(t,e=!1,r=!1)=>{let o=r&&s,l=o?i:n;return e&&a.add(t),l.has(t)||l.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(o=t,s){r=!0;return}
16s=!0,[i,n]=[n,i],i.forEach(triggerCallback),e&&E.value&&E.value.frameloop[e].push(l),l=0,i.clear(),s=!1,r&&(r=!1,u.process(t))}};return u}(flagRunNextFrame,e?i:void 0),t),{}),{setup:a,read:o,resolveKeyframes:l,preUpdate:u,update:h,preRender:c,render:d,postRender:m}=r,processBatch=()=>{let r=C.useManualTiming?s.timestamp:performance.now();i=!1,C.useManualTiming||(s.delta=n?1e3/60:Math.max(Math.min(r-s.timestamp,40),1)),s.timestamp=r,s.isProcessing=!0,a.process(s),o.process(s),l.process(s),u.process(s),h.process(s),c.process(s),d.process(s),m.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(processBatch))},wake=()=>{i=!0,n=!0,s.isProcessing||t(processBatch)},p=D.reduce((t,e)=>{let n=r[e];return t[e]=(t,e=!1,s=!1)=>(i||wake(),n.schedule(t,e,s)),t},{});return{schedule:p,cancel:t=>{for(let e=0;e<D.length;e++)r[D[e]].cancel(t)},state:s,steps:r}}let{schedule:k,cancel:R,state:B,steps:L}=createRenderBatcher("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:noop,!0),F=new Set,j=!1,I=!1,O=!1;function measureAllKeyframes(){if(I){let t=Array.from(F).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 w.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)})}I=!1,j=!1,F.forEach(t=>t.complete(O)),F.clear()}function readAllKeyframes(){F.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(I=!0)})}let KeyframeResolver=class KeyframeResolver{constructor(t,e,i,n,s,r=!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=r}scheduleResolve(){this.state="scheduled",this.isAsync?(F.add(this),j||(j=!0,k.read(readAllKeyframes),k.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(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),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),F.delete(this)}cancel(){"scheduled"===this.state&&(F.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,N=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,U=/^(?:#[\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&&U.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,r,a,o]=n.match(N);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},clampRgbUnit=t=>clamp(0,255,t),_={...p,transform:t=>Math.round(clampRgbUnit(t))},W={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+_.transform(t)+", "+_.transform(e)+", "+_.transform(i)+", "+sanitize(f.transform(n))+")"},z={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:W.transform},$={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+v.transform(sanitize(e))+", "+v.transform(sanitize(i))+", "+sanitize(f.transform(n))+")"},H={test:t=>W.test(t)||z.test(t)||$.test(t),parse:t=>W.test(t)?W.parse(t):$.test(t)?$.parse(t):z.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?W.transform(t):$.transform(t),getAnimatableNone:t=>{let e=H.parse(t);return e.alpha=0,H.transform(e)}},Z=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,K="number",G="color",q=/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=[],r=0,a=e.replace(q,t=>(H.test(t)?(n.color.push(r),s.push(G),i.push(H.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(K),i.push(parseFloat(t))),++r,"${}")),o=a.split("${}");return{values:i,split:o,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 r=0;r<n;r++)if(s+=e[r],void 0!==t[r]){let e=i[r];e===K?s+=sanitize(t[r]):e===G?s+=H.transform(t[r]):s+=t[r]}return s}}let convertNumbersToZero=t=>"number"==typeof t?0:H.test(t)?H.getAnimatableNone(t):t,Y={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(N)?.length||0)+(t.match(Z)?.length||0)>0},parse:parseComplexValue,createTransformer,getAnimatableNone:function(t){let e=parseComplexValue(t),i=createTransformer(t);return i(e.map(convertNumbersToZero))}},X=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(N)||[];if(!n)return t;let s=i.replace(n,""),r=X.has(e)?1:0;return n!==i&&(r*=100),e+"("+r+s+")"}let J=/\b([a-z-]*)\(.*?\)/gu,Q={...Y,getAnimatableNone:t=>{let e=t.match(J);return e?e.map(applyDefaultFilter).join(" "):t}},tt={...p,transform:Math.round},te={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:y,rotateX:y,rotateY:y,rotateZ:y,scale:g,scaleX:g,scaleY:g,scaleZ:g,skew:y,skewX:y,skewY:y,distance:x,translateX:x,translateY:x,translateZ:x,x:x,y:x,z:x,perspective:x,transformPerspective:x,opacity:f,originX:b,originY:b,originZ:x,zIndex:tt,fillOpacity:f,strokeOpacity:f,numOctaves:tt},ti={...te,color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,filter:Q,WebkitFilter:Q},getDefaultValueType=t=>ti[t];function animatable_none_getAnimatableNone(t,e){let i=getDefaultValueType(t);return i!==Q&&(i=Y),i.getAnimatableNone?i.getAnimatableNone(e):void 0}
16let 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=V.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(t);if(!n)return;let r=window.getComputedStyle(e).getPropertyValue(n);if(r){let t=r.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(),!m.has(i)||2!==t.length)return;let[n,s]=t,r=findDimensionValueType(n),a=findDimensionValueType(s);if(r!==a){if(isNumOrPxType(r)&&isNumOrPxType(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else M[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=M[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,r=i[s];i[s]=M[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
16h(([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||C.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)),tr={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(),k.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 tr.current&&tr.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=[...A,H,Y],findValueType=t=>ta.find(testValueType(t)),{schedule:to,cancel:tl}=createRenderBatcher(queueMicrotask,!1),tu={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 tu)th[t]={isEnabled:e=>tu[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()});
16var tc=i(11741);let td={current:null},tm={current:!1},tp=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 tf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tg=["initial",...tf];function isControllingVariants(t){return isAnimationControls(t.animate)||tg.some(e=>isVariantLabel(t[e]))}function isVariantNode(t){return!!(isControllingVariants(t)||t.variants)}function getValueState(t){let e=[{},{}];return 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,r]=getValueState(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=getValueState(n);e=e(void 0!==i?i:t.custom,s,r)}return e}let ty=["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:r},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,k.render(this.render,!1,!0))};let{latestValues:o,renderState:l}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=l,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:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in h){let e=h[t];void 0!==o[t]&&isMotionValue(e)&&e.set(o[t])}}mount(t){this.current=t,tp.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)),tm.current||function(){if(tm.current=!0,tc.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),setReducedMotionPreferences=()=>td.current=t.matches;t.addEventListener("change",setReducedMotionPreferences),setReducedMotionPreferences()}else td.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||td.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),R(this.notifyUpdate),R(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=o.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&k.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];
16e.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<ty.length;e++){let i=ty[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],r=i[n];if(isMotionValue(s))t.addValue(n,s);else if(isMotionValue(r))t.addValue(n,motionValue(s,{owner:t}));else if(r!==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)&&Y.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(){to.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,tv={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tx=a.length;function buildHTMLStyles(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(o.has(t)){l=!0;continue}if(h(t)){s[t]=i;continue}{let e=getValueAsType(i,te[t]);t.startsWith("origin")?(u=!0,r[t]=e):n[t]=e}}
16if(!e.transform&&(l||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r<tx;r++){let o=a[r],l=t[o];if(void 0===l)continue;let u=!0;if(!(u="number"==typeof l?l===(o.startsWith("scale")?1:0):0===parseFloat(l))||i){let t=getValueAsType(l,te[o]);if(!u){s=!1;let e=tv[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;n.transformOrigin=`${t} ${e} ${i}`}}function renderHTML(t,{style:e,vars:i},n,s){let r;let a=t.style;for(r in e)a[r]=e[r];for(r in s?.applyProjectionStyles(a,n),i)a.setProperty(r,i[r])}let tT={};function isForcedMotionValue(t,{layout:e,layoutId:i}){return o.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 r in n)(isMotionValue(n[r])||e.style&&isMotionValue(e.style[r])||isForcedMotionValue(r,t)||i?.getValue(r)?.liveStyle!==void 0)&&(s[r]=n[r]);return s}let HTMLVisualElement=class HTMLVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="html",this.renderInstance=renderHTML}readValueFromInstance(t,e){if(o.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(),tP={offset:"stroke-dashoffset",array:"stroke-dasharray"},tb={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGAttrs(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...o},l,u,h){if(buildHTMLStyles(t,o,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?tP:tb;t[r.offset]=x.transform(-n);let a=x.transform(e),o=x.transform(i);t[r.array]=`${a} ${o}`}(c,s,r,a,!1)}let tA=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(o.has(e)){let t=getDefaultValueType(e);return t&&t.default||0}return e=tA.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(tA.has(i)?i:camelToDash(i),e.attrs[i])}(t,e,0,n)}mount(t){this.isSVGTag=isSVGTag(t.tagName),super.mount(t)}};let tV=["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(tV.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var tS=i(85893),tw=i(25364);let tM=(0,r.createContext)({strict:!1});var tC=i(16014);let tD=(0,r.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,r.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:{}});
16function useSVGProps(t,e,i,n){let s=(0,r.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 tE=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")||tE.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{}var tk=i(240),tR=i(96681);function resolveMotionValue(t){return isMotionValue(t)?t.get():t}let makeUseVisualState=t=>(e,i)=>{let n=(0,r.useContext)(tD),s=(0,r.useContext)(tk.O),make=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){let r={latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=resolveMotionValue(r[t]);let{initial:a,animate:o}=t,l=isControllingVariants(t),u=isVariantNode(t);e&&u&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===o&&(o=e.animate));let h=!!i&&!1===i.initial;h=h||!1===a;let c=h?o:a;if(c&&"boolean"!=typeof c&&!isAnimationControls(c)){let e=Array.isArray(c)?c:[c];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 r})(t,e,n,s);return i?make():(0,tR.h)(make)},tB=makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps,createRenderState:createHtmlRenderState}),tL=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 tj="data-"+camelToDash("framerAppearId"),tI=(0,r.createContext)({});var tO=i(58868);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)?tL:tB;function MotionDOMComponent(i,a){var o;let l;let u={...(0,r.useContext)(tC._),...i,layoutId:function({layoutId:t}){let e=(0,r.useContext)(tw.p).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:h}=u,c=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,r.useContext)(tD));return(0,r.useMemo)(()=>({initial:e,animate:i}),[variantLabelsAsDependency(e),variantLabelsAsDependency(i)])}(i),d=s(i,h);if(!h&&tc.j){(0,r.useContext)(tM).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}}(u);l=e.MeasureLayout,c.visualElement=function(t,e,i,n,s){let{visualElement:a}=(0,r.useContext)(tD),o=(0,r.useContext)(tM),l=(0,r.useContext)(tk.O),u=(0,r.useContext)(tC._).reducedMotion,h=(0,r.useRef)(null);n=n||o.renderer,!h.current&&n&&(h.current=n(t,{visualState:e,parent:a,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));let c=h.current,d=(0,r.useContext)(tI);c&&!c.projection&&s&&("html"===c.type||"svg"===c.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,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:r,alwaysMeasureLayout:!!a||o&&isRefObject(o),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(h.current,i,s,d);let m=(0,r.useRef)(!1);(0,r.useInsertionEffect)(()=>{c&&m.current&&c.update(i,l)});let p=i[tj],f=(0,r.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,tO.L)(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),f.current&&c.animationState&&c.animationState.animateChanges())}),(0,r.useEffect)(()=>{c&&(!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),f.current=!1),c.enteringChildren=void 0)}),c}(t,d,u,n,e.ProjectionNode)}return(0,tS.jsxs)(tD.Provider,{value:c,children:[l&&c.visualElement?(0,tS.jsx)(l,{visualElement:c.visualElement,...u}
16):null,function(t,e,i,{latestValues:n},s,a=!1){let o=isSVGComponent(t)?useSVGProps:useHTMLProps,l=o(e,n,s,t),u=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!==r.Fragment?{...u,...l,ref:i}:{},{children:c}=e,d=(0,r.useMemo)(()=>isMotionValue(c)?c.get():c,[c]);return(0,r.createElement)(t,{...h,children:d})}(t,i,(o=c.visualElement,(0,r.useCallback)(t=>{t&&d.onMount&&d.onMount(t),o&&(t?o.mount(t):o.unmount()),a&&("function"==typeof a?a(t):isRefObject(a)&&(a.current=t))},[o])),d,h,e)]})}MotionDOMComponent.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let a=(0,r.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&&C.WillChange){let i=new C.WillChange("auto");t.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,tN={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)},tU=[z,W,$],getColorType=t=>tU.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,r=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;s=hueToRgb(o,n,t+1/3),r=hueToRgb(o,n,t),a=hueToRgb(o,n,t-1/3)}else s=r=a=i;return{red:Math.round(255*s),green:Math.round(255*r),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),W.transform(s))},t_=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=Y.createTransformer(e),n=analyseComplexValue(t),s=analyseComplexValue(e),r=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 r?t_.has(t)&&!s.values.length||t_.has(e)&&!n.values.length?t_.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 r=e.types[s],a=t.indexes[r][n[r]],o=t.values[a]??0;i[s]=o,n[r]++}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)=>k.update(passTimestamp,t),stop:()=>R(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 r=Math.max(e-5,0);return n=i-t(r),(s=e-r)?n*(1e3/s):0}let tW={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)}
16let tz=["duration","bounce"],t$=["stiffness","damping","mass"];function isSpringType(t,e){return e.some(e=>void 0!==t[e])}function spring(t=tW.visualDuration,e=tW.bounce){let i;let n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:s,restDelta:r}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:h,mass:c,duration:d,velocity:m,isResolvedFromDuration:p}=function(t){let e={velocity:tW.velocity,stiffness:tW.stiffness,damping:tW.damping,mass:tW.mass,isResolvedFromDuration:!1,...t};if(!isSpringType(t,t$)&&isSpringType(t,tz)){if(t.visualDuration){let i=t.visualDuration,n=2*Math.PI/(1.2*i),s=n*n,r=2*clamp(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:tW.mass,stiffness:s,damping:r}}else{let i=function({duration:t=tW.duration,bounce:e=tW.bounce,velocity:i=tW.velocity,mass:n=tW.mass}){let s,r;warning(t<=time_conversion_secondsToMilliseconds(tW.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=clamp(tW.minDamping,tW.maxDamping,a),t=clamp(tW.minDuration,tW.maxDuration,millisecondsToSeconds(t)),a<1?(s=e=>{let n=e*a,s=n*t,r=calcAngularFreq(e,a);return .001-(n-i)/r*Math.exp(-s)},r=e=>{let n=e*a,r=n*t,o=Math.pow(a,2)*Math.pow(e,2)*t,l=calcAngularFreq(Math.pow(e,2),a),u=-s(e)+.001>0?-1:1;return u*((r*i+i-o)*Math.exp(-r))/l}):(s=e=>{let n=Math.exp(-e*t),s=(e-i)*t+1;return -.001+n*s},r=e=>{let n=Math.exp(-e*t),s=(i-e)*(t*t);return n*s});let o=5/t,l=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,o);if(t=time_conversion_secondsToMilliseconds(t),isNaN(l))return{stiffness:tW.stiffness,damping:tW.damping,duration:t};{let e=Math.pow(l,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:tW.mass}).isResolvedFromDuration=!0}}return e}({...n,velocity:-millisecondsToSeconds(n.velocity||0)}),f=m||0,g=h/(2*Math.sqrt(u*c)),y=o-a,v=millisecondsToSeconds(Math.sqrt(u/c)),x=5>Math.abs(y);if(s||(s=x?tW.restSpeed.granular:tW.restSpeed.default),r||(r=x?tW.restDelta.granular:tW.restDelta.default),g<1){let t=calcAngularFreq(v,g);i=e=>{let i=Math.exp(-g*v*e);return o-i*((f+g*v*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}}else if(1===g)i=t=>o-Math.exp(-v*t)*(y+(f+v*y)*t);else{let t=v*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*v*e),n=Math.min(t*e,300);return o-i*((f+g*v*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}let T={calculatedDuration:p&&d||null,next:t=>{let e=i(t);if(p)l.done=t>=d;else{let n=0===t?f:0;g<1&&(n=0===t?time_conversion_secondsToMilliseconds(f):calcGeneratorVelocity(i,t,e));let a=Math.abs(n)<=s,u=Math.abs(o-e)<=r;l.done=a&&u}return l.value=l.done?o:e,l},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:r=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let c,d;let m=t[0],p={done:!1,value:m},isOutOfBounds=t=>void 0!==o&&t<o||void 0!==l&&t>l,nearestBoundary=t=>void 0===o?l:void 0===l?o:Math.abs(o-t)<Math.abs(l-t)?o:l,f=i*e,g=m+f,y=void 0===a?g:a(g);y!==g&&(f=y-m);let calcDelta=t=>-f*Math.exp(-t/n),calcLatest=t=>y+calcDelta(t),applyFriction=t=>{let e=calcDelta(t),i=calcLatest(t);p.done=Math.abs(e)<=u,p.value=p.done?y:i},checkCatchBoundary=t=>{isOutOfBounds(p.value)&&(c=t,d=spring({keyframes:[p.value,nearestBoundary(p.value)],velocity:calcGeneratorVelocity(calcLatest,t,p.value),damping:s,stiffness:r,restDelta:u,restSpeed:h}))};return checkCatchBoundary(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,applyFriction(t),checkCatchBoundary(t)),void 0!==c&&t>=c)?d.next(t-c):(e||applyFriction(t),p)}}}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=>
16(function(t,e,i,n,s){let r,a;let o=0;do(r=calcBezier(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(r)>1e-7&&++o<12);return a})(e,0,1,t,i);return t=>0===t||1===t?t:calcBezier(getTForX(t),e,n)}let tH=cubicBezier(.42,0,1,1),tZ=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),tG=cubicBezier(.33,1.53,.69,.99),tq=reverseEasing(tG),tY=mirrorEasing(tq),anticipate=t=>(t*=2)<1?.5*tq(t):.5*(2-Math.pow(2,-10*(t-1))),circIn=t=>1-Math.sin(Math.acos(t)),tX=reverseEasing(circIn),tJ=mirrorEasing(circIn),isBezierDefinition=t=>Array.isArray(t)&&"number"==typeof t[0],tQ={linear:noop,easeIn:tH,easeInOut:tK,easeOut:tZ,circIn:circIn,circInOut:tJ,circOut:tX,backIn:tq,backInOut:tY,backOut:tG,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),r={done:!1,value:e[0]},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),o=function(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(invariant(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let n=[],s=i||C.mix||mix,r=t.length-1;for(let i=0;i<r;i++){let r=s(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||noop:e;r=pipe(t,r)}n.push(r)}return n}(e,n,s),l=o.length,interpolator=i=>{if(a&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=progress(t[n],t[n+1],i);return o[n](s)};return i?e=>interpolator(clamp(t[0],t[r-1],e)):interpolator}(a,e,{ease:Array.isArray(s)?s:e.map(()=>s||tK).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(r.value=o(e),r.done=e>=t,r)}}let isNotNull=t=>null!==t;function getFinalKeyframe(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(isNotNull),a=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return a&&void 0!==n?n:r[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?.())},tN.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:r=0}=t,{keyframes:a}=t,o=e||keyframes;o!==keyframes&&"number"!=typeof a[0]&&(this.mixKeyframes=pipe(percentToProgress,mix(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===s&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=calcGeneratorDuration(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}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:r,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:c,repeatDelay:d,type:m,onUpdate:p,finalKeyframe:f}=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 g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let v=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"===c?(i=1-i,d&&(i-=d/a)):"mirror"===c&&(x=r)),v=clamp(0,1,i)*a}let T=y?{done:!1,value:u[0]}:x.next(v);s&&(T.value=s(T.value));let{done:P}=T;y||null===o||(P=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return b&&m!==inertia&&(T.value=getFinalKeyframe(u,this.options,f,this.speed)),p&&p(T.value),b&&this.finish(),T}
16then(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,tN.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={},t3=function(t,e){let i=memo(t);return()=>t2[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0}
16,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),cubicBezierAsString=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,t5={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:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,invariant("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return isGenerator(t)&&t3()?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:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let c=function mapEasingToNativeEasing(t,e){if(t)return"function"==typeof t?t3()?generateLinearEasing(t,e):"ease-out":isBez
16ierDefinition(t)?cubicBezierAsString(t):Array.isArray(t)?t.map(t=>mapEasingToNativeEasing(t,e)||t5.easeOut):t5[t]}(o,s);Array.isArray(c)&&(h.easing=c),E.value&&tN.waapi++;let d={delay:n,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};u&&(d.pseudoElement=u);let m=t.animate(h,d);return E.value&&m.finished.finally(()=>{tN.waapi--}),m}(e,i,n,l,s),!1===l.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()}o?.(),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 t4={anticipate:anticipate,backInOut:tY,circInOut:tJ};let NativeAnimationExtended=class NativeAnimationExtended extends NativeAnimation{constructor(t){"string"==typeof t.ease&&t.ease in t4&&(t.ease=t4[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,...r}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let a=new JSAnimation({...r,autoplay:!1}),o=time_conversion_secondsToMilliseconds(this.finishedTime??this.time);e.setWithVelocity(a.sample(o-10).value,a.sample(o).value,10),a.stop()}};let isAnimatable=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(Y.test(t)||"0"===t)&&!t.startsWith("url(")),t9=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:r="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ts.now();let c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:o,motionValue:l,element:u,...h},d=u?.KeyframeResolver||KeyframeResolver;this.keyframeResolver=new d(a,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:s,type:r,velocity:a,delay:o,isHandoff:l,onUpdate:u}=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 r=t[t.length-1],a=isAnimatable(s,e),o=isAnimatable(r,e);return warning(a===o,`You are trying to animate ${e} from "${s}" to "${r}". "${a?r:s}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(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,r,a)&&((C.instantAnimations||!o)&&u?.(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,c={startTime:h,finalKeyframe:e,...i,keyframes:t},d=!l&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:a}=t,o=e?.owner?.current;if(!(o instanceof HTMLElement))return!1;
16let{onUpdate:l,transformTemplate:u}=e.owner.getProps();return t6()&&i&&t9.has(i)&&("transform"!==i||!u)&&!l&&!n&&"mirror"!==s&&0!==r&&"inertia"!==a}(c)?new NativeAnimationExtended({...c,element:c.motionValue.owner.current}):new JSAnimation(c);d.finished.then(()=>this.notifyFinished()).catch(noop),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){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,t7={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),t8={type:"keyframes",duration:.8},et={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(t,{keyframes:e})=>e.length>2?t8:o.has(t)?t.startsWith("scale")?criticallyDampedSpring(e[1]):t7:et,animateMotionValue=(t,e,i,n={},s,r)=>a=>{let o=getValueTransition(n,t)||{},l=o.delay||n.delay||0,{elapsed:u=0}=n;u-=time_conversion_secondsToMilliseconds(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-u,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:a,repeatDelay:o,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(o)&&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 c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(makeAnimationInstant(h),0!==h.delay||(c=!0)),(C.instantAnimations||C.skipAnimations)&&(c=!0,makeAnimationInstant(h),h.delay=0),h.allowFlatten=!o.type&&!o.ease,c&&!r&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let s=t.filter(get_final_keyframe_isNotNull),r=e&&"loop"!==i&&e%2==1?0:s.length-1;return r&&void 0!==n?n:s[r]}(h.keyframes,o);if(void 0!==t){k.update(()=>{h.onUpdate(t),h.onComplete()});return}}return o.isSync?new JSAnimation(h):new AsyncMotionValueAnimation(h)};function animateTarget(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:a,...o}=e;n&&(r=n);let l=[],u=s&&t.animationState&&t.animationState.getState()[s];for(let e in o){let n=t.getValue(e,t.latestValues[e]??null),s=o[e];if(void 0===s||u&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(u,e))continue;let a={delay:i,...getValueTransition(r||{},e)},h=n.get();if(void 0!==h&&!n.isAnimating&&!Array.isArray(s)&&s===h&&!a.velocity)continue;let c=!1;if(window.MotionHandoffAnimation){let i=t.props[tj];if(i){let t=window.MotionHandoffAnimation(i,e,k);null!==t&&(a.startTime=t,c=!0)}}addValueToWillChange(t,e),n.start(animateMotionValue(e,n,s,t.shouldReduceMotion&&m.has(e)?{type:!1}:a,t,c));let d=n.animation;d&&l.push(d)}return a&&Promise.all(l).then(()=>{k.update(()=>{a&&function(t,e){let i=resolveVariant(t,e),{transitionEnd:n={},transition:s={},...r}=i||{};for(let e in r={...r,...n}){var a;let i=isKeyframesTarget(a=r[e])?a[a.length-1]||0:a;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,motionValue(i))}}(t,a)})}),l}function calcChildStagger(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*n;return"function"==typeof i?i(r,a):1===s?r*n:o-r*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 r=n?()=>Promise.all(animateTarget(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=s;
16return function(t,e,i=0,n=0,s=0,r=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(animateVariant(l,e,{...a,delay:i+("function"==typeof n?0:n)+calcChildStagger(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,n,r,a,o,i)}:()=>Promise.resolve(),{when:o}=s;if(!o)return Promise.all([r(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[r,a]:[a,r];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=tg.length,ei=[...tf].reverse(),en=tf.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 es=0,er={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:r=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:r,onMove:a}=this.handlers;e||(r&&r(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),k.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 r=getPanInfo("pointercancel"===t.type?this.lastMoveEventInfo:transformPoint(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!isPrimaryPointer(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;let a=extractEventInfo(t),o=transformPoint(a,this.transformPagePoint),{point:l}=o,{timestamp:u}=B;this.history=[{...l,timestamp:u}];let{onSessionStart:h}=e;h&&h(t,getPanInfo(o,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(),R(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 r=millisecondsToSeconds(s.timestamp-n.timestamp);if(0===r)return{x:0,y:0};let a={x:(s.x-n.x)/r,y:(s.y-n.y)/r};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 ea=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?er[i]?null:(er[i]=!0,()=>{er[i]=!1}):er.x||er.y?null:(er.x=er.y=!0,()=>{er.x=er.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(v.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&&k.postRender(()=>s(t,e)),addValueToWillChange(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=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(),r&&r(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:r}=n;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&k.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),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=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}(r,this.constraints[t],this.elastic[t])),s.set(r)}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;
16let r=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,r.x),y:calcViewportAxisConstraints(t.y,r.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:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{},l=eachAxis(a=>{if(!shouldDrag(a,e,this.currentDirection))return;let l=o&&o[a]||{};r&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(a,u)});return Promise.all(l).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:r}=n.layout.layoutBox[e];s.set(t[e]-mixNumber(i,r,.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:r}=this.constraints[e];i.set(mixNumber(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;ea.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()),k.read(measureDragConstraints);let s=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),r=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(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:a}}};function shouldDrag(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let asyncHandler=t=>(e,i)=>{t&&k.postRender(()=>t(e,i))};var eo=i(15947);let el={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pixelsToPercent(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eu={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}%`}},eh=!1;let MeasureLayoutWithContext=class MeasureLayoutWithContext extends r.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),eh&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),el.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,eh=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent===s||(s?r.promote():r.relegate()||k.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),to.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;eh=!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]=(0,eo.oO)(),n=(0,r.useContext)(tw.p);return(0,tS.jsx)(MeasureLayoutWithContext,{...t,layoutGroup:n,switchLayoutGroup:(0,r.useContext)(tI),isPresent:e,safeToRemove:i})}let ec={borderRadius:{...eu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eu,borderTopRightRadius:eu,borderBottomLeftRadius:eu,borderBottomRightRadius:eu,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=Y.parse(t);if(n.length>5)return t;let s=Y.createTransformer(t),r="number"!=typeof n[0]?1:0,a=i.x.scale*e.x,o=i.y.scale*e.y;n[0+r]/=a,n[1+r]/=o;let l=mixNumber(a,o,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};var ed=i(36464);function isSVGElement(t){return(0,ed.K)(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.forEac
16h(t)}};let em=["TopLeft","TopRight","BottomLeft","BottomRight"],ep=em.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 ef=compress(0,.5,tX),eg=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],r,a){!function(t,e=0,i=1,n=.5,s,r=t,a=t){if(v.test(e)){e=parseFloat(e);let t=mixNumber(a.min,a.max,e/100);e=t-a.min}if("number"!=typeof e)return;let o=mixNumber(r.min,r.max,n);t===r&&(o-=e),t.min=removePointDelta(t.min,e,i,o,s),t.max=removePointDelta(t.max,e,i,o,s)}(t,e[i],e[n],e[s],e.scale,r,a)}let ey=["x","scaleX","originX"],ev=["y","scaleY","originY"];function removeBoxTransforms(t,e,i,n){removeAxisTransforms(t.x,e,ey,i?i.x:void 0,n?n.x:void 0),removeAxisTransforms(t.y,e,ev,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()}}exitAnimationComplete(){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 ex={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},eT=["","X","Y","Z"],eP=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=eP++,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,E.value&&(ex.nodes=ex.calculatedTargetDeltas=ex.calculatedProjections=0),this.nodes.forEac
16h(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes),E.addProjectionMetrics&&E.addProjectionMetrics(ex)},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;k.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&&(R(checkElapsed),t(s-e))};return k.setup(checkElapsed,!0),()=>R(checkElapsed)}(resizeUnblockUpdate,250),el.hasAnimatedSinceResize&&(el.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 r=this.options.transition||s.getDefaultTransition()||eb,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!boxEqualsRounded(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...getValueTransition(r,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}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(),R(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(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[tj];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",k,!(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.forEac
16h(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,L.update.process(B),L.preRender.process(B),L.render.process(B),B.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,to.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,k.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){k.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,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||hasTransform(this.latestValues)||r)&&(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:r}=n;n!==this.root&&s&&r.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);
16if(n)return;let{layout:s,layoutId:r}=this.options;if(this.layout&&(s||r)){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,o,l;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,calcRelativeAxis(a.x,o.x,l.x),calcRelativeAxis(a.y,o.y,l.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}E.value&&ex.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 r=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let s,r;let a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){r=(s=i[o]).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}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,applyBoxDelta(t,r)),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:o}=t;if(!o){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,o,this.latestValues),this.treeScale.x===r&&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",o)),E.value&&ex.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:{},r={...this.latestValues},a=createDelta();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=createBox(),l=n?n.source:void 0,u=this.layout?this.layout.source:void 0,h=l!==u,c=this.getStack(),d=!c||c.members.length<=1,m=!!(h&&!d&&!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 l,u,c,p;calcRelativePosition(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),c=this.relativeTarget,p=this.relativeTargetOrigin,mixAxis(c.x,p.x,o.x,n),mixAxis(c.y,p.y,o.y,n),i&&(l=this.relativeTarget,u=i,axisEquals(l.x,u.x)&&axisEquals(l.y,u.y))&&(this.isProjectionDirty=!1),i||(i=createBox()),copyBoxInto(i,this.relativeTarget)}
16h&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=mixNumber(0,i.opacity??1,ef(n)),t.opacityExit=mixNumber(e.opacity??1,0,eg(n))):r&&(t.opacity=mixNumber(e.opacity??1,i.opacity??1,n));for(let s=0;s<ep;s++){let r=`border${em[s]}Radius`,a=getRadius(e,r),o=getRadius(i,r);if(void 0===a&&void 0===o)continue;a||(a=0),o||(o=0);let l=0===a||0===o||isPx(a)===isPx(o);l?(t[r]=Math.max(mixNumber(asNumber(a),asNumber(o),n),0),(v.test(o)||v.test(a))&&(t[r]+="%")):t[r]=o}(e.rotate||i.rotate)&&(t.rotate=mixNumber(e.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,m,d)),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&&(R(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=k.update(()=>{el.hasAnimatedSinceResize=!0,tN.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:()=>{tN.layout--},onComplete:()=>{tN.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;
16return 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<eT.length;e++)resetDistortingTransform(`rotate${eT[e]}`,t,n,this.animationValues),resetDistortingTransform(`skew${eT[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 r=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,a=i?.z||0;if((s||r||a)&&(n=`translate3d(${s}px, ${r}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:r,skewX:a,skewY:o}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),r&&(n+=`rotateY(${r}deg) `),a&&(n+=`skewX(${a}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(r=i(s,r)),t.transform=r;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.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:o}=tT[e],l="none"===r?s[e]:i(s[e],n);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}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,r=e.source!==t.layout.source;"size"===s?eachAxis(t=>{let n=r?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=r?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 o=createDelta();r?calcBoxDelta(o,t.applyTransform(n,!0),e.measuredBox):calcBoxDelta(o,i,e.layoutBox);let l=!isDeltaZero(a),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let a=createBox();calcRelativePosition(a,e.layoutBox,s.layoutBox);let o=createBox();calcRelativePosition(o,i,r.layoutBox),boxEqualsRounded(a,o)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function propagateDirtyNodes(t){E.value&&ex.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
16isProjectionDirty||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 eb={duration:.45,ease:[.4,0,.1,1]},userAgentContains=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eA=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:noop;function roundAxis(t){t.min=eA(t.min),t.max=eA(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 eV=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}),eS={current:void 0},ew=create_projection_node_createProjectionNode({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eS.current){let t=new eV({});t.mount(window),t.setOptions({layoutScroll:!0}),eS.current=t}return eS.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||er.x||er.y)}function handleHoverEvent(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s="onHover"+i,r=n[s];r&&k.postRender(()=>r(e,extractEventInfo(e)))}var eM=i(93243);let isNodeOrChild=(t,e)=>!!e&&(t===e||isNodeOrChild(t,e.parentElement)),eC=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),eD=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(eD.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)&&!(er.x||er.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),r=n[s];r&&k.postRender(()=>r(e,extractEventInfo(e)))}let eE=new WeakMap,ek=new WeakMap,fireObserverCallback=t=>{let e=eE.get(t.target);e&&e(t)}
16,fireAllObserverCallbacks=t=>{t.forEach(fireObserverCallback)},eR={some:0,all:1},eB=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,r=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=tg[i],s=t.props[n];(isVariantLabel(s)||!1===s)&&(e[n]=s)}return e}(t.parent)||{},a=[],o=new Set,l={},u=1/0;for(let c=0;c<en;c++){var h;let d=ei[c],m=e[d],p=void 0!==s[d]?s[d]:r[d],f=isVariantLabel(p),g=d===n?m.isActive:null;!1===g&&(u=c);let y=p===r[d]&&p!==s[d]&&f;if(y&&i&&t.manuallyAnimateOnMount&&(y=!1),m.protectedKeys={...l},!m.isActive&&null===g||!p&&!m.prevProp||isAnimationControls(p)||"boolean"==typeof p)continue;let v=(h=m.prevProp,"string"==typeof p?p!==h:!!Array.isArray(p)&&!shallowCompare(p,h)),x=v||d===n&&m.isActive&&!y&&f||c>u&&f,T=!1,P=Array.isArray(p)?p:[p],b=P.reduce(buildResolvedTypeValues(d),{});!1===g&&(b={});let{prevResolvedValues:A={}}=m,V={...A,...b},markToAnimate=e=>{x=!0,o.has(e)&&(T=!0,o.delete(e)),m.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in V){let e=b[t],i=A[t];if(!l.hasOwnProperty(t))(isKeyframesTarget(e)&&isKeyframesTarget(i)?shallowCompare(e,i):e===i)?void 0!==e&&o.has(t)?markToAnimate(t):m.protectedKeys[t]=!0:null!=e?markToAnimate(t):o.add(t)}m.prevProp=p,m.prevResolvedValues=b,m.isActive&&(l={...l,...b}),i&&t.blockInitialAnimation&&(x=!1);let S=y&&v,w=!S||T;x&&w&&a.push(...P.map(e=>{let n={type:d};if("string"==typeof e&&i&&!S&&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(o.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)}o.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),a.push({animation:e})}let c=!!a.length;return i&&(!1===s.initial||s.initial===s.animate)&&!t.manuallyAnimateOnMount&&(c=!1),i=!1,c?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=es++}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(()=>
16{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,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:eR[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;ek.has(i)||ek.set(i,{});let n=ek.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(fireAllObserverCallbacks,{root:t,...e})),n[s]}(e);return eE.set(t,i),n.observe(t),()=>{eE.delete(t),n.unobserve(t)}}(this.node.current,r,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(),r=e?i:n;r&&r(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,r]=setupGesture(t,i),startPress=t=>{let n=t.currentTarget;if(!isValidPressEvent(t))return;eD.add(n);let r=e(n,t),onPointerEnd=(t,e)=>{window.removeEventListener("pointerup",onPointerUp),window.removeEventListener("pointercancel",onPointerCancel),eD.has(n)&&eD.delete(n),isValidPressEvent(t)&&"function"==typeof r&&r(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),(0,eM.R)(t)&&(t.addEventListener("focus",t=>enableKeyboardPress(t,s)),eC.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(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,r]=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)}),r}(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&&k.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:ew,MeasureLayout:MeasureLayout},layout:{ProjectionNode:ew,MeasureLayout:MeasureLayout}},(t,e)=>isSVGComponent(t)?new SVGVisualElement(e):new HTMLVisualElement(e,{allowProjection:t!==r.Fragment}))}
16,11741:function(t,e,i){i.d(e,{j:function(){return n}});let n="undefined"!=typeof window},96681:function(t,e,i){i.d(e,{h:function(){return useConstant}});var n=i(67294);function useConstant(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},58868:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(67294),s=i(11741);let r=s.j?n.useLayoutEffect:n.useEffect},93243:function(t,e,i){i.d(e,{R:function(){return isHTMLElement}});var n=i(36464);function isHTMLElement(t){return(0,n.K)(t)&&"offsetHeight"in t}},36464:function(t,e,i){i.d(e,{K:function(){return isObject}});function isObject(t){return"object"==typeof t&&null!==t}}}]);
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.