PageSourceSearch

https://kopern.ai/_next/static/chunks/a1c7696cfea1328a.js?dpl=dpl_5Fg45TmRWFQkKW9jZ15jgdRrEv9E

js kopern.ai collected 2026-10-05 12:23:54 UTC 136,179 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,157788,t=>{"use strict";let e=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set(e);t.s(["transformPropOrder",()=>e,"transformProps",()=>i])},476959,t=>{"use strict";let e=(t,e,i)=>i>e?e:i<t?t:i;t.s(["clamp",()=>e])},279444,76307,530677,766820,463011,265091,22660,569577,t=>{"use strict";var e=t.i(476959);let i={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...i,transform:t=>(0,e.clamp)(0,1,t)},n={...i,default:1};t.s(["alpha",()=>s,"number",()=>i,"scale",()=>n],76307);let r=t=>Math.round(1e5*t)/1e5,a=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;t.s(["floatRegex",()=>a],530677);let o=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,l=(t,e)=>i=>!!("string"==typeof i&&o.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),u=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[n,r,o,l]=s.match(a);return{[t]:parseFloat(n),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}},h={...i,transform:t=>Math.round((0,e.clamp)(0,255,t))},c={test:l("rgb","red"),parse:u("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+h.transform(t)+", "+h.transform(e)+", "+h.transform(i)+", "+r(s.transform(n))+")"};t.s(["rgba",()=>c],766820);let d={test:l("#"),parse:function(t){let e="",i="",s="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,s+=s,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:n?parseInt(n,16)/255:1}},transform:c.transform};t.s(["hex",()=>d],463011);let p=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),m=p("deg"),f=p("%"),g=p("px"),v=p("vh"),y=p("vw"),x={...f,parse:t=>f.parse(t)/100,transform:t=>f.transform(100*t)};t.s(["degrees",()=>m,"percent",()=>f,"progressPercentage",()=>x,"px",()=>g,"vh",()=>v,"vw",()=>y],265091);let T={test:l("hsl","hue"),parse:u("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+f.transform(r(e))+", "+f.transform(r(i))+", "+r(s.transform(n))+")"};t.s(["hsla",()=>T],22660);let b={test:t=>c.test(t)||d.test(t)||T.test(t),parse:t=>c.test(t)?c.parse(t):T.test(t)?T.parse(t):d.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?c.transform(t):T.transform(t),getAnimatableNone:t=>{let e=b.parse(t);return e.alpha=0,b.transform(e)}};t.s(["color",()=>b],279444);let S=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,w="number",P="color",V=/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 M(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},n=[],r=0,a=e.replace(V,t=>(b.test(t)?(s.color.push(r),n.push(P),i.push(b.parse(t))):t.startsWith("var(")?(s.var.push(r),n.push("var"),i.push(t)):(s.number.push(r),n.push(w),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:a,indexes:s,types:n}}function A(t){return M(t).values}function C(t){let{split:e,types:i}=M(t),s=e.length;return t=>{let n="";for(let a=0;a<s;a++)if(n+=e[a],void 0!==t[a]){let e=i[a];e===w?n+=r(t[a]):e===P?n+=b.transform(t[a]):n+=t[a]}return n}}let E=t=>"number"==typeof t?0:b.test(t)?b.getAnimatableNone(t):t,D={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(a)?.length||0)+(t.match(S)?.length||0)>0},parse:A,createTransformer:C,getAnimatableNone:function(t){let e=A(t);return C(t)(e.map(E))}};t.s(["analyseComplexValue",()=>M,"complex",()=>D],569577)},203973,208792,719991,434929,130162,t=>{"use strict";var e=t.i(279444),i=t.i(569577),s=t.i(530677);let n=new Set(["brightness","contrast","saturate","opacity"]);function r(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(s.floatRegex)||[];
1if(!r)return t;let a=i.replace(r,""),o=+!!n.has(e);return r!==i&&(o*=100),e+"("+o+a+")"}let a=/\b([a-z-]*)\(.*?\)/gu,o={...i.complex,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(r).join(" "):t}};t.s(["filter",()=>o],208792);let l={...i.complex,getAnimatableNone:t=>{let e=i.complex.parse(t);return i.complex.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}};t.s(["mask",()=>l],719991);var u=t.i(76307);let h={...u.number,transform:Math.round};var c=t.i(265091);let d={rotate:c.degrees,rotateX:c.degrees,rotateY:c.degrees,rotateZ:c.degrees,scale:u.scale,scaleX:u.scale,scaleY:u.scale,scaleZ:u.scale,skew:c.degrees,skewX:c.degrees,skewY:c.degrees,distance:c.px,translateX:c.px,translateY:c.px,translateZ:c.px,x:c.px,y:c.px,z:c.px,perspective:c.px,transformPerspective:c.px,opacity:u.alpha,originX:c.progressPercentage,originY:c.progressPercentage,originZ:c.px},p={borderWidth:c.px,borderTopWidth:c.px,borderRightWidth:c.px,borderBottomWidth:c.px,borderLeftWidth:c.px,borderRadius:c.px,borderTopLeftRadius:c.px,borderTopRightRadius:c.px,borderBottomRightRadius:c.px,borderBottomLeftRadius:c.px,width:c.px,maxWidth:c.px,height:c.px,maxHeight:c.px,top:c.px,right:c.px,bottom:c.px,left:c.px,inset:c.px,insetBlock:c.px,insetBlockStart:c.px,insetBlockEnd:c.px,insetInline:c.px,insetInlineStart:c.px,insetInlineEnd:c.px,padding:c.px,paddingTop:c.px,paddingRight:c.px,paddingBottom:c.px,paddingLeft:c.px,paddingBlock:c.px,paddingBlockStart:c.px,paddingBlockEnd:c.px,paddingInline:c.px,paddingInlineStart:c.px,paddingInlineEnd:c.px,margin:c.px,marginTop:c.px,marginRight:c.px,marginBottom:c.px,marginLeft:c.px,marginBlock:c.px,marginBlockStart:c.px,marginBlockEnd:c.px,marginInline:c.px,marginInlineStart:c.px,marginInlineEnd:c.px,fontSize:c.px,backgroundPositionX:c.px,backgroundPositionY:c.px,...d,zIndex:h,fillOpacity:u.alpha,strokeOpacity:u.alpha,numOctaves:h};t.s(["numberValueTypes",()=>p],434929);let m={...p,color:e.color,backgroundColor:e.color,outlineColor:e.color,fill:e.color,stroke:e.color,borderColor:e.color,borderTopColor:e.color,borderRightColor:e.color,borderBottomColor:e.color,borderLeftColor:e.color,filter:o,WebkitFilter:o,mask:l,WebkitMask:l},f=t=>m[t];t.s(["getDefaultValueType",()=>f],203973);let g=()=>({translate:0,scale:1,origin:0,originPoint:0}),v=()=>({x:g(),y:g()}),y=()=>({min:0,max:0}),x=()=>({x:y(),y:y()});t.s(["createBox",()=>x,"createDelta",()=>v],130162)},83411,t=>{"use strict";let e=t=>!!(t&&t.getVelocity);t.s(["isMotionValue",()=>e])},864440,284061,277942,t=>{"use strict";let e=new Set(["width","height","top","left","right","bottom",...t.i(157788).transformPropOrder]);t.s(["positionalKeys",()=>e],864440);var i=t.i(76307),s=t.i(265091);let n=t=>e=>e.test(t);t.s(["testValueType",()=>n],284061);let r=[i.number,s.px,s.percent,s.degrees,s.vw,s.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>r.find(n(t));t.s(["dimensionValueTypes",()=>r,"findDimensionValueType",()=>a],277942)},965566,t=>{"use strict";var e=t.i(247167);let i=()=>{},s=()=>{};e.default,t.s(["invariant",()=>s,"warning",()=>i],965566)},172590,t=>{"use strict";let e=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);t.s(["isNumericalString",()=>e])},19928,t=>{"use strict";let e=t=>e=>"string"==typeof e&&e.startsWith(t),i=e("--"),s=e("var(--"),n=t=>!!s(t)&&r.test(t.split("/*")[0].trim()),r=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function a(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}t.s(["containsCSSVariable",()=>a,"isCSSVariableName",()=>i,"isCSSVariableToken",()=>n])},684015,411485,381296,44493,t=>{"use strict";var e=t.i(965566),i=t.i(172590),s=t.i(19928);let n=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function r(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}t.s(["getVariableValue",()=>function t(r,a,o=1){(0,e.invariant)(o<=4,`Max CSS variable fallback depth detected in property "${r}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[l,u]=function(t){let e=n.exec(t);if(!e)return[,];let[,i,s,r]=e;return[`--${i??s}`,r]}(r);if(!l)return;let h=window.getComputedStyle(a).getPropertyValue(l);if(h){let t=h.trim();return(0,i.isNumericalString)(t)?parseFloat(t):t}return(0,s.isCSSVariableToken)(u)?t(u,a,o+1):u}],684015),t.s(["fillWildcards",()=>r],411485);let a=t=>180*t/Math.PI,o=t=>u(a(Math.atan2(t[1],t[0]))),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:o,rotateZ:o,skewX:t=>a(Math.atan(t[1])),skewY:t=>a(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},u=t=>((t%=360)<0&&(t+=360),t),h=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),c=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),d={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:h,scaleY:c,scale:t=>(h(t)+c(t))/2,rotateX:t=>u(a(Math.atan2(t[6],t[5]))),rotateY:t=>u(a(Math.atan2(-t[2],t[0]))),rotateZ:o,rotate:o,skewX:t=>a(Math.atan(t[4])),skewY:t=>a(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function p(t){return+!!t.includes("scale")}function m(t,e){let i,s;if(!t||"none"===t)return p(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=d,s=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=l,s=e}if(!s)return p(e);let r=i[e],a=s[1].split(",").map(g);return"function"==typeof r?r(a):a[r]}let f=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return m(i,e)};function g(t){return parseFloat(t.trim())}t.s(["defaultTransformValue",()=>p,"parseValueFromTransform",()=>m,"readTransformValue",()=>f],381296);var v=t.i(157788),y=t.i(76307),x=t.i(265091);let T=t=>t===y.number||t===x.px,b=new Set(["x","y","z"]),S=v.transformPropOrder.filter(t=>!b.has(t));function w(t){let e=[];
1return S.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e}let P={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})=>m(e,"x"),y:(t,{transform:e})=>m(e,"y")};P.translateX=P.x,P.translateY=P.y,t.s(["isNumOrPxType",()=>T,"positionalValues",()=>P,"removeNonTranslationalTransform",()=>w],44493)},260830,t=>{"use strict";let e=t=>t;t.s(["noop",()=>e])},846791,t=>{"use strict";let e={};t.s(["MotionGlobalConfig",()=>e])},287022,880248,651571,t=>{"use strict";var e=t.i(260830),i=t.i(846791);let s=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],n={value:null,addProjectionMetrics:null};function r(t,e){let r=!1,a=!0,o={delta:0,timestamp:0,isProcessing:!1},l=()=>r=!0,u=s.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,s=new Set,r=!1,a=!1,o=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},u=0;function h(e){o.has(e)&&(c.schedule(e),t()),u++,e(l)}let c={schedule:(t,e=!1,n=!1)=>{let a=n&&r?i:s;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{s.delete(t),o.delete(t)},process:t=>{if(l=t,r){a=!0;return}r=!0,[i,s]=[s,i],i.forEach(h),e&&n.value&&n.value.frameloop[e].push(u),u=0,i.clear(),r=!1,a&&(a=!1,c.process(t))}};return c}(l,e?i:void 0),t),{}),{setup:h,read:c,resolveKeyframes:d,preUpdate:p,update:m,preRender:f,render:g,postRender:v}=u,y=()=>{let s=i.MotionGlobalConfig.useManualTiming?o.timestamp:performance.now();r=!1,i.MotionGlobalConfig.useManualTiming||(o.delta=a?1e3/60:Math.max(Math.min(s-o.timestamp,40),1)),o.timestamp=s,o.isProcessing=!0,h.process(o),c.process(o),d.process(o),p.process(o),m.process(o),f.process(o),g.process(o),v.process(o),o.isProcessing=!1,r&&e&&(a=!1,t(y))};return{schedule:s.reduce((e,i)=>{let s=u[i];return e[i]=(e,i=!1,n=!1)=>(!r&&(r=!0,a=!0,o.isProcessing||t(y)),s.schedule(e,i,n)),e},{}),cancel:t=>{for(let e=0;e<s.length;e++)u[s[e]].cancel(t)},state:o,steps:u}}t.s(["statsBuffer",()=>n],880248),t.s(["createRenderBatcher",()=>r],651571);let{schedule:a,cancel:o,state:l,steps:u}=r("u">typeof requestAnimationFrame?requestAnimationFrame:e.noop,!0);t.s(["cancelFrame",()=>o,"frame",()=>a,"frameData",()=>l,"frameSteps",()=>u],287022)},646436,921012,547507,775554,t=>{"use strict";var e=t.i(864440),i=t.i(277942),s=t.i(684015),n=t.i(19928),r=t.i(411485),a=t.i(44493),o=t.i(287022);let l=new Set,u=!1,h=!1,c=!1;function d(){if(h){let t=Array.from(l).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,a.removeNonTranslationalTransform)(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)})}h=!1,u=!1,l.forEach(t=>t.complete(c)),l.clear()}function p(){l.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(h=!0)})}function m(){c=!0,p(),d(),c=!1}class f{constructor(t,e,i,s,n,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=n,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(l.add(this),u||(u=!0,o.frame.read(p),o.frame.resolveKeyframes(d))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;if(null===t[0]){let n=s?.get(),r=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let s=i.readValue(e,r);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=r),s&&void 0===n&&s.set(t[0])}(0,r.fillWildcards)(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),l.delete(this)}cancel(){"scheduled"===this.state&&(l.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}t.s(["KeyframeResolver",()=>f,"flushKeyframeResolvers",()=>m],921012);let g=t=>/^0[^.\s]+$/u.test(t);t.s(["isZeroValueString",()=>g],547507);var v=t.i(569577),y=t.i(208792),x=t.i(719991),T=t.i(203973);let b=new Set([y.filter,x.mask]);function S(t,e){let i=(0,T.getDefaultValueType)(t);return b.has(i)||(i=v.complex),i.getAnimatableNone?i.getAnimatableNone(e):void 0}t.s(["getAnimatableNone",()=>S],775554);
1let w=new Set(["auto","none","0"]);class P extends f{constructor(t,e,i,s,n){super(t,e,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:r,name:o}=this;if(!r||!r.current)return;super.readKeyframes();for(let e=0;e<t.length;e++){let i=t[e];if("string"==typeof i&&(i=i.trim(),(0,n.isCSSVariableToken)(i))){let n=(0,s.getVariableValue)(i,r.current);void 0!==n&&(t[e]=n),e===t.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!e.positionalKeys.has(o)||2!==t.length)return;let[l,u]=t,h=(0,i.findDimensionValueType)(l),c=(0,i.findDimensionValueType)(u);if((0,n.containsCSSVariable)(l)!==(0,n.containsCSSVariable)(u)&&a.positionalValues[o]){this.needsMeasurement=!0;return}if(h!==c)if((0,a.isNumOrPxType)(h)&&(0,a.isNumOrPxType)(c))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else a.positionalValues[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var s;(null===t[e]||("number"==typeof(s=t[e])?0===s:null===s||"none"===s||"0"===s||g(s)))&&i.push(e)}i.length&&function(t,e,i){let s,n=0;for(;n<t.length&&!s;){let e=t[n];"string"==typeof e&&!w.has(e)&&(0,v.analyseComplexValue)(e).values.length&&(s=t[n]),n++}if(s&&i)for(let n of e)t[n]=S(i,s)}(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=a.positionalValues[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let s=t.getValue(e);s&&s.jump(this.measuredOrigin,!1);let n=i.length-1,r=i[n];i[n]=a.positionalValues[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}t.s(["DOMKeyframesResolver",()=>P],646436)},763074,t=>{"use strict";let e=t=>1e3*t,i=t=>t/1e3;t.s(["millisecondsToSeconds",()=>i,"secondsToMilliseconds",()=>e])},570596,133887,t=>{"use strict";function e(t,e){-1===t.indexOf(e)&&t.push(e)}function i(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}t.s(["addUniqueItem",()=>e,"removeItem",()=>i],133887);class s{constructor(){this.subscriptions=[]}add(t){return e(this.subscriptions,t),()=>i(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,i);else for(let n=0;n<s;n++){let s=this.subscriptions[n];s&&s(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}t.s(["SubscriptionManager",()=>s],570596)},794581,260900,486902,930551,t=>{"use strict";function e(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function i(t){let e;return()=>(void 0===e&&(e=t()),e)}t.s(["setStyle",()=>e],794581),t.s(["memo",()=>i],260900);let s={};function n(t,e){let n=i(t);return()=>s[e]??n()}t.s(["memoSupports",()=>n],486902);let r=n(()=>void 0!==window.ScrollTimeline,"scrollTimeline");t.s(["supportsScrollTimeline",()=>r],930551)},414229,t=>{"use strict";let e=t=>null!==t;function i(t,{repeat:s,repeatType:n="loop"},r,a=1){let o=t.filter(e),l=a<0||s&&"loop"!==n&&s%2==1?0:o.length-1;return l&&void 0!==r?r:o[l]}t.s(["getFinalKeyframe",()=>i])},779294,t=>{"use strict";class e{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)}}t.s(["WithPromise",()=>e])},504169,t=>{"use strict";let e={layout:0,mainThread:0,waapi:0};t.s(["activeAnimations",()=>e])},960855,t=>{"use strict";let e=t=>Array.isArray(t)&&"number"==typeof t[0];t.s(["isBezierDefinition",()=>e])},153396,t=>{"use strict";
1let e=(0,t.i(486902).memoSupports)(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");t.s(["supportsLinearEasing",()=>e])},756512,t=>{"use strict";let e=(t,e,i=10)=>{let s="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)s+=Math.round(1e4*t(e/(n-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`};t.s(["generateLinearEasing",()=>e])},368e3,997307,962118,560140,t=>{"use strict";var e=t.i(965566),i=t.i(763074),s=t.i(260830),n=t.i(794581),r=t.i(930551),a=t.i(414229),o=t.i(779294),l=t.i(504169),u=t.i(880248),h=t.i(960855),c=t.i(153396),d=t.i(756512);let p=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,m={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:p([0,.65,.55,1]),circOut:p([.55,0,1,.45]),backIn:p([.31,.01,.66,-.59]),backOut:p([.33,1.53,.69,.99])};function f(t){return"function"==typeof t&&"applyToOptions"in t}t.s(["isGenerator",()=>f],997307);class g extends o.WithPromise{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:i,name:s,keyframes:r,pseudoElement:o,allowFlatten:g=!1,finalKeyframe:v,onComplete:y}=t;this.isPseudoElement=!!o,this.allowFlatten=g,this.options=t,(0,e.invariant)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const x=function({type:t,...e}){return f(t)&&(0,c.supportsLinearEasing)()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:f}={},g){let v={[e]:i};f&&(v.offset=f);let y=function t(e,i){if(e)return"function"==typeof e?(0,c.supportsLinearEasing)()?(0,d.generateLinearEasing)(e,i):"ease-out":(0,h.isBezierDefinition)(e)?p(e):Array.isArray(e)?e.map(e=>t(e,i)||m.easeOut):m[e]}(o,n);Array.isArray(y)&&(v.easing=y),u.statsBuffer.value&&l.activeAnimations.waapi++;let x={delay:s,duration:n,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};g&&(x.pseudoElement=g);let T=t.animate(v,x);return u.statsBuffer.value&&T.finished.finally(()=>{l.activeAnimations.waapi--}),T}(i,s,r,x,o),!1===x.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){let t=(0,a.getFinalKeyframe)(r,this.options,v,this.speed);this.updateMotionValue&&this.updateMotionValue(t),(0,n.setStyle)(i,s,t),this.animation.cancel()}y?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,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(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return(0,i.millisecondsToSeconds)(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,i.millisecondsToSeconds)(t)}get time(){return(0,i.millisecondsToSeconds)(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=(0,i.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 this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&(0,r.supportsScrollTimeline)())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),s.noop):n(this)}}t.s(["NativeAnimation",()=>g],368e3);let v=new Set(["opacity","clipPath","filter","transform"]);t.s(["acceleratedValues",()=>v],962118);let{schedule:y}=(0,t.i(651571).createRenderBatcher)(queueMicrotask,!1);t.s(["microtask",()=>y],560140)}
1,496173,t=>{"use strict";let e;var i=t.i(846791),s=t.i(287022);function n(){e=void 0}let r={now:()=>(void 0===e&&r.set(s.frameData.isProcessing||i.MotionGlobalConfig.useManualTiming?s.frameData.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(n)}};t.s(["time",()=>r])},325791,t=>{"use strict";function e(t,e){return e?1e3/e*t:0}t.s(["velocityPerSecond",()=>e])},486427,t=>{"use strict";var e=t.i(570596),i=t.i(325791),s=t.i(496173),n=t.i(287022);let r={current:void 0};class a{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=s.time.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=s.time.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,i){this.events[t]||(this.events[t]=new e.SubscriptionManager);let s=this.events[t].add(i);return"change"===t?()=>{s(),n.frame.read(()=>{this.events.change.getSize()||this.stop()})}:s}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 r.current&&r.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=s.time.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,i.velocityPerSecond)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function o(t,e){return new a(t,e)}t.s(["collectMotionValues",()=>r,"motionValue",()=>o])},194978,885983,732525,706840,587576,386579,617218,793787,544947,181261,638698,399951,449095,188826,91018,t=>{"use strict";var e=t.i(83411),i=t.i(646436);t.i(247167);var s=t.i(763074),n=t.i(172590),r=t.i(547507),a=t.i(570596),o=t.i(921012),l=t.i(368e3),u=t.i(962118),h=t.i(560140),c=t.i(496173),d=t.i(130162),p=t.i(486427),m=t.i(569577),f=t.i(775554),g=t.i(279444),v=t.i(277942),y=t.i(284061);let x=[...v.dimensionValueTypes,g.color,m.complex],T=new WeakMap;function b(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function S(t){return"string"==typeof t||Array.isArray(t)}t.s(["isAnimationControls",()=>b],885983),t.s(["isVariantLabel",()=>S],732525);let w=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],P=["initial",...w];function V(t){return b(t.animate)||P.some(e=>S(t[e]))}function M(t){return!!(V(t)||t.variants)}t.s(["variantPriorityOrder",()=>w,"variantProps",()=>P],706840),t.s(["isControllingVariants",()=>V,"isVariantNode",()=>M],587576);var A=t.i(157788);let C={current:null},E={current:!1},D="u">typeof window;function k(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function R(t,e,i,s){if("function"==typeof e){let[n,r]=k(s);e=e(void 0!==i?i:t.custom,n,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,r]=k(s);e=e(void 0!==i?i:t.custom,n,r)}return e}t.s(["resolveVariantFromProps",()=>R],386579);var B=t.i(287022);let L=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],F={};function O(t){F=t}function j(){return F}class I{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:i,presenceContext:s,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:a,visualState:l},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=o.KeyframeResolver,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=c.time.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,B.frame.render(this.render,!1,!0))};const{latestValues:h,renderState:d}=l;this.latestValues=h,this.baseTarget={...h},this.initialValues=i.initial?{...h}:{},this.renderState=d,this.parent=t,this.props=i,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=r,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=V(i),this.isVariantNode=M(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...m}=this.scrapeMotionValuesFromProps(i,{},this);for(const t in m){const i=m[t];void 0!==h[t]&&(0,e.isMotionValue)(i)&&i.set(h[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,T.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)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(E.current||function(){if(E.current=!0,D)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>C.current=t.matches;t.addEventListener("change",e),e()}else C.current=!1}(),this.shouldReduceMotion=C.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,B.cancelFrame)(this.notifyUpdate),(0,B.cancelFrame)(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;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&u.acceleratedValues.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:r,ease:a,duration:o}=e.accelerate,u=new l.NativeAnimation({element:this.current,name:t,keyframes:n,times:r,ease:a,duration:(0,s.secondsToMilliseconds)(o)}),h=i(u);this.valueSubscriptions.set(t,()=>{h(),u.cancel()});return}let n=A.transformProps.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&B.frame.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),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 F){let e=F[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){let e=this.features[t];
1e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,d.createBox)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,i){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let e=0;e<L.length;e++){let i=L[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(t,i,s){for(let n in i){let r=i[n],a=s[n];if((0,e.isMotionValue)(r))t.addValue(n,r);else if((0,e.isMotionValue)(a))t.addValue(n,(0,p.motionValue)(r,{owner:t}));else if(a!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,(0,p.motionValue)(void 0!==e?e:r,{owner:t}))}}for(let e in s)void 0===i[e]&&t.removeValue(e);return i}(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=(0,p.motionValue)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,i){let s=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=s){if("string"==typeof s&&((0,n.isNumericalString)(s)||(0,r.isZeroValueString)(s)))s=parseFloat(s);else{let e;e=s,!x.find((0,y.testValueType)(e))&&m.complex.test(i)&&(s=(0,f.getAnimatableNone)(t,i))}this.setBaseTarget(t,(0,e.isMotionValue)(s)?s.get():s)}return(0,e.isMotionValue)(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let i,{initial:s}=this.props;if("string"==typeof s||"object"==typeof s){let e=R(this.props,s,this.presenceContext?.custom);e&&(i=e[t])}if(s&&void 0!==i)return i;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||(0,e.isMotionValue)(n)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new a.SubscriptionManager),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){h.microtask.render(this.render)}}t.s(["VisualElement",()=>I,"getFeatureDefinitions",()=>j,"setFeatureDefinitions",()=>O],617218);class N extends I{constructor(){super(...arguments),this.KeyframeResolver=i.DOMKeyframesResolver}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[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;(0,e.isMotionValue)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function U(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}t.s(["DOMVisualElement",()=>N],194978),t.s(["camelToDash",()=>U],793787);let W=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var $=t.i(434929),z=t.i(19928);let G={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},H=A.transformPropOrder.length;function K(t,e,i){let{style:s,vars:n,transformOrigin:r}=t,a=!1,o=!1;for(let t in e){let i=e[t];if(A.transformProps.has(t)){a=!0;continue}if((0,z.isCSSVariableName)(t)){n[t]=i;continue}{let e=W(i,$.numberValueTypes[t]);t.startsWith("origin")?(o=!0,r[t]=e):s[t]=e}}
1if(!e.transform&&(a||i?s.transform=function(t,e,i){let s="",n=!0;for(let r=0;r<H;r++){let a=A.transformPropOrder[r],o=t[a];if(void 0===o)continue;let l=!0;if("number"==typeof o)l=o===+!!a.startsWith("scale");else{let t=parseFloat(o);l=a.startsWith("scale")?1===t:0===t}if(!l||i){let t=W(o,$.numberValueTypes[a]);if(!l){n=!1;let e=G[a]||a;s+=`${e}(${t}) `}i&&(e[a]=t)}}return s=s.trim(),i?s=i(e,n?"":s):n&&(s="none"),s}(e,t.transform,i):s.transform&&(s.transform="none")),o){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;s.transformOrigin=`${t} ${e} ${i}`}}t.s(["buildHTMLStyles",()=>K],544947);let Y={offset:"stroke-dashoffset",array:"stroke-dasharray"},X={offset:"strokeDashoffset",array:"strokeDasharray"},q=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Z(t,{attrX:e,attrY:i,attrScale:s,pathLength:n,pathSpacing:r=1,pathOffset:a=0,...o},l,u,h){if(K(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;for(let t of(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),q))void 0!==c[t]&&(d[t]=c[t],delete c[t]);void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==s&&(c.scale=s),void 0!==n&&function(t,e,i=1,s=0,n=!0){t.pathLength=1;let r=n?Y:X;t[r.offset]=`${-s}`,t[r.array]=`${e} ${i}`}(c,n,r,a,!1)}t.s(["buildSVGAttrs",()=>Z],181261);let _=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"]);t.s(["camelCaseAttributes",()=>_],638698);let J=t=>"string"==typeof t&&"svg"===t.toLowerCase();function Q(t,{style:e,vars:i},s,n){let r,a=t.style;for(r in e)a[r]=e[r];for(r in n?.applyProjectionStyles(a,s),i)a.setProperty(r,i[r])}function tt(t,e,i,s){for(let i in Q(t,e,void 0,s),e.attrs)t.setAttribute(_.has(i)?i:U(i),e.attrs[i])}t.s(["isSVGTag",()=>J],399951),t.s(["renderHTML",()=>Q],449095),t.s(["renderSVG",()=>
1tt],188826);var te=t.i(265091);function ti(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ts={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!te.px.test(t))return t;else t=parseFloat(t);let i=ti(t,e.target.x),s=ti(t,e.target.y);return`${i}% ${s}%`}};t.s(["correctBorderRadius",()=>ts],91018)},100706,t=>{"use strict";let e=(t,e,i)=>t+(e-t)*i;t.s(["mixNumber",()=>e])},154505,924463,130789,984049,767926,27677,177777,135636,153689,944966,231178,648070,t=>{"use strict";var e=t.i(157788),i=t.i(203973),s=t.i(130162),n=t.i(194978),r=t.i(793787),a=t.i(181261),o=t.i(638698),l=t.i(399951),u=t.i(188826),h=t.i(83411),c=t.i(19928),d=t.i(91018),p=t.i(569577),m=t.i(100706);let f={borderRadius:{...d.correctBorderRadius,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:d.correctBorderRadius,borderTopRightRadius:d.correctBorderRadius,borderBottomLeftRadius:d.correctBorderRadius,borderBottomRightRadius:d.correctBorderRadius,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=p.complex.parse(t);if(s.length>5)return t;let n=p.complex.createTransformer(t),r=+("number"!=typeof s[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;s[0+r]/=a,s[1+r]/=o;let l=(0,m.mixNumber)(a,o,.5);return"number"==typeof s[2+r]&&(s[2+r]/=l),"number"==typeof s[3+r]&&(s[3+r]/=l),n(s)}}};function g(t,{layout:i,layoutId:s}){return e.transformProps.has(t)||t.startsWith("origin")||(i||void 0!==s)&&(!!f[t]||"opacity"===t)}function v(t,e,i){let s=t.style,n=e?.style,r={};if(!s)return r;for(let e in s)((0,h.isMotionValue)(s[e])||n&&(0,h.isMotionValue)(n[e])||g(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=s[e]);return r}function y(t,i,s){let n=v(t,i,s);for(let s in t)((0,h.isMotionValue)(t[s])||(0,h.isMotionValue)(i[s]))&&(n[-1!==e.transformPropOrder.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s]=t[s]);return n}t.s(["scaleCorrectors",()=>f],924463),t.s(["isForcedMotionValue",()=>g],130789),t.s(["scrapeMotionValuesFromProps",()=>v],984049),t.s(["scrapeMotionValuesFromProps",()=>y],767926);class x extends n.DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=s.createBox}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,s){if(e.transformProps.has(s)){let t=(0,i.getDefaultValueType)(s);return t&&t.default||0}return s=o.camelCaseAttributes.has(s)?s:(0,r.camelToDash)(s),t.getAttribute(s)}scrapeMotionValuesFromProps(t,e,i){return y(t,e,i)}build(t,e,i){(0,a.buildSVGAttrs)(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){(0,u.renderSVG)(t,e,i,s)}mount(t){this.isSVGTag=(0,l.isSVGTag)(t.tagName),super.mount(t)}}var T=t.i(381296);function b({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function S({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function w(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}function P(t){return void 0===t||1===t}function V({scale:t,scaleX:e,scaleY:i}){return!P(t)||!P(e)||!P(i)}function M(t){return V(t)||A(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function A(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}t.s(["convertBoundingBoxToBox",()=>b,"convertBoxToBoundingBox",()=>S,"transformBoxPoints",()=>w],27677);function C(t,e,i){return i+e*(t-i)}function E(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}function D(t,e=0,i=1,s,n){t.min=E(t.min,e,i,s,n),t.max=E(t.max,e,i,s,n)}function k(t,{x:e,y:i}){D(t.x,e.translate,e.scale,e.originPoint),D(t.y,i.translate,i.scale,i.originPoint)}function R(t,e,i,s=!1){let n,r,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){r=(n=i[o]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&O(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,k(t,r)),s&&M(n.latestValues)&&O(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function B(t,e){t.min=t.min+e,t.max=t.max+e}function L(t,e,i,s,n=.5){let r=(0,m.mixNumber)(t.min,t.max,n);D(t,e,i,r,s)}function F(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function O(t,e){L(t.x,F(e.x,t.x),e.scaleX,e.scale,e.originX),L(t.y,F(e.y,t.y),e.scaleY,e.scale,e.originY)}function j(t,e){return b(w(t.getBoundingClientRect(),e))}function I(t,e,i){let s=j(t,i),{scroll:n}=e;return n&&(B(s.x,n.offset.x),B(s.y,n.offset.y)),s}t.s(["has2DTranslate",()=>A,"hasScale",()=>V,"hasTransform",()=>M],177777),t.s(["applyBoxDelta",()=>k,"applyTreeDeltas",()=>R,"scalePoint",()=>C,"transformBox",()=>O,"translateAxis",()=>B],135636),t.s(["measurePageBox",()=>I,"measureViewportBox",()=>j],153689);var N=n,U=t.i(544947),W=t.i(449095);class $ extends N.DOMVisualElement{constructor(){super(...arguments),this.type="html",this.renderInstance=W.renderHTML}readValueFromInstance(t,i){if(e.transformProps.has(i))return this.projection?.isProjecting?(0,T.defaultTransformValue)(i):(0,T.readTransformValue)(t,i);{let e=window.getComputedStyle(t),s=((0,c.isCSSVariableName)(i)?e.getPropertyValue(i):e[i])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return j(t,e)}build(t,e,i){(0,U.buildHTMLStyles)(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return v(t,e,i)}}var z=t.i(271645);let G=["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 H(t){if("string"!=typeof t||t.includes("-"));else if(G.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}t.s(["isSVGComponent",()=>H],944966);let K=(t,e)=>e.isSVG??H(t)?new x(e):new $(e,{allowProjection:t!==z.Fragment});t.s(["createDomVisualElement",()=>K],154505);let Y=(0,z.createContext)({});t.s(["LayoutGroupContext",()=>Y],231178);let X=(0,z.createContext)({strict:!1});t.s(["LazyContext",()=>X],648070)},737806,t=>{"use strict";let e=(0,t.i(271645).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",()=>e])},688291,582474,886549,911587,308576,830665,733871,821476,t=>{"use strict";var e,i=t.i(271645);let s=(0,i.createContext)({});t.s(["MotionContext",()=>s],688291);var n=t.i(587576),r=t.i(732525);function a(t){let{initial:e,animate:a}=function(t,e){if((0,n.isControllingVariants)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,r.isVariantLabel)(e)?e:void 0,animate:(0,r.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,i.useContext)(s));return(0,i.useMemo)(()=>({initial:e,animate:a}),[o(e),o(a)])}function o(t){return Array.isArray(t)?t.join(" "):t}t.s(["useCreateMotionContext",()=>a],582474);var l=t.i(83411),u=t.i(130789),h=t.i(544947);let c=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function d(t,e,i){for(let s in e)(0,l.isMotionValue)(e[s])||(0,u.isForcedMotionValue)(s,i)||(t[s]=e[s])}t.s(["createHtmlRenderState",()=>c],886549);var p=t.i(181261),m=t.i(399951);let f=()=>({...c(),attrs:{}});t.s(["createSvgRenderState",()=>f],911587);let g=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function v(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||g.has(t)}let y=t=>!v(t);try{e=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof e&&(y=t=>t.startsWith("on")?!v(t):e(t))}catch{}var x=t.i(944966);function T(t,e,s,{latestValues:n},r,a=!1,o){let u=(o??(0,x.isSVGComponent)(t)?function(t,e,s,n){let r=(0,i.useMemo)(()=>{let i=f();return(0,p.buildSVGAttrs)(i,e,(0,m.isSVGTag)(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};d(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let s,n,r={},a=(s=t.style||{},d(n={},s,t),Object.assign(n,function({transformTemplate:t},e){return(0,i.useMemo)(()=>{let i=c();return(0,h.buildHTMLStyles)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=a,r})(e,n,r,t),g=function(t,e,i){let s={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(y(n)||!0===i&&v(n)||!e&&!v(n)||t.draggable&&n.startsWith("onDrag"))&&(s[n]=t[n]);return s}(e,"string"==typeof t,a),b=t!==i.Fragment?{...g,...u,ref:s}:{},{children:S}=e,w=(0,i.useMemo)(()=>(0,l.isMotionValue)(S)?S.get():S,[S]);return(0,i.createElement)(t,{...b,children:w})}t.s(["useRender",()=>T],308576);var b=t.i(984049);function S(t){return(0,l.isMotionValue)(t)?t.get():t}t.s(["scrapeHTMLMotionValuesFromProps",()=>b.scrapeMotionValuesFromProps],830665),t.s(["resolveMotionValue",()=>S],733871);let w=(0,i.createContext)(null);t.s(["PresenceContext",()=>w],821476)},947414,t=>{"use strict";var e=t.i(271645);function i(t){let i=(0,e.useRef)(null);return null===i.current&&(i.current=t()),i.current}t.s(["useConstant",()=>i])},711805,501664,476948,513565,321967,683640,535043,104035,325522,t=>{"use strict";var e=t.i(830665),i=t.i(733871),s=t.i(587576),n=t.i(885983),r=t.i(386579),a=t.i(271645),o=t.i(688291),l=t.i(821476),u=t.i(947414);let h=t=>(e,h)=>{let c=(0,a.useContext)(o.MotionContext),d=(0,a.useContext)(l.PresenceContext),p=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},a,o,l){return{latestValues:function(t,e,a,o){let l={},u=o(t,{});for(let t in u)l[t]=(0,i.resolveMotionValue)(u[t]);let{initial:h,animate:c}=t,d=(0,s.isControllingVariants)(t),p=(0,s.isVariantNode)(t);
1e&&p&&!d&&!1!==t.inherit&&(void 0===h&&(h=e.initial),void 0===c&&(c=e.animate));let m=!!a&&!1===a.initial,f=(m=m||!1===h)?c:h;if(f&&"boolean"!=typeof f&&!(0,n.isAnimationControls)(f)){let e=Array.isArray(f)?f:[f];for(let i=0;i<e.length;i++){let s=(0,r.resolveVariantFromProps)(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=m?e.length-1:0;e=e[t]}null!==e&&(l[t]=e)}for(let e in t)l[e]=t[e]}}}return l}(a,o,l,t),renderState:e()}})(t,e,c,d);return h?p():(0,u.useConstant)(p)};var c=t.i(886549);let d=h({scrapeMotionValuesFromProps:e.scrapeHTMLMotionValuesFromProps,createRenderState:c.createHtmlRenderState});t.s(["useHTMLVisualState",()=>d],711805);var p=t.i(767926),p=p,m=t.i(911587);let f=h({scrapeMotionValuesFromProps:p.scrapeMotionValuesFromProps,createRenderState:m.createSvgRenderState});t.s(["useSVGVisualState",()=>f],501664);var g=t.i(617218);let v={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"]},y=!1;function x(){return!function(){if(y)return;let t={};for(let e in v)t[e]={isEnabled:t=>v[e].some(e=>!!t[e])};(0,g.setFeatureDefinitions)(t),y=!0}(),(0,g.getFeatureDefinitions)()}function T(t){let e=x();for(let i in t)e[i]={...e[i],...t[i]};(0,g.setFeatureDefinitions)(e)}t.s(["getInitializedFeatureDefinitions",()=>x],476948),t.s(["loadFeatures",()=>T],513565);let b=Symbol.for("motionComponentSymbol");function S(t,e,i){let s=(0,a.useRef)(i);(0,a.useInsertionEffect)(()=>{s.current=i});let n=(0,a.useRef)(null);return(0,a.useCallback)(i=>{i&&t.onMount?.(i);let r=s.current;if("function"==typeof r)if(i){let t=r(i);"function"==typeof t&&(n.current=t)}else n.current?(n.current(),n.current=null):r(i);else r&&(r.current=i);e&&(i?e.mount(i):e.unmount())},[e])}t.s(["motionComponentSymbol",()=>b],321967),t.s(["useMotionRef",()=>S],683640);let w="data-"+(0,t.i(793787).camelToDash)("framerAppearId");t.s(["optimizedAppearDataAttribute",()=>w],535043);let P=(0,a.createContext)({});function V(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}t.s(["SwitchLayoutGroupContext",()=>P],104035),t.s(["isRefObject",()=>V],325522)},674008,t=>{"use strict";var e=t.i(271645);let i="u">typeof window?e.useLayoutEffect:e.useEffect;t.s(["useIsomorphicLayoutEffect",()=>i],674008)},907051,142098,618812,753034,987333,373615,347834,980538,716896,t=>{"use strict";t.i(247167);var e=t.i(843476),i=t.i(271645),s=t.i(231178),n=t.i(648070),r=t.i(737806),a=t.i(688291),o=t.i(582474),l=t.i(308576),u=t.i(944966),h=t.i(711805),c=t.i(501664),d=t.i(476948),p=t.i(513565),m=t.i(321967),f=t.i(683640),g=t.i(535043),v=t.i(821476),y=t.i(104035),x=t.i(325522),T=t.i(674008);function b(t,{forwardMotionProps:S=!1,type:w}={},P,V){P&&(0,p.loadFeatures)(P);let M=w?"svg"===w:(0,u.isSVGComponent)(t),A=M?c.useSVGVisualState:h.useHTMLVisualState;function C(u,h){let c,p={...(0,i.useContext)(r.MotionConfigContext),...u,layoutId:function({layoutId:t}){let e=(0,i.useContext)(s.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(u)},{isStatic:m}=p,b=(0,o.useCreateMotionContext)(u),w=A(u,m);if(!m&&"u">typeof window){(0,i.useContext)(n.LazyContext).strict;let e=function(t){let{drag:e,layout:i}=(0,d.getInitializedFeatureDefinitions)();if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(p);c=e.MeasureLayout,b.visualElement=function(t,e,s,o,l,u){let{visualElement:h}=(0,i.useContext)(a.MotionContext),c=(0,i.useContext)(n.LazyContext),d=(0,i.useContext)(v.PresenceContext),p=(0,i.useContext)(r.MotionConfigContext),m=p.reducedMotion,f=p.skipAnimations,b=(0,i.useRef)(null),S=(0,i.useRef)(!1);o=o||c.renderer,!b.current&&o&&(b.current=o(t,{visualState:e,parent:h,props:s,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:m,skipAnimations:f,isSVG:u}),S.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));let w=b.current,P=(0,i.useContext)(y.SwitchLayoutGroupContext);w&&!w.projection&&l&&("html"===w.type||"svg"===w.type)&&function(t,e,
1i,s){let{layoutId:n,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 t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:r,alwaysMeasureLayout:!!a||o&&(0,x.isRefObject)(o),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,crossfade:h,layoutScroll:l,layoutRoot:u})}(b.current,s,l,P);let V=(0,i.useRef)(!1);(0,i.useInsertionEffect)(()=>{w&&V.current&&w.update(s,d)});let M=s[g.optimizedAppearDataAttribute],A=(0,i.useRef)(!!M&&"u">typeof window&&!window.MotionHandoffIsComplete?.(M)&&window.MotionHasOptimisedAnimation?.(M));return(0,T.useIsomorphicLayoutEffect)(()=>{S.current=!0,w&&(V.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),A.current&&w.animationState&&w.animationState.animateChanges())}),(0,i.useEffect)(()=>{w&&(!A.current&&w.animationState&&w.animationState.animateChanges(),A.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(M)}),A.current=!1),w.enteringChildren=void 0)}),w}(t,w,p,V,e.ProjectionNode,M)}return(0,e.jsxs)(a.MotionContext.Provider,{value:b,children:[c&&b.visualElement?(0,e.jsx)(c,{visualElement:b.visualElement,...p}):null,(0,l.useRender)(t,u,(0,f.useMotionRef)(w,b.visualElement,h),w,m,S,M)]})}C.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let E=(0,i.forwardRef)(C);return E[m.motionComponentSymbol]=t,E}function S(t,e){if("u"<typeof Proxy)return b;let i=new Map,s=(i,s)=>b(i,s,t,e);return new Proxy((t,e)=>s(t,e),{get:(n,r)=>"create"===r?s:(i.has(r)||i.set(r,b(r,void 0,t,e)),i.get(r))})}t.s(["createMotionProxy",()=>S],907051);class w{constructor(t){this.isMounted=!1,this.node=t}update(){}}t.s(["Feature",()=>w],142098);var P=t.i(386579);function V(t,e,i){let s=t.getProps();return(0,P.resolveVariantFromProps)(s,e,void 0!==i?i:s.custom,t)}function M(t,e){if(t?.inherit&&e){let{inherit:i,...s}=t;return{...e,...s}}return t}function A(t,e){let i=t?.[e]??t?.default??t;return i!==t?M(i,t):i}t.s(["resolveVariant",()=>V],618812),t.s(["resolveTransition",()=>M],753034),t.s(["getValueTransition",()=>A],987333);var C=t.i(486427);let E=t=>Array.isArray(t);function D(t,e){let{transitionEnd:i={},transition:s={},...n}=V(t,e)||{};for(let e in n={...n,...i}){var r;let i=E(r=n[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,C.motionValue)(i))}}t.s(["isKeyframesTarget",()=>E],373615),t.s(["setTarget",()=>D],347834);var k=t.i(846791),R=t.i(83411);function B(t,e){let i=t.getValue("willChange");if((0,R.isMotionValue)(i)&&i.add)return i.add(e);if(!i&&k.MotionGlobalConfig.WillChange){let i=new k.MotionGlobalConfig.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function L(t){return t.props[g.optimizedAppearDataAttribute]}t.s(["addValueToWillChange",()=>B],980538),t.s(["getOptimisedAppearId",()=>L],716896)},738638,t=>{"use strict";let e=(t,e)=>i=>e(t(i)),i=(...t)=>t.reduce(e);t.s(["pipe",()=>i])},648393,308618,t=>{"use strict";function e(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 i({hue:t,saturation:i,lightness:s,alpha:n}){t/=360,s/=100;let r=0,a=0,o=0;if(i/=100){let n=s<.5?s*(1+i):s+i-s*i,l=2*s-n;r=e(l,n,t+1/3),a=e(l,n,t),o=e(l,n,t-1/3)}else r=a=o=s;return{red:Math.round(255*r),green:Math.round(255*a),blue:Math.round(255*o),alpha:n}}function s(t,e){return i=>i>0?e:t}t.s(["hslaToRgba",()=>i],648393),t.s(["mixImmediate",()=>s],308618)},203163,769308,t=>{"use strict";var e=t.i(738638),i=t.i(965566),s=t.i(19928),n=t.i(279444),r=t.i(569577),a=t.i(463011),o=t.i(22660),l=t.i(648393),u=t.i(766820),h=t.i(308618),c=t.i(100706);let d=(t,e,i)=>{let s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},p=[a.hex,u.rgba,o.hsla];function m(t){let e=p.find(e=>e.test(t));if((0,i.warning)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let s=e.parse(t);return e===o.hsla&&(s=(0,l.hslaToRgba)(s)),s}let f=(t,e)=>{let i=m(t),s=m(e);if(!i||!s)return(0,h.mixImmediate)(t,e);let n={...i};return t=>(n.red=d(i.red,s.red,t),n.green=d(i.green,s.green,t),n.blue=d(i.blue,s.blue,t),n.alpha=(0,c.mixNumber)(i.alpha,s.alpha,t),u.rgba.transform(n))},g=new Set(["none","hidden"]);function v(t,e){return i=>(0,c.mixNumber)(t,e,i)}function y(t){return"number"==typeof t?v:"string"==typeof t?(0,s.isCSSVariableToken)(t)?h.mixImmediate:n.color.test(t)?f:b:Array.isArray(t)?x:"object"==typeof t?n.c
1olor.test(t)?f:T:h.mixImmediate}function x(t,e){let i=[...t],s=i.length,n=t.map((t,i)=>y(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=n[e](t);return i}}function T(t,e){let i={...t,...e},s={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(s[n]=y(t[n])(t[n],e[n]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let b=(t,s)=>{let n=r.complex.createTransformer(s),a=(0,r.analyseComplexValue)(t),o=(0,r.analyseComplexValue)(s);if(!(a.indexes.var.length===o.indexes.var.length&&a.indexes.color.length===o.indexes.color.length&&a.indexes.number.length>=o.indexes.number.length))return(0,i.warning)(!0,`Complex values '${t}' and '${s}' 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"),(0,h.mixImmediate)(t,s);if(g.has(t)&&!o.values.length||g.has(s)&&!a.values.length)return g.has(t)?e=>e<=0?t:s:e=>e>=1?s:t;return(0,e.pipe)(x(function(t,e){let i=[],s={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let r=e.types[n],a=t.indexes[r][s[r]],o=t.values[a]??0;i[n]=o,s[r]++}return i}(a,o),o.values),n)};function S(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,c.mixNumber)(t,e,i):y(t)(t,e)}t.s(["mix",()=>S],203163);var w=t.i(496173),P=t.i(287022);let V=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>P.frame.update(e,t),stop:()=>(0,P.cancelFrame)(e),now:()=>P.frameData.isProcessing?P.frameData.timestamp:w.time.now()}};t.s(["frameloopDriver",()=>V],769308)},29462,655529,373431,440254,437025,893544,641980,878047,791559,t=>{"use strict";var e=t.i(763074),i=t.i(476959),s=t.i(756512);function n(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}t.s(["calcGeneratorDuration",()=>n,"maxGeneratorDuration",()=>2e4],655529);var r=t.i(325791);function a(t,e,i){let s=Math.max(e-5,0);return(0,r.velocityPerSecond)(i-t(s),e-s)}let o=.01,l=2,u=.005,h=.5;var c=t.i(965566);function d(t,e){return t*Math.sqrt(1-e*e)}let p=["duration","bounce"],m=["stiffness","damping","mass"];function f(t,e){return e.some(e=>void 0!==t[e])}function g(t=.3,r=.3){let v,y="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:r}:t,{restSpeed:x,restDelta:T}=y,b=y.keyframes[0],S=y.keyframes[y.keyframes.length-1],w={done:!1,value:b},{stiffness:P,damping:V,mass:M,duration:A,velocity:C,isResolvedFromDuration:E}=function(t){let s={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!f(t,m)&&f(t,p))if(s.velocity=0,t.visualDuration){let e=2*Math.PI/(1.2*t.visualDuration),n=e*e,r=2*(0,i.clamp)(.05,1,1-(t.bounce||0))*Math.sqrt(n);s={...s,mass:1,stiffness:n,damping:r}}else{let n=function({duration:t=800,bounce:s=.3,velocity:n=0,mass:r=1}){let a,o;(0,c.warning)(t<=(0,e.secondsToMilliseconds)(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let l=1-s;l=(0,i.clamp)(.05,1,l),t=(0,i.clamp)(.01,10,(0,e.millisecondsToSeconds)(t)),l<1?(a=e=>{let i=e*l,s=i*t;return .001-(i-n)/d(e,l)*Math.exp(-s)},o=e=>{let i=e*l*t,s=Math.pow(l,2)*Math.pow(e,2)*t,r=Math.exp(-i),o=d(Math.pow(e,2),l);return(i*n+n-s)*r*(-a(e)+.001>0?-1:1)/o}):(a=e=>-.001+Math.exp(-e*t)*((e-n)*t+1),o=e=>t*t*(n-e)*Math.exp(-e*t));let u=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(a,o,5/t);if(t=(0,e.secondsToMilliseconds)(t),isNaN(u))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(u,2)*r;return{stiffness:e,damping:2*l*Math.sqrt(r*e),duration:t}}}({...t,velocity:0});(s={...s,...n,mass:1}).isResolvedFromDuration=!0}return s}({...y,velocity:-(0,e.millisecondsToSeconds)(y.velocity||0)}
1),D=C||0,k=V/(2*Math.sqrt(P*M)),R=S-b,B=(0,e.millisecondsToSeconds)(Math.sqrt(P/M)),L=5>Math.abs(R);if(x||(x=L?o:l),T||(T=L?u:h),k<1){let t=d(B,k);v=e=>S-Math.exp(-k*B*e)*((D+k*B*R)/t*Math.sin(t*e)+R*Math.cos(t*e))}else if(1===k)v=t=>S-Math.exp(-B*t)*(R+(D+B*R)*t);else{let t=B*Math.sqrt(k*k-1);v=e=>{let i=Math.exp(-k*B*e),s=Math.min(t*e,300);return S-i*((D+k*B*R)*Math.sinh(s)+t*R*Math.cosh(s))/t}}let F={calculatedDuration:E&&A||null,next:t=>{let i=v(t);if(E)w.done=t>=A;else{let s=0===t?D:0;k<1&&(s=0===t?(0,e.secondsToMilliseconds)(D):a(v,t,i));let n=Math.abs(S-i)<=T;w.done=Math.abs(s)<=x&&n}return w.value=w.done?S:i,w},toString:()=>{let t=Math.min(n(F),2e4),e=(0,s.generateLinearEasing)(e=>F.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return F}function v({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:o,min:l,max:u,restDelta:h=.5,restSpeed:c}){let d,p,m=t[0],f={done:!1,value:m},v=i*e,y=m+v,x=void 0===o?y:o(y);x!==y&&(v=x-m);let T=t=>-v*Math.exp(-t/s),b=t=>x+T(t),S=t=>{let e=T(t),i=b(t);f.done=Math.abs(e)<=h,f.value=f.done?x:i},w=t=>{let e;if(e=f.value,void 0!==l&&e<l||void 0!==u&&e>u){var i;d=t,p=g({keyframes:[f.value,(i=f.value,void 0===l?u:void 0===u||Math.abs(l-i)<Math.abs(u-i)?l:u)],velocity:a(b,t,f.value),damping:n,stiffness:r,restDelta:h,restSpeed:c})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(p||void 0!==d||(e=!0,S(t),w(t)),void 0!==d&&t>=d)?p.next(t-d):(e||S(t),f)}}}g.applyToOptions=t=>{let i=function(t,i=100,s){let r=s({...t,keyframes:[0,i]}),a=Math.min(n(r),2e4);return{type:"keyframes",ease:t=>r.next(a*t).value/i,duration:(0,e.millisecondsToSeconds)(a)}}(t,100,g);return t.ease=i.ease,t.duration=(0,e.secondsToMilliseconds)(i.duration),t.type="keyframes",t},t.s(["spring",()=>g],373431),t.s(["inertia",()=>v],29462);var y=t.i(260830);let x=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function T(t,e,i,s){return t===e&&i===s?y.noop:n=>0===n||1===n?n:x(function(t,e,i,s,n){let r,a,o=0;do(r=x(a=e+(i-e)/2,s,n)-t)>0?i=a:e=a;while(Math.abs(r)>1e-7&&++o<12)return a}(n,0,1,t,i),e,s)}t.s(["cubicBezier",()=>T],440254);let b=T(.42,0,1,1),S=T(0,0,.58,1),w=T(.42,0,.58,1);t.s(["easeIn",()=>b,"easeInOut",()=>w,"easeOut",()=>S],437025);let P=t=>Array.isArray(t)&&"number"!=typeof t[0];t.s(["isEasingArray",()=>P],893544);let V=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,M=t=>e=>1-t(1-e),A=T(.33,1.53,.69,.99),C=M(A),E=V(C);t.s(["backIn",()=>C,"backInOut",()=>E,"backOut",()=>A],641980);let D=t=>(t*=2)<1?.5*C(t):.5*(2-Math.pow(2,-10*(t-1)));t.s(["anticipate",()=>D],878047);let k=t=>1-Math.sin(Math.acos(t)),R=M(k),B=V(k);t.s(["circIn",()=>k,"circInOut",()=>B,"circOut",()=>R],791559)},668514,783920,344230,t=>{"use strict";var e=t.i(437025),i=t.i(893544),s=t.i(965566),n=t.i(260830),r=t.i(878047),a=t.i(641980),o=t.i(791559),l=t.i(440254),u=t.i(960855);let h={linear:n.noop,easeIn:e.easeIn,easeInOut:e.easeInOut,easeOut:e.easeOut,circIn:o.circIn,circInOut:o.circInOut,circOut:o.circOut,backIn:a.backIn,backInOut:a.backInOut,backOut:a.backOut,anticipate:r.anticipate},c=t=>{if((0,u.isBezierDefinition)(t)){(0,s.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return(0,l.cubicBezier)(e,i,n,r)}return"string"==typeof t?((0,s.invariant)(void 0!==h[t],`Invalid easing type '${t}'`,"invalid-easing-type"),h[t]):t};var d=t.i(476959),p=t.i(846791),m=t.i(738638);let f=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s};t.s(["progress",()=>f],783920);var g=t.i(203163);function v(t,e,{clamp:i=!0,ease:r,mixer:a}={}){let o=t.length;if((0,s.invariant)(o===e.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];let l=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());let u=function(t,e,i){let s=[],r=i||p.MotionGlobalConfig.mix||g.mix,a=t.length-1;for(let i=0;i<a;i++){let a=r(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||n.noop:e;a=(0,m.pipe)(t,a)}s.push(a)}return s}(e,r,a),h=u.length,c=i=>{if(l&&i<t[0])return e[0];let s=0;if(h>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let n=f(t[s],t[s+1],i);return u[s](n)};return i?e=>c((0,d.clamp)(t[0],t[o-1],e)):c}t.s(["interpolate",()=>v],344230);var y=t.i(100706);function x({duration:t=300,keyframes:s,times:n,ease:r="easeInOut"}){var a;let o,l=(0,i.isEasingArray)(r)?r.map(c):c(r),u={done:!1,value:s[0]},h=v((a=n&&n.length===s.length?n:(!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let n=f(0,e,s);t.push((0,y.mixNumber)(i,1,n))}}(o=[0],s.length-1),o),a.map(e=>e*t)),s,{ease:Array.isArray(l)?l:s.map(()=>l||e.easeInOut).splice(0,s.length-1)});return{calculatedDuration:t,next:e=>(u.value=h(e),u.done=e>=t,u)}}t.s(["keyframes",()=>x],668514)},44573,t=>{"use strict";var e=t.i(29462),i=t.i(668514),s=t.i(373431);let n={decay:e.inertia,inertia:e.inertia,tween:i.keyframes,keyframes:i.keyframes,spring:s.spring};function r(t){"string"==typeof t.type&&(t.type=n[t.type])}t.s(["replaceTransitionType",()=>r])},83352,t=>{"use strict";var e=t.i(738638),i=t.i(476959),s=t.i(763074),n=t.i(496173),r=t.i(504169),a=t.i(203163),o=t.i(
1769308),l=t.i(29462),u=t.i(668514),h=t.i(655529),c=t.i(414229),d=t.i(44573),p=t.i(779294);let m=t=>t/100;class f extends p.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!==n.time.now()&&this.tick(n.time.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},r.activeAnimations.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;(0,d.replaceTransitionType)(t);let{type:i=u.keyframes,repeat:s=0,repeatDelay:n=0,repeatType:r,velocity:o=0}=t,{keyframes:l}=t,c=i||u.keyframes;c!==u.keyframes&&"number"!=typeof l[0]&&(this.mixKeyframes=(0,e.pipe)(m,(0,a.mix)(l[0],l[1])),l=[0,100]);let p=c({...t,keyframes:l});"mirror"===r&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-o})),null===p.calculatedDuration&&(p.calculatedDuration=(0,h.calcGeneratorDuration)(p));let{calculatedDuration:f}=p;this.calculatedDuration=f,this.resolvedDuration=f+n,this.totalDuration=this.resolvedDuration*(s+1)-n,this.generator=p}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:s,totalDuration:n,mixKeyframes:r,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:u}=this;if(null===this.startTime)return s.next(0);let{delay:h=0,keyframes:d,repeat:p,repeatType:m,repeatDelay:f,type:g,onUpdate:v,finalKeyframe:y}=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 x=this.currentTime-h*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?x<0:x>n;this.currentTime=Math.max(x,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let b=this.currentTime,S=s;if(p){let t=Math.min(this.currentTime,n)/o,e=Math.floor(t),s=t%1;!s&&t>=1&&(s=1),1===s&&e--,(e=Math.min(e,p+1))%2&&("reverse"===m?(s=1-s,f&&(s-=f/o)):"mirror"===m&&(S=a)),b=(0,i.clamp)(0,1,s)*o}let w=T?{done:!1,value:d[0]}:S.next(b);r&&(w.value=r(w.value));let{done:P}=w;T||null===u||(P=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let V=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return V&&g!==l.inertia&&(w.value=(0,c.getFinalKeyframe)(d,this.options,y,this.speed)),v&&v(w.value),V&&this.finish(),w}then(t,e){return this.finished.then(t,e)}get duration(){return(0,s.millisecondsToSeconds)(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,s.millisecondsToSeconds)(t)}get time(){return(0,s.millisecondsToSeconds)(this.currentTime)}set time(t){t=(0,s.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(n.time.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,s.millisecondsToSeconds)(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=o.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(n.time.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,r.activeAnimations.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)}}t.s(["JSAnimation",()=>f])},846932,464978,772846,t=>{"use strict";let e,i;var s=t.i(154505),n=t.i(907051),r=t.i(142098),a=t.i(618812),o=t.i(987333),l=t.i(753034),u=t.i(864440),h=t.i(347834),c=t.i(980538),d=t.i(
1716896),p=t.i(763074),m=t.i(846791),f=t.i(260830),g=t.i(496173),v=t.i(83352),y=t.i(414229),x=t.i(921012),T=t.i(476959),b=t.i(368e3),S=t.i(44573),w=t.i(791559),P=t.i(641980);let V={anticipate:t.i(878047).anticipate,backInOut:P.backInOut,circInOut:w.circInOut};class M extends b.NativeAnimation{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in V&&(t.ease=V[t.ease])}(t),(0,S.replaceTransitionType)(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:s,element:n,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new v.JSAnimation({...r,autoplay:!1}),o=Math.max(10,g.time.now()-this.startTime),l=(0,T.clamp)(0,10,o-10);e.setWithVelocity(a.sample(Math.max(0,o-l)).value,a.sample(o).value,l),a.stop()}}var A=t.i(965566),C=t.i(997307),E=t.i(569577);let D=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(E.complex.test(t)||"0"===t)&&!t.startsWith("url("));function k(t){t.duration=0,t.type="keyframes"}var R=t.i(779294),B=t.i(260900);let L=new Set(["opacity","clipPath","filter","transform"]),F=(0,B.memo)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class O extends R.WithPromise{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:n=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=g.time.now();const c={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:n,repeatType:r,name:o,motionValue:l,element:u,...h},d=u?.KeyframeResolver||x.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,s){this.keyframeResolver=void 0;let{name:n,type:r,velocity:a,delay:o,isHandoff:l,onUpdate:u}=i;this.resolvedAt=g.time.now(),!function(t,e,i,s){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],a=D(n,e),o=D(r,e);return(0,A.warning)(a===o,`You are trying to animate ${e} from "${n}" to "${r}". "${a?r:n}" 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||(0,C.isGenerator)(i))&&s)}(t,n,r,a)&&((m.MotionGlobalConfig.instantAnimations||!o)&&u?.((0,y.getFinalKeyframe)(t,i,e)),t[0]=t[t.length-1],k(i),i.repeat=0);let h={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},c=!l&&function(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:r,type:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return F()&&i&&L.has(i)&&("transform"!==i||!l)&&!o&&!s&&"mirror"!==n&&0!==r&&"inertia"!==a}(h),d=h.motionValue?.owner?.current,p=c?new M({...h,element:d}):new v.JSAnimation(h);p.finished.then(()=>{this.notifyFinished()}).catch(f.noop),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}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(),(0,x.flushKeyframeResolvers)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}var j=t.i(157788);let I={type:"spring",stiffness:500,damping:25,restSpeed:10},N={type:"keyframes",duration:.8},U={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},W=t=>null!==t;var $=t.i(287022);let z=(t,e,i,s={},n,r)=>a=>{let l=(0,o.getValueTransition)(s,t)||{}
1,u=l.delay||s.delay||0,{elapsed:h=0}=s;h-=(0,p.secondsToMilliseconds)(u);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:r?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:n,repeat:r,repeatType:a,repeatDelay:o,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(l)&&Object.assign(c,((t,{keyframes:e})=>e.length>2?N:j.transformProps.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:I:U)(t,c)),c.duration&&(c.duration=(0,p.secondsToMilliseconds)(c.duration)),c.repeatDelay&&(c.repeatDelay=(0,p.secondsToMilliseconds)(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(k(c),0===c.delay&&(d=!0)),(m.MotionGlobalConfig.instantAnimations||m.MotionGlobalConfig.skipAnimations||n?.shouldSkipAnimations)&&(d=!0,k(c),c.delay=0),c.allowFlatten=!l.type&&!l.ease,d&&!r&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},s){let n=t.filter(W),r=e&&"loop"!==i&&e%2==1?0:n.length-1;return n[r]}(c.keyframes,l);if(void 0!==t)return void $.frame.update(()=>{c.onUpdate(t),c.onComplete()})}return l.isSync?new v.JSAnimation(c):new O(c)};function G(t,e,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:r,transitionEnd:a,...p}=e,m=t.getDefaultTransition();r=r?(0,l.resolveTransition)(r,m):m;let f=r?.reduceMotion;s&&(r=s);let g=[],v=n&&t.animationState&&t.animationState.getState()[n];for(let e in p){let s=t.getValue(e,t.latestValues[e]??null),n=p[e];if(void 0===n||v&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(v,e))continue;let a={delay:i,...(0,o.getValueTransition)(r||{},e)},l=s.get();if(void 0!==l&&!s.isAnimating&&!Array.isArray(n)&&n===l&&!a.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){let i=(0,d.getOptimisedAppearId)(t);if(i){let t=window.MotionHandoffAnimation(i,e,$.frame);null!==t&&(a.startTime=t,h=!0)}}(0,c.addValueToWillChange)(t,e);let m=f??t.shouldReduceMotion;s.start(z(e,s,n,m&&u.positionalKeys.has(e)?{type:!1}:a,t,h));let y=s.animation;y&&g.push(y)}if(a){let e=()=>$.frame.update(()=>{a&&(0,h.setTarget)(t,a)});g.length?Promise.all(g).then(e):e()}return g}function H(t,e,i,s=0,n=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*s;return"function"==typeof i?i(r,a):1===n?r*s:o-r*s}function K(t,e,i={}){let s=(0,a.resolveVariant)(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);let r=s?()=>Promise.all(G(t,s,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=n;return function(t,e,i=0,s=0,n=0,r=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(K(l,e,{...a,delay:i+("function"==typeof s?0:s)+H(t.variantChildren,l,s,n,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,s,r,a,o,i)}:()=>Promise.resolve(),{when:l}=n;if(!l)return Promise.all([r(),o(i.delay)]);{let[t,e]="beforeChildren"===l?[r,o]:[o,r];return t().then(()=>e())}}var Y=t.i(732525),X=t.i(706840);let q=X.variantProps.length;var Z=t.i(885983),_=t.i(373615);function J(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}let Q=[...X.variantPriorityOrder].reverse(),tt=X.variantPriorityOrder.length;function te(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ti(){return{animate:te(!0),whileInView:te(),whileHover:te(),whileTap:te(),whileDrag:te(),whileFocus:te(),exit:te()}}class ts extends r.Feature{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>
1K(t,e,i)));else if("string"==typeof e)s=K(t,e,i);else{let n="function"==typeof e?(0,a.resolveVariant)(t,e,i.custom):e;s=Promise.all(G(t,n,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=ti(),s=!0,n=!1,r=e=>(i,s)=>{let n=(0,a.resolveVariant)(t,s,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function o(o){let{props:l}=t,u=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<q;t++){let s=X.variantProps[t],n=e.props[s];((0,Y.isVariantLabel)(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},h=[],c=new Set,d={},p=1/0;for(let e=0;e<tt;e++){var m,f;let g=Q[e],v=i[g],y=void 0!==l[g]?l[g]:u[g],x=(0,Y.isVariantLabel)(y),T=g===o?v.isActive:null;!1===T&&(p=e);let b=y===u[g]&&y!==l[g]&&x;if(b&&(s||n)&&t.manuallyAnimateOnMount&&(b=!1),v.protectedKeys={...d},!v.isActive&&null===T||!y&&!v.prevProp||(0,Z.isAnimationControls)(y)||"boolean"==typeof y)continue;if("exit"===g&&v.isActive&&!0!==T){v.prevResolvedValues&&(d={...d,...v.prevResolvedValues});continue}let S=(m=v.prevProp,"string"==typeof(f=y)?f!==m:!!Array.isArray(f)&&!J(f,m)),w=S||g===o&&v.isActive&&!b&&x||e>p&&x,P=!1,V=Array.isArray(y)?y:[y],M=V.reduce(r(g),{});!1===T&&(M={});let{prevResolvedValues:A={}}=v,C={...A,...M},E=e=>{w=!0,c.has(e)&&(P=!0,c.delete(e)),v.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=M[t],i=A[t];if(!d.hasOwnProperty(t))((0,_.isKeyframesTarget)(e)&&(0,_.isKeyframesTarget)(i)?J(e,i):e===i)?void 0!==e&&c.has(t)?E(t):v.protectedKeys[t]=!0:null!=e?E(t):c.add(t)}v.prevProp=y,v.prevResolvedValues=M,v.isActive&&(d={...d,...M}),(s||n)&&t.blockInitialAnimation&&(w=!1);let D=b&&S,k=!D||P;w&&k&&h.push(...V.map(e=>{let i={type:g};if("string"==typeof e&&(s||n)&&!D&&t.manuallyAnimateOnMount&&t.parent){let{parent:s}=t,n=(0,a.resolveVariant)(s,e);if(s.enteringChildren&&n){let{delayChildren:e}=n.transition||{};i.delay=H(s.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(c.size){let e={};if("boolean"!=typeof l.initial){let i=(0,a.resolveVariant)(t,Array.isArray(l.initial)?l.initial[0]:l.initial);i&&i.transition&&(e.transition=i.transition)}c.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=s??null}),h.push({animation:e})}let g=!!h.length;return s&&(!1===l.initial||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,n=!1,g?e(h):Promise.resolve()}return{animateChanges:o,setActive:function(e,s){if(i[e].isActive===s)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,s)),i[e].isActive=s;let n=o(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=ti(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,Z.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?.()}}var tn=r;let tr=0;class ta extends tn.Feature{constructor(){super(...arguments),this.id=tr++}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 s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}var to=r,tl=t.i(130162);function tu(t){return[t("x"),t("y")]}var th=t.i(153689),tc=t.i(27677),td=t.i(100706);function tp(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}let tm={x:!1,y:!1};var tf=t.i(265091);function tg(t){return t.max-t.min}function tv(t,e,i,s=.5){t.origin=s,t.originPoint=(0,td.mixNumber)(e.min,e.max,t.origin),t.scale=tg(i)/tg(e),t.translate=(0,td.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 ty(t,e,i,s){tv(t.x,e.x,i.x,s?s.originX:void 0),tv(t.y,e.y,i.y,s?s.originY:void 0)}function tx(t,e,i){t.min=i.min+e.min,t.max=t.min+tg(e)}function tT(t,e,i){t.min=e.min-i.min,t.max=t.min+tg(e)}function tb(t,e,i){tT(t.x,e.x,i.x),tT(t.y,e.y,i.y)}function tS(t){return"object"==typeof t&&null!==t}function tw(t){return tS(t)&&"ownerSVGElement"in t}function tP(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let s=document;e&&(s=e.current);let n=i?.[t]??s.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t).filter(t=>null!=t)}let tV=new WeakMap,tM=(t,e,i)=>(s,n)=>n&&n[0]?n[0][t+"Size"]:tw(s)&&"getBBox"in s?s.getBBox()[e]:s[i],tA=tM("inline","width","offsetWidth"),tC=tM("block","height","offsetHeight");function tE({target:t,borderBoxSize:e}){tV.get(t)?.forEach(i=>{i(t,{get width(){return tA(t,e)},get height(){return tC(t,e)}})})}function tD(t){t.forEach(tE)}let tk=new Set;function tR(t,s){let n;return"function"==typeof t?(tk.add(t),i||(i=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};tk.forEach(e=>e(t))},window.addEventListener("resize",i)),()=>{tk.delete(t),tk.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(!e&&"u">typeof ResizeObserver&&(e=new ResizeObserver(tD)),(n=tP(t)).forEach(t=>{let i=tV.get(t);i||(i=new Set,tV.set(t,i)),i.add(s),e?.observe(t)}),()=>{n.forEach(t=>{let i=tV.get(t);i?.delete(s),i?.size||e?.unobserve(t)})})}let tB=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),tL=new Set(["INPUT","SELECT","TEXTAREA"]),tF=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tO(t){return{point:{x:t.pageX,y:t.pageY}}}function tj(t,e,i,s){return tp(t,e,t=>tF(t)&&i(t,tO(t)),s)}let tI=({current:t})=>t?t.ownerDocument.defaultView:null;var tN=t.i(325522),tU=t.i(738638);let tW=(t,e)=>Math.abs(t-e),t$=new Set(["auto","scroll"]);class tz{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=tK(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(tW(t.x,e.x)**2+tW(t.y,e.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:r}=i,{timestamp:a}=$.frameData;this.history.push({...r,timestamp:a});let{onStart:o,onMove:l}=this.handlers;s||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=tG(e,this.transformPagePoint),$.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=tK("pointercancel"===t.type?this.lastMoveEventInfo:tG(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),s&&s(t,r)},!tF(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const o=tG(tO(t),this.transformPagePoint),{point:l}=o,{timestamp:u}=$.frameData;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=e;h&&h(t,tK(o,this.history)),this.removeListeners=(0,tU.pipe)(tj(this.contextWindow,"pointermove",this.handlePointerMove),tj(this.contextWindow,"pointerup",this.handlePointerUp),tj(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(t$.has(t.overflowX)||t$.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:s.x-e.x,y:s.y-e.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,s),$.frame.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,$.cancelFrame)(this.updatePoint)}}function tG(t,e){return e?{point:e(t.point)}:t}function tH(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tK({point:t},e){return{point:t,delta:tH(t,tY(e)),offset:tH(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,n=tY(t);for(;i>=0&&(s=t[i],!(n.timestamp-s.timestamp>(0,p.secondsToMilliseconds)(.1)));)i--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&n.timestamp-s.timestamp>
12*(0,p.secondsToMilliseconds)(.1)&&(s=t[1]);let r=(0,p.millisecondsToSeconds)(n.timestamp-s.timestamp);if(0===r)return{x:0,y:0};let a={x:(n.x-s.x)/r,y:(n.y-s.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,.1)}}function tY(t){return t[t.length-1]}var tX=t.i(783920);function tq(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 tZ(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function t_(t,e,i){return{min:tJ(t,e),max:tJ(t,i)}}function tJ(t,e){return"number"==typeof t?t:t[e]||0}let tQ=new WeakMap;class t0{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=(0,tl.createBox)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let n=t=>{e&&this.snapToCursor(tO(t).point),this.stopAnimation()},r=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(tm[t])return null;else return tm[t]=!0,()=>{tm[t]=!1};return tm.x||tm.y?null:(tm.x=tm.y=!0,()=>{tm.x=tm.y=!1})}(i),!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),tu(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tf.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=tg(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&$.frame.update(()=>n(t,e),!1,!0),(0,c.addValueToWillChange)(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(s&&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&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&$.frame.update(()=>r(t,e),!1,!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new tz(t,{onSessionStart:n,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:tI(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:r}=s;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&$.frame.postRender(()=>a(i,s))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!t7(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,td.mixNumber)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,td.mixNumber)(i,t,s.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),n.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,s=this.constraints;t&&(0,tN.isRefObject)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:tq(t.x,i,n),y:tq(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:t_(t,"left","right"),y:t_(t,"top","bottom")}}(e),s!==this.constraints&&!(0,tN.isRefObject)(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&tu(t=>{var e,s;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],n={},void 0!==s.min&&(n.min=s.min-e.min),void 0!==s.max&&(n.max=s.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,tN.isRefObject)(e))return!1;let s=e.current;(0,A.invariant)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let r=(0,th.measurePageBox)(s,n.root,this.visualElement.getTransformPagePoint()),a=(t=n.layout.layoutBox,{x:tZ(t.x,r.x),y:tZ(t.y,r.y)});if(i){let t=i((0,tc.convertBoxToBoundingBox)(a));this.hasMutatedConstraints=!!t,t&&(a=(0,tc.convertBoundingBoxToBox)(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(tu(a=>{if(!t7(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:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,c.addValueToWillChange)(this.visualElement,t),i.start(z(t,i,0,e,this.visualElement,!1))}stopAnimation(){tu(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){tu(e=>{let{drag:i}=this.getProps();if(!t7(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:r}=s.layout.layoutBox[e],a=n.get()||0;n.set(t[e]-(0,td.mixNumber)(i,r,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,tN.isRefObject)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};tu(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let r,a,o,l=e.get();s[t]=(i={min:l,max:l},n=this.constraints[t],r=.5,a=tg(i),(o=tg(n))>a?r=(0,tX.progress)(n.min,n.max-a,i.min):a>o&&(r=(0,tX.progress)(i.min,i.max-o,n.min)),(0,T.clamp)(0,1,r))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),tu(e=>{if(!t7(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:r}=this.constraints[e];i.set((0,td.mixNumber)(n,r,s[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;tQ.set(this.visualElement,this);let e=this.visualElement.current,i=tj(e,"pointerdown",t=>{let{drag:i,dragListener:s=!0}
1=this.getProps(),n=t.target,r=n!==e&&(tL.has(n.tagName)||!0===n.isContentEditable);i&&s&&!r&&this.start(t)}),s=()=>{var i,s,n;let r,a,{dragConstraints:o}=this.getProps();(0,tN.isRefObject)(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,s=o.current,r=tR(i,t1(n=()=>this.scalePositionWithinConstraints())),a=tR(s,t1(n)),t=()=>{r(),a()}))},{projection:n}=this.visualElement,r=n.addEventListener("measure",s);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),$.frame.read(s);let a=tp(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(tu(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{a(),i(),r(),o&&o(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:a}}}function t1(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function t7(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class t6 extends to.Feature{constructor(t){super(t),this.removeGroupControls=f.noop,this.removeListeners=f.noop,this.controls=new t0(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||f.noop}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}var t5=r;let t4=t=>(e,i)=>{t&&$.frame.update(()=>t(e,i),!1,!0)};class t9 extends t5.Feature{constructor(){super(...arguments),this.removePointerDownListener=f.noop}onPointerDown(t){this.session=new tz(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tI(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:t4(t),onStart:t4(e),onMove:t4(i),onEnd:(t,e)=>{delete this.session,s&&$.frame.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=tj(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var t2=t.i(843476);let t3={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var t8=t.i(560140),et=t.i(271645),ee=t.i(821476);function ei(t=!0){let e=(0,et.useContext)(ee.PresenceContext);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:n}=e,r=(0,et.useId)();(0,et.useEffect)(()=>{if(t)return n(r)},[t]);let a=(0,et.useCallback)(()=>t&&s&&s(r),[r,s,t]);return!i&&s?[!1,a]:[!0]}t.s(["usePresence",()=>ei],464978);var es=t.i(231178),en=t.i(104035);let er=!1;class ea extends et.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),er&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),t3.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,{projection:r}=i;return r&&(r.isPresent=n,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),er=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==n?r.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?r.promote():r.relegate()||$.frame.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),t8.microtask.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;er=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function eo(t){let[e,i]=ei(),s=(0,et.useContext)(es.LayoutGroupContext);return(0,t2.jsx)(ea,{...t,layoutGroup:s,switchLayoutGroup:(0,et.useContext)(en.SwitchLayoutGroupContext),isPresent:e,safeToRemove:i})}var el=t.i(570596),eu=t.i(486427),eh=t.i(83411),ec=t.i(924463),ed=t.i(504169),ep=t.i(880248),em=t.i(733871);let ef=["TopLeft","TopRight","BottomLeft","BottomRight"],eg=ef.length,ev=t=>"string"==typeof t?parseFloat(t):t,ey=t=>"number"==typeof t||tf.px.test(t);function ex(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let eT=eS(0,.5,w.circOut),eb=eS(.5,.95,f.noop);function eS(t,e,i){return s=>s<t?0:s>e?1:i((0,tX.progress)(t,e,s))}function ew(t,e){t.min=e.min,t.max=e.max}function eP(t,e){ew(t.x,e.x),ew(t.y,e.y)}function eV(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var eM=t.i(135636);function eA(t,e,i,s,n){return t-=e,t=(0,eM.scalePoint)(t,1/i,s),void 0!==n&&(t=(0,eM.scalePoint)(t,1/n,s)),t}function eC(t,e,[i,s,n],r,a){!function(t,e=0,i=1,s=.5,n,r=t,a=t){if(tf.percent.test(e)&&(e=parseFloat(e),e=(0,td.mixNumber)(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=(0,td.mixNumber)(r.min,r.max,s);t===r&&(o-=e),t.min=eA(t.min,e,i,o,n),t.max=eA(t.max,e,i,o,n)}(t,e[i],e[s],e[n],e.scale,r,a)}let eE=["x","scaleX","originX"],eD=["y","scaleY","originY"];function ek(t,e,i,s){eC(t.x,e,eE,i?i.x:void 0,s?s.x:void 0),eC(t.y,e,eD,i?i.y:void 0,s?s.y:void 0)}function eR(t){return 0===t.translate&&1===t.scale}function eB(t){return eR(t.x)&&eR(t.y)}function eL(t,e){return t.min===e.min&&t.max===e.max}function eF(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function eO(t,e){return eF(t.x,e.x)&&eF(t.y,e.y)}function ej(t){return tg(t.x)/tg(t.y)}function eI(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var eN=t.i(133887);class eU{constructor(){this.members=[]}add(t){(0,eN.addUniqueItem)(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let s=i.instance;s&&!1!==s.isConnected||i.snapshot||((0,eN.removeItem)(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if((0,eN.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)}
1}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:s}=i.options,{layoutDependency:n}=t.options;(void 0===s||s!==n)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let eW=(t,e)=>t.depth-e.depth;class e${constructor(){this.children=[],this.isDirty=!1}add(t){(0,eN.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,eN.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eW),this.isDirty=!1,this.children.forEach(t)}}var ez=t.i(177777);let eG={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},eH=["","X","Y","Z"],eK=0;function eY(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function eX({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=eK++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ep.statsBuffer.value&&(eG.nodes=eG.calculatedTargetDeltas=eG.calculatedProjections=0),this.nodes.forEach(e_),this.nodes.forEach(e5),this.nodes.forEach(e4),this.nodes.forEach(eJ),ep.statsBuffer.addProjectionMetrics&&ep.statsBuffer.addProjectionMetrics(eG)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=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 e$)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new el.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=tw(e)&&!(tw(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=0,n=()=>this.root.updateBlockedByResize=!1;$.frame.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==s){let e,r;s=t,this.root.updateBlockedByResize=!0,i&&i(),e=g.time.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&((0,$.cancelFrame)(r),n(i-250))},$.frame.setup(r,!0),i=()=>(0,$.cancelFrame)(r),t3.hasAnimatedSinceResize&&(t3.hasAnimatedSinceResize=!1,this.nodes.forEach(e6))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||ie,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=n.getProps(),u=!this.targetLayout||!eO(this.targetLayout,s),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,o.getValueTransition)(r,"layout"),onPlay:a,onComplete:l};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||e6(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}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(),(0,$.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(e9),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 t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=(0,d.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",$.frame,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(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 s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(e0);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(e1);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(e7),this.nodes.forEach(eq),this.nodes.forEach(eZ)):this.nodes.forEach(e1),this.clearAllSnapshots();let t=g.time.now();$.frameData.delta=(0,T.clamp)(0,1e3/60,t-$.frameData.timestamp),$.frameData.timestamp=t,$.frameData.isProcessing=!0,$.frameSteps.update.process($.frameData),$.frameSteps.preRender.process($.frameData),$.frameSteps.render.process($.frameData),$.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,t8.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(eQ),this.sharedNodes.forEach(e2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,$.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){$.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||tg(this.snapshot.measuredBox.x)||tg(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++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=(0,tl.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=s(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(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!eB(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,ez.hasTransform)(this.latestValues)||r)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),ir((e=s).x),ir(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,tl.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(io))){let{scroll:t}=this.root;t&&((0,eM.translateAxis)(e.x,t.offset.x),(0,eM.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,tl.createBox)();if(eP(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:r}=s;s!==this.root&&n&&r.layoutScroll&&(n.wasRoot&&eP(e,t),(0,eM.translateAxis)(e.x,n.offset.x),(0,eM.translateAxis)(e.y,n.offset.y))}return e}applyTransform(t,e=!1){let i=(0,tl.createBox)();eP(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(0,eM.transformBox)(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,ez.hasTransform)(s.latestValues)&&(0,eM.transformBox)(i,s.latestValues)}return(0,ez.hasTransform)(this.latestValues)&&(0,eM.transformBox)(i,this.latestValues),i}removeTransform(t){let e=(0,tl.createBox)();eP(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,ez.hasTransform)(i.latestValues))continue;(0,ez.hasScale)(i.latestValues)&&i.updateSnapshot();let s=(0,tl.createBox)();eP(s,i.measurePageBox()),ek(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return(0,ez.hasTransform)(this.latestValues)&&ek(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!==$.frameData.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;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:n}=this.options;if(!this.layout||!(s||n))return;this.resolvedRelativeTargetAt=$.frameData.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,tl.createBox)(),this.targetWithTransforms=(0,tl.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,tx(a.x,o.x,l.x),tx(a.y,o.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):eP(this.target,this.layout.layoutBox),(0,eM.applyBoxDelta)(this.target,this.targetDelta)):eP(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0),ep.statsBuffer.value&&eG.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||(0,ez.hasScale)(this.parent.latestValues)||(0,ez.has2DTranslate)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,tl.createBox)(),this.relativeTargetOrigin=(0,tl.createBox)(),tb(this.relativeTargetOrigin,e,i),eP(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===$.frameData.timestamp&&(i=!1),i)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;eP(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;(0,eM.applyTreeDeltas)(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=(0,tl.createBox)());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(eV(this.prevProjectionDelta.x,this.projectionDelta.x),eV(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),ty(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&eI(this.projectionDelta.x,this.prevProjectionDelta.x)&&eI(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),ep.statsBuffer.value&&eG.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=(0,tl.createDelta)(),this.projectionDelta=(0,tl.createDelta)(),this.projectionDeltaWithTransform=(0,tl.createDelta)()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,n=s?s.latestValues:{},r={...this.latestValues},a=(0,tl.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=(0,tl.createBox)(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(it));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(e3(a.x,t.x,s),e3(a.y,t.y,s),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,m,f,g;tb(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=o,g=s,e8(p.x,m.x,f.x,g),e8(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,d=i,eL(u.x,d.x)&&eL(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,tl.createBox)()),eP(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,s,n,r){n?(t.opacity=(0,td.mixNumber)(0,i.opacity??1,eT(s)),t.opacityExit=(0,td.mixNumber)(e.opacity??1,0,eb(s))):r&&(t.opacity=(0,td.mixNumber)(e.opacity??1,i.opacity??1,s));for(let n=0;n<eg;n++){let r=`border${ef[n]}Radius`,a=ex(e,r),o=ex(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||ey(a)===ey(o)?(t[r]=Math.max((0,td.mixNumber)(ev(a),ev(o),s),0),(tf.percent.test(o)||tf.percent.test(a))&&(t[r]+="%")):t[r]=o)}(e.rotate||i.rotate)&&(t.rotate=(0,td.mixNumber)(e.rotate||0,i.rotate||0,s))}(r,n,this.latestValues,s,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,$.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$.frame.update(()=>{var e,i,s;let n;t3.hasAnimatedSinceResize=!0,ed.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,eu.motionValue)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],s={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{ed.activeAnimations.layout--},onComplete:()=>{ed.activeAnimations.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(n=(0,eh.isMotionValue)(e)?e:(0,eu.motionValue)(e)).start(z("",n,i,s)),n.animation),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:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&ia(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,tl.createBox)();let e=tg(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=tg(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}eP(e,i),(0,eM.transformBox)(e,n),ty(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new eU),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.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 s={};i.z&&eY("z",t,s,this.animationValues);for(let e=0;e<eH.length;e++)eY(`rotate${eH[e]}`,t,s,this.animationValues),eY(`skew${eH[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[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=(0,em.resolveMotionValue)(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,em.resolveMotionValue)(e?.pointerEvents)||""),this.hasProjected&&!(0,ez.hasTransform)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let s="",n=t.x.translate/e.x,r=t.y.translate/e.y,a=i?.z||0;if((n||r||a)&&(s=`translate3d(${n}px, ${r}px, ${a}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:r,skewX:a,skewY:o}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotateX(${n}deg) `),r&&(s+=`rotateY(${r}deg) `),a&&(s+=`skewX(${a}deg) `),o&&(s+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(s+=`scale(${o}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(r=i(n,r)),t.transform=r;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,s.animationValues?t.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,ec.scaleCorrectors){if
1(void 0===n[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=ec.scaleCorrectors[e],l="none"===r?n[e]:i(n[e],s);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=s===this?(0,em.resolveMotionValue)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(e0),this.root.sharedNodes.clear()}}}function eq(t){t.updateLayout()}function eZ(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,r=e.source!==t.layout.source;"size"===n?tu(t=>{let s=r?e.measuredBox[t]:e.layoutBox[t],n=tg(s);s.min=i[t].min,s.max=s.min+n}):ia(n,e.layoutBox,i)&&tu(s=>{let n=r?e.measuredBox[s]:e.layoutBox[s],a=tg(i[s]);n.max=n.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+a)});let a=(0,tl.createDelta)();ty(a,i,e.layoutBox);let o=(0,tl.createDelta)();r?ty(o,t.applyTransform(s,!0),e.measuredBox):ty(o,i,e.layoutBox);let l=!eB(a),u=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let a=(0,tl.createBox)();tb(a,e.layoutBox,n.layoutBox);let o=(0,tl.createBox)();tb(o,i,r.layoutBox),eO(a,o)||(u=!0),s.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=s)}}}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 e_(t){ep.statsBuffer.value&&eG.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function eJ(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function eQ(t){t.clearSnapshot()}function e0(t){t.clearMeasurements()}function e1(t){t.isLayoutDirty=!1}function e7(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function e6(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function e5(t){t.resolveTargetDelta()}function e4(t){t.calcProjection()}function e9(t){t.resetSkewAndRotation()}function e2(t){t.removeLeadSnapshot()}function e3(t,e,i){t.translate=(0,td.mixNumber)(e.translate,0,i),t.scale=(0,td.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function e8(t,e,i,s){t.min=(0,td.mixNumber)(e.min,i.min,s),t.max=(0,td.mixNumber)(e.max,i.max,s)}function it(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ie={duration:.45,ease:[.4,0,.1,1]},ii=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),is=ii("applewebkit/")&&!ii("chrome/")?Math.round:f.noop;function ir(t){t.min=is(t.min),t.max=is(t.max)}function ia(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(ej(e)-ej(i)))}function io(t){return t!==t.root&&t.scroll?.wasRoot}let il=eX({attachResizeListener:(t,e)=>tp(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),iu={current:void 0},ih=eX({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!iu.current){let t=new il({});t.mount(window),t.setOptions({layoutScroll:!0}),iu.current=t}return iu.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var ic=r;function id(t,e){let i=tP(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function ip(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&$.frame.postRender(()=>n(e,tO(e)))}class im extends ic.Feature{mount(){let{current:t}=this.node;
1t&&(this.unmount=function(t,e,i={}){let[s,n,r]=id(t,i);return s.forEach(t=>{let i,s=!1,r=!1,a=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},o=t=>{s=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),r&&(r=!1,a(t))},l=t=>{if("touch"!==t.pointerType){if(s){r=!0;return}a(t)}};t.addEventListener("pointerenter",s=>{if("touch"===s.pointerType||tm.x||tm.y)return;r=!1;let a=e(t,s);"function"==typeof a&&(i=a,t.addEventListener("pointerleave",l,n))},n),t.addEventListener("pointerdown",()=>{s=!0,window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",o,n)},n)}),r}(t,(t,e)=>(ip(this.node,e,"Start"),t=>ip(this.node,t,"End"))))}unmount(){}}var ig=r;class iv extends ig.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=(0,tU.pipe)(tp(this.node.current,"focus",()=>this.onFocus()),tp(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var iy=r;function ix(t){return tS(t)&&"offsetHeight"in t}t.s(["isHTMLElement",()=>ix],772846);let iT=(t,e)=>!!e&&(t===e||iT(t,e.parentElement)),ib=new WeakSet;function iS(t){return e=>{"Enter"===e.key&&t(e)}}function iw(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function iP(t){return tF(t)&&!(tm.x||tm.y)}let iV=new WeakSet;function iM(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&$.frame.postRender(()=>n(e,tO(e)))}class iA extends iy.Feature{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[s,n,r]=id(t,i),a=t=>{let s=t.currentTarget;if(!iP(t)||iV.has(t))return;ib.add(s),i.stopPropagation&&iV.add(t);let r=e(s,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),ib.has(s)&&ib.delete(s),iP(t)&&"function"==typeof r&&r(t,{success:e})},o=t=>{a(t,s===window||s===document||i.useGlobalTarget||iT(s,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",l,n)};return s.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",a,n),ix(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=iS(()=>{if(ib.has(i))return;iw(i,"down");let t=iS(()=>{iw(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>iw(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,n)),tB.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(iM(this.node,e,"Start"),(t,{success:e})=>iM(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}var iC=r;let iE=new WeakMap,iD=new WeakMap,ik=t=>{let e=iE.get(t.target);e&&e(t)},iR=t=>{t.forEach(ik)},iB={some:0,all:1};class iL extends iC.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:r="some",once:a}=i,o={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:iB[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,a&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=e?i:s;n&&n(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;iD.has(i)||iD.set(i,{});let s=iD.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(iR,{root:t,...e})),s[n]}(o),iE.set(t,l),e.observe(t),()=>{iE.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let iF=(0,n.createMotionProxy)({animation:{Feature:ts},exit:{Feature:ta},inView:{Feature:iL},tap:{Feature:iA},focus:{Feature:iv},hover:{Feature:im},pan:{Feature:t9},drag:{Feature:t6,ProjectionNode:ih,MeasureLayout:eo},layout:{ProjectionNode:ih,MeasureLayout:eo}},s.createDomVisualElement);t.s(["motion",()=>iF],846932)}]);

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.