PageSourceSearch

https://www.sucomado.jp/_next/static/chunks/0e-g8m6ivk6_d.js

js sucomado.jp collected 2026-10-05 22:10:37 UTC 125,018 bytes, 12 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="171963bc-5fa4-d657-7328-a23cede6559e")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,60419,t=>{"use strict";let e=(0,t.i(67837).createContext)({});t.s(["LayoutGroupContext",0,e])},93380,t=>{"use strict";var e=t.i(67837);t.s(["useConstant",0,function(t){let i=(0,e.useRef)(null);return null===i.current&&(i.current=t()),i.current}])},10884,t=>{"use strict";let e="u">typeof window;t.s(["isBrowser",0,e])},66545,t=>{"use strict";var e=t.i(67837);let i=t.i(10884).isBrowser?e.useLayoutEffect:e.useEffect;t.s(["useIsomorphicLayoutEffect",0,i])},7610,t=>{"use strict";let e=(0,t.i(67837).createContext)(null);t.s(["PresenceContext",0,e])},8191,t=>{"use strict";let e=(0,t.i(67837).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",0,e])},42499,t=>{"use strict";var e=t.i(8050),i=t.i(67837),s=t.i(7610),r=t.i(93380),n=i,o=t.i(8191);class a extends n.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=t instanceof HTMLElement&&t.offsetWidth||0,s=this.props.sizeRef.current;s.height=e.offsetHeight||0,s.width=e.offsetWidth||0,s.top=e.offsetTop,s.left=e.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function l({children:t,isPresent:i,anchorX:s}){let r=(0,n.useId)(),u=(0,n.useRef)(null),h=(0,n.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=(0,n.useContext)(o.MotionConfigContext);return(0,n.useInsertionEffect)(()=>{let{width:t,height:e,top:n,left:o,right:a}=h.current;if(i||!u.current||!t||!e)return;let l="left"===s?`left: ${o}`:`right: ${a}`;u.current.dataset.motionPopId=r;let d=document.createElement("style");return c&&(d.nonce=c),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
3          [data-motion-pop-id="${r}"] {
4            position: absolute !important;
5            width: ${t}px !important;
6            height: ${e}px !important;
7            ${l}px !important;
8            top: ${n}px !important;
9          }
10        `),()=>{document.head.removeChild(d)}},[i]),(0,e.jsx)(a,{isPresent:i,childRef:u,sizeRef:h,children:n.cloneElement(t,{ref:u})})}function u(){return new Map}t.s(["PresenceChild",0,({children:t,initial:n,isPresent:o,onExitComplete:a,custom:h,presenceAffectsLayout:c,mode:d,anchorX:p})=>{let m=(0,r.useConstant)(u),f=(0,i.useId)(),v=(0,i.useCallback)(t=>
10{for(let e of(m.set(t,!0),m.values()))if(!e)return;a&&a()},[m,a]),g=(0,i.useMemo)(()=>({id:f,initial:n,isPresent:o,custom:h,onExitComplete:v,register:t=>(m.set(t,!1),()=>m.delete(t))}),c?[Math.random(),v]:[o,v]);return(0,i.useMemo)(()=>{m.forEach((t,e)=>m.set(e,!1))},[o]),i.useEffect(()=>{o||m.size||!a||a()},[o]),"popLayout"===d&&(t=(0,e.jsx)(l,{isPresent:o,anchorX:p,children:t})),(0,e.jsx)(s.PresenceContext.Provider,{value:g,children:t})}],42499)},83527,t=>{"use strict";var e=t.i(67837),i=t.i(7610);t.s(["useIsPresent",0,function(){var t;return null===(t=(0,e.useContext)(i.PresenceContext))||t.isPresent},"usePresence",0,function(t=!0){let s=(0,e.useContext)(i.PresenceContext);if(null===s)return[!0,null];let{isPresent:r,onExitComplete:n,register:o}=s,a=(0,e.useId)();(0,e.useEffect)(()=>{if(t)return o(a)},[t]);let l=(0,e.useCallback)(()=>t&&n&&n(a),[a,n,t]);return!r&&n?[!1,l]:[!0]}])},69293,t=>{"use strict";t.i(54824);var e=t.i(8050),i=t.i(67837),s=t.i(60419),r=t.i(93380),n=t.i(66545),o=t.i(42499),a=t.i(83527);let l=t=>t.key||"";function u(t){let e=[];return i.Children.forEach(t,t=>{(0,i.isValidElement)(t)&&e.push(t)}),e}t.s(["AnimatePresence",0,({children:t,custom:h,initial:c=!0,onExitComplete:d,presenceAffectsLayout:p=!0,mode:m="sync",propagate:f=!1,anchorX:v="left"})=>{let[g,y]=(0,a.usePresence)(f),x=(0,i.useMemo)(()=>u(t),[t]),P=f&&!g?[]:x.map(l),T=(0,i.useRef)(!0),w=(0,i.useRef)(x),b=(0,r.useConstant)(()=>new Map),[S,A]=(0,i.useState)(x),[V,M]=(0,i.useState)(x);(0,n.useIsomorphicLayoutEffect)(()=>{T.current=!1,w.current=x;for(let t=0;t<V.length;t++){let e=l(V[t]);P.includes(e)?b.delete(e):!0!==b.get(e)&&b.set(e,!1)}},[V,P.length,P.join("-")]);let C=[];if(x!==S){let t=[...x];for(let e=0;e<V.length;e++){let i=V[e],s=l(i);P.includes(s)||(t.splice(e,0,i),C.push(i))}return"wait"===m&&C.length&&(t=C),M(u(t)),A(x),null}let{forceRender:D}=(0,i.useContext)(s.LayoutGroupContext);return(0,e.jsx)(e.Fragment,{children:V.map(t=>{let i=l(t),s=(!f||!!g)&&(x===V||P.includes(i));return(0,e.jsx)(o.PresenceChild,{isPresent:s,initial:(!T.current||!!c)&&void 0,custom:h,presenceAffectsLayout:p,mode:m,onExitComplete:s?void 0:()=>{if(!b.has(i))return;b.set(i,!0);let t=!0;b.forEach(e=>{e||(t=!1)}),t&&(null==D||D(),M(w.current),f&&(null==y||y()),d&&d())},anchorX:v,children:t},i)})})}],69293)},4709,80272,47195,20699,944,48620,2214,5175,89068,49261,92792,68738,91496,57490,78830,35411,29710,30097,35799,25970,32530,93430,58342,20093,89897,36187,85257,4841,92334,24711,28368,20480,3664,67434,95537,46660,88130,49456,17761,49620,60721,79913,98258,70246,6553,2140,52208,37313,26795,77865,12976,82835,65631,8952,29988,70668,974,77919,24618,t=>{"use strict";let e,i,s;t.i(54824);let r=t=>t;function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function o(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function a(t,e,i,s){if("function"==typeof e){let[r,n]=o(s);e=e(void 0!==i?i:t.custom,r,n)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,n]=o(s);e=e(void 0!==i?i:t.custom,r,n)}return e}function l(t,e,i){let s=t.getProps();return a(s,e,void 0!==i?i:s.custom,t)}function u(t){let e;return()=>(void 0===e&&(e=t()),e)}t.s(["noop",0,r],80272),t.s([],47195),t.s(["createDOMMotionComponentProxy",0,function(t){if("u"<typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,s)=>"create"===s?t:(e.has(s)||e.set(s,t(s)),e.get(s))})}],4709),t.s(["isAnimationControls",0,n],20699),t.s(["resolveVariantFromProps",0,a],944);let h=u(()=>void 0!==window.ScrollTimeline);class c{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>h()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}
10runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class d extends c{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}let p=t=>1e3*t,m=t=>t/1e3;function f(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 v(t,e){t.timeline=e,t.onfinish=null}t.s(["millisecondsToSeconds",0,m,"secondsToMilliseconds",0,p],48620);let g=t=>Array.isArray(t)&&"number"==typeof t[0],y,x=(i=u(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>{var t;return null!=(t=y)?t:i()}),P=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s};t.s(["progress",0,P],2214);let T=(t,e,i=10)=>{let s="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)s+=t(P(0,r-1,e))+", ";return`linear(${s.substring(0,s.length-2)})`},w=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,b={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:w([0,.65,.55,1]),circOut:w([.55,0,1,.45]),backIn:w([.31,.01,.66,-.59]),backOut:w([.33,1.53,.69,.99])},S=["read","resolveKeyframes","update","preRender","render","postRender"],A={value:null,addProjectionMetrics:null};function V(t,e){let i=!1,s=!0,r={delta:0,timestamp:0,isProcessing:!1},n=()=>i=!0,o=S.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,s=new Set,r=!1,n=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,n=!1)=>{let a=n&&r?i:s;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{s.delete(t),o.delete(t)},process:t=>{if(a=t,r){n=!0;return}r=!0,[i,s]=[s,i],i.forEach(u),e&&A.value&&A.value.frameloop[e].push(l),l=0,i.clear(),r=!1,n&&(n=!1,h.process(t))}};return h}(n,e?i:void 0),t),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:c,postRender:d}=o,p=()=>{let n=performance.now();i=!1,r.delta=s?1e3/60:Math.max(Math.min(n-r.timestamp,40),1),r.timestamp=n,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),c.process(r),d.process(r),r.isProcessing=!1,i&&e&&(s=!1,t(p))};return{schedule:S.reduce((e,n)=>{let a=o[n];return e[n]=(e,n=!1,o=!1)=>(!i&&(i=!0,s=!0,r.isProcessing||t(p)),a.schedule(e,n,o)),e},{}),cancel:t=>{for(let e=0;e<S.length;e++)o[S[e]].cancel(t)},state:r,steps:o}}t.s(["statsBuffer",0,A],5175);let{schedule:M,cancel:C,state:D,steps:E}=V("u">typeof requestAnimationFrame?requestAnimationFrame:r,!0);t.s(["cancelFrame",0,C,"frame",0,M,"frameData",0,D,"frameSteps",0,E],89068);let{schedule:R}=V(queueMicrotask,!1);function k(){e=void 0}t.s(["microtask",0,R],49261);let B={now:()=>(void 0===e&&B.set(D.isProcessing?D.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(k)}};t.s(["time",0,B],92792);let L={layout:0,mainThread:0,waapi:0};function F(t,e){-1===t.indexOf(e)&&t.push(e)}function j(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}t.s(["activeAnimations",0,L],68738),t.s(["addUniqueItem",0,F,"removeItem",0,j],91496);class O{constructor(){this.subscriptions=[]}add(t){return F(this.subscriptions,t),()=>j(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,i);else for(let r=0;r<s;r++){let s=this.subscriptions[r];s&&s(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}t.s(["SubscriptionManager",0,O],57490);class I{constructor(t,e={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=B.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=B.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new O);let i=this.events[t].add(e);return"change"===t?()=>{i(),M.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){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,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return s&&s.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=B.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(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function U(t,e){return new I(t,e)}function N(t,e){return t?t[e]||t.default||t:void 0}function $(t){return"function"==typeof t}t.s(["motionValue",0,U],78830),t.s(["getValueTransition",0,N],35411),t.s([],29710);let W=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],z=new Set(W);t.s(["transformPropOrder",0,W,"transformProps",0,z],30097);let H=new Set(["width","height","top","left","right","bottom",...W]),Y=t=>Array.isArray(t),G=t=>Y(t)?t[t.length-1]||0:t;t.s(["isCustomValue",0,t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),"resolveFinalValueInKeyframes",0,G],35799);let X=t=>!!(t&&t.getVelocity);function K(t,e){let i=t.getValue("willChange");if(X(i)&&i.add)return i.add(e)}t.s(["isMotionValue",0,X],25970);let q=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();t.s(["camelToDash",0,q],32530);let Z="data-"+q("framerAppearId");function _(t){return t.props[Z]}t.s(["optimizedAppearDataAttribute",0,Z],93430),t.s(["getOptimisedAppearId",0,_],58342);let J=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function Q(t,e,i,s){return t===e&&i===s?r:r=>
100===r||1===r?r:J(function(t,e,i,s,r){let n,o,a=0;do(n=J(o=e+(i-e)/2,s,r)-t)>0?i=o:e=o;while(Math.abs(n)>1e-7&&++a<12)return o}(r,0,1,t,i),e,s)}let tt=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,te=t=>e=>1-t(1-e),ti=Q(.33,1.53,.69,.99),ts=te(ti),tr=tt(ts),tn=t=>(t*=2)<1?.5*ts(t):.5*(2-Math.pow(2,-10*(t-1))),to=t=>1-Math.sin(Math.acos(t)),ta=te(to),tl=tt(to);t.s(["circIn",0,to,"circInOut",0,tl,"circOut",0,ta],20093);let tu=t=>/^0[^.\s]+$/u.test(t);t.s(["isZeroValueString",0,tu],89897);let th=(t,e,i)=>i>e?e:i<t?t:i;t.s(["clamp",0,th],36187);let tc={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},td={...tc,transform:t=>th(0,1,t)},tp={...tc,default:1},tm=t=>Math.round(1e5*t)/1e5,tf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tv=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tg=(t,e)=>i=>!!("string"==typeof i&&tv.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),ty=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[r,n,o,a]=s.match(tf);return{[t]:parseFloat(r),[e]:parseFloat(n),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tx={...tc,transform:t=>Math.round(th(0,255,t))},tP={test:tg("rgb","red"),parse:ty("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+tx.transform(t)+", "+tx.transform(e)+", "+tx.transform(i)+", "+tm(td.transform(s))+")"},tT={test:tg("#"),parse:function(t){let e="",i="",s="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,s+=s,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}},transform:tP.transform},tw=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tb=tw("deg"),tS=tw("%"),tA=tw("px"),tV=tw("vh"),tM=tw("vw"),tC={...tS,parse:t=>tS.parse(t)/100,transform:t=>tS.transform(100*t)};t.s(["degrees",0,tb,"percent",0,tS,"progressPercentage",0,tC,"px",0,tA,"vh",0,tV,"vw",0,tM],85257);let tD={test:tg("hsl","hue"),parse:ty("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+tS.transform(tm(e))+", "+tS.transform(tm(i))+", "+tm(td.transform(s))+")"},tE={test:t=>tP.test(t)||tT.test(t)||tD.test(t),parse:t=>tP.test(t)?tP.parse(t):tD.test(t)?tD.parse(t):tT.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tP.transform(t):tD.transform(t)};t.s(["color",0,tE],4841);let tR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tk="number",tB="color",tL=/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 tF(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},r=[],n=0,o=e.replace(tL,t=>(tE.test(t)?(s.color.push(n),r.push(tB),i.push(tE.parse(t))):t.startsWith("var(")?(s.var.push(n),r.push("var"),i.push(t)):(s.number.push(n),r.push(tk),i.push(parseFloat(t))),++n,"${}")).split("${}");return{values:i,split:o,indexes:s,types:r}}function tj(t){return tF(t).values}function tO(t){let{split:e,types:i}=tF(t),s=e.length;return t=>{let r="";for(let n=0;n<s;n++)if(r+=e[n],void 0!==t[n]){let e=i[n];e===tk?r+=tm(t[n]):e===tB?r+=tE.transform(t[n]):r+=t[n]}return r}}let tI=t=>"number"==typeof t?0:t,tU={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(tf))?void 0:e.length)||0)+((null==(i=t.match(tR))?void 0:i.length)||0)>0},parse:tj,createTransformer:tO,getAnimatableNone:function(t){let e=tj(t);return tO(t)(e.map(tI))}};t.s(["analyseComplexValue",0,tF,"complex",0,tU],92334);let tN=new Set(["brightness","contrast","saturate","opacity"]);function t$(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(tf)||[];if(!s)return t;let r=i.replace(s,""),n=+!!tN.has(e);return s!==i&&(n*=100),e+"("+n+r+")"}let tW=/\b([a-z-]*)\(.*?\)/gu,tz={...tU,getAnimatableNone:t=>{let e=t.match(tW);return e?e.map(t$).join(" "):t}},tH={...tc,transform:Math.round},tY={borderWidth:tA,borderTopWidth:tA,borderRightWidth:tA,borderBottomWidth:tA,borderLeftWidth:tA,borderRadius:tA,radius:tA,borderTopLeftRadius:tA,borderTopRightRadius:tA,borderBottomRightRadius:tA,borderBottomLeftRadius:tA,width:tA,maxWidth:tA,height:tA,maxHeight:tA,top:tA,right:tA,bottom:tA,left:tA,padding:tA,paddingTop:tA,paddingRight:tA,paddingBottom:tA,paddingLeft:tA,margin:tA,marginTop:tA,marginRight:tA,marginBottom:tA,marginLeft:tA,backgroundPositionX:tA,backgroundPositionY:tA,rotate:tb,rotateX:tb,rotateY:tb,rotateZ:tb,scale:tp,scaleX:tp,scaleY:tp,scaleZ:tp,skew:tb,skewX:tb,skewY:tb,distance:tA,translateX:tA,translateY:tA,translateZ:tA,x:tA,y:tA,z:tA,perspective:tA,transformPerspective:tA,opacity:td,originX:tC,originY:tC,originZ:tA,zIndex:tH,size:tA,fillOpacity:td,strokeOpacity:td,numOctaves:tH};t.s(["numberValueTypes",0,tY],24711);let tG={...tY,color:tE,backgroundColor:tE,outlineColor:tE,fill:tE,stroke:tE,borderColor:tE,borderTopColor:tE,borderRightColor:tE,borderBottomColor:tE,borderLeftColor:tE,filter:tz,WebkitFilter:tz},tX=t=>tG[t];function tK(t,e){let i=tX(t);return i!==tz&&(i=tU),i.getAnimatableNone?i.getAnimatableNone(e):void 0}t.s(["getDefaultValueType",0,tX],28368),t.s(["getAnimatableNone",0,tK],20480);
10let tq=new Set(["auto","none","0"]),tZ=t=>180*t/Math.PI,t_=t=>tQ(tZ(Math.atan2(t[1],t[0]))),tJ={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:t_,rotateZ:t_,skewX:t=>tZ(Math.atan(t[1])),skewY:t=>tZ(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tQ=t=>((t%=360)<0&&(t+=360),t),t0=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),t1=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),t2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:t0,scaleY:t1,scale:t=>(t0(t)+t1(t))/2,rotateX:t=>tQ(tZ(Math.atan2(t[6],t[5]))),rotateY:t=>tQ(tZ(Math.atan2(-t[2],t[0]))),rotateZ:t_,rotate:t_,skewX:t=>tZ(Math.atan(t[4])),skewY:t=>tZ(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function t3(t){return+!!t.includes("scale")}function t9(t,e){let i,s;if(!t||"none"===t)return t3(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=t2,s=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tJ,s=e}if(!s)return t3(e);let n=i[e],o=s[1].split(",").map(t5);return"function"==typeof n?n(o):o[n]}function t5(t){return parseFloat(t.trim())}t.s(["parseValueFromTransform",0,t9,"readTransformValue",0,(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return t9(i,e)}],3664);let t6=t=>t===tc||t===tA,t4=new Set(["x","y","z"]),t8=W.filter(t=>!t4.has(t)),t7={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>t9(e,"x"),y:(t,{transform:e})=>t9(e,"y")};t7.translateX=t7.x,t7.translateY=t7.y;let et=new Set,ee=!1,ei=!1;function es(){if(ei){let t=Array.from(et).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,s=(e=[],t8.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e);s.length&&(i.set(t,s),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var s;null==(s=t.getValue(e))||s.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}ei=!1,ee=!1,et.forEach(t=>t.complete()),et.clear()}function er(){et.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ei=!0)})}function en(){er(),es()}class eo{constructor(t,e,i,s,r,n=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=r,this.isAsync=n}scheduleResolve(){this.isScheduled=!0,this.isAsync?(et.add(this),ee||(ee=!0,M.read(er),M.resolveKeyframes(es))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;for(let r=0;r<t.length;r++)if(null===t[r])if(0===r){let r=null==s?void 0:s.get(),n=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let s=i.readValue(e,n);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=n),s&&void 0===r&&s.set(t[0])}else t[r]=t[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),et.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,et.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}t.s(["KeyframeResolver",0,eo,"flushKeyframeResolvers",0,en],67434);let ea=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);t.s(["isNumericalString",0,ea],95537);let el=t=>e=>"string"==typeof e&&e.startsWith(t),eu=el("--"),eh=el("var(--"),ec=t=>!!eh(t)&&ed.test(t.split("/*")[0].trim()),ed=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;t.s(["isCSSVariableName",0,eu,"isCSSVariableToken",0,ec],46660);let ep=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,em=t=>e=>e.test(t);t.s(["testValueType",0,em],88130);let ef=[tc,tA,tS,tb,tM,tV,{test:t=>"auto"===t,parse:t=>t}],ev=t=>ef.find(em(t));t.s(["dimensionValueTypes",0,ef,"findDimensionValueType",0,ev],49456);class eg extends eo{constructor(t,e,i,s,r){super(t,e,i,s,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let s=t[i];if("string"==typeof s&&ec(s=s.trim())){let n=function t(e,i,s=1){r(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,o]=function(t){let e=ep.exec(t);if(!e)return[,];let[,i,s,r]=e;return[`--${null!=i?i:s}`,r]}(e);if(!n)return;let a=window.getComputedStyle(i).getPropertyValue(n);if(a){let t=a.trim();return ea(t)?parseFloat(t):t}return ec(o)?t(o,i,s+1):o}(s,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!H.has(i)||2!==t.length)return;let[s,n]=t,o=ev(s),a=ev(n);if(o!==a)if(t6(o)&&t6(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var s;("number"==typeof(s=t[e])?0===s:null===s||"none"===s||"0"===s||tu(s))&&i.push(e)}
10i.length&&function(t,e,i){let s,r=0;for(;r<t.length&&!s;){let e=t[r];"string"==typeof e&&!tq.has(e)&&tF(e).values.length&&(s=t[r]),r++}if(s&&i)for(let r of e)t[r]=tK(i,s)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=t7[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:s}=this;if(!e||!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let n=s.length-1,o=s[n];s[n]=t7[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEach(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}t.s(["DOMKeyframesResolver",0,eg],17761);let ey=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tU.test(t)||"0"===t)&&!t.startsWith("url(")),ex=t=>null!==t;function eP(t,{repeat:e,repeatType:i="loop"},s){let r=t.filter(ex),n=e&&"loop"!==i&&e%2==1?0:r.length-1;return n&&void 0!==s?s:r[n]}class eT{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:n="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=B.now(),this.options={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:r,repeatType:n,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||en(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=B.now(),this.hasAttemptedResolve=!0;let{name:i,type:s,velocity:n,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!function(t,e,i,s){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let o=t[t.length-1],a=ey(n,e),l=ey(o,e);return r(a===l,`You are trying to animate ${e} from "${n}" to "${o}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${o} via the \`style\` property.`),!!a&&!!l&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||$(i))&&s)}(t,i,s,n))if(o)this.options.duration=0;else{l&&l(eP(t,this.options,e)),a&&a(),this.resolveFinishedPromise();return}let h=this.initPlayback(t,e);!1!==h&&(this._resolved={keyframes:t,finalKeyframe:e,...h},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}let ew=(t,e,i)=>t+(e-t)*i;function eb(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 eS(t,e){return i=>i>0?e:t}t.s(["mixNumber",0,ew],49620);let eA=(t,e,i)=>{let s=t*t,r=i*(e*e-s)+s;return r<0?0:Math.sqrt(r)},eV=[tT,tP,tD];function eM(t){let e=eV.find(e=>e.test(t));if(r(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tD&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let r=0,n=0,o=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,a=2*i-s;r=eb(a,s,t+1/3),n=eb(a,s,t),o=eb(a,s,t-1/3)}else r=n=o=i;return{red:Math.round(255*r),green:Math.round(255*n),blue:Math.round(255*o),alpha:s}}(i)),i}let eC=(t,e)=>{let i=eM(t),s=eM(e);if(!i||!s)return eS(t,e);let r={...i};return t=>(r.red=eA(i.red,s.red,t),r.green=eA(i.green,s.green,t),r.blue=eA(i.blue,s.blue,t),r.alpha=ew(i.alpha,s.alpha,t),tP.transform(r))},eD=(t,e)=>i=>e(t(i)),eE=(...t)=>t.reduce(eD);t.s(["pipe",0,eE],60721);let eR=new Set(["none","hidden"]);function ek(t,e){return i=>ew(t,e,i)}function eB(t){return"number"==typeof t?ek:"string"==typeof t?ec(t)?eS:tE.test(t)?eC:ej:Array.isArray(t)?eL:"object"==typeof t?tE.test(t)?eC:eF:eS}function eL(t,e){let i=[...t],s=i.length,r=t.map((t,i)=>eB(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=r[e](t);return i}}function eF(t,e){let i={...t,...e},s={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(s[r]=eB(t[r])(t[r],e[r]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let ej=(t,e)=>{let i=tU.createTransformer(e),s=tF(t),n=tF(e);if(!(s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length))return r(!0,`Complex values '${t}' and '${e}
10' 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.`),eS(t,e);if(eR.has(t)&&!n.values.length||eR.has(e)&&!s.values.length)return eR.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return eE(eL(function(t,e){var i;let s=[],r={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let o=e.types[n],a=t.indexes[o][r[o]],l=null!=(i=t.values[a])?i:0;s[n]=l,r[o]++}return s}(s,n),n.values),i)};function eO(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?ew(t,e,i):eB(t)(t,e)}function eI(t,e,i){var s,r;let n=Math.max(e-5,0);return s=i-t(n),(r=e-n)?1e3/r*s:0}let eU=.01,eN=2,e$=.005,eW=.5;function ez(t,e){return t*Math.sqrt(1-e*e)}let eH=["duration","bounce"],eY=["stiffness","damping","mass"];function eG(t,e){return e.some(e=>void 0!==t[e])}function eX(t=.3,e=.3){let i,s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:o}=s,a=s.keyframes[0],l=s.keyframes[s.keyframes.length-1],u={done:!1,value:a},{stiffness:h,damping:c,mass:d,duration:v,velocity:g,isResolvedFromDuration:y}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!eG(t,eY)&&eG(t,eH))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,r=2*th(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:1,stiffness:s,damping:r}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:s=1}){let n,o;r(t<=p(10),"Spring duration must be 10 seconds or less");let a=1-e;a=th(.05,1,a),t=th(.01,10,m(t)),a<1?(n=e=>{let s=e*a,r=s*t;return .001-(s-i)/ez(e,a)*Math.exp(-r)},o=e=>{let s=e*a*t,r=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-s),l=ez(Math.pow(e,2),a);return(s*i+i-r)*o*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),o=e=>t*t*(i-e)*Math.exp(-e*t));let l=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(n,o,5/t);if(t=p(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(l,2)*s;return{stiffness:e,damping:2*a*Math.sqrt(s*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...s,velocity:-m(s.velocity||0)}),x=g||0,P=c/(2*Math.sqrt(h*d)),w=l-a,b=m(Math.sqrt(h/d)),S=5>Math.abs(w);if(n||(n=S?eU:eN),o||(o=S?e$:eW),P<1){let t=ez(b,P);i=e=>l-Math.exp(-P*b*e)*((x+P*b*w)/t*Math.sin(t*e)+w*Math.cos(t*e))}else if(1===P)i=t=>l-Math.exp(-b*t)*(w+(x+b*w)*t);else{let t=b*Math.sqrt(P*P-1);i=e=>{let i=Math.exp(-P*b*e),s=Math.min(t*e,300);return l-i*((x+P*b*w)*Math.sinh(s)+t*w*Math.cosh(s))/t}}let A={calculatedDuration:y&&v||null,next:t=>{let e=i(t);if(y)u.done=t>=v;else{let s=0;P<1&&(s=0===t?p(x):eI(i,t,e));let r=Math.abs(l-e)<=o;u.done=Math.abs(s)<=n&&r}return u.value=u.done?l:e,u},toString:()=>{let t=Math.min(f(A),2e4),e=T(e=>A.next(t*e).value,t,30);return t+"ms "+e}};return A}function eK({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,v=p+f,g=void 0===o?v:o(v);g!==v&&(f=g-p);let y=t=>-f*Math.exp(-t/s),x=t=>g+y(t),P=t=>{let e=y(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?g:i},T=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=eX({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:eI(x,t,m.value),damping:r,stiffness:n,restDelta:u,restSpeed:h})}};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,P(t),T(t)),void 0!==c&&t>=c)?d.next(t-c):(e||P(t),m)}}}let eq=Q(.42,0,1,1),eZ=Q(0,0,.58,1),e_=Q(.42,0,.58,1),eJ={linear:r,easeIn:eq,easeInOut:e_,easeOut:eZ,circIn:to,circInOut:tl,circOut:ta,backIn:ts,backInOut:tr,backOut:ti,anticipate:tn},eQ=t=>{if(g(t)){r(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,s,n]=t;return Q(e,i,s,n)}return"string"==typeof t?(r(void 0!==eJ[t],`Invalid easing type '${t}'`),eJ[t]):t};function e0({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var n;let o,a=Array.isArray(s)&&"number"!=typeof s[0]?s.map(eQ):eQ(s),l={done:!1,value:e[0]},u=function(t,e,{clamp:i=!0,ease:s,mixer:n}={}){let o=t.length;if(r(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());
10let l=function(t,e,i){let s=[],n=i||eO,o=t.length-1;for(let i=0;i<o;i++){let o=n(t[i],t[i+1]);e&&(o=eE(Array.isArray(e)?e[i]||r:e,o)),s.push(o)}return s}(e,s,n),u=l.length,h=i=>{if(a&&i<t[0])return e[0];let s=0;if(u>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let r=P(t[s],t[s+1],i);return l[s](r)};return i?e=>h(th(t[0],t[o-1],e)):h}((n=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let r=P(0,e,s);t.push(ew(i,1,r))}}(o=[0],e.length-1),o),n.map(e=>e*t)),e,{ease:Array.isArray(a)?a:e.map(()=>a||e_).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(l.value=u(e),l.done=e>=t,l)}}let e1=t=>{let e=({timestamp:e})=>t(e);return{start:()=>M.update(e,!0),stop:()=>C(e),now:()=>D.isProcessing?D.timestamp:B.now()}},e2={decay:eK,inertia:eK,tween:e0,keyframes:e0,spring:eX},e3=t=>t/100;class e9 extends eT{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};const{name:e,motionValue:i,element:s,keyframes:r}=this.options,n=(null==s?void 0:s.KeyframeResolver)||eo,o=(t,e)=>this.onKeyframesResolved(t,e);this.resolver=new n(r,o,e,i,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:s="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:o,velocity:a=0}=this.options,l=$(s)?s:e2[s]||e0;l!==e0&&"number"!=typeof t[0]&&(e=eE(e3,eO(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=f(u));let{calculatedDuration:h}=u,c=h+n;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(r+1)-n}}onPostResolved(){let{autoplay:t=!0}=this.options;L.mainThread++,this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:s,generator:r,mirroredGenerator:n,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return r.next(0);let{delay:c,repeat:d,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-c*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=r;if(d){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/h)):"mirror"===p&&(x=n)),y=th(0,1,i)*h}let P=g?{done:!1,value:a[0]}:x.next(y);o&&(P.value=o(P.value));let{done:T}=P;g||null===l||(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return w&&void 0!==s&&(P.value=eP(a,this.options,s)),f&&f(P.value),w&&this.finish(),P}get duration(){let{resolved:t}=this;return t?m(t.calculatedDuration):0}get time(){return m(this.currentTime)}set time(t){t=p(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=m(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=e1,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let s=this.driver.now();null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=s):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedProm
10ise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(t=this.currentTime)?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel(),L.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let e5=new Set(["opacity","clipPath","filter","transform"]),e6=u(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),e4={anticipate:tn,backInOut:tr,circInOut:tl};class e8 extends eT{constructor(t){super(t);const{name:e,motionValue:i,element:s,keyframes:r}=this.options;this.resolver=new eg(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,s),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:s=300,times:r,ease:n,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof n&&x()&&n in e4&&(n=e4[n]),$((i=this.options).type)||"spring"===i.type||!function t(e){return!!("function"==typeof e&&x()||!e||"string"==typeof e&&(e in b||x())||g(e)||Array.isArray(e)&&e.every(t))}(i.ease)){let{onComplete:e,onUpdate:i,motionValue:a,element:l,...u}=this.options,h=function(t,e){let i=new e9({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),s={done:!1,value:t[0]},r=[],n=0;for(;!s.done&&n<2e4;)r.push((s=i.sample(n)).value),n+=10;return{times:void 0,keyframes:r,duration:n-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),s=h.duration,r=h.times,n=h.ease,o="keyframes"}let h=function(t,e,i,{delay:s=0,duration:r=300,repeat:n=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e,i){if(e)return"function"==typeof e&&x()?T(e,i):g(e)?w(e):Array.isArray(e)?e.map(e=>t(e,i)||b.easeOut):b[e]}(a,r);Array.isArray(h)&&(u.easing=h),A.value&&L.waapi++;let c=t.animate(u,{delay:s,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:n+1,direction:"reverse"===o?"alternate":"normal"});return A.value&&c.finished.finally(()=>{L.waapi--}),c}(a.owner.current,l,t,{...this.options,duration:s,times:r,ease:n});return h.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(v(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;a.set(eP(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:s,times:r,type:o,ease:n,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return m(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return m(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=p(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return r;let{animation:i}=e;v(i,t)}else this.pendingTimeline=t;return r}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:s,type:r,ease:n,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new e9({...u,keyframes:i,duration:s,type:r,ease:n,times:o,isGenerator:!0}),c=p(this.time);t.setWithVelocity(h.sample(c-10).value,h.sample(c).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}
10static supports(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:r,damping:n,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return e6()&&i&&e5.has(i)&&("transform"!==i||!l)&&!a&&!s&&"mirror"!==r&&0!==n&&"inertia"!==o}}let e7={type:"spring",stiffness:500,damping:25,restSpeed:10},it={type:"keyframes",duration:.8},ie={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ii=(t,e,i,s={},r,n)=>o=>{let a=N(s,t)||{},l=a.delay||s.delay||0,{elapsed:u=0}=s;u-=p(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:n?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:r,repeat:n,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(h={...h,...((t,{keyframes:e})=>e.length>2?it:z.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:e7:ie)(t,h)}),h.duration&&(h.duration=p(h.duration)),h.repeatDelay&&(h.repeatDelay=p(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0===h.delay&&(c=!0)),h.allowFlatten=!a.type&&!a.ease,c&&!n&&void 0!==e.get()){let t=eP(h.keyframes,a);if(void 0!==t)return M.update(()=>{h.onUpdate(t),h.onComplete()}),new d([])}return!n&&e8.supports(h)?new e8(h):new e9(h)};function is(t,e,{delay:i=0,transitionOverride:s,type:r}={}){var n;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...u}=e;s&&(o=s);let h=[],c=r&&t.animationState&&t.animationState.getState()[r];for(let e in u){let s=t.getValue(e,null!=(n=t.latestValues[e])?n:null),r=u[e];if(void 0===r||c&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(c,e))continue;let a={delay:i,...N(o||{},e)},l=!1;if(window.MotionHandoffAnimation){let i=_(t);if(i){let t=window.MotionHandoffAnimation(i,e,M);null!==t&&(a.startTime=t,l=!0)}}K(t,e),s.start(ii(e,s,r,t.shouldReduceMotion&&H.has(e)?{type:!1}:a,t,l));let d=s.animation;d&&h.push(d)}return a&&Promise.all(h).then(()=>{M.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:s={},...r}=l(t,e)||{};for(let e in r={...r,...i}){let i=G(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,U(i))}}(t,a)})}),h}function ir(t,e,i={}){var s;let r=l(t,e,"exit"===i.type?null==(s=t.presenceContext)?void 0:s.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let o=r?()=>Promise.all(is(t,r,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=n;return function(t,e,i=0,s=0,r=1,n){let o=[],a=(t.variantChildren.size-1)*s,l=1===r?(t=0)=>t*s:(t=0)=>a-t*s;return Array.from(t.variantChildren).sort(io).forEach((t,s)=>{t.notify("AnimationStart",e),o.push(ir(t,e,{...n,delay:i+l(s)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+s,o,a,i)}:()=>Promise.resolve(),{when:u}=n;if(!u)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===u?[o,a]:[a,o];return t().then(()=>e())}}function io(t,e){return t.sortNodePosition(e)}function ia(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}function il(t){return"string"==typeof t||Array.isArray(t)}t.s(["animateMotionValue",0,ii],79913),t.s(["isVariantLabel",0,il],98258);let iu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ih=["initial",...iu];t.s(["variantPriorityOrder",0,iu,"variantProps",0,ih],70246);let ic=ih.length,id=[...iu].reverse(),ip=iu.length;function im(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iv(){return{animate:im(!0),whileInView:im(),whileHover:im(),whileTap:im(),whileDrag:im(),whileFocus:im(),exit:im()}}class ig{constructor(t){this.isMounted=!1,this.node=t}update(){}}t.s(["Feature",0,ig],6553);let iy=0;t.s(["animations",0,{animation:{Feature:class extends ig{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>
10(function(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>ir(t,e,i)));else if("string"==typeof e)s=ir(t,e,i);else{let r="function"==typeof e?l(t,e,i.custom):e;s=Promise.all(is(t,r,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=iv(),s=!0,r=e=>(i,s)=>{var r;let n=l(t,s,"exit"===e?null==(r=t.presenceContext)?void 0:r.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function o(o){let{props:a}=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<ic;t++){let s=ih[t],r=e.props[s];(il(r)||!1===r)&&(i[s]=r)}return i}(t.parent)||{},h=[],c=new Set,d={},p=1/0;for(let e=0;e<ip;e++){var m,f;let l=id[e],v=i[l],g=void 0!==a[l]?a[l]:u[l],y=il(g),x=l===o?v.isActive:null;!1===x&&(p=e);let P=g===u[l]&&g!==a[l]&&y;if(P&&s&&t.manuallyAnimateOnMount&&(P=!1),v.protectedKeys={...d},!v.isActive&&null===x||!g&&!v.prevProp||n(g)||"boolean"==typeof g)continue;let T=(m=v.prevProp,"string"==typeof(f=g)?f!==m:!!Array.isArray(f)&&!ia(f,m)),w=T||l===o&&v.isActive&&!P&&y||e>p&&y,b=!1,S=Array.isArray(g)?g:[g],A=S.reduce(r(l),{});!1===x&&(A={});let{prevResolvedValues:V={}}=v,M={...V,...A},C=e=>{w=!0,c.has(e)&&(b=!0,c.delete(e)),v.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in M){let e=A[t],i=V[t];if(!d.hasOwnProperty(t))(Y(e)&&Y(i)?ia(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=A,v.isActive&&(d={...d,...A}),s&&t.blockInitialAnimation&&(w=!1);let D=!(P&&T)||b;w&&D&&h.push(...S.map(t=>({animation:t,options:{type:l}})))}if(c.size){let e={};if("boolean"!=typeof a.initial){let i=l(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}c.forEach(i=>{let s=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=s?s:null}),h.push({animation:e})}let v=!!h.length;return s&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(v=!1),s=!1,v?e(h):Promise.resolve()}return{animateChanges:o,setActive:function(e,s){var r;if(i[e].isActive===s)return Promise.resolve();null==(r=t.variantChildren)||r.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,s)}),i[e].isActive=s;let n=o(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=iv(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();n(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)}}},exit:{Feature:class extends ig{constructor(){super(...arguments),this.id=iy++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
10e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}}],2140);let ix={x:!1,y:!1};function iP(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}t.s(["isDragActive",0,function(){return ix.x||ix.y},"isDragging",0,ix],52208),t.s(["addDomEvent",0,iP],37313);let iT=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function iw(t){return{point:{x:t.pageX,y:t.pageY}}}t.s(["isPrimaryPointer",0,iT],26795);let ib=t=>e=>iT(e)&&t(e,iw(e));function iS(t,e,i,s){return iP(t,e,ib(i),s)}function iA({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}t.s(["addPointerInfo",0,ib,"extractEventInfo",0,iw],77865);function iV(t){return t.max-t.min}function iM(t,e,i,s=.5){t.origin=s,t.originPoint=ew(e.min,e.max,t.origin),t.scale=iV(i)/iV(e),t.translate=ew(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 iC(t,e,i){t.min=i.min+e.min,t.max=t.min+iV(e)}function iD(t,e,i){t.min=e.min-i.min,t.max=t.min+iV(e)}t.s(["calcBoxDelta",0,function(t,e,i,s){iM(t.x,e.x,i.x,s?s.originX:void 0),iM(t.y,e.y,i.y,s?s.originY:void 0)},"calcLength",0,iV,"calcRelativeBox",0,function(t,e,i){iC(t.x,e.x,i.x),iC(t.y,e.y,i.y)},"calcRelativePosition",0,function(t,e,i){iD(t.x,e.x,i.x),iD(t.y,e.y,i.y)},"isNear",0,function(t,e,i){return Math.abs(t-e)<=i}],12976);let iE=()=>({translate:0,scale:1,origin:0,originPoint:0}),iR=()=>({min:0,max:0}),ik=()=>({x:iR(),y:iR()});function iB(t){return[t("x"),t("y")]}function iL(t){return void 0===t||1===t}function iF({scale:t,scaleX:e,scaleY:i}){return!iL(t)||!iL(e)||!iL(i)}function ij(t){return iF(t)||iO(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function iO(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function iI(t,e,i){return i+e*(t-i)}function iU(t,e,i,s,r){return void 0!==r&&(t=iI(t,r,s)),iI(t,i,s)+e}function iN(t,e=0,i=1,s,r){t.min=iU(t.min,e,i,s,r),t.max=iU(t.max,e,i,s,r)}function i$(t,{x:e,y:i}){iN(t.x,e.translate,e.scale,e.originPoint),iN(t.y,i.translate,i.scale,i.originPoint)}function iW(t,e){t.min=t.min+e,t.max=t.max+e}function iz(t,e,i,s,r=.5){let n=ew(t.min,t.max,r);iN(t,e,i,n,s)}function iH(t,e){iz(t.x,e.x,e.scaleX,e.scale,e.originX),iz(t.y,e.y,e.scaleY,e.scale,e.originY)}function iY(t,e){return iA(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}function iG(t,e,i){let s=iY(t,i),{scroll:r}=e;return r&&(iW(s.x,r.offset.x),iW(s.y,r.offset.y)),s}t.s(["createBox",0,ik,"createDelta",0,()=>({x:iE(),y:iE()})],82835),t.s(["eachAxis",0,iB],65631),t.s(["has2DTranslate",0,iO,"hasScale",0,iF,"hasTransform",0,ij],8952),t.s(["applyBoxDelta",0,i$,"applyTreeDeltas",0,function(t,e,i,s=!1){let r,n,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){n=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&iH(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),n&&(e.x*=n.x.scale,e.y*=n.y.scale,i$(t,n)),s&&ij(r.latestValues)&&iH(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}},"scalePoint",0,iI,"transformBox",0,iH,"translateAxis",0,iW],29988),t.s(["measurePageBox",0,iG,"measureViewportBox",0,iY],70668);let iX=({current:t})=>t?t.ownerDocument.defaultView:null;function iK(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}t.s(["isRefObject",0,iK],974);let iq=(t,e)=>Math.abs(t-e);class iZ{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=iQ(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(iq(t.x,e.x)**2+iq(t.y,e.y)**2)>=3);if(!s&&!r)return;let{point:n}=i,{timestamp:o}=D;this.history.push({...n,timestamp:o});let{onStart:a,onMove:l}=this.handlers;s||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=i_(e,this.transformPagePoint),M.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=iQ("pointercancel"===t.type?this.lastMoveEventInfo:i_(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,n),s&&s(t,n)},!iT(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;const n=i_(iw(t),this.transformPagePoint),{point:o}=n,{timestamp:a}=D;this.history=[{...o,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,iQ(n,this.history)),this.removeListeners=eE(iS(this.contextWindow,"pointermove",this.handlePointerMove),iS(this.contextWindow,"pointerup",this.handlePointerUp),iS(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),C(this.updatePoint)}}function i_(t,e){return e?{point:e(t.point)}:t}function iJ(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iQ({point:t},e){return{point:t,delta:iJ(t,i0(e)),offset:iJ(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,s=i0(t);for(;e>=0&&(i=t[e],!(s.timestamp-i.timestamp>p(.1)));)e--;if(!i)return{x:0,y:0};let r=m(s.timestamp-i.timestamp);if(0===r)return{x:0,y:0};let n={x:(s.x-i.x)/r,y:(s.y-i.y)/r};return n.x===1/0&&(n.x=0),n.y===1/0&&(n.y=0),n}(e)}}function i0(t){return t[t.length-1]}function i1(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 i2(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function i3(t,e,i){return{min:i9(t,e),max:i9(t,i)}}function i9(t,e){return"number"==typeof t?t:t[e]||0}let i5=new WeakMap;class i6{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=ik(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let s=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(iw(t).point)},r=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:r}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(ix[t])return null;else return ix[t]=!0,()=>{ix[t]=!1};return ix.x||ix.y?null:(ix.x=ix.y=!0,()=>{ix.x=ix.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),iB(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tS.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=iV(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&M.postRender(()=>r(t,e)),K(this.visualElement,"transform");let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},n=(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:r,onDrag:n}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),n&&n(t,e)},o=(t,e)=>this.stop(t,e),a=()=>iB(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new iZ(t,{onSessionStart:s,onStart:r,onMove:n,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:iX(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:r}=this.getProps();r&&M.postRender(()=>r(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:s}=this.getProps();if(!i||!i4(t,s,this.currentDirection))return;let r=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?ew(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?ew(i,t,s.max):Math.min(t,i)),t}(n,this.constraints[t],this.elastic[t])),r.set(n)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,r=this.constraints;e&&iK(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,{top:e,left:i,bottom:s,right:r}){return{x:i1(t.x,i,r),y:i1(t.y,e,s)}}(s.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:i3(t,"left","right"),y:i3(t,"top","bottom")}}(i),r!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&iB(t=>{var e,i;let r;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=s.layoutBox[t],i=this.constraints[t],r={},void 0!==i.min&&(r.min=i.min-e.min),void 0!==i.max&&(r.max=i.max-e.min),r))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iK(e))return!1;let s=e.current;r(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let o=iG(s,n.root,this.visualElement.getTransformPagePoint()),a=(t=n.layout.layoutBox,{x:i2(t.x,o.x),y:i2(t.y,o.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=iA(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:n,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(iB(o=>{if(!i4(o,e,this.currentDirection))return;let l=a&&a[o]||{};n&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return K(this.visualElement,t),i.start(ii(t,i,0,e,this.visualElement,!1))}stopAnimation(){iB(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iB(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${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){iB(e=>{let{drag:i}=this.getProps();if(!i4(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,r=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[e];r.set(t[e]-ew(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iK(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};iB(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,r;let n,o,a,l=e.get();s[t]=(i={min:l,max:l},r=this.constraints[t],n=.5,o=iV(i),(a=iV(r))>o?n=P(r.min,r.max-o,i.min):o>a&&(n=P(i.min,i.max-a,r.min)),th(0,1,n))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iB(e
10=>{if(!i4(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:n}=this.constraints[e];i.set(ew(r,n,s[e]))})}addListeners(){if(!this.visualElement.current)return;i5.set(this.visualElement,this);let t=iS(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();iK(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),M.read(e);let r=iP(window,"resize",()=>this.scalePositionWithinConstraints()),n=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iB(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),s(),n&&n()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:n=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:n,dragMomentum:o}}}function i4(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}t.s(["DragGesture",0,class extends ig{constructor(t){super(t),this.removeGroupControls=r,this.removeListeners=r,this.controls=new i6(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||r}unmount(){this.removeGroupControls(),this.removeListeners()}}],77919);let i8=t=>(e,i)=>{t&&M.postRender(()=>t(e,i))};t.s(["PanGesture",0,class extends ig{constructor(){super(...arguments),this.removePointerDownListener=r}onPointerDown(t){this.session=new iZ(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iX(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:i8(t),onStart:i8(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&M.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=iS(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}],24618)},85443,70463,23800,27649,56708,11045,30090,t=>{"use strict";var e=t.i(77919),i=t.i(24618),s=t.i(8050);t.i(29710);var r=t.i(89068),n=t.i(49261),o=t.i(67837),a=t.i(83527),l=t.i(60419);let u=(0,o.createContext)({});t.s(["SwitchLayoutGroupContext",0,u],70463);let h={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var c=t.i(85257);function d(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let p={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!c.px.test(t))return t;else t=parseFloat(t);let i=d(t,e.target.x),s=d(t,e.target.y);return`${i}% ${s}%`}};var m=t.i(49620),f=t.i(92334),v=t.i(46660);let g={};function y(t){for(let e in t)g[e]=t[e],(0,v.isCSSVariableName)(e)&&(g[e].isCSSVariable=!0)}t.s(["addScaleCorrector",0,y,"scaleCorrectors",0,g],23800);class x extends o.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=t;y(T),r&&(e.group&&e.group.add(r),i&&i.register&&s&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),h.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,o=i.projection;return o&&(o.isPresent=n,s||t.layoutDependency!==e||void 0===e||t.isPresent!==n?o.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?o.promote():o.relegate()||r.frame.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),n.microtask.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function P(t){let[e,i]=(0,a.usePresence)(),r=(0,o.useContext)(l.LayoutGroupContext);return(0,s.jsx)(x,{...t,layoutGroup:r,switchLayoutGroup:(0,o.useContext)(u),isPresent:e,safeToRemove:i})}let T={borderRadius:{...p,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:p,borderTopRightRadius:p,borderBottomLeftRadius:p,borderBottomRightRadius:p,boxSh
10adow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=f.complex.parse(t);if(s.length>5)return t;let r=f.complex.createTransformer(t),n=+("number"!=typeof s[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;s[0+n]/=o,s[1+n]/=a;let l=(0,m.mixNumber)(o,a,.5);return"number"==typeof s[2+n]&&(s[2+n]/=l),"number"==typeof s[3+n]&&(s[3+n]/=l),r(s)}}};var w=t.i(5175),b=t.i(35411),S=t.i(92792),A=t.i(68738);t.i(47195);var V=t.i(57490),M=t.i(80272),C=t.i(78830),D=t.i(25970),E=t.i(79913),R=t.i(58342),k=t.i(91496);let B=(t,e)=>t.depth-e.depth;class L{constructor(){this.children=[],this.isDirty=!1}add(t){(0,k.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,k.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(B),this.isDirty=!1,this.children.forEach(t)}}var F=t.i(36187);t.i(48620);var j=t.i(35799);function O(t){let e=(0,D.isMotionValue)(t)?t.get():t;return(0,j.isCustomValue)(e)?e.toValue():e}t.s(["resolveMotionValue",0,O],27649);var I=t.i(2214),U=t.i(20093);let N=["TopLeft","TopRight","BottomLeft","BottomRight"],$=N.length,W=t=>"string"==typeof t?parseFloat(t):t,z=t=>"number"==typeof t||c.px.test(t);function H(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let Y=X(0,.5,U.circOut),G=X(.5,.95,M.noop);function X(t,e,i){return s=>s<t?0:s>e?1:i((0,I.progress)(t,e,s))}function K(t,e){t.min=e.min,t.max=e.max}function q(t,e){K(t.x,e.x),K(t.y,e.y)}function Z(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var _=t.i(29988),J=t.i(12976);function Q(t,e,i,s,r){return t-=e,t=(0,_.scalePoint)(t,1/i,s),void 0!==r&&(t=(0,_.scalePoint)(t,1/r,s)),t}function tt(t,e,[i,s,r],n,o){!function(t,e=0,i=1,s=.5,r,n=t,o=t){if(c.percent.test(e)&&(e=parseFloat(e),e=(0,m.mixNumber)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,m.mixNumber)(n.min,n.max,s);t===n&&(a-=e),t.min=Q(t.min,e,i,a,r),t.max=Q(t.max,e,i,a,r)}(t,e[i],e[s],e[r],e.scale,n,o)}let te=["x","scaleX","originX"],ti=["y","scaleY","originY"];function ts(t,e,i,s){tt(t.x,e,te,i?i.x:void 0,s?s.x:void 0),tt(t.y,e,ti,i?i.y:void 0,s?s.y:void 0)}var tr=t.i(82835);function tn(t){return 0===t.translate&&1===t.scale}function to(t){return tn(t.x)&&tn(t.y)}function ta(t,e){return t.min===e.min&&t.max===e.max}function tl(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function tu(t,e){return tl(t.x,e.x)&&tl(t.y,e.y)}function th(t){return(0,J.calcLength)(t.x)/(0,J.calcLength)(t.y)}function tc(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class td{constructor(){this.members=[]}add(t){(0,k.addUniqueItem)(this.members,t),t.scheduleRender()}remove(t){if((0,k.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:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var tp=t.i(65631),tm=t.i(8952);let tf={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},tv=["","X","Y","Z"],tg={visibility:"hidden"},ty=0;function tx(t,e,i,s){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),s&&(s[t]=0))}function tP({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(t={},i=null==e?void 0:e()){this.id=ty++,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,w.statsBuffer.value&&(tf.nodes=tf.calculatedTargetDeltas=tf.calculatedProjections=0),this.nodes.forEac
10h(tb),this.nodes.forEach(tE),this.nodes.forEach(tR),this.nodes.forEach(tS),w.statsBuffer.addProjectionMetrics&&w.statsBuffer.addProjectionMetrics(tf)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new L)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new V.SubscriptionManager),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:s,layout:n,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(n||s)&&(this.isLayoutDirty=!0),t){let i,s=()=>this.root.updateBlockedByResize=!1;t(e,()=>{let t,e;this.root.updateBlockedByResize=!0,i&&i(),t=S.time.now(),e=({timestamp:i})=>{let n=i-t;n>=250&&((0,r.cancelFrame)(e),s(n-250))},r.frame.read(e,!0),i=()=>(0,r.cancelFrame)(e),h.hasAnimatedSinceResize&&(h.hasAnimatedSinceResize=!1,this.nodes.forEach(tD))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&o&&(s||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||o.getDefaultTransition()||tO,{onLayoutAnimationStart:n,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!tu(this.targetLayout,s),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...(0,b.getValueTransition)(r,"layout"),onPlay:n,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||tD(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,r.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(tk),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=(0,R.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",r.frame,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
10h(tV);return}this.isUpdating||this.nodes.forEach(tM),this.isUpdating=!1,this.nodes.forEach(tC),this.nodes.forEach(tT),this.nodes.forEach(tw),this.clearAllSnapshots();let t=S.time.now();r.frameData.delta=(0,F.clamp)(0,1e3/60,t-r.frameData.timestamp),r.frameData.timestamp=t,r.frameData.isProcessing=!0,r.frameSteps.update.process(r.frameData),r.frameSteps.preRender.process(r.frameData),r.frameSteps.render.process(r.frameData),r.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,n.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tA),this.sharedNodes.forEach(tB)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,r.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){r.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,J.calcLength)(this.snapshot.measuredBox.x)||(0,J.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,tr.createBox)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!o)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!to(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;t&&(e||(0,tm.hasTransform)(this.latestValues)||r)&&(o(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),tN((e=s).x),tN(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return(0,tr.createBox)();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(tW))){let{scroll:t}=this.root;t&&((0,_.translateAxis)(i.x,t.offset.x),(0,_.translateAxis)(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=(0,tr.createBox)();if(q(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let s=this.path[e],{scroll:r,options:n}=s;s!==this.root&&r&&n.layoutScroll&&(r.wasRoot&&q(i,t),(0,_.translateAxis)(i.x,r.offset.x),(0,_.translateAxis)(i.y,r.offset.y))}return i}applyTransform(t,e=!1){let i=(0,tr.createBox)();q(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(0,_.transformBox)(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,tm.hasTransform)(s.latestValues)&&(0,_.transformBox)(i,s.latestValues)}return(0,tm.hasTransform)(this.latestValues)&&(0,_.transformBox)(i,this.latestValues),i}removeTransform(t){let e=(0,tr.createBox)();q(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,tm.hasTransform)(i.latestValues))continue;(0,tm.hasScale)(i.latestValues)&&i.updateSnapshot();let s=(0,tr.createBox)();q(s,i.measurePageBox()),ts(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return(0,tm.hasTransform)(this.latestValues)&&ts(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!==r.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;let i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==i;if(!(t||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:o}=this.options;
10if(this.layout&&(n||o)){if(this.resolvedRelativeTargetAt=r.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,tr.createBox)(),this.relativeTargetOrigin=(0,tr.createBox)(),(0,J.calcRelativePosition)(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),q(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,tr.createBox)(),this.targetWithTransforms=(0,tr.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,J.calcRelativeBox)(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):q(this.target,this.layout.layoutBox),(0,_.applyBoxDelta)(this.target,this.targetDelta)):q(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,tr.createBox)(),this.relativeTargetOrigin=(0,tr.createBox)(),(0,J.calcRelativePosition)(this.relativeTargetOrigin,this.target,t.target),q(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}w.statsBuffer.value&&tf.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||(0,tm.hasScale)(this.parent.latestValues)||(0,tm.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,s=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(s=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===r.frameData.timestamp&&(s=!1),s)return;let{layout:n,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||o))return;q(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,l=this.treeScale.y;(0,_.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,tr.createBox)());let{target:u}=e;if(!u){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(Z(this.prevProjectionDelta.x,this.projectionDelta.x),Z(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,J.calcBoxDelta)(this.projectionDelta,this.layoutCorrected,u,this.latestValues),this.treeScale.x===a&&this.treeScale.y===l&&tc(this.projectionDelta.x,this.prevProjectionDelta.x)&&tc(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",u)),w.statsBuffer.value&&tf.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,tr.createDelta)(),this.projectionDelta=(0,tr.createDelta)(),this.projectionDeltaWithTransform=(0,tr.createDelta)()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,r=s?s.latestValues:{},n={...this.latestValues},o=(0,tr.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,tr.createBox)(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&
10!0===this.options.crossfade&&!this.path.some(tj));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(tL(o.x,t.x,s),tL(o.y,t.y,s),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,p,f,v,g,y;(0,J.calcRelativePosition)(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,v=this.relativeTargetOrigin,g=a,y=s,tF(f.x,v.x,g.x,y),tF(f.y,v.y,g.y,y),i&&(u=this.relativeTarget,p=i,ta(u.x,p.x)&&ta(u.y,p.y))&&(this.isProjectionDirty=!1),i||(i=(0,tr.createBox)()),q(i,this.relativeTarget)}l&&(this.animationValues=n,function(t,e,i,s,r,n){r?(t.opacity=(0,m.mixNumber)(0,void 0!==i.opacity?i.opacity:1,Y(s)),t.opacityExit=(0,m.mixNumber)(void 0!==e.opacity?e.opacity:1,0,G(s))):n&&(t.opacity=(0,m.mixNumber)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let r=0;r<$;r++){let n=`border${N[r]}Radius`,o=H(e,n),a=H(i,n);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||z(o)===z(a)?(t[n]=Math.max((0,m.mixNumber)(W(o),W(a),s),0),(c.percent.test(a)||c.percent.test(o))&&(t[n]+="%")):t[n]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,m.mixNumber)(e.rotate||0,i.rotate||0,s))}(n,r,this.latestValues,s,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,r.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=r.frame.update(()=>{var e;let i;h.hasAnimatedSinceResize=!0,A.activeAnimations.layout++,this.currentAnimation=(e={...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{A.activeAnimations.layout--},onComplete:()=>{A.activeAnimations.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(i=(0,D.isMotionValue)(0)?0:(0,C.motionValue)(0)).start((0,E.animateMotionValue)("",i,1e3,e)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:r}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&t$(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,tr.createBox)();let e=(0,J.calcLength)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=(0,J.calcLength)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}q(e,i),(0,_.transformBox)(e,r),(0,J.calcBoxDelta)(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new td),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({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}
10resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&tx("z",t,s,this.animationValues);for(let e=0;e<tv.length;e++)tx(`rotate${tv[e]}`,t,s,this.animationValues),tx(`skew${tv[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return tg;let s={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=O(null==t?void 0:t.pointerEvents)||"",s.transform=r?r(this.latestValues,""):"none",s;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=O(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,tm.hasTransform)(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=n.animationValues||n.latestValues;this.applyTransformsToTarget(),s.transform=function(t,e,i){let s="",r=t.x.translate/e.x,n=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||n||o)&&(s=`translate3d(${r}px, ${n}px, ${o}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:n,skewX:o,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),r&&(s+=`rotateX(${r}deg) `),n&&(s+=`rotateY(${n}deg) `),o&&(s+=`skewX(${o}deg) `),a&&(s+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),r&&(s.transform=r(o,s.transform));let{x:a,y:l}=this.projectionDelta;for(let t in s.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,n.animationValues?s.opacity=n===this?null!=(i=null!=(e=o.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:s.opacity=n===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,g){if(void 0===o[t])continue;let{correct:e,applyTo:i,isCSSVariable:r}=g[t],a="none"===s.transform?o[t]:e(o[t],n);if(i){let t=i.length;for(let e=0;e<t;e++)s[i[e]]=a}else r?this.options.visualElement.renderState.vars[t]=a:s[t]=a}return this.options.layoutId&&(s.pointerEvents=n===this?O(null==t?void 0:t.pointerEvents)||"":"none"),s}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(tV),this.root.sharedNodes.clear()}}}function tT(t){t.updateLayout()}function tw(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:s}=t.layout,{animationType:r}=t.options,n=i.source!==t.layout.source;"size"===r?(0,tp.eachAxis)(t=>{let s=n?i.measuredBox[t]:i.layoutBox[t],r=(0,J.calcLength)(s);s.min=e[t].min,s.max=s.min+r}):t$(r,i.layoutBox,e)&&(0,tp.eachAxis)(s=>{let r=n?i.measuredBox[s]:i.layoutBox[s],o=(0,J.calcLength)(e[s]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=(0,tr.createDelta)();(0,J.calcBoxDelta)(o,e,i.layoutBox);let a=(0,tr.createDelta)();n?(0,J.calcBoxDelta)(a,t.applyTransform(s,!0),i.measuredBox):(0,J.calcBoxDelta)(a,e,i.layoutBox);let l=!to(o),u=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:r,layout:n}=s;if(r&&n){let o=(0,tr.createBox)();(0,J.calcRelativePosition)(o,i.layoutBox,r.layoutBox);let a=(0,tr.createBox)();(0,J.calcRelativePosition)(a,e,n.layoutBox),tu(o,a)||(u=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tb(t){w.statsBuffer.value&&tf.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
10isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function tS(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tA(t){t.clearSnapshot()}function tV(t){t.clearMeasurements()}function tM(t){t.isLayoutDirty=!1}function tC(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tD(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function tE(t){t.resolveTargetDelta()}function tR(t){t.calcProjection()}function tk(t){t.resetSkewAndRotation()}function tB(t){t.removeLeadSnapshot()}function tL(t,e,i){t.translate=(0,m.mixNumber)(e.translate,0,i),t.scale=(0,m.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function tF(t,e,i,s){t.min=(0,m.mixNumber)(e.min,i.min,s),t.max=(0,m.mixNumber)(e.max,i.max,s)}function tj(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tO={duration:.45,ease:[.4,0,.1,1]},tI=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tU=tI("applewebkit/")&&!tI("chrome/")?Math.round:M.noop;function tN(t){t.min=tU(t.min),t.max=tU(t.max)}function t$(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,J.isNear)(th(e),th(i),.2)}function tW(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}var tz=t.i(37313);let tH=tP({attachResizeListener:(t,e)=>(0,tz.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tY={current:void 0},tG=tP({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!tY.current){let t=new tH({});t.mount(window),t.setOptions({layoutScroll:!0}),tY.current=t}return tY.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),tX={pan:{Feature:i.PanGesture},drag:{Feature:e.DragGesture,ProjectionNode:tG,MeasureLayout:P}};t.s(["drag",0,tX],85443);var tK=t.i(52208);function tq(t,e){let i=function(t){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document.querySelectorAll(t);return e?Array.from(e):[]}return Array.from(t)}(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function tZ(t){return!("touch"===t.pointerType||(0,tK.isDragActive)())}var t_=t.i(77865),tJ=t.i(6553);function tQ(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&r.frame.postRender(()=>n(e,(0,t_.extractEventInfo)(e)))}class t0 extends tJ.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,r,n]=tq(t,i),o=t=>{if(!tZ(t))return;let{target:i}=t,s=e(i,t);if("function"!=typeof s||!i)return;let n=t=>{tZ(t)&&(s(t),i.removeEventListener("pointerleave",n))};i.addEventListener("pointerleave",n,r)};return s.forEach(t=>{t.addEventListener("pointerenter",o,r)}),n}(t,(t,e)=>(tQ(this.node,e,"Start"),t=>tQ(this.node,t,"End"))))}unmount(){}}var t1=tJ,t2=t.i(60721);class t3 extends t1.Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,t2.pipe)((0,tz.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,tz.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let t9=(t,e)=>!!e&&(t===e||t9(t,e.parentElement));var t5=t.i(26795);let t6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),t4=new WeakSet;function t8(t){return e=>{"Enter"===e.key&&t(e)}}function t7(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function et(t){return(0,t5.isPrimaryPointer)(t)&&!(0,tK.isDragActive)()}var ee=tJ;function ei(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&r.frame.postRender(()=>n(e,(0,t_.extractEventInfo)(e)))}class es extends ee.Feature{mount(){let{current:t}=this.node;
10t&&(this.unmount=function(t,e,i={}){let[s,r,n]=tq(t,i),o=t=>{let s=t.currentTarget;if(!et(t)||t4.has(s))return;t4.add(s);let n=e(s,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),et(t)&&t4.has(s)&&(t4.delete(s),"function"==typeof n&&n(t,{success:e}))},a=t=>{o(t,s===window||s===document||i.useGlobalTarget||t9(s,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return s.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),t instanceof HTMLElement)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=t8(()=>{if(t4.has(i))return;t7(i,"down");let t=t8(()=>{t7(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>t7(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,r)),t6.has(t.tagName)||-1!==t.tabIndex||null!==t.tabIndex||(t.tabIndex=0))}),n}(t,(t,e)=>(ei(this.node,e,"Start"),(t,{success:e})=>ei(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}var er=tJ;let en=new WeakMap,eo=new WeakMap,ea=t=>{let e=en.get(t.target);e&&e(t)},el=t=>{t.forEach(ea)},eu={some:0,all:1};class eh extends er.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:s,margin:r,amount:n="some",once:o}=i,a={root:s?s.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:eu[n]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),r=e?i:s;r&&r(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;eo.has(i)||eo.set(i,{});let s=eo.get(i),r=JSON.stringify(e);return s[r]||(s[r]=new IntersectionObserver(el,{root:t,...e})),s[r]}(a),en.set(t,l),e.observe(t),()=>{en.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}t.s(["gestureAnimations",0,{inView:{Feature:eh},tap:{Feature:es},focus:{Feature:t3},hover:{Feature:t0}}],56708),t.s(["layout",0,{layout:{ProjectionNode:tG,MeasureLayout:P}}],11045);let ec=(0,o.createContext)({strict:!1});t.s(["LazyContext",0,ec],30090)},23162,32830,13125,t=>{"use strict";var e=t.i(67837);let i=(0,e.createContext)({});t.s(["MotionContext",0,i],23162);var s=t.i(20699),r=t.i(98258),n=t.i(70246);function o(t){return(0,s.isAnimationControls)(t.animate)||n.variantProps.some(e=>(0,r.isVariantLabel)(t[e]))}function a(t){return Array.isArray(t)?t.join(" "):t}t.s(["isControllingVariants",0,o,"isVariantNode",0,function(t){return!!(o(t)||t.variants)}],32830),t.s(["useCreateMotionContext",0,function(t){let{initial:s,animate:n}=function(t,e){if(o(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,r.isVariantLabel)(e)?e:void 0,animate:(0,r.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,e.useContext)(i));return(0,e.useMemo)(()=>({initial:s,animate:n}),[a(s),a(n)])}],13125)},36491,33586,94404,60930,t=>{"use strict";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])};t.s(["featureDefinitions",0,i],36491),t.s(["loadFeatures",0,function(t){for(let e in t)i[e]={...i[e],...t[e]}}],33586);let s=Symbol.for("motionComponentSymbol");t.s(["motionComponentSymbol",0,s],94404);var r=t.i(67837),n=t.i(974);
10t.s(["useMotionRef",0,function(t,e,i){return(0,r.useCallback)(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),i&&("function"==typeof i?i(s):(0,n.isRefObject)(i)&&(i.current=s))},[e])}],60930)},45604,6295,38256,27222,32877,28291,84431,96864,36593,t=>{"use strict";t.i(54824);var e,i=t.i(8050);t.i(47195);var s=t.i(67837),r=t.i(60419),n=t.i(30090),o=t.i(8191),a=t.i(23162),l=t.i(13125),u=t.i(10884),h=t.i(36491),c=t.i(33586),d=t.i(94404),p=t.i(60930);t.i(29710);var m=t.i(49261),f=t.i(93430),v=t.i(7610),g=t.i(70463),y=t.i(974),x=t.i(66545);t.s(["createRendererMotionComponent",0,function({preloadedFeatures:t,createVisualElement:e,useRender:P,useVisualState:T,Component:w}){var b,S;function A(t,c){let d,b={...(0,s.useContext)(o.MotionConfigContext),...t,layoutId:function({layoutId:t}){let e=(0,s.useContext)(r.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:S}=b,A=(0,l.useCreateMotionContext)(t),V=T(t,S);if(!S&&u.isBrowser){(0,s.useContext)(n.LazyContext).strict;let t=function(t){let{drag:e,layout:i}=h.featureDefinitions;if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(b);d=t.MeasureLayout,A.visualElement=function(t,e,i,r,l){var u,h;let{visualElement:c}=(0,s.useContext)(a.MotionContext),d=(0,s.useContext)(n.LazyContext),p=(0,s.useContext)(v.PresenceContext),P=(0,s.useContext)(o.MotionConfigContext).reducedMotion,T=(0,s.useRef)(null);r=r||d.renderer,!T.current&&r&&(T.current=r(t,{visualState:e,parent:c,props:i,presenceContext:p,blockInitialAnimation:!!p&&!1===p.initial,reducedMotionConfig:P}));let w=T.current,b=(0,s.useContext)(g.SwitchLayoutGroupContext);w&&!w.projection&&l&&("html"===w.type||"svg"===w.type)&&function(t,e,i,s){let{layoutId:r,layout:n,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=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:r,layout:n,alwaysMeasureLayout:!!o||a&&(0,y.isRefObject)(a),visualElement:t,animationType:"string"==typeof n?n:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}(T.current,i,l,b);let S=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{w&&S.current&&w.update(i,p)});let A=i[f.optimizedAppearDataAttribute],V=(0,s.useRef)(!!A&&!(null==(u=window.MotionHandoffIsComplete)?void 0:u.call(window,A))&&(null==(h=window.MotionHasOptimisedAnimation)?void 0:h.call(window,A)));return(0,x.useIsomorphicLayoutEffect)(()=>{w&&(S.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),m.microtask.render(w.render),V.current&&w.animationState&&w.animationState.animateChanges())}),(0,s.useEffect)(()=>{w&&(!V.current&&w.animationState&&w.animationState.animateChanges(),V.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,A)}),V.current=!1))}),w}(w,V,b,e,t.ProjectionNode)}return(0,i.jsxs)(a.MotionContext.Provider,{value:A,children:[d&&A.visualElement?(0,i.jsx)(d,{visualElement:A.visualElement,...b}):null,P(w,t,(0,p.useMotionRef)(V,A.visualElement,c),V,S,A.visualElement)]})}t&&(0,c.loadFeatures)(t),A.displayName=`motion.${"string"==typeof w?w:`create(${null!=(S=null!=(b=w.displayName)?b:w.name)?S:""})`}`;let V=(0,s.forwardRef)(A);return V[d.motionComponentSymbol]=w,V}],45604);var P=t.i(23800),T=t.i(30097);function w(t,{layout:e,layoutId:i}){return T.transformProps.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!P.scaleCorrectors[t]||"opacity"===t)}t.s(["isForcedMotionValue",0,w],6295);var b=t.i(25970),S=t.i(46660);let A=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var V=t.i(24711);let M={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},C=T.transformPropOrder.length;function D(t,e,i){let{style:s,vars:r,transformOrigin:n}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(T.transformProps.has(t)){o=!0;continue}if((0,S.isCSSVariableName)(t)){r[t]=i;continue}{let e=A(i,V.numberValueTypes[t]);t.startsWith("origin")?(a=!0,n[t]=e):s[t]=e}}
10if(!e.transform&&(o||i?s.transform=function(t,e,i){let s="",r=!0;for(let n=0;n<C;n++){let o=T.transformPropOrder[n],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!o.startsWith("scale"):0===parseFloat(a))||i){let t=A(a,V.numberValueTypes[o]);if(!l){r=!1;let e=M[o]||o;s+=`${e}(${t}) `}i&&(e[o]=t)}}return s=s.trim(),i?s=i(e,r?"":s):r&&(s="none"),s}(e,t.transform,i):s.transform&&(s.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=n;s.transformOrigin=`${t} ${e} ${i}`}}t.s(["buildHTMLStyles",0,D],38256);let E=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function R(t,e,i){for(let s in e)(0,b.isMotionValue)(e[s])||w(s,i)||(t[s]=e[s])}t.s(["createHtmlRenderState",0,E],27222);let k=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 B(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||k.has(t)}let L=t=>!B(t);try{(e=t.r(73537).default)&&(L=t=>t.startsWith("on")?!B(t):e(t))}catch(t){}let F=["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 j(t){if("string"!=typeof t||t.includes("-"));else if(F.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}t.s(["isSVGComponent",0,j],32877);var O=t.i(85257);let I={offset:"stroke-dashoffset",array:"stroke-dasharray"},U={offset:"strokeDashoffset",array:"strokeDasharray"};function N(t,e,i){return"string"==typeof t?t:O.px.transform(e+i*t)}function $(t,{attrX:e,attrY:i,attrScale:s,originX:r,originY:n,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,c){let d,p;if(D(t,u,c),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:m,style:f,dimensions:v}=t;m.transform&&(v&&(f.transform=m.transform),delete m.transform),v&&(void 0!==r||void 0!==n||f.transform)&&(d=N(void 0!==r?r:.5,v.x,v.width),p=N(void 0!==n?n:.5,v.y,v.height),f.transformOrigin=`${d} ${p}`),void 0!==e&&(m.x=e),void 0!==i&&(m.y=i),void 0!==s&&(m.scale=s),void 0!==o&&function(t,e,i=1,s=0,r=!0){t.pathLength=1;let n=r?I:U;t[n.offset]=O.px.transform(-s);let o=O.px.transform(e),a=O.px.transform(i);t[n.array]=`${o} ${a}`}(m,o,a,l,!1)}t.s(["buildSVGAttrs",0,$],28291);let W=()=>({...E(),attrs:{}});t.s(["createSvgRenderState",0,W],84431);let z=t=>"string"==typeof t&&"svg"===t.toLowerCase();t.s(["isSVGTag",0,z],96864),t.s(["createUseRender",0,function(t=!1){return(e,i,r,{latestValues:n},o)=>{let a=(j(e)?function(t,e,i,r){let n=(0,s.useMemo)(()=>{let i=W();return $(i,e,z(r),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};R(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i,r,n={},o=(i=t.style||{},R(r={},i,t),Object.assign(r,function({transformTemplate:t},e){return(0,s.useMemo)(()=>{let i=E();return D(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),r);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=o,n})(i,n,o,e),l=function(t,e,i){let s={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(L(r)||!0===i&&B(r)||!e&&!B(r)||t.draggable&&r.startsWith("onDrag"))&&(s[r]=t[r]);return s}(i,"string"==typeof e,t),u=e!==s.Fragment?{...l,...a,ref:r}:{},{children:h}=i,c=(0,s.useMemo)(()=>(0,b.isMotionValue)(h)?h.get():h,[h]);return(0,s.createElement)(e,{...u,children:c})}}],36593)},53051,t=>{"use strict";var e,i,s=t.i(4709),r=t.i(2140),n=t.i(85443),o=t.i(56708),a=t.i(11045),l=t.i(45604),u=t.i(36593),h=t.i(32877),c=t.i(67837),d=t.i(20699),p=t.i(23162),m=t.i(7610),f=t.i(32830),v=t.i(944),g=t.i(93380),y=t.i(27649);let x=t=>(e,i)=>{let s=(0,c.useContext)(p.MotionContext),r=(0,c.useContext)(m.PresenceContext),n=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i}
10,s,r,n){let o={latestValues:function(t,e,i,s){let r={},n=s(t,{});for(let t in n)r[t]=(0,y.resolveMotionValue)(n[t]);let{initial:o,animate:a}=t,l=(0,f.isControllingVariants)(t),u=(0,f.isVariantNode)(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;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 s=(0,v.resolveVariantFromProps)(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(s,r,n,t),renderState:e()};return i&&(o.onMount=t=>i({props:s,current:t,...o}),o.onUpdate=t=>i(t)),o})(t,e,s,r);return i?n():(0,g.useConstant)(n)};var P=t.i(6295),T=t.i(25970);function w(t,e,i){var s;let{style:r}=t,n={};for(let o in r)((0,T.isMotionValue)(r[o])||e.style&&(0,T.isMotionValue)(e.style[o])||(0,P.isForcedMotionValue)(o,t)||(null==(s=null==i?void 0:i.getValue(o))?void 0:s.liveStyle)!==void 0)&&(n[o]=r[o]);return n}let b={useVisualState:x({scrapeMotionValuesFromProps:w,createRenderState:t.i(27222).createHtmlRenderState})};t.i(29710);var S=t.i(89068),A=t.i(30097),V=t.i(28291),M=t.i(84431),C=t.i(96864);function D(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}var E=t.i(32530);function R(t,{style:e,vars:i},s,r){for(let n in Object.assign(t.style,e,r&&r.getProjectionStyles(s)),i)t.style.setProperty(n,i[n])}let k=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"]);function B(t,e,i,s){for(let i in R(t,e,void 0,s),e.attrs)t.setAttribute(k.has(i)?i:(0,E.camelToDash)(i),e.attrs[i])}function L(t,e,i){let s=w(t,e,i);for(let i in t)((0,T.isMotionValue)(t[i])||(0,T.isMotionValue)(e[i]))&&(s[-1!==A.transformPropOrder.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}let F=["x","y","width","height","cx","cy","r"],j={useVisualState:x({scrapeMotionValuesFromProps:L,createRenderState:M.createSvgRenderState,onUpdate:({props:t,prevProps:e,current:i,renderState:s,latestValues:r})=>{if(!i)return;let n=!!t.drag;if(!n){for(let t in r)if(A.transformProps.has(t)){n=!0;break}}if(!n)return;let o=!e;if(e)for(let i=0;i<F.length;i++){let s=F[i];t[s]!==e[s]&&(o=!0)}o&&S.frame.read(()=>{D(i,s),S.frame.render(()=>{(0,V.buildSVGAttrs)(s,r,(0,C.isSVGTag)(i.tagName),t.transformTemplate),B(i,s)})})}})};var O=t.i(70668);t.i(54824);var I=t.i(92792),U=t.i(78830);t.i(47195);var N=t.i(57490),$=t.i(36491),W=t.i(82835),z=t.i(95537),H=t.i(89897),Y=t.i(10884);let G={current:null},X={current:!1};var K=t.i(92334),q=t.i(20480),Z=t.i(4841),_=t.i(49456),J=t.i(88130);let Q=[..._.dimensionValueTypes,Z.color,K.complex],tt=new WeakMap;var te=t.i(67434);let ti=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ts{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:r,visualState:n},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=te.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=I.time.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,S.frame.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:u}=n;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=(0,f.isControllingVariants)(e),this.isVariantNode=(0,f.isVariantNode)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in c){const e=c[t];void 0!==a[t]&&(0,T.isMotionValue)(e)&&e.set(a[t],!1)}}mount(t){this.current=t,tt.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.forEac
10h((t,e)=>this.bindToMotionValue(e,t)),X.current||function(){if(X.current=!0,Y.isBrowser)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>G.current=t.matches;t.addListener(e),e()}else G.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||G.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,S.cancelFrame)(this.notifyUpdate),(0,S.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 s=A.transformProps.has(t);s&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&S.frame.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),n=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),n(),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 $.featureDefinitions){let e=$.featureDefinitions[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,W.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<ti.length;e++){let i=ti[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(t,e,i){for(let s in e){let r=e[s],n=i[s];if((0,T.isMotionValue)(r))t.addValue(s,r);else if((0,T.isMotionValue)(n))t.addValue(s,(0,U.motionValue)(r,{owner:t}));else if(n!==r)if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(s);t.addValue(s,(0,U.motionValue)(void 0!==e?e:r,{owner:t}))}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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,U.motionValue)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let s=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!=s){if("string"==typeof s&&((0,z.isNumericalString)(s)||(0,H.isZeroValueString)(s)))s=parseFloat(s);else{let i;i=s,!Q.find((0,J.testValueType)(i))&&K.complex.test(e)&&(s=(0,q.getAnimatableNone)(t,e))}this.setBaseTarget(t,(0,T.isMotionValue)(s)?s.get():s)}return(0,T.isMotionValue)(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:s}=this.props;if("string"==typeof s||"object"==typeof s){let r=(0,v.resolveVariantFromProps)(this.props,s,null==(e=this.presenceContext)?void 0:e.custom);r&&(i=r[t])}if(s&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,T.isMotionValue)(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new N.SubscriptionManager),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}var tr=t.i(17761);class tn extends ts{constructor(){super(...arguments),this.KeyframeResolver=tr.DOMKeyframesResolver}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,T.isMotionValue)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}var to=t.i(46660),ta=t.i(38256),tl=t.i(3664);class tu extends tn{constructor(){super(...arguments),this.type="html",this.renderInstance=R}readValueFromInstance(t,e){if(A.transformProps.has(e))return(0,tl.readTransformValue)(t,e);{let i=window.getComputedStyle(t),s=((0,to.isCSSVariableName)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,O.measureViewportBox)(t,e)}build(t,e,i){(0,ta.buildHTMLStyles)(t,e,i.transformTemplate)}
10scrapeMotionValuesFromProps(t,e,i){return w(t,e,i)}}var th=t.i(28368);class tc extends tn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=W.createBox,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&D(this.current,this.renderState)}}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(A.transformProps.has(e)){let t=(0,th.getDefaultValueType)(e);return t&&t.default||0}return e=k.has(e)?e:(0,E.camelToDash)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return L(t,e,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&S.frame.postRender(this.updateDimensions)}build(t,e,i){(0,V.buildSVGAttrs)(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,s){B(t,e,i,s)}mount(t){this.isSVGTag=(0,C.isSVGTag)(t.tagName),super.mount(t)}}let td=(e={...r.animations,...o.gestureAnimations,...n.drag,...a.layout},i=(t,e)=>(0,h.isSVGComponent)(t)?new tc(e):new tu(e,{allowProjection:t!==c.Fragment}),function(t,{forwardMotionProps:s}={forwardMotionProps:!1}){let r={...(0,h.isSVGComponent)(t)?j:b,preloadedFeatures:e,useRender:(0,u.createUseRender)(s),createVisualElement:i,Component:t};return(0,l.createRendererMotionComponent)(r)}),tp=(0,s.createDOMMotionComponentProxy)(td);t.s(["motion",0,tp],53051)},60685,t=>{"use strict";var e=t.i(67837);t.s(["useCallbackRef",0,function(t,i=[]){let s=(0,e.useRef)(t);return(0,e.useEffect)(()=>{s.current=t}),(0,e.useCallback)((...t)=>s.current?.(...t),i)}])}]);
11
12//# debugId=171963bc-5fa4-d657-7328-a23cede6559e

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.