PageSourceSearch

https://www.syrin.ai/_next/static/chunks/1b45bae3d32d9dd3.js

js syrin.ai collected 2026-10-05 14:36:33 UTC 106,380 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,81296,49587,72696,89234,45504,64440,84061,77942,t=>{"use strict";let e=t=>180*t/Math.PI,i=t=>n(e(Math.atan2(t[1],t[0]))),s={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:i,rotateZ:i,skewX:t=>e(Math.atan(t[1])),skewY:t=>e(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},n=t=>((t%=360)<0&&(t+=360),t),r=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),o=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),a={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:r,scaleY:o,scale:t=>(r(t)+o(t))/2,rotateX:t=>n(e(Math.atan2(t[6],t[5]))),rotateY:t=>n(e(Math.atan2(-t[2],t[0]))),rotateZ:i,rotate:i,skewX:t=>e(Math.atan(t[4])),skewY:t=>e(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function l(t){return+!!t.includes("scale")}function h(t,e){let i,n;if(!t||"none"===t)return l(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=a,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=s,n=e}if(!n)return l(e);let o=i[e],h=n[1].split(",").map(c);return"function"==typeof o?o(h):h[o]}let u=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return h(i,e)};function c(t){return parseFloat(t.trim())}function d({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function m({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function p(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}}t.s(["defaultTransformValue",()=>l,"parseValueFromTransform",()=>h,"readTransformValue",()=>u],81296),t.s(["convertBoundingBoxToBox",()=>d,"convertBoxToBoundingBox",()=>m,"transformBoxPoints",()=>p],49587);var f=t.i(706);function v(t){return void 0===t||1===t}function y({scale:t,scaleX:e,scaleY:i}){return!v(t)||!v(e)||!v(i)}function g(t){return y(t)||x(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function x(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function T(t,e,i){return i+e*(t-i)}function P(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}function S(t,e=0,i=1,s,n){t.min=P(t.min,e,i,s,n),t.max=P(t.max,e,i,s,n)}function w(t,{x:e,y:i}){S(t.x,e.translate,e.scale,e.originPoint),S(t.y,i.translate,i.scale,i.originPoint)}function V(t,e,i,s=!1){let n,r,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){r=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&M(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,w(t,r)),s&&g(n.latestValues)&&M(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 A(t,e,i,s,n=.5){let r=(0,f.mixNumber)(t.min,t.max,n);S(t,e,i,r,s)}function M(t,e){A(t.x,e.x,e.scaleX,e.scale,e.originX),A(t.y,e.y,e.scaleY,e.scale,e.originY)}function E(t,e){return d(p(t.getBoundingClientRect(),e))}function D(t,e,i){let s=E(t,i),{scroll:n}=e;return n&&(b(s.x,n.offset.x),b(s.y,n.offset.y)),s}t.s(["has2DTranslate",()=>x,"hasScale",()=>y,"hasTransform",()=>g],72696),t.s(["applyBoxDelta",()=>w,"applyTreeDeltas",()=>V,"scalePoint",()=>T,"transformBox",()=>M,"translateAxis",()=>b],89234),t.s(["measurePageBox",()=>D,"measureViewportBox",()=>E],45504);let C=new Set(["width","height","top","left","right","bottom",...t.i(57788).transformPropOrder]);t.s(["positionalKeys",()=>C],64440);var k=t.i(76307),R=t.i(65091);let L=t=>e=>e.test(t);t.s(["testValueType",()=>L],84061);let B=[k.number,R.px,R.percent,R.degrees,R.vw,R.vh,{test:t=>"auto"===t,parse:t=>t}],j=t=>B.find(L(t));t.s(["dimensionValueTypes",()=>B,"findDimensionValueType",()=>j],77942)},65566,82302,t=>{"use strict";var e=t.i(47167);function i(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}t.s(["formatErrorMessage",()=>i],82302);let s=()=>{},n=()=>{};e.default,t.s(["invariant",()=>n,"warning",()=>s],65566)},46932,72590,84015,11485,60830,46791,7127,80248,51571,87022,21012,47507,3973,75554,46436,96173,33887,70596,25791,86427,66538,60140,81699,92968,57036,57044,78310,54505,87333,97989,67369,43116,38638,63074,4169,48393,8618,70258,33002,19568,3163,56512,66857,21748,73431,29462,40254,37025,93544,70165,30151,41980,78047,91559,60855,32943,83920,44230,15932,15923,45704,68514,83352,34474,94581,60900,30551,83911,53396,16869,39435,20888,35474,97307,46833,68e3,92464,78866,42062,6327,45161,23070,19880,39676,37541,26368,41327,65536,61175,61054,83662,89026,36331,69122,91305,49048,46816,8648,98720,42269,8149,54292,t=>{"use strict";let e,i;var s=t.i(71645),n=t.i(57788),r=t.i(81296),o=t.i(19928),a=t.i(45504),l=t.i(64440),h=t.i(77942),u=t.i(65566);let c=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);t.s(["isNumericalString",()=>c],72590);let d=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function m(t){let e=d.exec(t);if(!e)return[,];let[,i,s,n]=e;return[`--${i??s}`,n]}
1function p(t,e,i=1){(0,u.invariant)(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[s,n]=m(t);if(!s)return;let r=window.getComputedStyle(e).getPropertyValue(s);if(r){let t=r.trim();return c(t)?parseFloat(t):t}return(0,o.isCSSVariableToken)(n)?p(n,e,i+1):n}function f(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}t.s(["getVariableValue",()=>p,"parseCSSVariable",()=>m],84015),t.s(["fillWildcards",()=>f],11485);var v=t.i(76307),y=t.i(65091);let g=t=>t===v.number||t===y.px,x=new Set(["x","y","z"]),T=n.transformPropOrder.filter(t=>!x.has(t)),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})=>(0,r.parseValueFromTransform)(e,"x"),y:(t,{transform:e})=>(0,r.parseValueFromTransform)(e,"y")};P.translateX=P.x,P.translateY=P.y;let S=t=>t;t.s(["noop",()=>S],60830);let w={};t.s(["MotionGlobalConfig",()=>w],46791);let V=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];t.s(["stepsOrder",()=>V],7127);let b={value:null,addProjectionMetrics:null};function A(t,e){let i=!1,s=!0,n={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,o=V.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,s=new Set,n=!1,r=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function h(e){o.has(e)&&(u.schedule(e),t()),l++,e(a)}let u={schedule:(t,e=!1,r=!1)=>{let a=r&&n?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(a=t,n){r=!0;return}n=!0,[i,s]=[s,i],i.forEach(h),e&&b.value&&b.value.frameloop[e].push(l),l=0,i.clear(),n=!1,r&&(r=!1,u.process(t))}};return u}(r,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:h,preUpdate:u,update:c,preRender:d,render:m,postRender:p}=o,f=()=>{let r=w.useManualTiming?n.timestamp:performance.now();i=!1,w.useManualTiming||(n.delta=s?1e3/60:Math.max(Math.min(r-n.timestamp,40),1)),n.timestamp=r,n.isProcessing=!0,a.process(n),l.process(n),h.process(n),u.process(n),c.process(n),d.process(n),m.process(n),p.process(n),n.isProcessing=!1,i&&e&&(s=!1,t(f))};return{schedule:V.reduce((e,r)=>{let a=o[r];return e[r]=(e,r=!1,o=!1)=>(!i&&(i=!0,s=!0,n.isProcessing||t(f)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;e<V.length;e++)o[V[e]].cancel(t)},state:n,steps:o}}t.s(["statsBuffer",()=>b],80248),t.s(["createRenderBatcher",()=>A],51571);let{schedule:M,cancel:E,state:D,steps:C}=A("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:S,!0);t.s(["cancelFrame",()=>E,"frame",()=>M,"frameData",()=>D,"frameSteps",()=>C],87022);let k=new Set,R=!1,L=!1,B=!1;function j(){if(L){let t=Array.from(k).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,s=(e=[],T.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e);s.length&&(i.set(t,s),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)})}L=!1,R=!1,k.forEach(t=>t.complete(B)),k.clear()}function F(){k.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(L=!0)})}function O(){B=!0,F(),j(),B=!1}class I{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?(k.add(this),R||(R=!0,M.read(F),M.resolveKeyframes(j))):(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])}f(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),k.delete(this)}cancel(){"scheduled"===this.state&&(k.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}t.s(["KeyframeResolver",()=>I,"flushKeyframeResolvers",()=>O],21012);let N=t=>/^0[^.\s]+$/u.test(t);t.s(["isZeroValueString",()=>N],47507);var U=t.i(69577),$=t.i(30677);let W=new Set(["brightness","contrast","saturate","opacity"]);function K(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match($.floatRegex)||[];
1if(!s)return t;let n=i.replace(s,""),r=+!!W.has(e);return s!==i&&(r*=100),e+"("+r+n+")"}let z=/\b([a-z-]*)\(.*?\)/gu,G={...U.complex,getAnimatableNone:t=>{let e=t.match(z);return e?e.map(K).join(" "):t}};var Y=t.i(79444);let H={...t.i(34929).numberValueTypes,color:Y.color,backgroundColor:Y.color,outlineColor:Y.color,fill:Y.color,stroke:Y.color,borderColor:Y.color,borderTopColor:Y.color,borderRightColor:Y.color,borderBottomColor:Y.color,borderLeftColor:Y.color,filter:G,WebkitFilter:G},X=t=>H[t];function q(t,e){let i=X(t);return i!==G&&(i=U.complex),i.getAnimatableNone?i.getAnimatableNone(e):void 0}t.s(["defaultValueTypes",()=>H,"getDefaultValueType",()=>X],3973),t.s(["getAnimatableNone",()=>q],75554);let _=new Set(["auto","none","0"]);class Z extends I{constructor(t,e,i,s,n){super(t,e,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let s=t[i];if("string"==typeof s&&(s=s.trim(),(0,o.isCSSVariableToken)(s))){let n=p(s,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!l.positionalKeys.has(i)||2!==t.length)return;let[s,n]=t,r=(0,h.findDimensionValueType)(s),a=(0,h.findDimensionValueType)(n);if((0,o.containsCSSVariable)(s)!==(0,o.containsCSSVariable)(n)&&P[i]){this.needsMeasurement=!0;return}if(r!==a)if(g(r)&&g(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else P[i]&&(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||N(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&&!_.has(e)&&(0,U.analyseComplexValue)(e).values.length&&(s=t[n]),n++}if(s&&i)for(let n of e)t[n]=q(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=P[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]=P[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",()=>Z],46436);var J=t.i(83411);function Q(){e=void 0}t.i(47167);let tt={now:()=>(void 0===e&&tt.set(D.isProcessing||w.useManualTiming?D.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(Q)}};function te(t,e){-1===t.indexOf(e)&&t.push(e)}function ti(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function ts([...t],e,i){let s=e<0?t.length+e:e;if(s>=0&&s<t.length){let s=i<0?t.length+i:i,[n]=t.splice(e,1);t.splice(s,0,n)}return t}t.s(["time",()=>tt],96173),t.s(["addUniqueItem",()=>te,"moveItem",()=>ts,"removeItem",()=>ti],33887);class tn{constructor(){this.subscriptions=[]}add(t){return te(this.subscriptions,t),()=>ti(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}}function tr(t,e){return e?1e3/e*t:0}t.s(["SubscriptionManager",()=>tn],70596),t.s(["velocityPerSecond",()=>tr],25791);let to={current:void 0};class ta{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=tt.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=tt.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,e){this.events[t]||(this.events[t]=new tn);let i=this.events[t].add(e);return"change"===t?()=>{i(),M.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return to.current&&to.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=tt.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tr(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 tl(t,e){return new ta(t,e)}t.s(["MotionValue",()=>ta,"collectMotionValues",()=>to,"motionValue",()=>tl],86427);var th=t.i(84061);let tu=[...h.dimensionValueTypes,Y.color,U.complex],tc=t=>tu.find((0,th.testValueType)(t));t.s(["findValueType",()=>tc],66538);let{schedule:td,cancel:tm}=A(queueMicrotask,!1);t.s(["cancelMicrotask",()=>tm,"microtask",()=>td],60140);var tp=t.i(76948);let tf=()=>({translate:0,scale:1,origin:0,originPoint:0}),tv=()=>({x:tf(),y:tf()}),ty=()=>({min:0,max:0}),tg=()=>({x:ty(),y:ty()});t.s(["createBox",()=>tg,"createDelta",()=>tv],81699);var tx=t.i(22875),tT=t.i(96097);let tP=new WeakMap;t.s(["visualElementStore",()=>tP],92968);var tS=t.i(98922),tw=t.i(43190);let tV=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];
1class tb{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:n,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=I,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=tt.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,M.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=r;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=o,this.blockInitialAnimation=!!n,this.isControllingVariants=(0,tS.isControllingVariants)(e),this.isVariantNode=(0,tS.isVariantNode)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...u}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in u){const e=u[t];void 0!==a[t]&&(0,J.isMotionValue)(e)&&e.set(a[t])}}mount(t){this.current=t,tP.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tT.hasReducedMotionListener.current||(0,tx.initPrefersReducedMotion)(),this.shouldReduceMotion=tT.prefersReducedMotion.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),E(this.notifyUpdate),E(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let s=n.transformProps.has(t);s&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&M.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});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 tp.featureDefinitions){let e=tp.featureDefinitions[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];e.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):tg()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<tV.length;e++){let i=tV[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}
1this.prevMotionValues=function(t,e,i){for(let s in e){let n=e[s],r=i[s];if((0,J.isMotionValue)(n))t.addValue(s,n);else if((0,J.isMotionValue)(r))t.addValue(s,tl(n,{owner:t}));else if(r!==n)if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(s);t.addValue(s,tl(void 0!==e?e:n,{owner:t}))}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=tl(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(c(i)||N(i))?i=parseFloat(i):!tc(i)&&U.complex.test(e)&&(i=q(t,e)),this.setBaseTarget(t,(0,J.isMotionValue)(i)?i.get():i)),(0,J.isMotionValue)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let s=(0,tw.resolveVariantFromProps)(this.props,i,this.presenceContext?.custom);s&&(e=s[t])}if(i&&void 0!==e)return e;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,J.isMotionValue)(s)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new tn),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){td.render(this.render)}}t.s(["VisualElement",()=>tb],57036);class tA extends tb{constructor(){super(...arguments),this.KeyframeResolver=Z}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,J.isMotionValue)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}var tM=t.i(58768);function tE(t,{style:e,vars:i},s,n){let r,o=t.style;for(r in e)o[r]=e[r];for(r in n?.applyProjectionStyles(o,s),i)o.setProperty(r,i[r])}var tD=t.i(32313);class tC extends tA{constructor(){super(...arguments),this.type="html",this.renderInstance=tE}readValueFromInstance(t,e){if(n.transformProps.has(e))return this.projection?.isProjecting?(0,r.defaultTransformValue)(e):(0,r.readTransformValue)(t,e);{let i=window.getComputedStyle(t),s=((0,o.isCSSVariableName)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,a.measureViewportBox)(t,e)}build(t,e,i){(0,tM.buildHTMLStyles)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,tD.scrapeMotionValuesFromProps)(t,e,i)}}t.s(["HTMLVisualElement",()=>tC],57044);var tk=t.i(61252),tR=t.i(33203);let tL=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"]);var tB=t.i(50514),tj=t.i(25954);class tF extends tA{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tg}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(n.transformProps.has(e)){let t=X(e);return t&&t.default||0}return e=tL.has(e)?e:(0,tk.camelToDash)(e),t.getAttribute(e)}
1scrapeMotionValuesFromProps(t,e,i){return(0,tj.scrapeMotionValuesFromProps)(t,e,i)}build(t,e,i){(0,tR.buildSVGAttrs)(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){for(let i in tE(t,e,void 0,s),e.attrs)t.setAttribute(tL.has(i)?i:(0,tk.camelToDash)(i),e.attrs[i])}mount(t){this.isSVGTag=(0,tB.isSVGTag)(t.tagName),super.mount(t)}}t.s(["SVGVisualElement",()=>tF],78310);var tO=t.i(44966);let tI=(t,e)=>e.isSVG??(0,tO.isSVGComponent)(t)?new tF(e):new tC(e,{allowProjection:t!==s.Fragment});t.s(["createDomVisualElement",()=>tI],54505);var tN=t.i(7051),tU=t.i(44974);function t$(t,e,i){let s=t.getProps();return(0,tw.resolveVariantFromProps)(s,e,void 0!==i?i:s.custom,t)}function tW(t,e){return t?.[e]??t?.default??t}t.s(["getValueTransition",()=>tW],87333);let tK=t=>Array.isArray(t);function tz(t,e){let{transitionEnd:i={},transition:s={},...n}=t$(t,e)||{};for(let e in n={...n,...i}){var r;let i=tK(r=n[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,tl(i))}}function tG(t,e){let i=t.getValue("willChange");if((0,J.isMotionValue)(i)&&i.add)return i.add(e);if(!i&&w.WillChange){let i=new w.WillChange("auto");t.addValue("willChange",i),i.add(e)}}t.s(["setTarget",()=>tz],97989);var tY=t.i(79386);function tH(t){return t.props[tY.optimizedAppearDataAttribute]}function tX(t){t.duration=0,t.type="keyframes"}t.s(["getOptimisedAppearId",()=>tH],67369),t.s(["makeAnimationInstant",()=>tX],43116);let tq=(t,e)=>i=>e(t(i)),t_=(...t)=>t.reduce(tq);t.s(["pipe",()=>t_],38638);var tZ=t.i(76959);let tJ=t=>1e3*t,tQ=t=>t/1e3;t.s(["millisecondsToSeconds",()=>tQ,"secondsToMilliseconds",()=>tJ],63074);let t0={layout:0,mainThread:0,waapi:0};t.s(["activeAnimations",()=>
1t0],4169);var t1=t.i(63011),t3=t.i(20860);function t5(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 t2({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let n=0,r=0,o=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,a=2*i-s;n=t5(a,s,t+1/3),r=t5(a,s,t),o=t5(a,s,t-1/3)}else n=r=o=i;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*o),alpha:s}}t.s(["hslaToRgba",()=>t2],48393);var t4=t.i(66820);function t6(t,e){return i=>i>0?e:t}t.s(["mixImmediate",()=>t6],8618);var t9=t.i(706);let t8=(t,e,i)=>{let s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},t7=[t1.hex,t4.rgba,t3.hsla];function et(t){let e=t7.find(e=>e.test(t));if((0,u.warning)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===t3.hsla&&(i=t2(i)),i}let ee=(t,e)=>{let i=et(t),s=et(e);if(!i||!s)return t6(t,e);let n={...i};return t=>(n.red=t8(i.red,s.red,t),n.green=t8(i.green,s.green,t),n.blue=t8(i.blue,s.blue,t),n.alpha=(0,t9.mixNumber)(i.alpha,s.alpha,t),t4.rgba.transform(n))};t.s(["mixColor",()=>ee,"mixLinearColor",()=>t8],70258);let ei=new Set(["none","hidden"]);function es(t,e){return ei.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}function en(t,e){return i=>(0,t9.mixNumber)(t,e,i)}function er(t){return"number"==typeof t?en:"string"==typeof t?(0,o.isCSSVariableToken)(t)?t6:Y.color.test(t)?ee:el:Array.isArray(t)?eo:"object"==typeof t?Y.color.test(t)?ee:ea:t6}function eo(t,e){let i=[...t],s=i.length,n=t.map((t,i)=>er(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=n[e](t);return i}}function ea(t,e){let i={...t,...e},s={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(s[n]=er(t[n])(t[n],e[n]));return t=>{for(let e in s)i[e]=s[e](t);return i}}t.s(["invisibleValues",()=>ei,"mixVisibility",()=>es],33002);let el=(t,e)=>{let i=U.complex.createTransformer(e),s=(0,U.analyseComplexValue)(t),n=(0,U.analyseComplexValue)(e);return s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length?ei.has(t)&&!n.values.length||ei.has(e)&&!s.values.length?es(t,e):t_(eo(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],o=t.indexes[r][s[r]],a=t.values[o]??0;i[n]=a,s[r]++}return i}(s,n),n.values),i):((0,u.warning)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),t6(t,e))};function eh(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,t9.mixNumber)(t,e,i):er(t)(t,e)}t.s(["getMixer",()=>er,"mixArray",()=>eo,"mixComplex",()=>el,"mixObject",()=>ea],19568),t.s(["mix",()=>eh],3163);let eu=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>M.update(e,t),stop:()=>E(e),now:()=>D.isProcessing?D.timestamp:tt.now()}},ec=(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)})`};function ed(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function em(t,e=100,i){let s=i({...t,keyframes:[0,e]}),n=Math.min(ed(s),2e4);return{type:"keyframes",ease:t=>s.next(n*t).value/e,duration:tQ(n)}}function ep(t,e,i){let s=Math.max(e-5,0);return tr(i-t(s),e-s)}t.s(["generateLinearEasing",()=>ec],56512),t.s(["calcGeneratorDuration",()=>ed,"maxGeneratorDuration",()=>2e4],66857),t.s(["createGeneratorEasing",()=>em],21748);let ef=.01,ev=2,ey=.005,eg=.5;function ex(t,e){return t*Math.sqrt(1-e*e)}let eT=["duration","bounce"],eP=["stiffness","damping","mass"];function eS(t,e){return e.some(e=>void 0!==t[e])}function ew(t=.3,e=.3){let i,s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:r}=s,o=s.keyframes[0],a=s.keyframes[s.keyframes.length-1],l={done:!1,value:o},{stiffness:h,damping:c,mass:d,duration:m,velocity:p,isResolvedFromDuration:f}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!eS(t,eP)&&eS(t,eT))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,n=2*(0,tZ.clamp)(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:1,stiffness:s,damping:n}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:s=1}){let n,r;(0,u.warning)(t<=tJ(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=(0,tZ.clamp)(.05,1,o),t=(0,tZ.clamp)(.01,10,tQ(t)),o<1?(n=e=>{let s=e*o,n=s*t;return .001-(s-i)/ex(e,o)*Math.exp(-n)},r=e=>{let s=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-s),l=ex(Math.pow(e,2),o);return(s*i+i-r)*a*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));
1let a=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(n,r,5/t);if(t=tJ(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*s;return{stiffness:e,damping:2*o*Math.sqrt(s*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...s,velocity:-tQ(s.velocity||0)}),v=p||0,y=c/(2*Math.sqrt(h*d)),g=a-o,x=tQ(Math.sqrt(h/d)),T=5>Math.abs(g);if(n||(n=T?ef:ev),r||(r=T?ey:eg),y<1){let t=ex(x,y);i=e=>a-Math.exp(-y*x*e)*((v+y*x*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===y)i=t=>a-Math.exp(-x*t)*(g+(v+x*g)*t);else{let t=x*Math.sqrt(y*y-1);i=e=>{let i=Math.exp(-y*x*e),s=Math.min(t*e,300);return a-i*((v+y*x*g)*Math.sinh(s)+t*g*Math.cosh(s))/t}}let P={calculatedDuration:f&&m||null,next:t=>{let e=i(t);if(f)l.done=t>=m;else{let s=0===t?v:0;y<1&&(s=0===t?tJ(v):ep(i,t,e));let o=Math.abs(a-e)<=r;l.done=Math.abs(s)<=n&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(ed(P),2e4),e=ec(e=>P.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return P}function eV({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let c,d,m=t[0],p={done:!1,value:m},f=i*e,v=m+f,y=void 0===o?v:o(v);y!==v&&(f=y-m);let g=t=>-f*Math.exp(-t/s),x=t=>y+g(t),T=t=>{let e=g(t),i=x(t);p.done=Math.abs(e)<=h,p.value=p.done?y:i},P=t=>{let e;if(e=p.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=ew({keyframes:[p.value,(i=p.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:ep(x,t,p.value),damping:n,stiffness:r,restDelta:h,restSpeed:u})}};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,T(t),P(t)),void 0!==c&&t>=c)?d.next(t-c):(e||T(t),p)}}}ew.applyToOptions=t=>{let e=em(t,100,ew);return t.ease=e.ease,t.duration=tJ(e.duration),t.type="keyframes",t},t.s(["spring",()=>ew],73431),t.s(["inertia",()=>eV],29462);let eb=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function eA(t,e,i,s){return t===e&&i===s?S:n=>0===n||1===n?n:eb(function(t,e,i,s,n){let r,o,a=0;do(r=eb(o=e+(i-e)/2,s,n)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12)return o}(n,0,1,t,i),e,s)}t.s(["cubicBezier",()=>eA],40254);let eM=eA(.42,0,1,1),eE=eA(0,0,.58,1),eD=eA(.42,0,.58,1);t.s(["easeIn",()=>eM,"easeInOut",()=>eD,"easeOut",()=>eE],37025);let eC=t=>Array.isArray(t)&&"number"!=typeof t[0];t.s(["isEasingArray",()=>eC],93544);let ek=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2;t.s(["mirrorEasing",()=>ek],70165);let eR=t=>e=>1-t(1-e);t.s(["reverseEasing",()=>eR],30151);let eL=eA(.33,1.53,.69,.99),eB=eR(eL),ej=ek(eB);t.s(["backIn",()=>eB,"backInOut",()=>ej,"backOut",()=>eL],41980);let eF=t=>(t*=2)<1?.5*eB(t):.5*(2-Math.pow(2,-10*(t-1)));t.s(["anticipate",()=>eF],78047);let eO=t=>1-Math.sin(Math.acos(t)),eI=eR(eO),eN=ek(eO);t.s(["circIn",()=>eO,"circInOut",()=>eN,"circOut",()=>eI],91559);let eU=t=>Array.isArray(t)&&"number"==typeof t[0];t.s(["isBezierDefinition",()=>eU],60855);let e$={linear:S,easeIn:eM,easeInOut:eD,easeOut:eE,circIn:eO,circInOut:eN,circOut:eI,backIn:eB,backInOut:ej,backOut:eL,anticipate:eF},eW=t=>{if(eU(t)){(0,u.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,s,n]=t;return eA(e,i,s,n)}return"string"==typeof t?((0,u.invariant)(void 0!==e$[t],`Invalid easing type '${t}'`,"invalid-easing-type"),e$[t]):t};t.s(["easingDefinitionToFunction",()=>eW],32943);let eK=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s};function ez(t,e,{clamp:i=!0,ease:s,mixer:n}={}){let r=t.length;if((0,u.invariant)(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let s=[],n=i||w.mix||eh,r=t.length-1;for(let i=0;i<r;i++){let r=n(t[i],t[i+1]);e&&(r=t_(Array.isArray(e)?e[i]||S:e,r)),s.push(r)}return s}(e,s,n),l=a.length,h=i=>{if(o&&i<t[0])return e[0];let s=0;if(l>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let n=eK(t[s],t[s+1],i);return a[s](n)};return i?e=>h((0,tZ.clamp)(t[0],t[r-1],e)):h}function eG(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let n=eK(0,e,s);t.push((0,t9.mixNumber)(i,1,n))}}function eY(t){let e=[0];return eG(e,t.length-1),e}function eH(t,e){return t.map(t=>t*e)}function eX(t,e){return t.map(()=>e||eD).splice(0,t.length-1)}function eq({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){let n=eC(s)?s.map(eW):eW(s),r={done:!1,value:e[0]}
1,o=ez(eH(i&&i.length===e.length?i:eY(e),t),e,{ease:Array.isArray(n)?n:eX(e,n)});return{calculatedDuration:t,next:e=>(r.value=o(e),r.done=e>=t,r)}}t.s(["progress",()=>eK],83920),t.s(["interpolate",()=>ez],44230),t.s(["fillOffset",()=>eG],15932),t.s(["defaultOffset",()=>eY],15923),t.s(["convertOffsetToTimes",()=>eH],45704),t.s(["defaultEasing",()=>eX,"keyframes",()=>eq],68514);let e_=t=>null!==t;function eZ(t,{repeat:e,repeatType:i="loop"},s,n=1){let r=t.filter(e_),o=n<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return o&&void 0!==s?s:r[o]}let eJ={decay:eV,inertia:eV,tween:eq,keyframes:eq,spring:ew};function eQ(t){"string"==typeof t.type&&(t.type=eJ[t.type])}class e0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let e1=t=>t/100;class e3 extends e0{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!==tt.now()&&this.tick(tt.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},t0.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;eQ(t);let{type:e=eq,repeat:i=0,repeatDelay:s=0,repeatType:n,velocity:r=0}=t,{keyframes:o}=t,a=e||eq;a!==eq&&"number"!=typeof o[0]&&(this.mixKeyframes=t_(e1,eh(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===n&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=ed(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:s,mixKeyframes:n,mirroredGenerator:r,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:h,repeat:u,repeatType:c,repeatDelay:d,type:m,onUpdate:p,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let g=this.currentTime,x=i;if(u){let t=Math.min(this.currentTime,s)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,u+1))%2&&("reverse"===c?(i=1-i,d&&(i-=d/o)):"mirror"===c&&(x=r)),g=(0,tZ.clamp)(0,1,i)*o}let T=y?{done:!1,value:h[0]}:x.next(g);n&&(T.value=n(T.value));let{done:P}=T;y||null===a||(P=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return S&&m!==eV&&(T.value=eZ(h,this.options,f,this.speed)),p&&p(T.value),S&&this.finish(),T}then(t,e){return this.finished.then(t,e)}get duration(){return tQ(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+tQ(t)}get time(){return tQ(this.currentTime)}set time(t){t=tJ(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(tt.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=tQ(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=eu,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(tt.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,t0.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)}}function e5(t){return new e3(t)}t.s(["JSAnimation",()=>e3,"animateValue",()=>e5],83352);let e2=t=>t.startsWith("--");function e4(t,e,i){e2(e)?t.style.setProperty(e,i):t.style[e]=i}function e6(t){let e;return()=>(void 0===e&&(e=t()),e)}t.s(["isCSSVar",()=>e2],34474),t.s(["setStyle",()=>e4],94581),t.s(["memo",()=>e6],60900);let e9=e6(()=>void 0!==window.ScrollTimeline);t.s(["supportsScrollTimeline",()=>e9],30551);let e8={};t.s(["supportsFlags",()=>e8],83911);let e7=(i=e6(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>e8.linearEasing??i());t.s(["supportsLinearEasing",()=>e7],53396);let it=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`;t.s(["cubicBezierAsString",()=>it],16869);let ie={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:it([0,.65,.55,1]),circOut:it([.55,0,1,.45]),backIn:it([.31,.01,.66,-.59]),backOut:it([.33,1.53,.69,.99])};function ii(t,e){if(t)return"function"==typeof t?e7()?ec(t,e):"ease-out":eU(t)?it(t):Array.isArray(t)?t.map(t=>ii(t,e)||ie.easeOut):ie[t]}function is(t,e,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let c=ii(a,n);Array.isArray(c)&&(u.easing=c),b.value&&t0.waapi++;let d={delay:s,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};h&&(d.pseudoElement=h);let m=t.animate(u,d);return b.value&&m.finished.finally(()=>{t0.waapi--}),m}function ir(t){return"function"==typeof t&&"applyToOptions"in t}function io({type:t,...e}){return ir(t)&&e7()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}t.s(["supportedWaapiEasing",()=>ie],39435),t.s(["mapEasingToNativeEasing",()=>ii],20888),t.s(["startWaapiAnimation",()=>is],35474),t.s(["isGenerator",()=>ir],97307),t.s(["applyGeneratorOptions",()=>io],46833);class ia extends e0{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:s,pseudoElement:n,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!n,this.allowFlatten=r,this.options=t,(0,u.invariant)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=io(t);this.animation=is(e,i,s,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=eZ(s,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):e4(e,i,t),this.animation.cancel()}a?.(),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(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return tQ(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+tQ(t)}get time(){return tQ(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tJ(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,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&e9())?(this.animation.timeline=t,S):e(this)}}t.s(["NativeAnimation",()=>ia],68e3);let il={anticipate:eF,backInOut:ej,circInOut:eN};class ih extends ia{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in il&&(t.ease=il[t.ease])}(t),eQ(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 o=new e3({...r,autoplay:!1}),a=Math.max(10,tt.now()-this.startTime),l=(0,tZ.clamp)(0,10,a-10);e.setWithVelocity(o.sample(Math.max(0,a-l)).value,o.sample(a).value,l),o.stop()}}t.s(["NativeAnimationExtended",()=>ih],92464);let iu=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(U.complex.test(t)||"0"===t)&&!t.startsWith("url(")),ic=new Set(["opacity","clipPath","filter","transform"]),id=e6(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function im(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:r,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;
1let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return id()&&i&&ic.has(i)&&("transform"!==i||!l)&&!a&&!s&&"mirror"!==n&&0!==r&&"inertia"!==o}t.s(["supportsBrowserAnimation",()=>im],78866);class ip extends e0{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:r="loop",keyframes:o,name:a,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tt.now();const c={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:n,repeatType:r,name:a,motionValue:l,element:h,...u},d=h?.KeyframeResolver||I;this.keyframeResolver=new d(o,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),a,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,s){this.keyframeResolver=void 0;let{name:n,type:r,velocity:o,delay:a,isHandoff:l,onUpdate:h}=i;this.resolvedAt=tt.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],o=iu(n,e),a=iu(r,e);return(0,u.warning)(o===a,`You are trying to animate ${e} from "${n}" to "${r}". "${o?r:n}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(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||ir(i))&&s)}(t,n,r,o)&&((w.instantAnimations||!a)&&h?.(eZ(t,i,e)),t[0]=t[t.length-1],tX(i),i.repeat=0);let c={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},d=!l&&im(c)?new ih({...c,element:c.motionValue.owner.current}):new e3(c);d.finished.then(()=>this.notifyFinished()).catch(S),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),O()),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()}}t.s(["AsyncMotionValueAnimation",()=>ip],42062);let iv=t=>null!==t,iy={type:"spring",stiffness:500,damping:25,restSpeed:10},ig={type:"keyframes",duration:.8},ix={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iT=(t,e,i,s={},r,o)=>a=>{let l=tW(s,t)||{},h=l.delay||s.delay||0,{elapsed:u=0}=s;u-=tJ(h);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-u,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:o?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:n,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(l)&&Object.assign(c,((t,{keyframes:e})=>e.length>2?ig:n.transformProps.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:iy:ix)(t,c)),c.duration&&(c.duration=tJ(c.duration)),c.repeatDelay&&(c.repeatDelay=tJ(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(tX(c),0===c.delay&&(d=!0)),(w.instantAnimations||w.skipAnimations)&&(d=!0,tX(c),c.delay=0),c.allowFlatten=!l.type&&!l.ease,d&&!o&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},s){let n=t.filter(iv),r=e&&"loop"!==i&&e%2==1?0:n.length-1;return n[r]}(c.keyframes,l);if(void 0!==t)return void M.update(()=>{c.onUpdate(t),c.onComplete()})}return l.isSync?new e3(c):new ip(c)};
1function iP(t,e,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:o,...a}=e;s&&(r=s);let h=[],u=n&&t.animationState&&t.animationState.getState()[n];for(let e in a){let s=t.getValue(e,t.latestValues[e]??null),n=a[e];if(void 0===n||u&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(u,e))continue;let o={delay:i,...tW(r||{},e)},c=s.get();if(void 0!==c&&!s.isAnimating&&!Array.isArray(n)&&n===c&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let i=tH(t);if(i){let t=window.MotionHandoffAnimation(i,e,M);null!==t&&(o.startTime=t,d=!0)}}tG(t,e),s.start(iT(e,s,n,t.shouldReduceMotion&&l.positionalKeys.has(e)?{type:!1}:o,t,d));let m=s.animation;m&&h.push(m)}return o&&Promise.all(h).then(()=>{M.update(()=>{o&&tz(t,o)})}),h}function iS(t,e,i,s=0,n=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*s;return"function"==typeof i?i(r,o):1===n?r*s:a-r*s}function iw(t,e,i={}){let s=t$(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(iP(t,s,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=n;return function(t,e,i=0,s=0,n=0,r=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(iw(l,e,{...o,delay:i+("function"==typeof s?0:s)+iS(t.variantChildren,l,s,n,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,s,r,o,a,i)}:()=>Promise.resolve(),{when:a}=n;if(!a)return Promise.all([r(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[r,o]:[o,r];return t().then(()=>e())}}function iV(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>iw(t,e,i)));else if("string"==typeof e)s=iw(t,e,i);else{let n="function"==typeof e?t$(t,e,i.custom):e;s=Promise.all(iP(t,n,i))}return s.then(()=>{t.notify("AnimationComplete",e)})}function ib(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}t.s(["animateTarget",()=>iP],6327),t.s(["animateVisualElement",()=>iV],45161);var iA=t.i(42531),iM=t.i(89607);let iE=iM.variantProps.length,iD=[...iM.variantPriorityOrder].reverse(),iC=iM.variantPriorityOrder.length;function ik(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iR(){return{animate:ik(!0),whileInView:ik(),whileHover:ik(),whileTap:ik(),whileDrag:ik(),whileFocus:ik(),exit:ik()}}class iL{constructor(t){this.isMounted=!1,this.node=t}update(){}}let iB=0,ij={animation:{Feature:class extends iL{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>iV(t,e,i))),i=iR(),s=!0,n=e=>(i,s)=>{let n=t$(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 r(r){let{props:o}=t,a=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<iE;t++){let s=iM.variantProps[t],n=e.props[s];((0,iA.isVariantLabel)(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},l=[],h=new Set,u={},c=1/0;for(let e=0;e<iC;e++){var d,m;let p=iD[e],f=i[p],v=void 0!==o[p]?o[p]:a[p],y=(0,iA.isVariantLabel)(v),g=p===r?f.isActive:null;!1===g&&(c=e);let x=v===a[p]&&v!==o[p]&&y;if(x&&s&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...u},!f.isActive&&null===g||!v&&!f.prevProp||(0,tU.isAnimationControls)(v)||"boolean"==typeof v)continue;let T=(d=f.prevProp,"string"==typeof(m=v)?m!==d:!!Array.isArray(m)&&!ib(m,d)),P=T||p===r&&f.isActive&&!x&&y||e>c&&y,S=!1,w=Array.isArray(v)?v:[v],V=w.reduce(n(p),{});!1===g&&(V={});let{prevResolvedValues:b={}}=f,A={...b,...V},M=e=>{P=!0,h.has(e)&&(S=!0,h.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in A){let e=V[t],i=b[t];if(!u.hasOwnProperty(t))(tK(e)&&tK(i)?ib(e,i):e===i)?void 0!==e&&h.has(t)?M(t):f.protectedKeys[t]=!0:null!=e?M(t):h.add(t)}f.prevProp=v,f.prevResolvedValues=V,f.isActive&&(u={...u,...V}),s&&t.blockInitialAnimation&&(P=!1);let E=x&&T,D=!E||S;P&&D&&l.push(...w.map(e=>{let i={type:p};if("string"==typeof e&&s&&!E&&t.manuallyAnimateOnMount&&t.parent){let{parent:s}=t,n=t$(s,e);if(s.enteringChildren&&n){let{delayChildren:e}=n.transition||{};i.delay=iS(s.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof o.initial){let i=t$(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}
1h.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=s??null}),l.push({animation:e})}let p=!!l.length;return s&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(p=!1),s=!1,p?e(l):Promise.resolve()}return{animateChanges:r,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=r(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=iR()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,tU.isAnimationControls)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iL{constructor(){super(...arguments),this.id=iB++}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(){}}}};t.s(["animations",()=>ij],23070);let iF=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function iO(t){return iF.has(t.tagName)||!0===t.isContentEditable}t.s(["isElementKeyboardAccessible",()=>iO],19880);let iI={x:!1,y:!1};function iN(){return iI.x||iI.y}function iU(t){if("x"===t||"y"===t)if(iI[t])return null;else return iI[t]=!0,()=>{iI[t]=!1};return iI.x||iI.y?null:(iI.x=iI.y=!0,()=>{iI.x=iI.y=!1})}function i$(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}t.s(["isDragActive",()=>iN,"isDragging",()=>iI],39676),t.s(["setDragLock",()=>iU],37541),t.s(["addDomEvent",()=>i$],26368);let iW=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function iK(t){return{point:{x:t.pageX,y:t.pageY}}}t.s(["isPrimaryPointer",()=>iW],41327);let iz=t=>e=>iW(e)&&t(e,iK(e));function iG(t,e,i,s){return i$(t,e,iz(i),s)}t.s(["addPointerInfo",()=>iz,"extractEventInfo",()=>iK],65536),t.s(["addPointerEvent",()=>iG],61175);var iY=t.i(49587);function iH(t){return t.max-t.min}function iX(t,e,i){return Math.abs(t-e)<=i}function iq(t,e,i,s=.5){t.origin=s,t.originPoint=(0,t9.mixNumber)(e.min,e.max,t.origin),t.scale=iH(i)/iH(e),t.translate=(0,t9.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 i_(t,e,i,s){iq(t.x,e.x,i.x,s?s.originX:void 0),iq(t.y,e.y,i.y,s?s.originY:void 0)}function iZ(t,e,i){t.min=i.min+e.min,t.max=t.min+iH(e)}function iJ(t,e,i){iZ(t.x,e.x,i.x),iZ(t.y,e.y,i.y)}function iQ(t,e,i){t.min=e.min-i.min,t.max=t.min+iH(e)}function i0(t,e,i){iQ(t.x,e.x,i.x),iQ(t.y,e.y,i.y)}function i1(t){return[t("x"),t("y")]}t.s(["calcBoxDelta",()=>i_,"calcLength",()=>iH,"calcRelativeBox",()=>iJ,"calcRelativePosition",()=>i0,"isNear",()=>iX],61054);let i3=({current:t})=>t?t.ownerDocument.defaultView:null;var i5=t.i(25522);let i2=(t,e)=>Math.abs(t-e);function i4(t,e){return Math.sqrt(i2(t.x,e.x)**2+i2(t.y,e.y)**2)}t.s(["distance",()=>i2,"distance2D",()=>i4],83662);let i6=new Set(["auto","scroll"]);class i9{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:r=3,element:o}={}){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=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=st(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=i4(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!i)return;let{point:s}=t,{timestamp:n}=D;this.history.push({...s,timestamp:n});let{onStart:r,onMove:o}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=i8(e,this.transformPagePoint),M.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=st("pointercancel"===t.type?this.lastMoveEventInfo:i8(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),s&&s(t,r)},!iW(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const a=i8(iK(t),this.transformPagePoint),{point:l}=a,{timestamp:h}=D;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=e;u&&u(t,st(a,this.history)),this.removeListeners=t_(iG(this.contextWindow,"pointermove",this.handlePointerMove),iG(this.contextWindow,"pointerup",this.handlePointerUp),iG(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(i6.has(t.overflowX)||i6.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,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){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),M.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),E(this.updatePoint)}}function i8(t,e){return e?{point:e(t.point)}:t}function i7(t,e){return{x:t.x-e.x,y:t.y-e.y}}function st({point:t},e){return{point:t,delta:i7(t,se(e)),offset:i7(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,n=se(t);for(;i>=0&&(s=t[i],!(n.timestamp-s.timestamp>tJ(.1)));)i--;if(!s)return{x:0,y:0};let r=tQ(n.timestamp-s.timestamp);if(0===r)return{x:0,y:0};let o={x:(n.x-s.x)/r,y:(n.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function se(t){return t[t.length-1]}
1function si(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 ss(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 sn(t,e,i){return{min:sr(t,e),max:sr(t,i)}}function sr(t,e){return"number"==typeof t?t:t[e]||0}let so=new WeakMap;class sa{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=tg(),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.stopAnimation(),this.snapToCursor(iK(t).point)):this.pauseAnimation()},r=(t,e)=>{this.stopAnimation();let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=iU(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),i1(t=>{let e=this.getAxisMotionValue(t).get()||0;if(y.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=iH(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&M.postRender(()=>n(t,e)),tG(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},o=(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:o}=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}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&r(t,e)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>i1(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:h}=this.getProps();this.panSession=new i9(t,{onSessionStart:n,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:i3(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:o}=this.getProps();o&&M.postRender(()=>o(i,s))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!sl(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,t9.mixNumber)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,t9.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,i5.isRefObject)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:si(t.x,i,n),y:si(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:sn(t,"left","right"),y:sn(t,"top","bottom")}}(e),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&i1(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,i5.isRefObject)(e))return!1;let s=e.current;
1(0,u.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,a.measurePageBox)(s,n.root,this.visualElement.getTransformPagePoint()),o=(t=n.layout.layoutBox,{x:ss(t.x,r.x),y:ss(t.y,r.y)});if(i){let t=i((0,iY.convertBoxToBoundingBox)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,iY.convertBoundingBoxToBox)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(i1(o=>{if(!sl(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return tG(this.visualElement,t),i.start(iT(t,i,0,e,this.visualElement,!1))}stopAnimation(){i1(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){i1(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){i1(e=>{let{drag:i}=this.getProps();if(!sl(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],o=n.get()||0;n.set(t[e]-(0,t9.mixNumber)(i,r,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,i5.isRefObject)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};i1(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let r,o,a,l=e.get();s[t]=(i={min:l,max:l},n=this.constraints[t],r=.5,o=iH(i),(a=iH(n))>o?r=eK(n.min,n.max-o,i.min):o>a&&(r=eK(i.min,i.max-a,n.min)),(0,tZ.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.resolveConstraints(),i1(e=>{if(!sl(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:r}=this.constraints[e];i.set((0,t9.mixNumber)(n,r,s[e]))})}addListeners(){if(!this.visualElement.current)return;so.set(this.visualElement,this);let t=iG(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&!iO(t.target)&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();(0,i5.isRefObject)(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),M.read(e);let n=i$(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(i1(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),s(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:o}}}function sl(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let sh=t=>(e,i)=>{t&&M.postRender(()=>t(e,i))};var su=t.i(43476),sc=s,sd=t.i(64978),sm=t.i(31178),sp=t.i(4035);let sf={hasAnimatedSinceResize:!0,hasEverUpdated:!1},sv=!1;class sy extends sc.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),sv&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),sf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,{projection:r}=i;return r&&(r.isPresent=n,sv=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==n?r.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?r.promote():r.relegate()||M.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),td.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;sv=!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 sg(t){let[e,i]=(0,sd.usePresence)(),s=(0,sc.useContext)(sm.LayoutGroupContext);return(0,su.jsx)(sy,{...t,layoutGroup:s,switchLayoutGroup:(0,sc.useContext)(sp.SwitchLayoutGroupContext),isPresent:e,safeToRemove:i})}
1var sx=t.i(49703);function sT(t){return(0,sx.isObject)(t)&&"ownerSVGElement"in t}function sP(t){return sT(t)&&"svg"===t.tagName}function sS(t,e,i){let s=(0,J.isMotionValue)(t)?t:tl(t);return s.start(iT("",s,e,i)),s.animation}t.s(["isSVGElement",()=>sT],89026),t.s(["isSVGSVGElement",()=>sP],36331),t.s(["animateSingleValue",()=>sS],69122);let sw=(t,e)=>t.depth-e.depth;class sV{constructor(){this.children=[],this.isDirty=!1}add(t){te(this.children,t),this.isDirty=!0}remove(t){ti(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(sw),this.isDirty=!1,this.children.forEach(t)}}function sb(t,e){let i=tt.now(),s=({timestamp:n})=>{let r=n-i;r>=e&&(E(s),t(r-e))};return M.setup(s,!0),()=>E(s)}t.s(["delay",()=>sb],91305);var sA=t.i(28987);let sM=["TopLeft","TopRight","BottomLeft","BottomRight"],sE=sM.length,sD=t=>"string"==typeof t?parseFloat(t):t,sC=t=>"number"==typeof t||y.px.test(t);function sk(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let sR=sB(0,.5,eI),sL=sB(.5,.95,S);function sB(t,e,i){return s=>s<t?0:s>e?1:i(eK(t,e,s))}function sj(t,e){t.min=e.min,t.max=e.max}function sF(t,e){sj(t.x,e.x),sj(t.y,e.y)}function sO(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var sI=t.i(89234);function sN(t,e,i,s,n){return t-=e,t=(0,sI.scalePoint)(t,1/i,s),void 0!==n&&(t=(0,sI.scalePoint)(t,1/n,s)),t}function sU(t,e,[i,s,n],r,o){!function(t,e=0,i=1,s=.5,n,r=t,o=t){if(y.percent.test(e)&&(e=parseFloat(e),e=(0,t9.mixNumber)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,t9.mixNumber)(r.min,r.max,s);t===r&&(a-=e),t.min=sN(t.min,e,i,a,n),t.max=sN(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,r,o)}let s$=["x","scaleX","originX"],sW=["y","scaleY","originY"];function sK(t,e,i,s){sU(t.x,e,s$,i?i.x:void 0,s?s.x:void 0),sU(t.y,e,sW,i?i.y:void 0,s?s.y:void 0)}function sz(t){return 0===t.translate&&1===t.scale}function sG(t){return sz(t.x)&&sz(t.y)}function sY(t,e){return t.min===e.min&&t.max===e.max}function sH(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function sX(t,e){return sH(t.x,e.x)&&sH(t.y,e.y)}function sq(t){return iH(t.x)/iH(t.y)}function s_(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sZ{constructor(){this.members=[]}add(t){te(this.members,t),t.scheduleRender()}remove(t){if(ti(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var sJ=t.i(52383),sQ=t.i(72696);let s0={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},s1=["","X","Y","Z"],s3=0;function s5(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function s2({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=s3++,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,b.value&&(s0.nodes=s0.calculatedTargetDeltas=s0.calculatedProjections=0),this.nodes.forEac
1h(s9),this.nodes.forEach(nn),this.nodes.forEach(nr),this.nodes.forEach(s8),b.addProjectionMetrics&&b.addProjectionMetrics(s0)},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 sV)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tn),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=sT(e)&&!sP(e),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;M.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==s&&(s=t,this.root.updateBlockedByResize=!0,i&&i(),i=sb(n,250),sf.hasAnimatedSinceResize&&(sf.hasAnimatedSinceResize=!1,this.nodes.forEach(ns)))})}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()||nc,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!sX(this.targetLayout,s),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...tW(r,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||ns(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(),E(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(no),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=tH(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",M,!(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(nt);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEac
1h(ne);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ni),this.nodes.forEach(s4),this.nodes.forEach(s6)):this.nodes.forEach(ne),this.clearAllSnapshots();let t=tt.now();D.delta=(0,tZ.clamp)(0,1e3/60,t-D.timestamp),D.timestamp=t,D.isProcessing=!0,C.update.process(D),C.preRender.process(D),C.render.process(D),D.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,td.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(s7),this.sharedNodes.forEach(na)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,M.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){M.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||iH(this.snapshot.measuredBox.x)||iH(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=tg(),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&&!sG(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,sQ.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)),np((e=s).x),np(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return tg();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(nv))){let{scroll:t}=this.root;t&&((0,sI.translateAxis)(e.x,t.offset.x),(0,sI.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=tg();if(sF(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&&sF(e,t),(0,sI.translateAxis)(e.x,n.offset.x),(0,sI.translateAxis)(e.y,n.offset.y))}return e}applyTransform(t,e=!1){let i=tg();sF(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,sI.transformBox)(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,sQ.hasTransform)(s.latestValues)&&(0,sI.transformBox)(i,s.latestValues)}return(0,sQ.hasTransform)(this.latestValues)&&(0,sI.transformBox)(i,this.latestValues),i}removeTransform(t){let e=tg();sF(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,sQ.hasTransform)(i.latestValues))continue;(0,sQ.hasScale)(i.latestValues)&&i.updateSnapshot();let s=tg();sF(s,i.measurePageBox()),sK(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return(0,sQ.hasTransform)(this.latestValues)&&sK(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!==D.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=D.timestamp;let r=this.getClosestProjectingParent();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)&&(this.target||(this.target=tg(),this.targetWithTransforms=tg()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),iJ(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sF(this.target,this.layout.layoutBox),(0,sI.applyBoxDelta)(this.target,this.targetDelta)):sF(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),b.value&&s0.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||(0,sQ.hasScale)(this.parent.latestValues)||(0,sQ.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=tg(),this.relativeTargetOrigin=tg(),i0(this.relativeTargetOrigin,e,i),sF(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===D.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;sF(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,o=this.treeScale.y;(0,sI.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=tg());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(sO(this.prevProjectionDelta.x,this.projectionDelta.x),sO(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),i_(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&s_(this.projectionDelta.x,this.prevProjectionDelta.x)&&s_(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),b.value&&s0.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=tv(),this.projectionDelta=tv(),this.projectionDeltaWithTransform=tv()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,n=s?s.latestValues:{},r={...this.latestValues},o=tv();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=tg(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(nu));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(nl(o.x,t.x,s),nl(o.y,t.y,s),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,d,m,p,f,v;i0(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,f=a,v=s,nh(m.x,p.x,f.x,v),nh(m.y,p.y,f.y,v),i&&(h=this.relativeTarget,d=i,sY(h.x,d.x)&&sY(h.y,d.y))&&(this.isProjectionDirty=!1),i||(i=tg()),sF(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,s,n,r){n?(t.opacity=(0,t9.mixNumber)(0,i.opacity??1,sR(s)),t.opacityExit=(0,t9.mixNumber)(e.opacity??1,0,sL(s))):r&&(t.opacity=(0,t9.mixNumber)(e.opacity??1,i.opacity??1,s));for(let n=0;n<sE;n++){let r=`border${sM[n]}Radius`,o=sk(e,r),a=sk(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||sC(o)===sC(a)?(t[r]=Math.max((0,t9.mixNumber)(sD(o),sD(a),s),0),(y.percent.test(a)||y.percent.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,t9.mixNumber)(e.rotate||0,i.rotate||0,s))}(r,n,this.latestValues,s,c,u)),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&&(E(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=M.update(()=>{sf.hasAnimatedSinceResize=!0,t0.layout++,this.motionValue||(this.motionValue=tl(0)),this.currentAnimation=sS(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{t0.layout--},onComplete:()=>{t0.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&nf(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||tg();let e=iH(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=iH(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}sF(e,i),(0,sI.transformBox)(e,n),i_(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new sZ),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&&s5("z",t,s,this.animationValues);for(let e=0;e<s1.length;e++)s5(`rotate${s1[e]}`,t,s,this.animationValues),s5(`skew${s1[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,sA.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,sA.resolveMotionValue)(e?.pointerEvents)||""),this.hasProjected&&!(0,sQ.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,o=i?.z||0;if((n||r||o)&&(s=`translate3d(${n}px, ${r}px, ${o}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:o,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotateX(${n}deg) `),r&&(s+=`rotateY(${r}deg) `),o&&(s+=`skewX(${o}deg) `),a&&(s+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(r=i(n,r)),t.transform=r;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.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,sJ.scaleCorrectors){if
1(void 0===n[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=sJ.scaleCorrectors[e],l="none"===r?n[e]:i(n[e],s);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=s===this?(0,sA.resolveMotionValue)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(nt),this.root.sharedNodes.clear()}}}function s4(t){t.updateLayout()}function s6(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?i1(t=>{let s=r?e.measuredBox[t]:e.layoutBox[t],n=iH(s);s.min=i[t].min,s.max=s.min+n}):nf(n,e.layoutBox,i)&&i1(s=>{let n=r?e.measuredBox[s]:e.layoutBox[s],o=iH(i[s]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=tv();i_(o,i,e.layoutBox);let a=tv();r?i_(a,t.applyTransform(s,!0),e.measuredBox):i_(a,i,e.layoutBox);let l=!sG(o),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let o=tg();i0(o,e.layoutBox,n.layoutBox);let a=tg();i0(a,i,r.layoutBox),sX(o,a)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function s9(t){b.value&&s0.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 s8(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function s7(t){t.clearSnapshot()}function nt(t){t.clearMeasurements()}function ne(t){t.isLayoutDirty=!1}function ni(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ns(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function nn(t){t.resolveTargetDelta()}function nr(t){t.calcProjection()}function no(t){t.resetSkewAndRotation()}function na(t){t.removeLeadSnapshot()}function nl(t,e,i){t.translate=(0,t9.mixNumber)(e.translate,0,i),t.scale=(0,t9.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function nh(t,e,i,s){t.min=(0,t9.mixNumber)(e.min,i.min,s),t.max=(0,t9.mixNumber)(e.max,i.max,s)}function nu(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let nc={duration:.45,ease:[.4,0,.1,1]},nd=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),nm=nd("applewebkit/")&&!nd("chrome/")?Math.round:S;function np(t){t.min=nm(t.min),t.max=nm(t.max)}function nf(t,e,i){return"position"===t||"preserve-aspect"===t&&!iX(sq(e),sq(i),.2)}function nv(t){return t!==t.root&&t.scroll?.wasRoot}let ny=s2({attachResizeListener:(t,e)=>i$(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ng={current:void 0},nx=s2({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ng.current){let t=new ny({});t.mount(window),t.setOptions({layoutScroll:!0}),ng.current=t}return ng.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});t.s(["HTMLProjectionNode",()=>nx,"rootProjectionNode",()=>ng],49048);let nT={pan:{Feature:class extends iL{constructor(){super(...arguments),this.removePointerDownListener=S}onPointerDown(t){this.session=new i9(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:i3(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:sh(t),onStart:sh(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&M.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=iG(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iL{constructor(t){super(t),this.removeGroupControls=S,this.removeListeners=S,this.controls=new sa(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||S}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()}},ProjectionNode:nx,MeasureLayout:sg}};t.s(["drag",()=>nT],46816);var nP=t.i(49652);function nS(t,e){let i=(0,nP.resolveElements)(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function nw(t){return!("touch"===t.pointerType||iN())}function nV(t,e,i={}){let[s,n,r]=nS(t,i),o=t=>{if(!nw(t))return;let{target:i}=t,s=e(i,t);if("function"!=typeof s||!i)return;let r=t=>{nw(t)&&(s(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,n)};
1return s.forEach(t=>{t.addEventListener("pointerenter",o,n)}),r}function nb(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&M.postRender(()=>n(e,iK(e)))}t.s(["hover",()=>nV],8648);var nA=t.i(72846);let nM=(t,e)=>!!e&&(t===e||nM(t,e.parentElement));t.s(["isNodeOrChild",()=>nM],98720);let nE=new WeakSet;function nD(t){return e=>{"Enter"===e.key&&t(e)}}function nC(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function nk(t,e,i={}){let[s,n,r]=nS(t,i),o=t=>{let s=t.currentTarget;if(!(iW(t)&&!iN()))return;nE.add(s);let r=e(s,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),nE.has(s)&&nE.delete(s),iW(t)&&!iN()&&"function"==typeof r&&r(t,{success:e})},a=t=>{o(t,s===window||s===document||i.useGlobalTarget||nM(s,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};return s.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,n),(0,nA.isHTMLElement)(t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=nD(()=>{if(nE.has(i))return;nC(i,"down");let t=nD(()=>{nC(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>nC(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,n)),iO(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}function nR(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&&M.postRender(()=>n(e,iK(e)))}t.s(["press",()=>nk],42269);let nL=new WeakMap,nB=new WeakMap,nj=t=>{let e=nL.get(t.target);e&&e(t)},nF=t=>{t.forEach(nj)},nO={some:0,all:1},nI={inView:{Feature:class extends iL{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:o}=i,a={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:nO[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!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;nB.has(i)||nB.set(i,{});let s=nB.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(nF,{root:t,...e})),s[n]}(a),nL.set(t,l),e.observe(t),()=>{nL.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("undefined"==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(){}}},tap:{Feature:class extends iL{mount(){let{current:t}=this.node;t&&(this.unmount=nk(t,(t,e)=>(nR(this.node,e,"Start"),(t,{success:e})=>nR(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends iL{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=t_(i$(this.node.current,"focus",()=>this.onFocus()),i$(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iL{mount(){let{current:t}=this.node;t&&(this.unmount=nV(t,(t,e)=>(nb(this.node,e,"Start"),t=>nb(this.node,t,"End"))))}unmount(){}}}};t.s(["gestureAnimations",()=>nI],8149);let nN={layout:{ProjectionNode:nx,MeasureLayout:sg}};t.s(["layout",()=>nN],54292);let nU={...ij,...nI,...nT,...nN},n$=(0,tN.createMotionProxy)(nU,tI);t.s(["motion",()=>n$],46932)}]);

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.