!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f7951deb-b39f-51b9-91df-44fa0d43555b")}catch(e){}}();
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,885722,t=>{"use strict";t.s(["LayoutGroupContext",()=>e]);let e=(0,t.i(933825).createContext)({})},303767,t=>{"use strict";t.s(["useConstant",()=>i]);var e=t.i(933825);function i(t){let i=(0,e.useRef)(null);return null===i.current&&(i.current=t()),i.current}},766607,t=>{"use strict";t.s(["isBrowser",()=>e]);let e="undefined"!=typeof window},262264,t=>{"use strict";t.s(["useIsomorphicLayoutEffect",()=>i]);var e=t.i(933825);let i=t.i(766607).isBrowser?e.useLayoutEffect:e.useEffect},689405,t=>{"use strict";t.s(["PresenceContext",()=>e]);let e=(0,t.i(933825).createContext)(null)},667048,t=>{"use strict";t.s(["MotionConfigContext",()=>e]);let e=(0,t.i(933825).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},292001,152393,t=>{"use strict";function e(t){return"object"==typeof t&&null!==t}function i(t){return e(t)&&"offsetHeight"in t}t.s(["isHTMLElement",()=>i],292001),t.s(["isObject",()=>e],152393)},55391,t=>{"use strict";t.s(["PresenceChild",()=>h],55391);var e=t.i(628575),i=t.i(933825),n=t.i(689405),s=t.i(303767),r=i,a=t.i(667048),o=t.i(292001);class l extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=(0,o.isHTMLElement)(t)&&t.offsetWidth||0,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=i-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function u(t){let{children:i,isPresent:n,anchorX:s}=t,o=(0,r.useId)(),u=(0,r.useRef)(null),h=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=(0,r.useContext)(a.MotionConfigContext);return(0,r.useInsertionEffect)(()=>{let{width:t,height:e,top:i,left:r,right:a}=h.current;if(n||!u.current||!t||!e)return;u.current.dataset.motionPopId=o;let l=document.createElement("style");return c&&(l.nonce=c),document.head.appendChild(l),l.sheet&&l.sheet.insertRule('\n [data-motion-pop-id="'.concat(o,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(e,"px !important;\n ").concat("left"===s?"left: ".concat(r):"right: ".concat(a),"px !important;\n top: ").concat(i,"px !important;\n }\n ")),()=>{document.head.contains(l)&&document.head.removeChild(l)}},[n]),(0,e.jsx)(l,{isPresent:n,childRef:u,sizeRef:h,children:r.cloneElement(i,{ref:u})})}let h=t=>{let{children:r,initial:a,isPresent:o,onExitComplete:l,custom:h,presenceAffectsLayout:d,mode:p,anchorX:m}=t,f=(0,s.useConstant)(c),v=(0,i.useId)(),g=!0,y=(0,i.useMemo)(()=>(g=!1,{id:v,initial:a,isPresent:o,custom:h,onExitComplete:t=>{for(let e of(f.set(t,!0),f.values()))if(!e)return;l&&l()},register:t=>(f.set(t,!1),()=>f.delete(t))}),[o,f,l]);return d&&g&&(y={...y}),(0,i.useMemo)(()=>{f.forEach((t,e)=>f.set(e,!1))},[o]),i.useEffect(()=>{o||f.size||!l||l()},[o]),"popLayout"===p&&(r=(0,e.jsx)(u,{isPresent:o,anchorX:m,children:r})),(0,e.jsx)(n.PresenceContext.Provider,{value:y,children:r})};function c(){return new Map}},205164,t=>{"use strict";t.s(["usePresence",()=>n]);var e=t.i(933825),i=t.i(689405);function n(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],n=(0,e.useContext)(i.PresenceContext);if(null===n)return[!0,null];let{isPresent:s,onExitComplete:r,register:a}=n,o=(0,e.useId)();(0,e.useEffect)(()=>{if(t)return a(o)},[t]);let l=(0,e.useCallback)(()=>t&&r&&r(o),[o,r,t]);return!s&&r?[!1,l]:[!0]}},516783,t=>{"use strict";t.s(["AnimatePresence",()=>h],516783);var e=t.i(628575),i=t.i(933825),n=t.i(885722),s=t.i(303767),r=t.i(262264),a=t.i(55391),o=t.i(205164);let l=t=>t.key||"";function u(t){let e=[];return i.Children.forEach(t,t=>{(0,i.isValidElement)(t)&&e.push(t)}),e}let h=t=>{let{children:h,custom:c,initial:d=!0,onExitComplete:p,presenceAffectsLayout:m=!0,mode:f="sync",propagate:v=!1,anchorX:g="left"}=t,[y,x]=(0,o.usePresence)(v),T=(0,i.useMemo)(()=>u(h),[h]),P=v&&!y?[]:T.map(l),b=(0,i.useRef)(!0),w=(0,i.useRef)(T),S=(0,s.useConstant)(()=>new Map),[V,A]=(0,i.useState)(T),[M,C]=(0,i.useState)(T);(0,r.useIsomorphicLayoutEffect)(()=>{b.current=!1,w.current=T;for(let t=0;t<M.length;t++){let e=l(M[t]);P.includes(e)?S.delete(e):!0!==S.get(e)&&S.set(e,!1)}},[M,P.length,P.join("-")]);let D=[];if(T!==V){let t=[...T];for(let e=0;e<M.length;e++){let i=M[e],n=l(i);P.includes(n)||(t.splice(e,0,i),D.push(i))}return"wait"===f&&D.length&&(t=D),C(u(t)),A(T),null}let{forceRender:E}=(0,i.useContext)(n.LayoutGroupContext);return(0,e.jsx)(e.Fragment,{children:M.map(t=>{let i=l(t),n=(!v||!!y)&&(T===M||P.includes(i));return(0,e.jsx)(a.PresenceChild,{isPresent:n,initial:(!b.current||!!d)&&void 0,custom:c,presenceAffectsLayout:m,mode:f,onExitComplete:n?void 0:()=>{if(!S.has(i))return;S.set(i,!0);let t=!0;S.forEach(e=>{e||(t=!1)}),t&&(null==E||E(),C(w.current),v&&(null==x||x()),p&&p())},anchorX:g,children:t},i)})})}},779737,563638,421433,575114,190031,497988,791698,280672,588391,761991,283808,745825,666458,76403,154699,548921,369801,596350,423049,695392,681518,691376,713859,439622,374525,85607,139807,990476,858860,63125,5660,143209,552448,96175,322565,895621,816889,65633,73219,42939,78904,309927,663258,394751,169239,990072,436759,821423,103736,638458,128602,836293,671729,43298,t=>{"use strict";let e;function i(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy(function(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return t(...i)},{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function s(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function r(t,e,i,n){if("function"==typeof e){let[r,a]=s(n);e=e(void 0!==i?i:t.custom,r,a)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,a]=s(n);e=e(void 0!==i?i:t.custom,r,a)}return e}function a(t,e,i){let n=t.getProps();return r(n,e,void 0!==i?i:n.custom,t)}t.s(["createDOMMotionComponentProxy",()=>i],779737),t.i(857250),t.s(["isAnimationControls",()=>n],563638),t.s(["resolveVariant",()=>a],575114),t.s(["resolveVariantFromProps",()=>r],421433),t.s(["setTarget",()=>V],154699),t.s(["isKeyframesTarget",()=>o],190031);let o=t=>Array.isArray(t);t.s(["motionValue",()=>S],76403),t.s(["time",()=>y],283808),t.s(["cancelFrame",()=>m,"frame",()=>p,"frameData",()=>f,"frameSteps",()=>v],761991),t.s(["createRenderBatcher",()=>c],280672);let l=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];t.s(["statsBuffer",()=>u],497988);let u={value:null,addProjectionMetrics:null};t.s(["MotionGlobalConfig",()=>h],791698);let h={};function c(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,a=l.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,r=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function h(e){a.has(e)&&(c.schedule(e),t()),l++,e(o)}let c={schedule:function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=r&&s?i:n;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(o=t,s){r=!0;return}s=!0,[i,n]=[n,i],i.forEach(h),e&&u.value&&u.value.frameloop[e].push(l),l=0,i.clear(),s=!1,r&&(r=!1,c.process(t))}};return c}(r,e?i:void 0),t),{}),{setup:o,read:c,resolveKeyframes:d,preUpdate:p,update:m,preRender:f,render:v,postRender:g}=a,y=()=>{let r=h.useManualTiming?s.timestamp:performance.now();i=!1,h.useManualTiming||(s.delta=n?1e3/60:Math.max(Math.min(r-s.timestamp,40),1)),s.timestamp=r,s.isProcessing=!0,o.process(s),c.process(s),d.process(s),p.process(s),m.process(s),f.process(s),v.process(s),g.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(y))};return{schedule:l.reduce((e,r)=>{let o=a[r];return e[r]=function(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!i&&(i=!0,n=!0,s.isProcessing||t(y)),o.schedule(e,r,a)},e},{}),cancel:t=>{for(let e=0;e<l.length;e++)a[l[e]].cancel(t)},state:s,steps:a}}t.s(["noop",()=>d],588391);let d=t=>t,{schedule:p,cancel:m,state:f,steps:v}=c("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:d,!0);function g(){e=void 0}let y={now:()=>(void 0===e&&y.set(f.isProcessing||h.useManualTiming?f.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(g)}};function x(t,e){-1===t.indexOf(e)&&t.push(e)}function T(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}t.s(["SubscriptionManager",()=>P],666458),t.s(["addUniqueItem",()=>x,"removeItem",()=>T],745825);class P{add(t){return x(this.subscriptions,t),()=>T(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}constructor(){this.subscriptions=[]}}let b={current:void 0};class w{setCurrent(t){this.current=t,this.updatedAt=y.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]: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 P);let i=this.events[t].add(e);return"change"===t?()=>{i(),p.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){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;null==(t=this.events.change)||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return b.current&&b.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=y.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,e;null==(t=this.dependents)||t.clear(),null==(e=this.events.destroy)||e.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}constructor(t,e={}){var i=this;this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(t){var e,n;let s=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=y.now();if(i.updatedAt!==r&&i.setPrevFrameValue(),i.prev=i.current,i.setCurrent(t),i.current!==i.prev&&(null==(e=i.events.change)||e.notify(i.current),i.dependents))for(let t of i.dependents)t.dirty();s&&(null==(n=i.events.renderRequest)||n.notify(i.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}}function S(t,e){return new w(t,e)}function V(t,e){let{transitionEnd:i={},transition:n={},...s}=a(t,e)||{};for(let e in s={...s,...i}){var r;let i=o(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,S(i))}}t.s(["addValueToWillChange",()=>M],369801),t.s(["isMotionValue",()=>A],548921);let A=t=>!!(t&&t.getVelocity);function M(t,e){let i=t.getValue("willChange");if(A(i)&&i.add)return i.add(e);if(!i&&h.WillChange){let i=new h.WillChange("auto");t.addValue("willChange",i),i.add(e)}}t.s(["getOptimisedAppearId",()=>E],695392),t.s(["optimizedAppearDataAttribute",()=>D],423049),t.s(["camelToDash",()=>C],596350);let C=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),D="data-"+C("framerAppearId");function E(t){return t.props[D]}t.s(["getFinalKeyframe",()=>k],681518);let R=t=>null!==t;function k(t,e,i){let{repeat:n,repeatType:s="loop"}=e,r=t.filter(R),a=n&&"loop"!==s&&n%2==1?0:r.length-1;return a&&void 0!==i?i:r[a]}t.s(["getDefaultTransition",()=>I],713859),t.s(["transformPropOrder",()=>L,"transformProps",()=>B],691376);let L=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],B=new Set(L),F={type:"spring",stiffness:500,damping:25,restSpeed:10},j={type:"keyframes",duration:.8},O={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},I=(t,e)=>{let{keyframes:i}=e;return i.length>2?j:B.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===i[1]?2*Math.sqrt(550):30,restSpeed:10}:F:O};function N(t){let{when:e,delay:i,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:a,repeatType:o,repeatDelay:l,from:u,elapsed:h,...c}=t;return!!Object.keys(c).length}function U(t,e){var i,n;return null!=(n=null!=(i=null==t?void 0:t[e])?i:null==t?void 0:t.default)?n:t}t.s(["isTransitionDefined",()=>N],439622),t.s(["getValueTransition",()=>U],374525),t.s(["millisecondsToSeconds",()=>G,"secondsToMilliseconds",()=>W],85607);let W=t=>1e3*t,G=t=>t/1e3;t.s(["JSAnimation",()=>ex],436759),t.s(["activeAnimations",()=>K],139807);let K={layout:0,mainThread:0,waapi:0};t.s(["isCSSVariableName",()=>H,"isCSSVariableToken",()=>X],990476);let z=t=>e=>"string"==typeof e&&e.startsWith(t),H=z("--"),Y=z("var(--"),X=t=>!!Y(t)&&q.test(t.split("/*")[0].trim()),q=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;t.s(["color",()=>tf],552448),t.s(["alpha",()=>$,"number",()=>_,"scale",()=>J],63125),t.s(["clamp",()=>Z],858860);let Z=(t,e,i)=>i>e?e:i<t?t:i,_={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},$={..._,transform:t=>Z(0,1,t)},J={..._,default:1},Q=t=>Math.round(1e5*t)/1e5;t.s(["floatRegex",()=>tt],5660);let tt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,te=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ti=(t,e)=>i=>!!("string"==typeof i&&te.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tn=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,a,o]=n.match(tt);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},ts={..._,transform:t=>Math.round(Z(0,255,t))},tr={test:ti("rgb","red"),parse:tn("red","green","blue"),transform:t=>{let{red:e,green:i,blue:n,alpha:s=1}=t;return"rgba("+ts.transform(e)+", "+ts.transform(i)+", "+ts.transform(n)+", "+Q($.transform(s))+")"}},ta={test:ti("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:tr.transform};t.s(["degrees",()=>tl,"percent",()=>tu,"progressPercentage",()=>tp,"px",()=>th,"vh",()=>tc,"vw",()=>td],143209);let to=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>"".concat(e).concat(t)}),tl=to("deg"),tu=to("%"),th=to("px"),tc=to("vh"),td=to("vw"),tp={...tu,parse:t=>tu.parse(t)/100,transform:t=>tu.transform(100*t)},tm={test:ti("hsl","hue"),parse:tn("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:i,lightness:n,alpha:s=1}=t;return"hsla("+Math.round(e)+", "+tu.transform(Q(i))+", "+tu.transform(Q(n))+", "+Q($.transform(s))+")"}},tf={test:t=>tr.test(t)||ta.test(t)||tm.test(t),parse:t=>tr.test(t)?tr.parse(t):tm.test(t)?tm.parse(t):ta.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tr.transform(t):tm.transform(t)};t.s(["analyseComplexValue",()=>tT,"complex",()=>tS],96175);let tv=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tg="number",ty="color",tx=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function tT(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,a=e.replace(tx,t=>(tf.test(t)?(n.color.push(r),s.push(ty),i.push(tf.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(tg),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:a,indexes:n,types:s}}function tP(t){return tT(t).values}function tb(t){let{split:e,types:i}=tT(t),n=e.length;return t=>{let s="";for(let r=0;r<n;r++)if(s+=e[r],void 0!==t[r]){let e=i[r];e===tg?s+=Q(t[r]):e===ty?s+=tf.transform(t[r]):s+=t[r]}return s}}let tw=t=>"number"==typeof t?0:t,tS={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(tt))?void 0:e.length)||0)+((null==(i=t.match(tv))?void 0:i.length)||0)>0},parse:tP,createTransformer:tb,getAnimatableNone:function(t){let e=tP(t);return tb(t)(e.map(tw))}};function tV(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 tA(t,e){return i=>i>0?e:t}t.s(["mixNumber",()=>tM],322565);let tM=(t,e,i)=>t+(e-t)*i;t.s(["invariant",()=>tD,"warning",()=>tC],895621);let tC=()=>{},tD=()=>{},tE=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},tR=[ta,tr,tm];function tk(t){let e=tR.find(e=>e.test(t));if(tC(!!e,"'".concat(t,"' is not an animatable color. Use the equivalent color code instead.")),!e)return!1;let i=e.parse(t);return e===tm&&(i=function(t){let{hue:e,saturation:i,lightness:n,alpha:s}=t;e/=360,n/=100;let r=0,a=0,o=0;if(i/=100){let t=n<.5?n*(1+i):n+i-n*i,s=2*n-t;r=tV(s,t,e+1/3),a=tV(s,t,e),o=tV(s,t,e-1/3)}else r=a=o=n;return{red:Math.round(255*r),green:Math.round(255*a),blue:Math.round(255*o),alpha:s}}(i)),i}let tL=(t,e)=>{let i=tk(t),n=tk(e);if(!i||!n)return tA(t,e);let s={...i};return t=>(s.red=tE(i.red,n.red,t),s.green=tE(i.green,n.green,t),s.blue=tE(i.blue,n.blue,t),s.alpha=tM(i.alpha,n.alpha,t),tr.transform(s))},tB=new Set(["none","hidden"]);t.s(["pipe",()=>tj],816889);let tF=(t,e)=>i=>e(t(i)),tj=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.reduce(tF)};function tO(t,e){return i=>tM(t,e,i)}function tI(t){return"number"==typeof t?tO:"string"==typeof t?X(t)?tA:tf.test(t)?tL:tW:Array.isArray(t)?tN:"object"==typeof t?tf.test(t)?tL:tU:tA}function tN(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>tI(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function tU(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=tI(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let tW=(t,e)=>{let i=tS.createTransformer(e),n=tT(t),s=tT(e);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?tB.has(t)&&!s.values.length||tB.has(e)&&!n.values.length?function(t,e){return tB.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):tj(tN(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){var s;let a=e.types[r],o=t.indexes[a][n[a]],l=null!=(s=t.values[o])?s:0;i[r]=l,n[a]++}return i}(n,s),s.values),i):(tC(!0,"Complex values '".concat(t,"' and '").concat(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.")),tA(t,e))};function tG(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?tM(t,e,i):tI(t)(t,e)}let tK=t=>{let e=e=>{let{timestamp:i}=e;return t(i)};return{start:function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return p.update(e,t)},stop:()=>m(e),now:()=>f.isProcessing?f.timestamp:y.now()}};t.s(["spring",()=>tQ],73219);let tz=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=t(e/(s-1))+", ";return"linear(".concat(n.substring(0,n.length-2),")")};function tH(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 tY(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,i=arguments.length>2?arguments[2]:void 0,n=i({...t,keyframes:[0,e]}),s=Math.min(tH(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:G(s)}}function tX(t,e,i){var n,s;let r=Math.max(e-5,0);return n=i-t(r),(s=e-r)?1e3/s*n:0}t.s(["createGeneratorEasing",()=>tY],65633);let tq={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function tZ(t,e){return t*Math.sqrt(1-e*e)}let t_=["duration","bounce"],t$=["stiffness","damping","mass"];function tJ(t,e){return e.some(e=>void 0!==t[e])}function tQ(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tq.visualDuration,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tq.bounce,n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:i}:e,{restSpeed:s,restDelta:r}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:tq.velocity,stiffness:tq.stiffness,damping:tq.damping,mass:tq.mass,isResolvedFromDuration:!1,...t};if(!tJ(t,t$)&&tJ(t,t_))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*Z(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:tq.mass,stiffness:n,damping:s}}else{let i=function(t){let e,i,{duration:n=tq.duration,bounce:s=tq.bounce,velocity:r=tq.velocity,mass:a=tq.mass}=t;tC(n<=W(tq.maxDuration),"Spring duration must be 10 seconds or less");let o=1-s;o=Z(tq.minDamping,tq.maxDamping,o),n=Z(tq.minDuration,tq.maxDuration,G(n)),o<1?(e=t=>{let e=t*o,i=e*n;return .001-(e-r)/tZ(t,o)*Math.exp(-i)},i=t=>{let i=t*o*n,s=Math.pow(o,2)*Math.pow(t,2)*n,a=Math.exp(-i),l=tZ(Math.pow(t,2),o);return(i*r+r-s)*a*(-e(t)+.001>0?-1:1)/l}):(e=t=>-.001+Math.exp(-t*n)*((t-r)*n+1),i=t=>n*n*(r-t)*Math.exp(-t*n));let l=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(e,i,5/n);if(n=W(n),isNaN(l))return{stiffness:tq.stiffness,damping:tq.damping,duration:n};{let t=Math.pow(l,2)*a;return{stiffness:t,damping:2*o*Math.sqrt(a*t),duration:n}}}(t);(e={...e,...i,mass:tq.mass}).isResolvedFromDuration=!0}return e}({...n,velocity:-G(n.velocity||0)}),f=p||0,v=h/(2*Math.sqrt(u*c)),g=o-a,y=G(Math.sqrt(u/c)),x=5>Math.abs(g);if(s||(s=x?tq.restSpeed.granular:tq.restSpeed.default),r||(r=x?tq.restDelta.granular:tq.restDelta.default),v<1){let e=tZ(y,v);t=t=>o-Math.exp(-v*y*t)*((f+v*y*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(1===v)t=t=>o-Math.exp(-y*t)*(g+(f+y*g)*t);else{let e=y*Math.sqrt(v*v-1);t=t=>{let i=Math.exp(-v*y*t),n=Math.min(e*t,300);return o-i*((f+v*y*g)*Math.sinh(n)+e*g*Math.cosh(n))/e}}let T={calculatedDuration:m&&d||null,next:e=>{let i=t(e);if(m)l.done=e>=d;else{let n=0===e?f:0;v<1&&(n=0===e?W(f):tX(t,e,i));let a=Math.abs(o-i)<=r;l.done=Math.abs(n)<=s&&a}return l.value=l.done?o:i,l},toString:()=>{let t=Math.min(tH(T),2e4),e=tz(e=>T.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return T}function t0(t){let e,i,{keyframes:n,velocity:s=0,power:r=.8,timeConstant:a=325,bounceDamping:o=10,bounceStiffness:l=500,modifyTarget:u,min:h,max:c,restDelta:d=.5,restSpeed:p}=t,m=n[0],f={done:!1,value:m},v=r*s,g=m+v,y=void 0===u?g:u(g);y!==g&&(v=y-m);let x=t=>-v*Math.exp(-t/a),T=t=>y+x(t),P=t=>{let e=x(t),i=T(t);f.done=Math.abs(e)<=d,f.value=f.done?y:i},b=t=>{let n;if(n=f.value,void 0!==h&&n<h||void 0!==c&&n>c){var s;e=t,i=tQ({keyframes:[f.value,(s=f.value,void 0===h?c:void 0===c||Math.abs(h-s)<Math.abs(c-s)?h:c)],velocity:tX(T,t,f.value),damping:o,stiffness:l,restDelta:d,restSpeed:p})}};return b(0),{calculatedDuration:null,next:t=>{let n=!1;return(i||void 0!==e||(n=!0,P(t),b(t)),void 0!==e&&t>=e)?i.next(t-e):(n||P(t),f)}}}tQ.applyToOptions=t=>{let e=tY(t,100,tQ);return t.ease=e.ease,t.duration=W(e.duration),t.type="keyframes",t},t.s(["progress",()=>t1],42939);let t1=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function t3(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=t1(0,e,n);t.push(tM(i,1,s))}}function t2(t){let e=[0];return t3(e,t.length-1),e}t.s(["defaultOffset",()=>t2],309927),t.s(["fillOffset",()=>t3],78904);let t5=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function t9(t,e,i,n){return t===e&&i===n?d:s=>0===s||1===s?s:t5(function(t,e,i,n,s){let r,a,o=0;do(r=t5(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(r)>1e-7&&++o<12)return a}(s,0,1,t,i),e,n)}let t6=t9(.42,0,1,1),t8=t9(0,0,.58,1),t4=t9(.42,0,.58,1);t.s(["isEasingArray",()=>t7],663258);let t7=t=>Array.isArray(t)&&"number"!=typeof t[0],et=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ee=t=>e=>1-t(1-e),ei=t9(.33,1.53,.69,.99),en=ee(ei),es=et(en),er=t=>(t*=2)<1?.5*en(t):.5*(2-Math.pow(2,-10*(t-1)));t.s(["circIn",()=>ea,"circInOut",()=>el,"circOut",()=>eo],394751);let ea=t=>1-Math.sin(Math.acos(t)),eo=ee(ea),el=et(ea),eu=t=>Array.isArray(t)&&"number"==typeof t[0],eh={linear:d,easeIn:t6,easeInOut:t4,easeOut:t8,circIn:ea,circInOut:el,circOut:eo,backIn:en,backInOut:es,backOut:ei,anticipate:er},ec=t=>{if(eu(t)){tD(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,s]=t;return t9(e,i,n,s)}return"string"==typeof t?(tD(void 0!==eh[t],"Invalid easing type '".concat(t,"'")),eh[t]):t};function ed(t){var e;let{duration:i=300,keyframes:n,times:s,ease:r="easeInOut"}=t,a=t7(r)?r.map(ec):ec(r),o={done:!1,value:n[0]},l=function(t,e){let{clamp:i=!0,ease:n,mixer:s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.length;if(tD(r===e.length,"Both input and output ranges must be the same length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let n=[],s=i||h.mix||tG,r=t.length-1;for(let i=0;i<r;i++){let r=s(t[i],t[i+1]);e&&(r=tj(Array.isArray(e)?e[i]||d:e,r)),n.push(r)}return n}(e,n,s),l=o.length,u=i=>{if(a&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=t1(t[n],t[n+1],i);return o[n](s)};return i?e=>u(Z(t[0],t[r-1],e)):u}((e=s&&s.length===n.length?s:t2(n),e.map(t=>t*i)),n,{ease:Array.isArray(a)?a:n.map(()=>a||t4).splice(0,n.length-1)});return{calculatedDuration:i,next:t=>(o.value=l(t),o.done=t>=i,o)}}t.s(["getFinalKeyframe",()=>em],169239);let ep=t=>null!==t;function em(t,e,i){let{repeat:n,repeatType:s="loop"}=e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=t.filter(ep),o=r<0||n&&"loop"!==s&&n%2==1?0:a.length-1;return o&&void 0!==i?i:a[o]}let ef={decay:t0,inertia:t0,tween:ed,keyframes:ed,spring:tQ};function ev(t){"string"==typeof t.type&&(t.type=ef[t.type])}t.s(["WithPromise",()=>eg],990072);class eg{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)}constructor(){this.updateFinished()}}let ey=t=>t/100;class ex extends eg{initAnimation(){let{options:t}=this;ev(t);let{type:e=ed,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:a}=t,o=e||ed;o!==ed&&"number"!=typeof a[0]&&(this.mixKeyframes=tj(ey,tG(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===s&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=tH(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{generator:i,totalDuration:n,mixKeyframes:s,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:c,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?v<0:v>n;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let y=this.currentTime,x=i;if(h){let t=Math.min(this.currentTime,n)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,h+1))%2&&("reverse"===c?(i=1-i,d&&(i-=d/a)):"mirror"===c&&(x=r)),y=Z(0,1,i)*a}let T=g?{done:!1,value:u[0]}:x.next(y);s&&(T.value=s(T.value));let{done:P}=T;g||null===o||(P=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return b&&p!==t0&&(T.value=em(u,this.options,f,this.speed)),m&&m(T.value),b&&this.finish(),T}then(t,e){return this.finished.then(t,e)}get duration(){return G(this.calculatedDuration)}get time(){return G(this.currentTime)}set time(t){var e;t=W(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),null==(e=this.driver)||e.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(y.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=G(this.currentTime))}play(){var t,e;if(this.isStopped)return;let{driver:i=tK,startTime:n}=this.options;this.driver||(this.driver=i(t=>this.tick(t))),null==(t=(e=this.options).onPlay)||t.call(e);let s=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=s):null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime||(this.startTime=null!=n?n:s),"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(y.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,e;this.notifyFinished(),this.teardown(),this.state="finished",null==(t=(e=this.options).onComplete)||t.call(e)}cancel(){var t,e;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null==(t=(e=this.options).onCancel)||t.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,K.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var e;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null==(e=this.driver)||e.stop(),t.observe(this)}constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var t,e;let{motionValue:i}=this.options;i&&i.updatedAt!==y.now()&&this.tick(y.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),null==(t=(e=this.options).onStop)||t.call(e))},K.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}}t.s(["KeyframeResolver",()=>eK,"flushKeyframeResolvers",()=>eG],638458),t.s(["isNumOrPxType",()=>eR,"positionalValues",()=>eF,"removeNonTranslationalTransform",()=>eB],103736),t.s(["defaultTransformValue",()=>eM,"parseValueFromTransform",()=>eC,"readTransformValue",()=>eD],821423);let eT=t=>180*t/Math.PI,eP=t=>ew(eT(Math.atan2(t[1],t[0]))),eb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:eP,rotateZ:eP,skewX:t=>eT(Math.atan(t[1])),skewY:t=>eT(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},ew=t=>((t%=360)<0&&(t+=360),t),eS=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),eV=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),eA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:eS,scaleY:eV,scale:t=>(eS(t)+eV(t))/2,rotateX:t=>ew(eT(Math.atan2(t[6],t[5]))),rotateY:t=>ew(eT(Math.atan2(-t[2],t[0]))),rotateZ:eP,rotate:eP,skewX:t=>eT(Math.atan(t[4])),skewY:t=>eT(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function eM(t){return+!!t.includes("scale")}function eC(t,e){let i,n;if(!t||"none"===t)return eM(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=eA,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=eb,n=e}if(!n)return eM(e);let r=i[e],a=n[1].split(",").map(eE);return"function"==typeof r?r(a):a[r]}let eD=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return eC(i,e)};function eE(t){return parseFloat(t.trim())}let eR=t=>t===_||t===th,ek=new Set(["x","y","z"]),eL=L.filter(t=>!ek.has(t));function eB(t){let e=[];return eL.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}let eF={width:(t,e)=>{let{x:i}=t,{paddingLeft:n="0",paddingRight:s="0"}=e;return i.max-i.min-parseFloat(n)-parseFloat(s)},height:(t,e)=>{let{y:i}=t,{paddingTop:n="0",paddingBottom:s="0"}=e;return i.max-i.min-parseFloat(n)-parseFloat(s)},top:(t,e)=>{let{top:i}=e;return parseFloat(i)},left:(t,e)=>{let{left:i}=e;return parseFloat(i)},bottom:(t,e)=>{let{y:i}=t,{top:n}=e;return parseFloat(n)+(i.max-i.min)},right:(t,e)=>{let{x:i}=t,{left:n}=e;return parseFloat(n)+(i.max-i.min)},x:(t,e)=>{let{transform:i}=e;return eC(i,"x")},y:(t,e)=>{let{transform:i}=e;return eC(i,"y")}};eF.translateX=eF.x,eF.translateY=eF.y;let ej=new Set,eO=!1,eI=!1,eN=!1;function eU(){if(eI){let t=Array.from(ej).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=eB(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(e=>{var i;let[n,s]=e;null==(i=t.getValue(n))||i.set(s)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}eI=!1,eO=!1,ej.forEach(t=>t.complete(eN)),ej.clear()}function eW(){ej.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(eI=!0)})}function eG(){eN=!0,eW(),eU(),eN=!1}class eK{scheduleResolve(){this.state="scheduled",this.isAsync?(ej.add(this),eO||(eO=!0,p.read(eW),p.resolveKeyframes(eU))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=null==n?void 0:n.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e<t.length;e++)null!=t[e]||(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ej.delete(this)}cancel(){"scheduled"===this.state&&(ej.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}}function ez(t){let e;return()=>(void 0===e&&(e=t()),e)}t.s(["NativeAnimationExtended",()=>eQ],671729),t.s(["memo",()=>ez],128602);let eH=ez(()=>void 0!==window.ScrollTimeline),eY={},eX=function(t,e){let i=ez(t);return()=>{var t;return null!=(t=eY[e])?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),eq=t=>{let[e,i,n,s]=t;return"cubic-bezier(".concat(e,", ").concat(i,", ").concat(n,", ").concat(s,")")},eZ={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eq([0,.65,.55,1]),circOut:eq([.55,0,1,.45]),backIn:eq([.31,.01,.66,-.59]),backOut:eq([.33,1.53,.69,.99])};function e_(t){return"function"==typeof t&&"applyToOptions"in t}t.s(["isGenerator",()=>e_],836293);class e$ extends eg{play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,e;null==(t=(e=this.animation).finish)||t.call(e)}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(){if(!this.isPseudoElement){var t,e;null==(t=(e=this.animation).commitStyles)||t.call(e)}}get duration(){var t,e;return G(Number((null==(e=this.animation.effect)||null==(t=e.getComputedTiming)?void 0:t.call(e).duration)||0))}get time(){return G(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=W(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline(t){let{timeline:e,observe:i}=t;if(this.allowFlatten){var n;null==(n=this.animation.effect)||n.updateTiming({easing:"linear"})}return(this.animation.onfinish=null,e&&eH())?(this.animation.timeline=e,d):i(this)}constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,tD("string"!=typeof t.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');let l=function(t){let{type:e,...i}=t;return e_(e)&&eX()?e.applyToOptions(i):(null!=i.duration||(i.duration=300),null!=i.ease||(i.ease="easeOut"),i)}(t);this.animation=function(t,e,i){let{delay:n=0,duration:s=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},h=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,c={[e]:i};l&&(c.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?eX()?tz(e,i):"ease-out":eu(e)?eq(e):Array.isArray(e)?e.map(e=>t(e,i)||eZ.easeOut):eZ[e]}(o,s);Array.isArray(d)&&(c.easing=d),u.value&&K.waapi++;let p={delay:n,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};h&&(p.pseudoElement=h);let m=t.animate(c,p);return u.value&&m.finished.finally(()=>{K.waapi--}),m}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=em(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}(e,i,t),this.animation.cancel()}null==o||o(),this.notifyFinished()}}}let eJ={anticipate:er,backInOut:es,circInOut:el};class eQ extends e${updateMotionValue(t){var e;let{motionValue:i,onUpdate:n,onComplete:s,element:r,...a}=this.options;if(!i)return;if(void 0!==t)return void i.set(t);let o=new ex({...a,autoplay:!1}),l=W(null!=(e=this.finishedTime)?e:this.time);i.setWithVelocity(o.sample(l-10).value,o.sample(l).value,10),o.stop()}constructor(t){!function(t){"string"==typeof t.ease&&t.ease in eJ&&(t.ease=eJ[t.ease])}(t),ev(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}}t.s(["canAnimate",()=>e1],43298);let e0=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tS.test(t)||"0"===t)&&!t.startsWith("url("));function e1(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],a=e0(s,e),o=e0(r,e);return tC(a===o,"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(r,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(r," via the `style` property.")),!!a&&!!o&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||e_(i))&&n)}},286453,916913,340269,331466,838877,752723,752071,388001,271259,844584,958041,676707,397445,471161,352472,342169,785554,288653,228310,442894,t=>{"use strict";t.s(["animations",()=>K],286453);var e=t.i(563638),i=t.i(575114);t.s(["animateTarget",()=>C],331466);var n=t.i(154699),s=t.i(369801),r=t.i(695392);t.s(["animateMotionValue",()=>A],916913);var a=t.i(681518),o=t.i(713859),l=t.i(439622),u=t.i(374525),h=t.i(85607),c=t.i(791698),d=t.i(761991),p=t.i(436759),m=t.i(283808),f=t.i(169239),v=t.i(638458),g=t.i(671729),y=t.i(43298),x=t.i(990072),T=t.i(292001),P=t.i(128602);let b=new Set(["opacity","clipPath","filter","transform"]),w=(0,P.memo)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));var S=t.i(588391);class V extends x.WithPromise{onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:s,type:r,velocity:a,delay:o,isHandoff:l,onUpdate:u}=i;this.resolvedAt=m.time.now(),(0,y.canAnimate)(t,s,r,a)||((c.MotionGlobalConfig.instantAnimations||!o)&&(null==u||u((0,f.getFinalKeyframe)(t,i,e))),t[0]=t[t.length-1],i.duration=0,i.repeat=0);let h={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},d=!l&&function(t){var e;let{motionValue:i,name:n,repeatDelay:s,repeatType:r,damping:a,type:o}=t;if(!(0,T.isHTMLElement)(null==i||null==(e=i.owner)?void 0:e.current))return!1;let{onUpdate:l,transformTemplate:u}=i.owner.getProps();return w()&&n&&b.has(n)&&("transform"!==n||!u)&&!l&&!s&&"mirror"!==r&&0!==a&&"inertia"!==o}(h)?new g.NativeAnimationExtended({...h,element:h.motionValue.owner.current}):new p.JSAnimation(h);d.finished.then(()=>this.notifyFinished()).catch(S.noop),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){if(!this._animation){var t;null==(t=this.keyframeResolver)||t.resume(),(0,v.flushKeyframeResolvers)()}return this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),null==(t=this.keyframeResolver)||t.cancel()}constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){var c;super(),this.stop=()=>{var t,e;this._animation&&(this._animation.stop(),null==(e=this.stopTimeline)||e.call(this)),null==(t=this.keyframeResolver)||t.cancel()},this.createdAt=m.time.now();let d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:o,motionValue:l,element:u,...h},p=(null==u?void 0:u.KeyframeResolver)||v.KeyframeResolver;this.keyframeResolver=new p(a,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),o,l,u),null==(c=this.keyframeResolver)||c.scheduleResolve()}}let A=function(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0;return m=>{let f=(0,u.getValueTransition)(n,t)||{},v=f.delay||n.delay||0,{elapsed:g=0}=n;g-=(0,h.secondsToMilliseconds)(v);let y={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...f,delay:-g,onUpdate:t=>{e.set(t),f.onUpdate&&f.onUpdate(t)},onComplete:()=>{m(),f.onComplete&&f.onComplete()},name:t,motionValue:e,element:r?void 0:s};(0,l.isTransitionDefined)(f)||Object.assign(y,(0,o.getDefaultTransition)(t,y)),y.duration&&(y.duration=(0,h.secondsToMilliseconds)(y.duration)),y.repeatDelay&&(y.repeatDelay=(0,h.secondsToMilliseconds)(y.repeatDelay)),void 0!==y.from&&(y.keyframes[0]=y.from);let x=!1;if(!1!==y.type&&(0!==y.duration||y.repeatDelay)||(y.duration=0,0===y.delay&&(x=!0)),(c.MotionGlobalConfig.instantAnimations||c.MotionGlobalConfig.skipAnimations)&&(x=!0,y.duration=0,y.delay=0),y.allowFlatten=!f.type&&!f.ease,x&&!r&&void 0!==e.get()){let t=(0,a.getFinalKeyframe)(y.keyframes,f);if(void 0!==t)return void d.frame.update(()=>{y.onUpdate(t),y.onComplete()})}return f.isSync?new p.JSAnimation(y):new V(y)}};t.s(["positionalKeys",()=>M],340269);let M=new Set(["width","height","top","left","right","bottom",...t.i(691376).transformPropOrder]);function C(t,e){let{delay:i=0,transitionOverride:a,type:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:l=t.getDefaultTransition(),transitionEnd:h,...c}=e;a&&(l=a);let p=[],m=o&&t.animationState&&t.animationState.getState()[o];for(let e in c){var f;let n=t.getValue(e,null!=(f=t.latestValues[e])?f:null),a=c[e];if(void 0===a||m&&function(t,e){let{protectedKeys:i,needsAnimating:n}=t,s=i.hasOwnProperty(e)&&!0!==n[e];return n[e]=!1,s}(m,e))continue;let o={delay:i,...(0,u.getValueTransition)(l||{},e)},h=n.get();if(void 0!==h&&!n.isAnimating&&!Array.isArray(a)&&a===h&&!o.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){let i=(0,r.getOptimisedAppearId)(t);if(i){let t=window.MotionHandoffAnimation(i,e,d.frame);null!==t&&(o.startTime=t,v=!0)}}(0,s.addValueToWillChange)(t,e),n.start(A(e,n,a,t.shouldReduceMotion&&M.has(e)?{type:!1}:o,t,v));let g=n.animation;g&&p.push(g)}return h&&Promise.all(p).then(()=>{d.frame.update(()=>{h&&(0,n.setTarget)(t,h)})}),p}function D(t,e){var n;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,i.resolveVariant)(t,e,"exit"===s.type?null==(n=t.presenceContext)?void 0:n.custom:void 0),{transition:a=t.getDefaultTransition()||{}}=r||{};s.transitionOverride&&(a=s.transitionOverride);let o=r?()=>Promise.all(C(t,r,s)):()=>Promise.resolve(),l=t.variantChildren&&t.variantChildren.size?function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{delayChildren:n=0,staggerChildren:r,staggerDirection:o}=a;return function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=arguments.length>5?arguments[5]:void 0,a=[],o=(t.variantChildren.size-1)*n,l=1===s?function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t*n}:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return o-t*n};return Array.from(t.variantChildren).sort(E).forEach((t,n)=>{t.notify("AnimationStart",e),a.push(D(t,e,{...r,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(a)}(t,e,n+i,r,o,s)}:()=>Promise.resolve(),{when:u}=a;if(!u)return Promise.all([o(),l(s.delay)]);{let[t,e]="beforeChildren"===u?[o,l]:[l,o];return t().then(()=>e())}}function E(t,e){return t.sortNodePosition(e)}var R=t.i(190031);function k(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function L(t){return"string"==typeof t||Array.isArray(t)}t.s(["isVariantLabel",()=>L],838877),t.s(["variantPriorityOrder",()=>B,"variantProps",()=>F],752723);let B=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],F=["initial",...B],j=F.length,O=[...B].reverse(),I=B.length;function N(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function U(){return{animate:N(!0),whileInView:N(),whileHover:N(),whileTap:N(),whileDrag:N(),whileFocus:N(),exit:N()}}t.s(["Feature",()=>W],752071);class W{update(){}constructor(t){this.isMounted=!1,this.node=t}}let G=0,K={animation:{Feature:class extends W{updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,e.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(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}constructor(t){super(t),t.animationState||(t.animationState=function(t){let n=e=>Promise.all(e.map(e=>{let{animation:n,options:s}=e;return function(t,e){let n,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>D(t,e,s)));else if("string"==typeof e)n=D(t,e,s);else{let r="function"==typeof e?(0,i.resolveVariant)(t,e,s.custom):e;n=Promise.all(C(t,r,s))}return n.then(()=>{t.notify("AnimationComplete",e)})}(t,n,s)})),s=U(),r=!0,a=e=>(n,s)=>{var r;let a=(0,i.resolveVariant)(t,s,"exit"===e?null==(r=t.presenceContext)?void 0:r.custom:void 0);if(a){let{transition:t,transitionEnd:e,...i}=a;n={...n,...i,...e}}return n};function o(o){let{props:l}=t,u=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<j;t++){let n=F[t],s=e.props[n];(L(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},h=[],c=new Set,d={},p=1/0;for(let i=0;i<I;i++){var m,f;let n=O[i],v=s[n],g=void 0!==l[n]?l[n]:u[n],y=L(g),x=n===o?v.isActive:null;!1===x&&(p=i);let T=g===u[n]&&g!==l[n]&&y;if(T&&r&&t.manuallyAnimateOnMount&&(T=!1),v.protectedKeys={...d},!v.isActive&&null===x||!g&&!v.prevProp||(0,e.isAnimationControls)(g)||"boolean"==typeof g)continue;let P=(m=v.prevProp,"string"==typeof(f=g)?f!==m:!!Array.isArray(f)&&!k(f,m)),b=P||n===o&&v.isActive&&!T&&y||i>p&&y,w=!1,S=Array.isArray(g)?g:[g],V=S.reduce(a(n),{});!1===x&&(V={});let{prevResolvedValues:A={}}=v,M={...A,...V},C=e=>{b=!0,c.has(e)&&(w=!0,c.delete(e)),v.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in M){let e=V[t],i=A[t];if(!d.hasOwnProperty(t))((0,R.isKeyframesTarget)(e)&&(0,R.isKeyframesTarget)(i)?k(e,i):e===i)?void 0!==e&&c.has(t)?C(t):v.protectedKeys[t]=!0:null!=e?C(t):c.add(t)}v.prevProp=g,v.prevResolvedValues=V,v.isActive&&(d={...d,...V}),r&&t.blockInitialAnimation&&(b=!1);let D=!(T&&P)||w;b&&D&&h.push(...S.map(t=>({animation:t,options:{type:n}})))}if(c.size){let e={};if("boolean"!=typeof l.initial){let n=(0,i.resolveVariant)(t,Array.isArray(l.initial)?l.initial[0]:l.initial);n&&n.transition&&(e.transition=n.transition)}c.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=null!=n?n:null}),h.push({animation:e})}let v=!!h.length;return r&&(!1===l.initial||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(v=!1),r=!1,v?n(h):Promise.resolve()}return{animateChanges:o,setActive:function(e,i){var n;if(s[e].isActive===i)return Promise.resolve();null==(n=t.variantChildren)||n.forEach(t=>{var n;return null==(n=t.animationState)?void 0:n.setActive(e,i)}),s[e].isActive=i;let r=o(e);for(let t in s)s[t].protectedKeys={};return r},setAnimateFunction:function(e){n=e(t)},getState:()=>s,reset:()=>{s=U(),r=!0}}}(t))}}},exit:{Feature:class extends W{update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}constructor(){super(...arguments),this.id=G++}}}};function z(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}t.s(["DragGesture",()=>tY],228310),t.s(["addDomEvent",()=>z],388001),t.s(["addPointerInfo",()=>X,"extractEventInfo",()=>Y],844584),t.s(["isPrimaryPointer",()=>H],271259);let H=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function Y(t){return{point:{x:t.pageX,y:t.pageY}}}let X=t=>e=>H(e)&&t(e,Y(e));function q(t,e,i,n){return z(t,e,X(i),n)}function Z(t){let{top:e,left:i,right:n,bottom:s}=t;return{x:{min:i,max:n},y:{min:e,max:s}}}t.s(["calcBoxDelta",()=>tt,"calcLength",()=>$,"calcRelativeBox",()=>ti,"calcRelativePosition",()=>ts,"isNear",()=>J],958041);var _=t.i(322565);function $(t){return t.max-t.min}function J(t,e,i){return Math.abs(t-e)<=i}function Q(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=n,t.originPoint=(0,_.mixNumber)(e.min,e.max,t.origin),t.scale=$(i)/$(e),t.translate=(0,_.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 tt(t,e,i,n){Q(t.x,e.x,i.x,n?n.originX:void 0),Q(t.y,e.y,i.y,n?n.originY:void 0)}function te(t,e,i){t.min=i.min+e.min,t.max=t.min+$(e)}function ti(t,e,i){te(t.x,e.x,i.x),te(t.y,e.y,i.y)}function tn(t,e,i){t.min=e.min-i.min,t.max=t.min+$(e)}function ts(t,e,i){tn(t.x,e.x,i.x),tn(t.y,e.y,i.y)}t.s(["createBox",()=>tl,"createDelta",()=>ta],676707);let tr=()=>({translate:0,scale:1,origin:0,originPoint:0}),ta=()=>({x:tr(),y:tr()}),to=()=>({min:0,max:0}),tl=()=>({x:to(),y:to()});function tu(t){return[t("x"),t("y")]}function th(t){return void 0===t||1===t}function tc(t){let{scale:e,scaleX:i,scaleY:n}=t;return!th(e)||!th(i)||!th(n)}function td(t){return tc(t)||tp(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function tp(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function tm(t,e,i){return i+e*(t-i)}function tf(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function tv(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;t.min=tf(t.min,e,i,n,s),t.max=tf(t.max,e,i,n,s)}function tg(t,e){let{x:i,y:n}=e;tv(t.x,i.translate,i.scale,i.originPoint),tv(t.y,n.translate,n.scale,n.originPoint)}function ty(t,e,i){let n,s,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){s=(n=i[o]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&tP(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,tg(t,s)),r&&td(n.latestValues)&&tP(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function tx(t,e){t.min=t.min+e,t.max=t.max+e}function tT(t,e,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5,r=(0,_.mixNumber)(t.min,t.max,s);tv(t,e,i,r,n)}function tP(t,e){tT(t.x,e.x,e.scaleX,e.scale,e.originX),tT(t.y,e.y,e.scaleY,e.scale,e.originY)}function tb(t,e){return Z(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}function tw(t,e,i){let n=tb(t,i),{scroll:s}=e;return s&&(tx(n.x,s.offset.x),tx(n.y,s.offset.y)),n}t.s(["eachAxis",()=>tu],397445),t.s(["measurePageBox",()=>tw,"measureViewportBox",()=>tb],342169),t.s(["applyBoxDelta",()=>tg,"applyTreeDeltas",()=>ty,"scalePoint",()=>tm,"transformBox",()=>tP,"translateAxis",()=>tx],352472),t.s(["has2DTranslate",()=>tp,"hasScale",()=>tc,"hasTransform",()=>td],471161);let tS=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null};function tV(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}t.s(["isRefObject",()=>tV],785554);let tA=(t,e)=>Math.abs(t-e);var tM=t.i(816889);class tC{updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,d.cancelFrame)(this.updatePoint)}constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=tR(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(tA(t.x,e.x)**2+tA(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:s}=d.frameData;this.history.push({...n,timestamp:s});let{onStart:r,onMove:a}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=tD(e,this.transformPagePoint),d.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=tR("pointercancel"===t.type?this.lastMoveEventInfo:tD(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!H(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let r=tD(Y(t),this.transformPagePoint),{point:a}=r,{timestamp:o}=d.frameData;this.history=[{...a,timestamp:o}];let{onSessionStart:l}=e;l&&l(t,tR(r,this.history)),this.removeListeners=(0,tM.pipe)(q(this.contextWindow,"pointermove",this.handlePointerMove),q(this.contextWindow,"pointerup",this.handlePointerUp),q(this.contextWindow,"pointercancel",this.handlePointerUp))}}function tD(t,e){return e?{point:e(t.point)}:t}function tE(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tR(t,e){let{point:i}=t;return{point:i,delta:tE(i,tk(e)),offset:tE(i,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=tk(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>(0,h.secondsToMilliseconds)(.1)));)i--;if(!n)return{x:0,y:0};let r=(0,h.millisecondsToSeconds)(s.timestamp-n.timestamp);if(0===r)return{x:0,y:0};let a={x:(s.x-n.x)/r,y:(s.y-n.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,.1)}}function tk(t){return t[t.length-1]}var tL=t.i(42939),tB=t.i(858860);function tF(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 tj(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function tO(t,e,i){return{min:tI(t,e),max:tI(t,i)}}function tI(t,e){return"number"==typeof t?t:t[e]||0}var tN=t.i(895621);t.s(["isDragActive",()=>tW,"isDragging",()=>tU],288653);let tU={x:!1,y:!1};function tW(){return tU.x||tU.y}var tG=t.i(143209);let tK=new WeakMap;class tz{start(t){let{snapToCursor:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let n=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(Y(t).point)},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(tU[t])return null;else return tU[t]=!0,()=>{tU[t]=!1};return tU.x||tU.y?null:(tU.x=tU.y=!0,()=>{tU.x=tU.y=!1})}(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tu(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tG.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=$(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&d.frame.postRender(()=>r(t,e)),(0,s.addValueToWillChange)(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},a=(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&r(t,e)},o=(t,e)=>this.stop(t,e),l=()=>tu(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new tC(t,{onSessionStart:n,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:tS(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:s}=this.getProps();s&&d.frame.postRender(()=>s(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!tH(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,e,i){let{min:n,max:s}=e;return void 0!==n&&t<n?t=i?(0,_.mixNumber)(n,t,i.min):Math.max(t,n):void 0!==s&&t>s&&(t=i?(0,_.mixNumber)(s,t,i.max):Math.min(t,s)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,s=this.constraints;e&&tV(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,e){let{top:i,left:n,bottom:s,right:r}=e;return{x:tF(t.x,n,r),y:tF(t.y,i,s)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:tO(t,"left","right"),y:tO(t,"top","bottom")}}(i),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&tu(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!tV(e))return!1;let n=e.current;(0,tN.invariant)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=tw(n,s.root,this.visualElement.getTransformPagePoint()),a=(t=s.layout.layoutBox,{x:tj(t.x,r.x),y:tj(t.y,r.y)});if(i){let t=i(function(t){let{x:e,y:i}=t;return{top:i.min,right:e.max,bottom:i.max,left:e.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=Z(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(tu(a=>{if(!tH(a,e,this.currentDirection))return;let l=o&&o[a]||{};r&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,s.addValueToWillChange)(this.visualElement,t),i.start(A(t,i,0,e,this.visualElement,!1))}stopAnimation(){tu(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tu(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e="_drag".concat(t.toUpperCase()),i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){tu(e=>{let{drag:i}=this.getProps();if(!tH(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e];s.set(t[e]-(0,_.mixNumber)(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!tV(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};tu(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=$(t),s=$(e);return s>n?i=(0,tL.progress)(e.min,e.max-n,t.min):n>s&&(i=(0,tL.progress)(t.min,t.max-s,e.min)),(0,tB.clamp)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),tu(e=>{if(!tH(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set((0,_.mixNumber)(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;tK.set(this.visualElement,this);let t=q(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();tV(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),d.frame.read(e);let s=z(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i}=t;this.isDragging&&i&&(tu(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),t(),n(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:a}}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=tl(),this.visualElement=t}}function tH(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tY extends W{mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||S.noop}unmount(){this.removeGroupControls(),this.removeListeners()}constructor(t){super(t),this.removeGroupControls=S.noop,this.removeListeners=S.noop,this.controls=new tz(t)}}t.s(["PanGesture",()=>tq],442894);let tX=t=>(e,i)=>{t&&d.frame.postRender(()=>t(e,i))};class tq extends W{onPointerDown(t){this.session=new tC(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tS(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:tX(t),onStart:tX(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&d.frame.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=q(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}constructor(){super(...arguments),this.removePointerDownListener=S.noop}}},645396,507415,836411,265515,455479,366692,919578,615774,188150,160140,77714,559951,t=>{"use strict";t.s(["drag",()=>t_],645396);var e=t.i(228310),i=t.i(442894),n=t.i(628575),s=t.i(933825),r=t.i(205164),a=t.i(885722);t.s(["SwitchLayoutGroupContext",()=>o],507415);let o=(0,s.createContext)({}),l={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var u=t.i(143209);function h(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let c={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!u.px.test(t))return t;else t=parseFloat(t);let i=h(t,e.target.x),n=h(t,e.target.y);return"".concat(i,"% ").concat(n,"%")}};var d=t.i(96175),p=t.i(322565);t.s(["addScaleCorrector",()=>v,"scaleCorrectors",()=>f],836411);var m=t.i(990476);let f={};function v(t){for(let e in t)f[e]=t[e],(0,m.isCSSVariableName)(e)&&(f[e].isCSSVariable=!0)}var g=t.i(761991);t.s(["microtask",()=>y],265515);let{schedule:y}=(0,t.i(280672).createRenderBatcher)(queueMicrotask,!1);class x extends s.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;v(P),s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),l.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||g.frame.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),y.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function T(t){let[e,i]=(0,r.usePresence)(),l=(0,s.useContext)(a.LayoutGroupContext);return(0,n.jsx)(x,{...t,layoutGroup:l,switchLayoutGroup:(0,s.useContext)(o),isPresent:e,safeToRemove:i})}let P={borderRadius:{...c,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:c,borderTopRightRadius:c,borderBottomLeftRadius:c,borderBottomRightRadius:c,boxShadow:{correct:(t,e)=>{let{treeScale:i,projectionDelta:n}=e,s=d.complex.parse(t);if(s.length>5)return t;let r=d.complex.createTransformer(t),a=+("number"!=typeof s[0]),o=n.x.scale*i.x,l=n.y.scale*i.y;s[0+a]/=o,s[1+a]/=l;let u=(0,p.mixNumber)(o,l,.5);return"number"==typeof s[2+a]&&(s[2+a]/=u),"number"==typeof s[3+a]&&(s[3+a]/=u),r(s)}}};t.s(["animateSingleValue",()=>V],455479);var b=t.i(916913),w=t.i(548921),S=t.i(76403);function V(t,e,i){let n=(0,w.isMotionValue)(t)?t:(0,S.motionValue)(t);return n.start((0,b.animateMotionValue)("",n,e,i)),n.animation}var A=t.i(695392);let M=(t,e)=>t.depth-e.depth;var C=t.i(745825);class D{add(t){(0,C.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,C.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(M),this.isDirty=!1,this.children.forEach(t)}constructor(){this.children=[],this.isDirty=!1}}var E=t.i(283808);function R(t){return(0,w.isMotionValue)(t)?t.get():t}t.i(85607),t.s(["resolveMotionValue",()=>R],366692);var k=t.i(42939),L=t.i(394751),B=t.i(588391);let F=["TopLeft","TopRight","BottomLeft","BottomRight"],j=F.length,O=t=>"string"==typeof t?parseFloat(t):t,I=t=>"number"==typeof t||u.px.test(t);function N(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let U=G(0,.5,L.circOut),W=G(.5,.95,B.noop);function G(t,e,i){return n=>n<t?0:n>e?1:i((0,k.progress)(t,e,n))}function K(t,e){t.min=e.min,t.max=e.max}function z(t,e){K(t.x,e.x),K(t.y,e.y)}function H(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var Y=t.i(352472),X=t.i(958041);function q(t,e,i,n,s){return t-=e,t=(0,Y.scalePoint)(t,1/i,n),void 0!==s&&(t=(0,Y.scalePoint)(t,1/s,n)),t}function Z(t,e,i,n,s){let[r,a,o]=i;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,s=arguments.length>4?arguments[4]:void 0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(u.percent.test(e)&&(e=parseFloat(e),e=(0,p.mixNumber)(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=(0,p.mixNumber)(r.min,r.max,n);t===r&&(o-=e),t.min=q(t.min,e,i,o,s),t.max=q(t.max,e,i,o,s)}(t,e[r],e[a],e[o],e.scale,n,s)}let _=["x","scaleX","originX"],$=["y","scaleY","originY"];function J(t,e,i,n){Z(t.x,e,_,i?i.x:void 0,n?n.x:void 0),Z(t.y,e,$,i?i.y:void 0,n?n.y:void 0)}var Q=t.i(676707);function tt(t){return 0===t.translate&&1===t.scale}function te(t){return tt(t.x)&&tt(t.y)}function ti(t,e){return t.min===e.min&&t.max===e.max}function tn(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function ts(t,e){return tn(t.x,e.x)&&tn(t.y,e.y)}function tr(t){return(0,X.calcLength)(t.x)/(0,X.calcLength)(t.y)}function ta(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class to{add(t){(0,C.addUniqueItem)(this.members,t),t.scheduleRender()}remove(t){if((0,C.removeItem)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}constructor(){this.members=[]}}var tl=t.i(397445),tu=t.i(471161),th=t.i(497988),tc=t.i(666458);t.s(["isSVGElement",()=>tp],919578);var td=t.i(152393);function tp(t){return(0,td.isObject)(t)&&"ownerSVGElement"in t}function tm(t){return tp(t)&&"svg"===t.tagName}t.s(["isSVGSVGElement",()=>tm],615774);var tf=t.i(374525),tv=t.i(858860),tg=t.i(139807);let ty={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},tx=["","X","Y","Z"],tT={visibility:"hidden"},tP=0;function tb(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function tw(t){let{attachResizeListener:e,defaultParent:i,measureScroll:n,checkIsScrollRoot:s,resetTransform:r}=t;return class{addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tc.SubscriptionManager),this.eventHandlers.get(t).add(e)}notifyListeners(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];let s=this.eventHandlers.get(t);s&&s.notify(...i)}hasListeners(t){return this.eventHandlers.has(t)}mount(t){if(this.instance)return;this.isSVG=tp(t)&&!tm(t),this.instance=t;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),e){let i,n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=E.time.now(),n=e=>{let{timestamp:s}=e,r=s-i;r>=250&&((0,g.cancelFrame)(n),t(r-250))};return g.frame.setup(n,!0),()=>(0,g.cancelFrame)(n)}(n,250),l.hasAnimatedSinceResize&&(l.hasAnimatedSinceResize=!1,this.nodes.forEach(tk))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i,hasRelativeLayoutChanged:n,layout:r}=t;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||s.getDefaultTransition()||tU,{onLayoutAnimationStart:o,onLayoutAnimationComplete:l}=s.getProps(),u=!this.targetLayout||!ts(this.targetLayout,r),h=!i&&n;if(this.options.layoutRoot||this.resumeFrom||h||i&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...(0,tf.getValueTransition)(a,"layout"),onPlay:o,onComplete:l};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,h)}else i||tk(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,g.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(tF),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[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 n=(0,A.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",g.frame,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(tD);return}this.isUpdating||this.nodes.forEach(tE),this.isUpdating=!1,this.nodes.forEach(tR),this.nodes.forEach(tS),this.nodes.forEach(tV),this.clearAllSnapshots();let t=E.time.now();g.frameData.delta=(0,tv.clamp)(0,1e3/60,t-g.frameData.timestamp),g.frameData.timestamp=t,g.frameData.isProcessing=!0,g.frameSteps.update.process(g.frameData),g.frameSteps.preRender.process(g.frameData),g.frameSteps.render.process(g.frameData),g.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,y.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tC),this.sharedNodes.forEach(tj)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,g.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){g.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,X.calcLength)(this.snapshot.measuredBox.x)||(0,X.calcLength)(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,Q.createBox)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",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:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!te(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,tu.hasTransform)(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),tK((t=n).x),tK(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return(0,Q.createBox)();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(tH))){let{scroll:t}=this.root;t&&((0,Y.translateAxis)(i.x,t.offset.x),(0,Y.translateAxis)(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=(0,Q.createBox)();if(z(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&z(i,t),(0,Y.translateAxis)(i.x,s.offset.x),(0,Y.translateAxis)(i.y,s.offset.y))}return i}applyTransform(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(0,Q.createBox)();z(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(0,Y.transformBox)(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,tu.hasTransform)(n.latestValues)&&(0,Y.transformBox)(i,n.latestValues)}return(0,tu.hasTransform)(this.latestValues)&&(0,Y.transformBox)(i,this.latestValues),i}removeTransform(t){let e=(0,Q.createBox)();z(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,tu.hasTransform)(i.latestValues))continue;(0,tu.hasScale)(i.latestValues)&&i.updateSnapshot();let n=(0,Q.createBox)();z(n,i.measurePageBox()),J(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return(0,tu.hasTransform)(this.latestValues)&&J(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!==g.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){var t;let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==i;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:r}=this.options;if(this.layout&&(s||r)){if(this.resolvedRelativeTargetAt=g.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,Q.createBox)(),this.relativeTargetOrigin=(0,Q.createBox)(),(0,X.calcRelativePosition)(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),z(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,Q.createBox)(),this.targetWithTransforms=(0,Q.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,X.calcRelativeBox)(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):z(this.target,this.layout.layoutBox),(0,Y.applyBoxDelta)(this.target,this.targetDelta)):z(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,Q.createBox)(),this.relativeTargetOrigin=(0,Q.createBox)(),(0,X.calcRelativePosition)(this.relativeTargetOrigin,this.target,t.target),z(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}th.statsBuffer.value&&ty.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||(0,tu.hasScale)(this.parent.latestValues)||(0,tu.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)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===g.frameData.timestamp&&(n=!1),n)return;let{layout:s,layoutId:r}=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||r))return;z(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;(0,Y.applyTreeDeltas)(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,Q.createBox)());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(H(this.prevProjectionDelta.x,this.projectionDelta.x),H(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,X.calcBoxDelta)(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&ta(this.projectionDelta.x,this.prevProjectionDelta.x)&&ta(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),th.statsBuffer.value&&ty.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(null==(t=this.options.visualElement)||t.scheduleRender(),e){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,Q.createDelta)(),this.projectionDelta=(0,Q.createDelta)(),this.projectionDeltaWithTransform=(0,Q.createDelta)()}setAnimationOrigin(t){let e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},a=(0,Q.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let o=(0,Q.createBox)(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),c=!h||h.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(tN));this.animationProgress=0,this.mixTargetDelta=i=>{let n=i/1e3;if(tO(a.x,t.x,n),tO(a.y,t.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,m,f,v,g,y;(0,X.calcRelativePosition)(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,v=this.relativeTargetOrigin,g=o,y=n,tI(f.x,v.x,g.x,y),tI(f.y,v.y,g.y,y),e&&(h=this.relativeTarget,m=e,ti(h.x,m.x)&&ti(h.y,m.y))&&(this.isProjectionDirty=!1),e||(e=(0,Q.createBox)()),z(e,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){var a,o,l,h;s?(t.opacity=(0,p.mixNumber)(0,null!=(a=i.opacity)?a:1,U(n)),t.opacityExit=(0,p.mixNumber)(null!=(o=e.opacity)?o:1,0,W(n))):r&&(t.opacity=(0,p.mixNumber)(null!=(l=e.opacity)?l:1,null!=(h=i.opacity)?h:1,n));for(let s=0;s<j;s++){let r="border".concat(F[s],"Radius"),a=N(e,r),o=N(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||I(a)===I(o)?(t[r]=Math.max((0,p.mixNumber)(O(a),O(o),n),0),(u.percent.test(o)||u.percent.test(a))&&(t[r]+="%")):t[r]=o)}(e.rotate||i.rotate)&&(t.rotate=(0,p.mixNumber)(e.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){var e,i,n;this.notifyListeners("animationStart"),null==(e=this.currentAnimation)||e.stop(),null==(n=this.resumingFrom)||null==(i=n.currentAnimation)||i.stop(),this.pendingAnimation&&((0,g.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=g.frame.update(()=>{l.hasAnimatedSinceResize=!0,tg.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,S.motionValue)(0)),this.currentAnimation=V(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{tg.activeAnimations.layout--},onComplete:()=>{tg.activeAnimations.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&tz(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,Q.createBox)();let e=(0,X.calcLength)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=(0,X.calcLength)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}z(e,i),(0,Y.transformBox)(e,s),(0,X.calcBoxDelta)(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new to),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(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&tb("z",t,n,this.animationValues);for(let e=0;e<tx.length;e++)tb("rotate".concat(tx[e]),t,n,this.animationValues),tb("skew".concat(tx[e]),t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return tT;let e={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.opacity="",e.pointerEvents=R(null==t?void 0:t.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none",e;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=R(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,tu.hasTransform)(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let s=n.animationValues||n.latestValues;this.applyTransformsToTarget(),e.transform=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,a=(null==i?void 0:i.z)||0;if((s||r||a)&&(n="translate3d(".concat(s,"px, ").concat(r,"px, ").concat(a,"px) ")),(1!==e.x||1!==e.y)&&(n+="scale(".concat(1/e.x,", ").concat(1/e.y,") ")),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:a,skewY:o}=i;t&&(n="perspective(".concat(t,"px) ").concat(n)),e&&(n+="rotate(".concat(e,"deg) ")),s&&(n+="rotateX(".concat(s,"deg) ")),r&&(n+="rotateY(".concat(r,"deg) ")),a&&(n+="skewX(".concat(a,"deg) ")),o&&(n+="skewY(".concat(o,"deg) "))}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+="scale(".concat(o,", ").concat(l,")")),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),i&&(e.transform=i(s,e.transform));let{x:r,y:a}=this.projectionDelta;if(e.transformOrigin="".concat(100*r.origin,"% ").concat(100*a.origin,"% 0"),n.animationValues){var o,l;e.opacity=n===this?null!=(l=null!=(o=s.opacity)?o:this.latestValues.opacity)?l:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit}else e.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(let t in f){if(void 0===s[t])continue;let{correct:i,applyTo:r,isCSSVariable:a}=f[t],o="none"===e.transform?s[t]:i(s[t],n);if(r){let t=r.length;for(let i=0;i<t;i++)e[r[i]]=o}else a?this.options.visualElement.renderState.vars[t]=o:e[t]=o}return this.options.layoutId&&(e.pointerEvents=n===this?R(null==t?void 0:t.pointerEvents)||"":"none"),e}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(tD),this.root.sharedNodes.clear()}constructor(t={},e=null==i?void 0:i()){this.id=tP++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,th.statsBuffer.value&&(ty.nodes=ty.calculatedTargetDeltas=ty.calculatedProjections=0),this.nodes.forEach(tA),this.nodes.forEach(tL),this.nodes.forEach(tB),this.nodes.forEach(tM),th.statsBuffer.addProjectionMetrics&&th.statsBuffer.addProjectionMetrics(ty)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new D)}}}function tS(t){t.updateLayout()}function tV(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:s}=t.options,r=i.source!==t.layout.source;"size"===s?(0,tl.eachAxis)(t=>{let n=r?i.measuredBox[t]:i.layoutBox[t],s=(0,X.calcLength)(n);n.min=e[t].min,n.max=n.min+s}):tz(s,i.layoutBox,e)&&(0,tl.eachAxis)(n=>{let s=r?i.measuredBox[n]:i.layoutBox[n],a=(0,X.calcLength)(e[n]);s.max=s.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=(0,Q.createDelta)();(0,X.calcBoxDelta)(a,e,i.layoutBox);let o=(0,Q.createDelta)();r?(0,X.calcBoxDelta)(o,t.applyTransform(n,!0),i.measuredBox):(0,X.calcBoxDelta)(o,e,i.layoutBox);let l=!te(a),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let a=(0,Q.createBox)();(0,X.calcRelativePosition)(a,i.layoutBox,s.layoutBox);let o=(0,Q.createBox)();(0,X.calcRelativePosition)(o,e,r.layoutBox),ts(a,o)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tA(t){th.statsBuffer.value&&ty.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 tM(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tC(t){t.clearSnapshot()}function tD(t){t.clearMeasurements()}function tE(t){t.isLayoutDirty=!1}function tR(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tk(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function tL(t){t.resolveTargetDelta()}function tB(t){t.calcProjection()}function tF(t){t.resetSkewAndRotation()}function tj(t){t.removeLeadSnapshot()}function tO(t,e,i){t.translate=(0,p.mixNumber)(e.translate,0,i),t.scale=(0,p.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function tI(t,e,i,n){t.min=(0,p.mixNumber)(e.min,i.min,n),t.max=(0,p.mixNumber)(e.max,i.max,n)}function tN(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tU={duration:.45,ease:[.4,0,.1,1]},tW=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tG=tW("applewebkit/")&&!tW("chrome/")?Math.round:B.noop;function tK(t){t.min=tG(t.min),t.max=tG(t.max)}function tz(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,X.isNear)(tr(e),tr(i),.2)}function tH(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}var tY=t.i(388001);let tX=tw({attachResizeListener:(t,e)=>(0,tY.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tq={current:void 0},tZ=tw({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!tq.current){let t=new tX({});t.mount(window),t.setOptions({layoutScroll:!0}),tq.current=t}return tq.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),t_={pan:{Feature:i.PanGesture},drag:{Feature:e.DragGesture,ProjectionNode:tZ,MeasureLayout:T}};t.s(["gestureAnimations",()=>ev],160140);var t$=t.i(844584),tJ=t.i(752071),tQ=t.i(288653);function t0(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){var n;let s=document;e&&(s=e.current);let r=null!=(n=null==i?void 0:i[t])?n:s.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}function t1(t,e){let i=t0(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function t3(t){return!("touch"===t.pointerType||(0,tQ.isDragActive)())}function t2(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&g.frame.postRender(()=>s(e,(0,t$.extractEventInfo)(e)))}t.s(["resolveElements",()=>t0],188150);class t5 extends tJ.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},[n,s,r]=t1(t,i),a=t=>{if(!t3(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let r=t=>{t3(t)&&(n(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,s)};return n.forEach(t=>{t.addEventListener("pointerenter",a,s)}),r}(t,(t,e)=>(t2(this.node,e,"Start"),t=>t2(this.node,t,"End"))))}unmount(){}}var t9=tJ,t6=t.i(816889);class t8 extends t9.Feature{onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,t6.pipe)((0,tY.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,tY.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}constructor(){super(...arguments),this.isActive=!1}}var t4=tJ,t7=t.i(292001);let et=(t,e)=>!!e&&(t===e||et(t,e.parentElement));var ee=t.i(271259);let ei=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),en=new WeakSet;function es(t){return e=>{"Enter"===e.key&&t(e)}}function er(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function ea(t){return(0,ee.isPrimaryPointer)(t)&&!(0,tQ.isDragActive)()}function eo(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&g.frame.postRender(()=>s(e,(0,t$.extractEventInfo)(e)))}class el extends t4.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},[n,s,r]=t1(t,i),a=t=>{let n=t.currentTarget;if(!ea(t))return;en.add(n);let r=e(n,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),en.has(n)&&en.delete(n),ea(t)&&"function"==typeof r&&r(t,{success:e})},o=t=>{a(t,n===window||n===document||i.useGlobalTarget||et(n,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",a,s),(0,t7.isHTMLElement)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=es(()=>{if(en.has(i))return;er(i,"down");let t=es(()=>{er(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>er(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),ei.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(eo(this.node,e,"Start"),(t,e)=>{let{success:i}=e;return eo(this.node,t,i?"End":"Cancel")}),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}var eu=tJ;let eh=new WeakMap,ec=new WeakMap,ed=t=>{let e=eh.get(t.target);e&&e(t)},ep=t=>{t.forEach(ed)},em={some:0,all:1};class ef extends eu.Feature{startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:s}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:em[n]},a=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;r&&r(t)};var o=this.node.current;let l=function(t){let{root:e,...i}=t,n=e||document;ec.has(n)||ec.set(n,{});let s=ec.get(n),r=JSON.stringify(i);return s[r]||(s[r]=new IntersectionObserver(ep,{root:e,...i})),s[r]}(r);return eh.set(o,a),l.observe(o),()=>{eh.delete(o),l.unobserve(o)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:i={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==i[t]}(t,e))&&this.startObserver()}unmount(){}constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}}let ev={inView:{Feature:ef},tap:{Feature:el},focus:{Feature:t8},hover:{Feature:t5}};t.s(["layout",()=>eg],77714);let eg={layout:{ProjectionNode:tZ,MeasureLayout:T}};t.s(["LazyContext",()=>ey],559951);let ey=(0,s.createContext)({strict:!1})},377383,848946,694307,t=>{"use strict";t.s(["MotionContext",()=>i],377383);var e=t.i(933825);let i=(0,e.createContext)({});t.s(["useCreateMotionContext",()=>l],694307),t.s(["isControllingVariants",()=>a,"isVariantNode",()=>o],848946);var n=t.i(563638),s=t.i(838877),r=t.i(752723);function a(t){return(0,n.isAnimationControls)(t.animate)||r.variantProps.some(e=>(0,s.isVariantLabel)(t[e]))}function o(t){return!!(a(t)||t.variants)}function l(t){let{initial:n,animate:r}=function(t,e){if(a(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,s.isVariantLabel)(e)?e:void 0,animate:(0,s.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,e.useContext)(i));return(0,e.useMemo)(()=>({initial:n,animate:r}),[u(n),u(r)])}function u(t){return Array.isArray(t)?t.join(" "):t}},956383,982569,902907,892806,t=>{"use strict";t.s(["featureDefinitions",()=>i],956383);let e={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},i={};for(let t in e)i[t]={isEnabled:i=>e[t].some(t=>!!i[t])};function n(t){for(let e in t)i[e]={...i[e],...t[e]}}t.s(["loadFeatures",()=>n],982569),t.s(["motionComponentSymbol",()=>s],902907);let s=Symbol.for("motionComponentSymbol");t.s(["useMotionRef",()=>o],892806);var r=t.i(933825),a=t.i(785554);function o(t,e,i){return(0,r.useCallback)(n=>{n&&t.onMount&&t.onMount(n),e&&(n?e.mount(n):e.unmount()),i&&("function"==typeof i?i(n):(0,a.isRefObject)(i)&&(i.current=n))},[e])}},188034,756780,978153,319345,882698,63730,402637,159835,128507,830627,224379,t=>{"use strict";t.s(["createRendererMotionComponent",()=>x],188034),t.i(857250);var e=t.i(628575),i=t.i(933825),n=t.i(885722),s=t.i(559951),r=t.i(667048),a=t.i(377383),o=t.i(694307),l=t.i(766607),u=t.i(956383),h=t.i(982569),c=t.i(902907),d=t.i(892806),p=t.i(423049),m=t.i(689405),f=t.i(507415),v=t.i(785554),g=t.i(262264),y=t.i(265515);function x(t){var x,T;let{preloadedFeatures:P,createVisualElement:b,useRender:w,useVisualState:S,Component:V}=t;function A(t,h){let c,x={...(0,i.useContext)(r.MotionConfigContext),...t,layoutId:function(t){let{layoutId:e}=t,s=(0,i.useContext)(n.LayoutGroupContext).id;return s&&void 0!==e?s+"-"+e:e}(t)},{isStatic:T}=x,P=(0,o.useCreateMotionContext)(t),A=S(t,T);if(!T&&l.isBrowser){(0,i.useContext)(s.LazyContext).strict;let t=function(t){let{drag:e,layout:i}=u.featureDefinitions;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(x);c=t.MeasureLayout,P.visualElement=function(t,e,n,o,l){var u,h,c,d;let{visualElement:x}=(0,i.useContext)(a.MotionContext),T=(0,i.useContext)(s.LazyContext),P=(0,i.useContext)(m.PresenceContext),b=(0,i.useContext)(r.MotionConfigContext).reducedMotion,w=(0,i.useRef)(null);o=o||T.renderer,!w.current&&o&&(w.current=o(t,{visualState:e,parent:x,props:n,presenceContext:P,blockInitialAnimation:!!P&&!1===P.initial,reducedMotionConfig:b}));let S=w.current,V=(0,i.useContext)(f.SwitchLayoutGroupContext);S&&!S.projection&&l&&("html"===S.type||"svg"===S.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!a||o&&(0,v.isRefObject)(o),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(w.current,n,l,V);let A=(0,i.useRef)(!1);(0,i.useInsertionEffect)(()=>{S&&A.current&&S.update(n,P)});let M=n[p.optimizedAppearDataAttribute],C=(0,i.useRef)(!!M&&!(null==(u=(h=window).MotionHandoffIsComplete)?void 0:u.call(h,M))&&(null==(c=(d=window).MotionHasOptimisedAnimation)?void 0:c.call(d,M)));return(0,g.useIsomorphicLayoutEffect)(()=>{S&&(A.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),y.microtask.render(S.render),C.current&&S.animationState&&S.animationState.animateChanges())}),(0,i.useEffect)(()=>{S&&(!C.current&&S.animationState&&S.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var t,e;null==(t=(e=window).MotionHandoffMarkAsComplete)||t.call(e,M)}),C.current=!1))}),S}(V,A,x,b,t.ProjectionNode)}return(0,e.jsxs)(a.MotionContext.Provider,{value:P,children:[c&&P.visualElement?(0,e.jsx)(c,{visualElement:P.visualElement,...x}):null,w(V,t,(0,d.useMotionRef)(A,P.visualElement,h),A,T,P.visualElement)]})}P&&(0,h.loadFeatures)(P),A.displayName="motion.".concat("string"==typeof V?V:"create(".concat(null!=(T=null!=(x=V.displayName)?x:V.name)?T:"",")"));let M=(0,i.forwardRef)(A);return M[c.motionComponentSymbol]=V,M}t.s(["createUseRender",()=>q],224379),t.s(["isForcedMotionValue",()=>b],756780);var T=t.i(836411),P=t.i(691376);function b(t,e){let{layout:i,layoutId:n}=e;return P.transformProps.has(t)||t.startsWith("origin")||(i||void 0!==n)&&(!!T.scaleCorrectors[t]||"opacity"===t)}t.s(["buildHTMLStyles",()=>k],319345);let w=(t,e)=>e&&"number"==typeof t?e.transform(t):t;t.s(["numberValueTypes",()=>C],978153);var S=t.i(63125);let V={...S.number,transform:Math.round};var A=t.i(143209);let M={rotate:A.degrees,rotateX:A.degrees,rotateY:A.degrees,rotateZ:A.degrees,scale:S.scale,scaleX:S.scale,scaleY:S.scale,scaleZ:S.scale,skew:A.degrees,skewX:A.degrees,skewY:A.degrees,distance:A.px,translateX:A.px,translateY:A.px,translateZ:A.px,x:A.px,y:A.px,z:A.px,perspective:A.px,transformPerspective:A.px,opacity:S.alpha,originX:A.progressPercentage,originY:A.progressPercentage,originZ:A.px},C={borderWidth:A.px,borderTopWidth:A.px,borderRightWidth:A.px,borderBottomWidth:A.px,borderLeftWidth:A.px,borderRadius:A.px,radius:A.px,borderTopLeftRadius:A.px,borderTopRightRadius:A.px,borderBottomRightRadius:A.px,borderBottomLeftRadius:A.px,width:A.px,maxWidth:A.px,height:A.px,maxHeight:A.px,top:A.px,right:A.px,bottom:A.px,left:A.px,padding:A.px,paddingTop:A.px,paddingRight:A.px,paddingBottom:A.px,paddingLeft:A.px,margin:A.px,marginTop:A.px,marginRight:A.px,marginBottom:A.px,marginLeft:A.px,backgroundPositionX:A.px,backgroundPositionY:A.px,...M,zIndex:V,fillOpacity:S.alpha,strokeOpacity:S.alpha,numOctaves:V},D={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},E=P.transformPropOrder.length;var R=t.i(990476);function k(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,a=!1,o=!1;for(let t in e){let i=e[t];if(P.transformProps.has(t)){a=!0;continue}if((0,R.isCSSVariableName)(t)){s[t]=i;continue}{let e=w(i,C[t]);t.startsWith("origin")?(o=!0,r[t]=e):n[t]=e}}if(!e.transform&&(a||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r<E;r++){let a=P.transformPropOrder[r],o=t[a];if(void 0===o)continue;let l=!0;if(!(l="number"==typeof o?o===+!!a.startsWith("scale"):0===parseFloat(o))||i){let t=w(o,C[a]);if(!l){s=!1;let e=D[a]||a;n+="".concat(e,"(").concat(t,") ")}i&&(e[a]=t)}}return n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),o){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;n.transformOrigin="".concat(t," ").concat(e," ").concat(i)}}t.s(["createHtmlRenderState",()=>L],882698);let L=()=>({style:{},transform:{},transformOrigin:{},vars:{}});var B=t.i(548921);function F(t,e,i){for(let n in e)(0,B.isMotionValue)(e[n])||b(n,i)||(t[n]=e[n])}t.s(["buildSVGAttrs",()=>I],63730);let j={offset:"stroke-dashoffset",array:"stroke-dasharray"},O={offset:"strokeDashoffset",array:"strokeDasharray"};function I(t,e,i,n,s){var r,a;let{attrX:o,attrY:l,attrScale:u,pathLength:h,pathSpacing:c=1,pathOffset:d=0,...p}=e;if(k(t,p,n),i){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:m,style:f}=t;m.transform&&(f.transform=m.transform,delete m.transform),(f.transform||m.transformOrigin)&&(f.transformOrigin=null!=(r=m.transformOrigin)?r:"50% 50%",delete m.transformOrigin),f.transform&&(f.transformBox=null!=(a=null==s?void 0:s.transformBox)?a:"fill-box",delete m.transformBox),void 0!==o&&(m.x=o),void 0!==l&&(m.y=l),void 0!==u&&(m.scale=u),void 0!==h&&function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=!(arguments.length>4)||void 0===arguments[4]||arguments[4];t.pathLength=1;let r=s?j:O;t[r.offset]=A.px.transform(-n);let a=A.px.transform(e),o=A.px.transform(i);t[r.array]="".concat(a," ").concat(o)}(m,h,c,d,!1)}t.s(["createSvgRenderState",()=>N],402637);let N=()=>({...L(),attrs:{}});t.s(["isSVGTag",()=>U],159835);let U=t=>"string"==typeof t&&"svg"===t.toLowerCase();t.s(["filterProps",()=>H,"loadExternalIsValidProp",()=>z],128507);let W=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function G(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||W.has(t)}let K=t=>!G(t);function z(t){t&&(K=e=>e.startsWith("on")?!G(e):t(e))}try{z(t.r(113476).default)}catch(t){}function H(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(K(s)||!0===i&&G(s)||!e&&!G(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}t.s(["isSVGComponent",()=>X],830627);let Y=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function X(t){if("string"!=typeof t||t.includes("-"));else if(Y.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}function q(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(e,n,s,r,a)=>{let{latestValues:o}=r,l=(X(e)?function(t,e,n,s){let r=(0,i.useMemo)(()=>{let i=N();return I(i,e,U(s),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};F(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let n={},s=function(t,e){let n=t.style||{},s={};return F(s,n,t),Object.assign(s,function(t,e){let{transformTemplate:n}=t;return(0,i.useMemo)(()=>{let t=L();return k(t,e,n),Object.assign({},t.vars,t.style)},[e])}(t,e)),s}(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n})(n,o,a,e),u=H(n,"string"==typeof e,t),h=e!==i.Fragment?{...u,...l,ref:s}:{},{children:c}=n,d=(0,i.useMemo)(()=>(0,B.isMotionValue)(c)?c.get():c,[c]);return(0,i.createElement)(e,{...h,children:d})}}},519591,396251,141610,169015,961793,t=>{"use strict";t.s(["motion",()=>tV],519591);var e,i,n=t.i(779737),s=t.i(286453),r=t.i(645396),a=t.i(160140),o=t.i(77714),l=t.i(188034),u=t.i(224379),h=t.i(830627),c=t.i(933825),d=t.i(563638),p=t.i(377383),m=t.i(689405),f=t.i(848946),v=t.i(421433),g=t.i(303767),y=t.i(366692);let x=t=>(e,i)=>{let n=(0,c.useContext)(p.MotionContext),s=(0,c.useContext)(m.PresenceContext),r=()=>(function(t,e,i,n){let{scrapeMotionValuesFromProps:s,createRenderState:r}=t;return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=(0,y.resolveMotionValue)(r[t]);let{initial:a,animate:o}=t,l=(0,f.isControllingVariants)(t),u=(0,f.isVariantNode)(t);e&&u&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===o&&(o=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===a)?o:a;if(c&&"boolean"!=typeof c&&!(0,d.isAnimationControls)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=(0,v.resolveVariantFromProps)(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(e,i,n,s),renderState:r()}})(t,e,n,s);return i?r():(0,g.useConstant)(r)};var T=t.i(756780),P=t.i(548921);function b(t,e,i){let{style:n}=t,s={};for(let a in n){var r;((0,P.isMotionValue)(n[a])||e.style&&(0,P.isMotionValue)(e.style[a])||(0,T.isForcedMotionValue)(a,t)||(null==i||null==(r=i.getValue(a))?void 0:r.liveStyle)!==void 0)&&(s[a]=n[a])}return s}let w={useVisualState:x({scrapeMotionValuesFromProps:b,createRenderState:t.i(882698).createHtmlRenderState})};var S=t.i(402637),V=t.i(691376);function A(t,e,i){let n=b(t,e,i);for(let i in t)((0,P.isMotionValue)(t[i])||(0,P.isMotionValue)(e[i]))&&(n[-1!==V.transformPropOrder.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}let M={useVisualState:x({scrapeMotionValuesFromProps:A,createRenderState:S.createSvgRenderState})};t.s(["HTMLVisualElement",()=>ty],169015);var C=t.i(342169);t.s(["VisualElement",()=>tr],141610),t.i(857250);var D=t.i(956383),E=t.i(676707),R=t.i(766607);let k={current:null},L={current:!1};t.s(["visualElementStore",()=>B],396251);let B=new WeakMap;var F=t.i(76403),j=t.i(638458),O=t.i(283808),I=t.i(761991);let N=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),U=t=>/^0[^.\s]+$/u.test(t);var W=t.i(552448),G=t.i(96175),K=t.i(63125),z=t.i(143209);let H=t=>e=>e.test(t),Y=[K.number,z.px,z.percent,z.degrees,z.vw,z.vh,{test:t=>"auto"===t,parse:t=>t}],X=t=>Y.find(H(t)),q=[...Y,W.color,G.complex];var Z=t.i(5660);let _=new Set(["brightness","contrast","saturate","opacity"]);function $(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(Z.floatRegex)||[];if(!n)return t;let s=i.replace(n,""),r=+!!_.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let J=/\b([a-z-]*)\(.*?\)/gu,Q={...G.complex,getAnimatableNone:t=>{let e=t.match(J);return e?e.map($).join(" "):t}},tt={...t.i(978153).numberValueTypes,color:W.color,backgroundColor:W.color,outlineColor:W.color,fill:W.color,stroke:W.color,borderColor:W.color,borderTopColor:W.color,borderRightColor:W.color,borderBottomColor:W.color,borderLeftColor:W.color,filter:Q,WebkitFilter:Q},te=t=>tt[t];function ti(t,e){let i=te(t);return i!==Q&&(i=G.complex),i.getAnimatableNone?i.getAnimatableNone(e):void 0}var tn=t.i(666458);let ts=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tr{scrapeMotionValuesFromProps(t,e,i){return{}}mount(t){this.current=t,B.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)),L.current||function(){if(L.current=!0,R.isBrowser)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>k.current=t.matches;t.addListener(e),e()}else k.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||k.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,I.cancelFrame)(this.notifyUpdate),(0,I.cancelFrame)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(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}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=V.transformProps.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&I.frame.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),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 D.featureDefinitions){let e=D.featureDefinitions[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];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):(0,E.createBox)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ts.length;e++){let i=ts[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],r=i[n];if((0,P.isMotionValue)(s))t.addValue(n,s);else if((0,P.isMotionValue)(r))t.addValue(n,(0,F.motionValue)(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,(0,F.motionValue)(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,F.motionValue)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=n){if("string"==typeof n&&(N(n)||U(n)))n=parseFloat(n);else{let i;i=n,!q.find(H(i))&&G.complex.test(e)&&(n=ti(t,e))}this.setBaseTarget(t,(0,P.isMotionValue)(n)?n.get():n)}return(0,P.isMotionValue)(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){var n;let s=(0,v.resolveVariantFromProps)(this.props,i,null==(n=this.presenceContext)?void 0:n.custom);s&&(e=s[t])}if(i&&void 0!==e)return e;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,P.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.SubscriptionManager),this.events[t].add(e)}notify(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];this.events[t]&&this.events[t].notify(...i)}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=j.KeyframeResolver,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=O.time.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,I.frame.render(this.render,!1,!0))};let{latestValues:o,renderState:l}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=(0,f.isControllingVariants)(e),this.isVariantNode=(0,f.isVariantNode)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in h){let e=h[t];void 0!==o[t]&&(0,P.isMotionValue)(e)&&e.set(o[t],!1)}}}var ta=t.i(340269),to=t.i(990476),tl=t.i(895621);let tu=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var th=j;let tc=new Set(["auto","none","0"]);var td=t.i(103736);class tp extends th.KeyframeResolver{readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&(n=n.trim(),(0,to.isCSSVariableToken)(n))){let s=function t(e,i){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,tl.invariant)(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));let[s,r]=function(t){let e=tu.exec(t);if(!e)return[,];let[,i,n,s]=e;return["--".concat(null!=i?i:n),s]}(e);if(!s)return;let a=window.getComputedStyle(i).getPropertyValue(s);if(a){let t=a.trim();return N(t)?parseFloat(t):t}return(0,to.isCSSVariableToken)(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!ta.positionalKeys.has(i)||2!==t.length)return;let[n,s]=t,r=X(n),a=X(s);if(r!==a)if((0,td.isNumOrPxType)(r)&&(0,td.isNumOrPxType)(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else td.positionalValues[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||U(n)))&&i.push(e)}i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!tc.has(e)&&(0,G.analyseComplexValue)(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=ti(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=td.positionalValues[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let s=e.getValue(i);s&&s.jump(this.measuredOrigin,!1);let r=n.length-1,a=n[r];n[r]=td.positionalValues[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEach(t=>{let[i,n]=t;e.getValue(i).set(n)}),this.resolveNoneKeyframes()}constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}}class tm extends tr{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,e){let{vars:i,style:n}=e;delete i[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,P.isMotionValue)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent="".concat(t))}))}constructor(){super(...arguments),this.KeyframeResolver=tp}}var tf=t.i(319345);function tv(t,e,i,n){let{style:s,vars:r}=e;for(let e in Object.assign(t.style,s,n&&n.getProjectionStyles(i)),r)t.style.setProperty(e,r[e])}var tg=t.i(821423);class ty extends tm{readValueFromInstance(t,e){var i;if(V.transformProps.has(e))return(null==(i=this.projection)?void 0:i.isProjecting)?(0,tg.defaultTransformValue)(e):(0,tg.readTransformValue)(t,e);{let i=window.getComputedStyle(t),n=((0,to.isCSSVariableName)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,e){let{transformPagePoint:i}=e;return(0,C.measureViewportBox)(t,i)}build(t,e,i){(0,tf.buildHTMLStyles)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return b(t,e,i)}constructor(){super(...arguments),this.type="html",this.renderInstance=tv}}t.s(["SVGVisualElement",()=>tw],961793);var tx=t.i(596350),tT=t.i(63730);let tP=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(159835);class tw extends tm{getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(V.transformProps.has(e)){let t=te(e);return t&&t.default||0}return e=tP.has(e)?e:(0,tx.camelToDash)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return A(t,e,i)}build(t,e,i){(0,tT.buildSVGAttrs)(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in tv(t,e,void 0,n),e.attrs)t.setAttribute(tP.has(i)?i:(0,tx.camelToDash)(i),e.attrs[i])}mount(t){this.isSVGTag=(0,tb.isSVGTag)(t.tagName),super.mount(t)}constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=E.createBox}}let tS=(e={...s.animations,...a.gestureAnimations,...r.drag,...o.layout},i=(t,e)=>(0,h.isSVGComponent)(t)?new tw(e):new ty(e,{allowProjection:t!==c.Fragment}),function(t){let{forwardMotionProps:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{forwardMotionProps:!1},s={...(0,h.isSVGComponent)(t)?M:w,preloadedFeatures:e,useRender:(0,u.createUseRender)(n),createVisualElement:i,Component:t};return(0,l.createRendererMotionComponent)(s)}),tV=(0,n.createDOMMotionComponentProxy)(tS)}]);
//# sourceMappingURL=b055c4c0816ec21a.js.map
//# debugId=f7951deb-b39f-51b9-91df-44fa0d43555b