PageSourceSearch

https://platform.baza7.ro/packs/js/6061-31bfc631fabae63a.js

js baza7.ro collected 2026-10-01 02:25:06 UTC 132,173 bytes, 10 lines download raw bytes

1(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[6061],{278636(t,e,i){"use strict";var n=i(933578),s=function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)},r=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)0>e.indexOf(n[s])&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(i[n[s]]=t[n[s]]);return i},o=Symbol("NiceModalId"),a={},l=n.createContext(a),h=n.createContext(null),u={},c={},d=0,p=function(){throw Error("No dispatch method detected, did you embed your app with NiceModal.Provider?")},m=function(t,e){var i,n,r;switch(void 0===t&&(t=a),e.type){case"nice-modal/show":var o=e.payload,l=o.modalId,h=o.args;return s(s({},t),((i={})[l]=s(s({},t[l]),{id:l,args:h,visible:!!c[l],delayVisible:!c[l]}),i));case"nice-modal/hide":var l=e.payload.modalId;if(!t[l])return t;return s(s({},t),((n={})[l]=s(s({},t[l]),{visible:!1}),n));case"nice-modal/remove":var l=e.payload.modalId,u=s({},t);return delete u[l],u;case"nice-modal/set-flags":var d=e.payload,l=d.modalId,p=d.flags;return s(s({},t),((r={})[l]=s(s({},t[l]),p),r));default:return t}},f={},v={},g=function(t){return"string"==typeof t?t:(t[o]||(t[o]="_nice_modal_"+d++),t[o])};function y(t,e){var i=g(t);if("string"==typeof t||u[i]||T(i,t),p({type:"nice-modal/show",payload:{modalId:i,args:e}}),!f[i]){var n,s,r=new Promise(function(t,e){n=t,s=e});f[i]={resolve:n,reject:s,promise:r}}return f[i].promise}function x(t){var e=g(t);if(p({type:"nice-modal/hide",payload:{modalId:e}}),delete f[e],!v[e]){var i,n,s=new Promise(function(t,e){i=t,n=e});v[e]={resolve:i,reject:n,promise:s}}return v[e].promise}var w=function(t){p({type:"nice-modal/remove",payload:{modalId:t}}),delete f[t],delete v[t]},P=function(t,e){p({type:"nice-modal/set-flags",payload:{modalId:t,flags:e}})};function b(t,e){var i=(0,n.useContext)(l),s=(0,n.useContext)(h),r=null,o=t&&"string"!=typeof t;if(!(r=t?g(t):s))throw Error("No modal id found in NiceModal.useModal.");var a=r;(0,n.useEffect)(function(){o&&!u[a]&&T(a,t,e)},[o,a,t,e]);var c=i[a],d=(0,n.useCallback)(function(t){return y(a,t)},[a]),p=(0,n.useCallback)(function(){return x(a)},[a]),m=(0,n.useCallback)(function(){return w(a)},[a]),P=(0,n.useCallback)(function(t){var e;null==(e=f[a])||e.resolve(t),delete f[a]},[a]),b=(0,n.useCallback)(function(t){var e;null==(e=f[a])||e.reject(t),delete f[a]},[a]),S=(0,n.useCallback)(function(t){var e;null==(e=v[a])||e.resolve(t),delete v[a]},[a]);return{id:a,args:null==c?void 0:c.args,visible:!!(null==c?void 0:c.visible),keepMounted:!!(null==c?void 0:c.keepMounted),show:d,hide:p,remove:m,resolve:P,reject:b,resolveHide:S}}var T=function(t,e,i){u[t]?u[t].props=i:u[t]={comp:e,props:i}},S=function(t){delete u[t]},M=function(){var t=(0,n.useContext)(l),e=Object.keys(t).filter(function(e){return!!t[e]});e.forEach(function(t){if(!u[t]&&!c[t])return void console.warn("No modal found for id: "+t+". Please check the id or if it is registered or declared via JSX.")});var i=e.filter(function(t){return u[t]}).map(function(t){return s({id:t},u[t])});return n.createElement(n.Fragment,null,i.map(function(t){return n.createElement(t.comp,s({key:t.id,id:t.id},t.props))}))},A=function(t){var e=t.children,i=(0,n.useReducer)(m,a),s=i[0];return p=i[1],n.createElement(l.Provider,{value:s},e,n.createElement(M,null))};i.d(e,{hS:()=>b},{Ay:{Provider:function(t){var e=t.children,i=t.dispatch,s=t.modals;return i&&s?(p=i,n.createElement(l.Provider,{value:s},e,n.createElement(M,null))):n.createElement(A,null,e)},ModalDef:function(t){var e=t.id,i=t.component;return(0,n.useEffect)(function(){return T(e,i),function(){S(e)}},[e,i]),null},NiceModalContext:l,create:function(t){return function(e){var i,o=e.defaultVisible,a=e.keepMounted,u=e.id,d=r(e,["defaultVisible","keepMounted","id"]),p=b(u),m=p.args,f=p.show,v=(0,n.useContext)(l),g=!!v[u];(0,n.useEffect)(function(){return o&&f(),c[u]=!0,function(){delete c[u]}},[u,f,o]),(0,n.useEffect)(function(){a&&P(u,{keepMounted:!0})},[u,a]);var y=null==(i=v[u])?void 0:i.delayVisible;return((0,n.useEffect)(function(){y&&f(m)},[y,m,f]),g)?n.createElement(h.Provider,{value:u},n.createElement(t,s({},d,m))):null}},register:T,show:y,hide:x,remove:w,useModal:b,reducer:m,antdModal:function(t){return{visible:t.visible,onOk:function(){return t.hide()},onCancel:function(){return t.hide()},afterClose:function(){t.resolveHide(),t.keepMounted||t.remove()}}},antdDrawer:function(t){return{visible:t.visible,onClose:function(){return t.hide()},afterVisibleChange:function(e){e||t.resolveHide(),e||t.keepMounted||t.remove()}}},muiDialog:function(t){return{open:t.visible,onClose:function(){return t.hide()},onExited:function(){t.resolveHide(),t.keepMounted||t.remove()}}},bootstrapDialog:function(t){return{show:t.visible,onHide:function(){return t.hide()},onExited:function(){t.resolveHide(),t.keepMounted||t.remove()}}}}})},316172(t,e,i){"use strict";var n=i(803308),s={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(t,e){var i,r,o,a,l,h,u,c,d=!1;e||(e={}),o=e.debug||!1;try{if(l=n(),h=document.createRange(),u=document.getSelection(),(c=document.createElement("span")).textContent=t,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(i){if(i.stopPropagation(),e.format)if(i.preventDefault(),void 0===i.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=s[e.format]||s.default;window.clipboardData.setData(n,t)}else i.clipboardData.clearData(),i.clipboardData.setData(e.format,t);e.onCopy&&(i.preventDefault(),e.onCopy(i.clipboardData))}),document.body.appendChild(c),h.selectNodeContents(c),u.addRange(h),!document.execCommand("copy"))throw Error("copy command was unsuccessful");d=!0}catch(n){o&&console.error("unable to copy using execCommand: ",n
1),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),d=!0}catch(n){o&&console.error("unable to copy using clipboardData: ",n),o&&console.error("falling back to prompt"),i="message"in e?e.message:"Copy to clipboard: #{key}, Enter",r=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",a=i.replace(/#{\s*key\s*}/g,r),window.prompt(a,t)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(h):u.removeAllRanges()),c&&document.body.removeChild(c),l()}return d}},803308(t){t.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,i=[],n=0;n<t.rangeCount;n++)i.push(t.getRangeAt(n));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null}return t.removeAllRanges(),function(){"Caret"===t.type&&t.removeAllRanges(),t.rangeCount||i.forEach(function(e){t.addRange(e)}),e&&e.focus()}}},15224(t){"use strict";var e={linear:function(t,e,i,n){return(i-e)*t/n+e},easeInQuad:function(t,e,i,n){return(i-e)*(t/=n)*t+e},easeOutQuad:function(t,e,i,n){return-(i-e)*(t/=n)*(t-2)+e},easeInOutQuad:function(t,e,i,n){var s=i-e;return(t/=n/2)<1?s/2*t*t+e:-s/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,i,n){return(i-e)*(t/=n)*t*t+e},easeOutCubic:function(t,e,i,n){return(i-e)*((t=t/n-1)*t*t+1)+e},easeInOutCubic:function(t,e,i,n){var s=i-e;return(t/=n/2)<1?s/2*t*t*t+e:s/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,i,n){return(i-e)*(t/=n)*t*t*t+e},easeOutQuart:function(t,e,i,n){return-(i-e)*((t=t/n-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,i,n){var s=i-e;return(t/=n/2)<1?s/2*t*t*t*t+e:-s/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,i,n){return(i-e)*(t/=n)*t*t*t*t+e},easeOutQuint:function(t,e,i,n){return(i-e)*((t=t/n-1)*t*t*t*t+1)+e},easeInOutQuint:function(t,e,i,n){var s=i-e;return(t/=n/2)<1?s/2*t*t*t*t*t+e:s/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,i,n){var s=i-e;return-s*Math.cos(t/n*(Math.PI/2))+s+e},easeOutSine:function(t,e,i,n){return(i-e)*Math.sin(t/n*(Math.PI/2))+e},easeInOutSine:function(t,e,i,n){return-(i-e)/2*(Math.cos(Math.PI*t/n)-1)+e},easeInExpo:function(t,e,i,n){return 0==t?e:(i-e)*Math.pow(2,10*(t/n-1))+e},easeOutExpo:function(t,e,i,n){var s=i-e;return t==n?e+s:s*(-Math.pow(2,-10*t/n)+1)+e},easeInOutExpo:function(t,e,i,n){var s=i-e;return 0===t?e:t===n?e+s:(t/=n/2)<1?s/2*Math.pow(2,10*(t-1))+e:s/2*(-Math.pow(2,-10*--t)+2)+e},easeInCirc:function(t,e,i,n){return-(i-e)*(Math.sqrt(1-(t/=n)*t)-1)+e},easeOutCirc:function(t,e,i,n){return(i-e)*Math.sqrt(1-(t=t/n-1)*t)+e},easeInOutCirc:function(t,e,i,n){var s=i-e;return(t/=n/2)<1?-s/2*(Math.sqrt(1-t*t)-1)+e:s/2*(Math.sqrt(1-(t-=2)*t)+1)+e},easeInElastic:function(t,e,i,n){var s,r,o,a=i-e;return(o=1.70158,r=0,s=a,0===t)?e:1==(t/=n)?e+a:(r||(r=.3*n),s<Math.abs(a)?(s=a,o=r/4):o=r/(2*Math.PI)*Math.asin(a/s),-(s*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t*n-o)/r))+e)},easeOutElastic:function(t,e,i,n){var s,r,o,a=i-e;return(o=1.70158,r=0,s=a,0===t)?e:1==(t/=n)?e+a:(r||(r=.3*n),s<Math.abs(a)?(s=a,o=r/4):o=r/(2*Math.PI)*Math.asin(a/s),s*Math.pow(2,-10*t)*Math.sin(2*Math.PI*(t*n-o)/r)+a+e)},easeInOutElastic:function(t,e,i,n){var s,r,o,a=i-e;return(o=1.70158,r=0,s=a,0===t)?e:2==(t/=n/2)?e+a:(r||(r=.3*1.5*n),s<Math.abs(a)?(s=a,o=r/4):o=r/(2*Math.PI)*Math.asin(a/s),t<1)?-.5*(s*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t*n-o)/r))+e:s*Math.pow(2,-10*(t-=1))*Math.sin(2*Math.PI*(t*n-o)/r)*.5+a+e},easeInBack:function(t,e,i,n,s){return void 0===s&&(s=1.70158),(i-e)*(t/=n)*t*((s+1)*t-s)+e},easeOutBack:function(t,e,i,n,s){return void 0===s&&(s=1.70158),(i-e)*((t=t/n-1)*t*((s+1)*t+s)+1)+e},easeInOutBack:function(t,e,i,n,s){var r=i-e;return(void 0===s&&(s=1.70158),(t/=n/2)<1)?r/2*(t*t*(((s*=1.525)+1)*t-s))+e:r/2*((t-=2)*t*(((s*=1.525)+1)*t+s)+2)+e},easeInBounce:function(t,i,n,s){var r,o=n-i;return r=e.easeOutBounce(s-t,0,o,s),o-r+i},easeOutBounce:function(t,e,i,n){var s=i-e;return(t/=n)<1/2.75?7.5625*t*t*s+e:t<2/2.75?s*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?s*(7.5625*(t-=2.25/2.75)*t+.9375)+e:s*(7.5625*(t-=2.625/2.75)*t+.984375)+e},easeInOutBounce:function(t,i,n,s){var r=n-i;return t<s/2?.5*e.easeInBounce(2*t,0,r,s)+i:.5*e.easeOutBounce(2*t-s,0,r,s)+.5*r+i}};t.exports=e},659356(t,e,i){"use strict";i.d(e,{N:()=>x});var n=i(391426),s=i(933578),r=i(92326),o=i(237162),a=i(535245),l=i(808226),h=i(557787),u=i(401427);function c(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class d extends s.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;
1if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=(0,h.s)(t)&&t.offsetWidth||0,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=i-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function p({children:t,isPresent:e,anchorX:i,root:r}){let o=(0,s.useId)(),a=(0,s.useRef)(null),l=(0,s.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:h}=(0,s.useContext)(u.Q),m=function(...t){return s.useCallback(function(...t){return e=>{let i=!1,n=t.map(t=>{let n=c(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():c(t[e],null)}}}}(...t),t)}(a,t?.ref);return(0,s.useInsertionEffect)(()=>{let{width:t,height:n,top:s,left:u,right:c}=l.current;if(e||!a.current||!t||!n)return;let d="left"===i?`left: ${u}`:`right: ${c}`;a.current.dataset.motionPopId=o;let p=document.createElement("style");h&&(p.nonce=h);let m=r??document.head;return m.appendChild(p),p.sheet&&p.sheet.insertRule(`
2          [data-motion-pop-id="${o}"] {
3            position: absolute !important;
4            width: ${t}px !important;
5            height: ${n}px !important;
6            ${d}px !important;
7            top: ${s}px !important;
8          }
9        `),()=>{m.contains(p)&&m.removeChild(p)}},[e]),(0,n.jsx)(d,{isPresent:e,childRef:a,sizeRef:l,children:s.cloneElement(t,{ref:m})})}let m=({children:t,initial:e,isPresent:i,onExitComplete:r,custom:a,presenceAffectsLayout:h,mode:u,anchorX:c,root:d})=>{let m=(0,o.M)(f),v=(0,s.useId)(),g=!0,y=(0,s.useMemo)(()=>(g=!1,{id:v,initial:e,isPresent:i,custom:a,onExitComplete:t=>
9{for(let e of(m.set(t,!0),m.values()))if(!e)return;r&&r()},register:t=>(m.set(t,!1),()=>m.delete(t))}),[i,m,r]);return h&&g&&(y={...y}),(0,s.useMemo)(()=>{m.forEach((t,e)=>m.set(e,!1))},[i]),s.useEffect(()=>{i||m.size||!r||r()},[i]),"popLayout"===u&&(t=(0,n.jsx)(p,{isPresent:i,anchorX:c,root:d,children:t})),(0,n.jsx)(l.t.Provider,{value:y,children:t})};function f(){return new Map}var v=i(23773);let g=t=>t.key||"";function y(t){let e=[];return s.Children.forEach(t,t=>{(0,s.isValidElement)(t)&&e.push(t)}),e}let x=({children:t,custom:e,initial:i=!0,onExitComplete:l,presenceAffectsLayout:h=!0,mode:u="sync",propagate:c=!1,anchorX:d="left",root:p})=>{let[f,x]=(0,v.xQ)(c),w=(0,s.useMemo)(()=>y(t),[t]),P=c&&!f?[]:w.map(g),b=(0,s.useRef)(!0),T=(0,s.useRef)(w),S=(0,o.M)(()=>new Map),[M,A]=(0,s.useState)(w),[C,E]=(0,s.useState)(w);(0,a.E)(()=>{b.current=!1,T.current=w;for(let t=0;t<C.length;t++){let e=g(C[t]);P.includes(e)?S.delete(e):!0!==S.get(e)&&S.set(e,!1)}},[C,P.length,P.join("-")]);let k=[];if(w!==M){let t=[...w];for(let e=0;e<C.length;e++){let i=C[e],n=g(i);P.includes(n)||(t.splice(e,0,i),k.push(i))}return"wait"===u&&k.length&&(t=k),E(y(t)),A(w),null}let{forceRender:V}=(0,s.useContext)(r.L);return(0,n.jsx)(n.Fragment,{children:C.map(t=>{let s=g(t),r=(!c||!!f)&&(w===C||P.includes(s));return(0,n.jsx)(m,{isPresent:r,initial:(!b.current||!!i)&&void 0,custom:e,presenceAffectsLayout:h,mode:u,root:p,onExitComplete:r?void 0:()=>{if(!S.has(s))return;S.set(s,!0);let t=!0;S.forEach(e=>{e||(t=!1)}),t&&(V?.(),E(T.current),c&&x?.(),l&&l())},anchorX:d,children:t},s)})})}},23773(t,e,i){"use strict";var n=i(933578),s=i(808226);function r(t=!0){let e=(0,n.useContext)(s.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:o,register:a}=e,l=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return a(l)},[t]);let h=(0,n.useCallback)(()=>t&&o&&o(l),[l,o,t]);return!i&&o?[!1,h]:[!0]}i.d(e,{xQ:()=>r})},92326(t,e,i){"use strict";let n=(0,i(933578).createContext)({});i.d(e,{},{L:n})},401427(t,e,i){"use strict";let n=(0,i(933578).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});i.d(e,{},{Q:n})},808226(t,e,i){"use strict";let n=(0,i(933578).createContext)(null);i.d(e,{},{t:n})},162005(t,e,i){"use strict";let n;i.d(e,{P:()=>rt});var s,r=i(933578);let o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],a=new Set(o),l=t=>180*t/Math.PI,h=t=>c(l(Math.atan2(t[1],t[0]))),u={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:h,rotateZ:h,skewX:t=>l(Math.atan(t[1])),skewY:t=>l(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},c=t=>((t%=360)<0&&(t+=360),t),d=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),p=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),m={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:d,scaleY:p,scale:t=>(d(t)+p(t))/2,rotateX:t=>c(l(Math.atan2(t[6],t[5]))),rotateY:t=>c(l(Math.atan2(-t[2],t[0]))),rotateZ:h,rotate:h,skewX:t=>l(Math.atan(t[4])),skewY:t=>l(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function f(t){return+!!t.includes("scale")}function v(t,e){let i,n;if(!t||"none"===t)return f(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=m,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=u,n=e}if(!n)return f(e);let r=i[e],o=n[1].split(",").map(g);return"function"==typeof r?r(o):o[r]}function g(t){return parseFloat(t.trim())}let y=t=>e=>"string"==typeof e&&e.startsWith(t),x=y("--"),w=y("var(--"),P=t=>!!w(t)&&b.test(t.split("/*")[0].trim()),b=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function T({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}let S=(t,e,i)=>t+(e-t)*i;function M(t){return void 0===t||1===t}function A({scale:t,scaleX:e,scaleY:i}){return!M(t)||!M(e)||!M(i)}function C(t){return A(t)||E(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function E(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function k(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function V(t,e=0,i=1,n,s){t.min=k(t.min,e,i,n,s),t.max=k(t.max,e,i,n,s)}function D(t,{x:e,y:i}){V(t.x,e.translate,e.scale,e.originPoint),V(t.y,i.translate,i.scale,i.originPoint)}function R(t,e){t.min=t.min+e,t.max=t.max+e}function O(t,e,i,n,s=.5){let r=S(t.min,t.max,s);V(t,e,i,r,n)}function j(t,e){O(t.x,e.x,e.scaleX,e.scale,e.originX),O(t.y,e.y,e.scaleY,e.scale,e.originY)}function I(t,e){return T(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let F=new Set(["width","height","top","left","right","bottom",...o]),L=(t,e,i)=>i>e?e:i<t?t:i,B={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},U={...B,transform:t=>L(0,1,t)},N={...B,default:1},W=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),$=W("deg"),G=W("%"),Y=W("px"),H=W("vh"),X=W("vw"),z={...G,parse:t=>G.parse(t)/100,transform:t=>G.transform(100*t)},Q=t=>e=>e.test(t),q=[B,Y,G,$,X,H,{test:t=>"auto"===t,parse:t=>t}],K=t=>q.find(Q(t)),_=()=>{},Z=()=>{},J=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tt=t=>t===B||t===Y,te=new Set(["x","y","z"]),ti=o.filter(t=>!te.has(t)),tn={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})=>v(e,"x"),y:(t,{transform:e})=>v(e,"y")};tn.translateX=tn.x,tn.translateY=tn.y;var ts=i(694831);let tr=new Set,to=!1,ta=!1,tl=!1;function th(){if(ta){let t=Array.from(tr).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>
9{let e,n=(e=[],ti.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e);n.length&&(i.set(t,n),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}ta=!1,to=!1,tr.forEach(t=>t.complete(tl)),tr.clear()}function tu(){tr.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ta=!0)})}class tc{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tr.add(this),to||(to=!0,ts.Gt.read(tu),ts.Gt.resolveKeyframes(th))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tr.delete(this)}cancel(){"scheduled"===this.state&&(tr.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let td=t=>Math.round(1e5*t)/1e5,tp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tm=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tf=(t,e)=>i=>!!("string"==typeof i&&tm.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tv=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,o,a]=n.match(tp);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tg={...B,transform:t=>Math.round(L(0,255,t))},ty={test:tf("rgb","red"),parse:tv("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+tg.transform(t)+", "+tg.transform(e)+", "+tg.transform(i)+", "+td(U.transform(n))+")"},tx={test:tf("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:ty.transform},tw={test:tf("hsl","hue"),parse:tv("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+G.transform(td(e))+", "+G.transform(td(i))+", "+td(U.transform(n))+")"},tP={test:t=>ty.test(t)||tx.test(t)||tw.test(t),parse:t=>ty.test(t)?ty.parse(t):tw.test(t)?tw.parse(t):tx.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?ty.transform(t):tw.transform(t),getAnimatableNone:t=>{let e=tP.parse(t);return e.alpha=0,tP.transform(e)}},tb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tT="number",tS="color",tM=/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 tA(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,o=e.replace(tM,t=>(tP.test(t)?(n.color.push(r),s.push(tS),i.push(tP.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(tT),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:n,types:s}}function tC(t){return tA(t).values}function tE(t){let{split:e,types:i}=tA(t),n=e.length;return t=>{let s="";for(let r=0;r<n;r++)if(s+=e[r],void 0!==t[r]){let e=i[r];e===tT?s+=td(t[r]):e===tS?s+=tP.transform(t[r]):s+=t[r]}return s}}let tk=t=>"number"==typeof t?0:tP.test(t)?tP.getAnimatableNone(t):t,tV={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(tp)?.length||0)+(t.match(tb)?.length||0)>0},parse:tC,createTransformer:tE,getAnimatableNone:function(t){let e=tC(t);return tE(t)(e.map(tk))}},tD=new Set(["brightness","contrast","saturate","opacity"]);function tR(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(tp)||[];if(!n)return t;let s=i.replace(n,""),r=+!!tD.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let tO=/\b([a-z-]*)\(.*?\)/gu,tj={...tV,getAnimatableNone:t=>{let e=t.match(tO);return e?e.map(tR).join(" "):t}},tI={...B,transform:Math.round},tF={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,radius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,backgroundPositionX:Y,backgroundPositionY:Y,rotate:$,rotateX:$,rotateY:$,rotateZ:$,scale:N,scaleX:N,scaleY:N,scaleZ:N,skew:$,skewX:$,
9skewY:$,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:U,originX:z,originY:z,originZ:Y,zIndex:tI,fillOpacity:U,strokeOpacity:U,numOctaves:tI},tL={...tF,color:tP,backgroundColor:tP,outlineColor:tP,fill:tP,stroke:tP,borderColor:tP,borderTopColor:tP,borderRightColor:tP,borderBottomColor:tP,borderLeftColor:tP,filter:tj,WebkitFilter:tj},tB=t=>tL[t];function tU(t,e){let i=tB(t);return i!==tj&&(i=tV),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tN=new Set(["auto","none","0"]);class tW extends tc{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&P(n=n.trim())){let s=function t(e,i,n=1){Z(`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[s,r]=function(t){let e=J.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(e);if(!s)return;let o=window.getComputedStyle(i).getPropertyValue(s);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return P(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!F.has(i)||2!==t.length)return;let[n,s]=t,r=K(n),o=K(s);if(r!==o)if(tt(r)&&tt(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tn[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!tN.has(e)&&tA(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=tU(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tn[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,r=i[s];i[s]=tn[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
9h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let t$=t=>!!(t&&t.getVelocity);var tG=i(55729),tY=i(83238);let tH=[...q,tP,tV],{schedule:tX}=(0,i(223227).I)(queueMicrotask,!1);var tz=i(587238);let tQ={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"]},tq={};for(let t in tQ)tq[t]={isEnabled:e=>tQ[t].some(t=>!!e[t])};let tK=()=>({translate:0,scale:1,origin:0,originPoint:0}),t_=()=>({x:tK(),y:tK()}),tZ=()=>({min:0,max:0}),tJ=()=>({x:tZ(),y:tZ()});var t0=i(887508),t1=i(539483);let t2=new WeakMap;function t5(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function t3(t){return"string"==typeof t||Array.isArray(t)}let t7=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],t9=["initial",...t7];function t8(t){return t5(t.animate)||t9.some(e=>t3(t[e]))}function t4(t){return!!(t8(t)||t.variants)}function t6(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function et(t,e,i,n){if("function"==typeof e){let[s,r]=t6(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=t6(n);e=e(void 0!==i?i:t.custom,s,r)}return e}let ee=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ei{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tc,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=tG.k.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,ts.Gt.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=r;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=t8(e),this.isVariantNode=t4(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...u}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in u){const e=u[t];void 0!==a[t]&&t$(e)&&e.set(a[t])}}mount(t){this.current=t,t2.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),t1.r.current||(0,t0.U)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||t1.O.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,ts.WG)(this.notifyUpdate),(0,ts.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=a.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&ts.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in tq){let e=tq[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
9e.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):tJ()}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<ee.length;e++){let i=ee[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],r=i[n];if(t$(s))t.addValue(n,s);else if(t$(r))t.addValue(n,(0,tY.OQ)(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,(0,tY.OQ)(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,tY.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let n,s;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(s=i,/^0[^.\s]+$/u.test(s))))i=parseFloat(i);else{let n;n=i,!tH.find(Q(n))&&tV.test(e)&&(i=tU(t,e))}this.setBaseTarget(t,t$(i)?i.get():i)}return t$(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=et(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||t$(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new tz.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){tX.render(this.render)}}class en extends ei{constructor(){super(...arguments),this.KeyframeResolver=tW}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;t$(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let es=(t,e)=>e&&"number"==typeof t?e.transform(t):t,er={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eo=o.length;function ea(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,l=!1,h=!1;for(let t in e){let i=e[t];if(a.has(t)){l=!0;continue}if(x(t)){s[t]=i;continue}{let e=es(i,tF[t]);t.startsWith("origin")?(h=!0,r[t]=e):n[t]=e}}
9if(!e.transform&&(l||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r<eo;r++){let a=o[r],l=t[a];if(void 0===l)continue;let h=!0;if(!(h="number"==typeof l?l===+!!a.startsWith("scale"):0===parseFloat(l))||i){let t=es(l,tF[a]);if(!h){s=!1;let e=er[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}return n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),h){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;n.transformOrigin=`${t} ${e} ${i}`}}function el(t,{style:e,vars:i},n,s){let r,o=t.style;for(r in e)o[r]=e[r];for(r in s?.applyProjectionStyles(o,n),i)o.setProperty(r,i[r])}let eh={};function eu(t,{layout:e,layoutId:i}){return a.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eh[t]||"opacity"===t)}function ec(t,e,i){let{style:n}=t,s={};for(let r in n)(t$(n[r])||e.style&&t$(e.style[r])||eu(r,t)||i?.getValue(r)?.liveStyle!==void 0)&&(s[r]=n[r]);return s}class ed extends en{constructor(){super(...arguments),this.type="html",this.renderInstance=el}readValueFromInstance(t,e){if(a.has(e))return this.projection?.isProjecting?f(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return v(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(x(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return I(t,e)}build(t,e,i){ea(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return ec(t,e,i)}}let ep=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),em={offset:"stroke-dashoffset",array:"stroke-dasharray"},ef={offset:"strokeDashoffset",array:"strokeDasharray"};function ev(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:o=0,...a},l,h,u){if(ea(t,a,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete c.transformBox),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?em:ef;t[r.offset]=Y.transform(-n);let o=Y.transform(e),a=Y.transform(i);t[r.array]=`${o} ${a}`}(c,s,r,o,!1)}let eg=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"]),ey=t=>"string"==typeof t&&"svg"===t.toLowerCase();function ex(t,e,i){let n=ec(t,e,i);for(let i in t)(t$(t[i])||t$(e[i]))&&(n[-1!==o.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class ew extends en{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tJ}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(a.has(e)){let t=tB(e);return t&&t.default||0}return e=eg.has(e)?e:ep(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return ex(t,e,i)}build(t,e,i){ev(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in el(t,e,void 0,n),e.attrs)t.setAttribute(eg.has(i)?i:ep(i),e.attrs[i])}mount(t){this.isSVGTag=ey(t.tagName),super.mount(t)}}let eP=["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 eb(t){if("string"!=typeof t||t.includes("-"));else if(eP.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var eT=i(391426),eS=i(92326);let eM=(0,r.createContext)({strict:!1});var eA=i(401427);let eC=(0,r.createContext)({});function eE(t){return Array.isArray(t)?t.join(" "):t}let ek=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eV(t,e,i){for(let n in e)t$(e[n])||eu(n,i)||(t[n]=e[n])}let eD=()=>({...ek(),attrs:{}}),eR=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 eO(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||eR.has(t)}let ej=t=>!eO(t);
9try{s=require("@emotion/is-prop-valid").default,"function"==typeof s&&(ej=t=>t.startsWith("on")?!eO(t):s(t))}catch{}var eI=i(808226),eF=i(237162);function eL(t){return t$(t)?t.get():t}let eB=t=>(e,i)=>{let n=(0,r.useContext)(eC),s=(0,r.useContext)(eI.t),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=eL(r[t]);let{initial:o,animate:a}=t,l=t8(t),h=t4(t);e&&h&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,c=(u=u||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!t5(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=et(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(i,n,s,t),renderState:e()}})(t,e,n,s);return i?o():(0,eF.M)(o)},eU=eB({scrapeMotionValuesFromProps:ec,createRenderState:ek}),eN=eB({scrapeMotionValuesFromProps:ex,createRenderState:eD});var eW=i(144407);let e$=Symbol.for("motionComponentSymbol");function eG(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let eY="data-"+ep("framerAppearId"),eH=(0,r.createContext)({});var eX=i(535245);function ez(t,{forwardMotionProps:e=!1}={},i,n){i&&function(t){for(let e in t)tq[e]={...tq[e],...t[e]}}(i);let s=eb(t)?eN:eU;function o(i,o){var a;let l,h={...(0,r.useContext)(eA.Q),...i,layoutId:function({layoutId:t}){let e=(0,r.useContext)(eS.L).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:u}=h,c=function(t){let{initial:e,animate:i}=function(t,e){if(t8(t)){let{initial:e,animate:i}=t;return{initial:!1===e||t3(e)?e:void 0,animate:t3(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,r.useContext)(eC));return(0,r.useMemo)(()=>({initial:e,animate:i}),[eE(e),eE(i)])}(i),d=s(i,u);if(!u&&eW.B){(0,r.useContext)(eM).strict;let e=function(t){let{drag:e,layout:i}=tq;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(h);l=e.MeasureLayout,c.visualElement=function(t,e,i,n,s){let{visualElement:o}=(0,r.useContext)(eC),a=(0,r.useContext)(eM),l=(0,r.useContext)(eI.t),h=(0,r.useContext)(eA.Q).reducedMotion,u=(0,r.useRef)(null);n=n||a.renderer,!u.current&&n&&(u.current=n(t,{visualState:e,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:h}));let c=u.current,d=(0,r.useContext)(eH);c&&!c.projection&&s&&("html"===c.type||"svg"===c.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutCrossfade: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:s,layout:r,alwaysMeasureLayout:!!o||a&&eG(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:h})}(u.current,i,s,d);let p=(0,r.useRef)(!1);(0,r.useInsertionEffect)(()=>{c&&p.current&&c.update(i,l)});let m=i[eY],f=(0,r.useRef)(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return(0,eX.E)(()=>{c&&(p.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),f.current&&c.animationState&&c.animationState.animateChanges())}),(0,r.useEffect)(()=>{c&&(!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),f.current=!1),c.enteringChildren=void 0)}),c}(t,d,h,n,e.ProjectionNode)}return(0,eT.jsxs)(eC.Provider,{value:c,children:[l&&c.visualElement?(0,eT.jsx)(l,{visualElement:c.visualElement,...h}):null,function(t,e,i,{latestValues:n},s,o=!1){let a=(eb(t)?function(t,e,i,n){let s=(0,r.useMemo)(()=>{let i=eD();return ev(i,e,ey(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};eV(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i,n,s={},o=(i=t.style||{},eV(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,r.useMemo)(()=>{let i=ek();return ea(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(s.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)&&(s.tabIndex=0),s.style=o,s}
9)(e,n,s,t),l=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(ej(s)||!0===i&&eO(s)||!e&&!eO(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,o),h=t!==r.Fragment?{...l,...a,ref:i}:{},{children:u}=e,c=(0,r.useMemo)(()=>t$(u)?u.get():u,[u]);return(0,r.createElement)(t,{...h,children:c})}(t,i,(a=c.visualElement,(0,r.useCallback)(t=>{t&&d.onMount&&d.onMount(t),a&&(t?a.mount(t):a.unmount()),o&&("function"==typeof o?o(t):eG(o)&&(o.current=t))},[a])),d,u,e)]})}o.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let a=(0,r.forwardRef)(o);return a[e$]=t,a}function eQ(t,e,i){let n=t.getProps();return et(n,e,void 0!==i?i:n.custom,t)}function eq(t,e){return t?.[e]??t?.default??t}let eK=t=>Array.isArray(t);var e_=i(610657);function eZ(t,e){let i=t.getValue("willChange");if(t$(i)&&i.add)return i.add(e);if(!i&&e_.W.WillChange){let i=new e_.W.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function eJ(t){t.duration=0,t.type="keyframes"}let e0=(t,e)=>i=>e(t(i)),e1=(...t)=>t.reduce(e0),e2=t=>1e3*t,e5={layout:0,mainThread:0,waapi:0};function e3(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 e7(t,e){return i=>i>0?e:t}let e9=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},e8=[tx,ty,tw];function e4(t){let e=e8.find(e=>e.test(t));if(_(`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tw&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;s=e3(a,n,t+1/3),r=e3(a,n,t),o=e3(a,n,t-1/3)}else s=r=o=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*o),alpha:n}}(i)),i}let e6=(t,e)=>{let i=e4(t),n=e4(e);if(!i||!n)return e7(t,e);let s={...i};return t=>(s.red=e9(i.red,n.red,t),s.green=e9(i.green,n.green,t),s.blue=e9(i.blue,n.blue,t),s.alpha=S(i.alpha,n.alpha,t),ty.transform(s))},it=new Set(["none","hidden"]);function ie(t,e){return i=>S(t,e,i)}function ii(t){return"number"==typeof t?ie:"string"==typeof t?P(t)?e7:tP.test(t)?e6:io:Array.isArray(t)?is:"object"==typeof t?tP.test(t)?e6:ir:e7}function is(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>ii(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function ir(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=ii(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let io=(t,e)=>{let i=tV.createTransformer(e),n=tA(t),s=tA(e);if(!(n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length))return _(`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),e7(t,e);if(it.has(t)&&!s.values.length||it.has(e)&&!n.values.length)return it.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return e1(is(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let r=e.types[s],o=t.indexes[r][n[r]],a=t.values[o]??0;i[s]=a,n[r]++}return i}(n,s),s.values),i)};function ia(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?S(t,e,i):ii(t)(t,e)}let il=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>ts.Gt.update(e,t),stop:()=>(0,ts.WG)(e),now:()=>ts.uv.isProcessing?ts.uv.timestamp:tG.k.now()}},ih=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function iu(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}var ic=i(708913);function id(t,e,i){let n=Math.max(e-5,0);return(0,ic.f)(i-t(n),e-n)}let ip=.01,im=2,iv=.005,ig=.5;function iy(t,e){return t*Math.sqrt(1-e*e)}let ix=["duration","bounce"],iw=["stiffness","damping","mass"];function iP(t,e){return e.some(e=>void 0!==t[e])}function ib(t=.3,e=.3){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:s,restDelta:r}=n,o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:h,damping:u,mass:c,duration:d,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!iP(t,iw)&&iP(t,ix))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*L(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:s}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let s,r;_(e2(10));let o=1-e;o=L(.05,1,o),t=L(.01,10,t/1e3),o<1?(s=e=>{let n=e*o,s=n*t;return .001-(n-i)/iy(e,o)*Math.exp(-s)},r=e=>{let n=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=iy(Math.pow(e,2),o);return(n*i+i-r)*a*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));
9let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=e2(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...n,velocity:-((n.velocity||0)/1e3)}),f=p||0,v=u/(2*Math.sqrt(h*c)),g=a-o,y=Math.sqrt(h/c)/1e3,x=5>Math.abs(g);if(s||(s=x?ip:im),r||(r=x?iv:ig),v<1){let t=iy(y,v);i=e=>a-Math.exp(-v*y*e)*((f+v*y*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===v)i=t=>a-Math.exp(-y*t)*(g+(f+y*g)*t);else{let t=y*Math.sqrt(v*v-1);i=e=>{let i=Math.exp(-v*y*e),n=Math.min(t*e,300);return a-i*((f+v*y*g)*Math.sinh(n)+t*g*Math.cosh(n))/t}}let w={calculatedDuration:m&&d||null,next:t=>{let e=i(t);if(m)l.done=t>=d;else{let n=0===t?f:0;v<1&&(n=0===t?e2(f):id(i,t,e));let o=Math.abs(a-e)<=r;l.done=Math.abs(n)<=s&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(iu(w),2e4),e=ih(e=>w.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return w}function iT({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){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/n),x=t=>g+y(t),w=t=>{let e=y(t),i=x(t);m.done=Math.abs(e)<=h,m.value=m.done?g:i},P=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=ib({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:id(x,t,m.value),damping:s,stiffness:r,restDelta:h,restSpeed:u})}};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,w(t),P(t)),void 0!==c&&t>=c)?d.next(t-c):(e||w(t),m)}}}ib.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(iu(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:s/1e3}}(t,100,ib);return t.ease=e.ease,t.duration=e2(e.duration),t.type="keyframes",t};var iS=i(175523);let iM=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function iA(t,e,i,n){return t===e&&i===n?iS.l:s=>0===s||1===s?s:iM(function(t,e,i,n,s){let r,o,a=0;do(r=iM(o=e+(i-e)/2,n,s)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12);return o}(s,0,1,t,i),e,n)}let iC=iA(.42,0,1,1),iE=iA(0,0,.58,1),ik=iA(.42,0,.58,1),iV=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,iD=t=>e=>1-t(1-e),iR=iA(.33,1.53,.69,.99),iO=iD(iR),ij=iV(iO),iI=t=>(t*=2)<1?.5*iO(t):.5*(2-Math.pow(2,-10*(t-1))),iF=t=>1-Math.sin(Math.acos(t)),iL=iD(iF),iB=iV(iF),iU=t=>Array.isArray(t)&&"number"==typeof t[0],iN={linear:iS.l,easeIn:iC,easeInOut:ik,easeOut:iE,circIn:iF,circInOut:iB,circOut:iL,backIn:iO,backInOut:ij,backOut:iR,anticipate:iI},iW=t=>{if(iU(t)){Z(t.length);let[e,i,n,s]=t;return iA(e,i,n,s)}return"string"==typeof t?(Z(iN[t],`Invalid easing type '${t}'`),iN[t]):t},i$=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function iG({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r,o=Array.isArray(n)&&"number"!=typeof n[0]?n.map(iW):iW(n),a={done:!1,value:e[0]},l=function(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(Z(e.length),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],s=i||e_.W.mix||ia,r=t.length-1;for(let i=0;i<r;i++){let r=s(t[i],t[i+1]);e&&(r=e1(Array.isArray(e)?e[i]||iS.l:e,r)),n.push(r)}return n}(e,n,s),l=a.length,h=i=>{if(o&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=i$(t[n],t[n+1],i);return a[n](s)};return i?e=>h(L(t[0],t[r-1],e)):h}((s=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=i$(0,e,n);t.push(S(i,1,s))}}(r=[0],e.length-1),r),s.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||ik).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}let iY=t=>null!==t;function iH(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(iY),o=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return o&&void 0!==n?n:r[o]}let iX={decay:iT,inertia:iT,tween:iG,keyframes:iG,spring:ib};function iz(t){"string"==typeof t.type&&(t.type=iX[t.type])}class iQ{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let iq=t=>t/100;class iK extends iQ{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==tG.k.now()&&this.tick(tG.k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},e5.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;iz(t);let{type:e=iG,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:o}=t,a=e||iG;a!==iG&&"number"!=typeof o[0]&&(this.mixKeyframes=e1(iq,ia(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===s&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=iu(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:s,mirroredGenerator:r,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:h,repeat:u,repeatType:c,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?v<0:v>n;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let y=this.currentTime,x=i;if(u){let t=Math.min(this.currentTime,n)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,u+1))%2&&("reverse"===c?(i=1-i,d&&(i-=d/
9o)):"mirror"===c&&(x=r)),y=L(0,1,i)*o}let w=g?{done:!1,value:h[0]}:x.next(y);s&&(w.value=s(w.value));let{done:P}=w;g||null===a||(P=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return b&&p!==iT&&(w.value=iH(h,this.options,f,this.speed)),m&&m(w.value),b&&this.finish(),w}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=e2(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(tG.k.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=il,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tG.k.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,e5.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function i_(t){let e;return()=>(void 0===e&&(e=t()),e)}let iZ=i_(()=>void 0!==window.ScrollTimeline);var iJ=i(908058);let i0={},i1=(n=i_(()=>{try{document.createElement("div").animate({opacity:0}
9,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>i0.linearEasing??n()),i2=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,i5={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:i2([0,.65,.55,1]),circOut:i2([.55,0,1,.45]),backIn:i2([.31,.01,.66,-.59]),backOut:i2([.33,1.53,.69,.99])};function i3(t){return"function"==typeof t&&"applyToOptions"in t}class i7 extends iQ{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,Z(t.type);const l=function({type:t,...e}){return i3(t)&&i1()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?i1()?ih(e,i):"ease-out":iU(e)?i2(e):Array.isArray(e)?e.map(e=>t(e,i)||i5.easeOut):i5[e]}(a,s);Array.isArray(c)&&(u.easing=c),iJ.Q.value&&e5.waapi++;let d={delay:n,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};h&&(d.pseudoElement=h);let p=t.animate(u,d);return iJ.Q.value&&p.finished.finally(()=>{e5.waapi--}),p}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=iH(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):i.startsWith("--")?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){this.finishedTime=null,this.animation.currentTime=e2(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&iZ())?(this.animation.timeline=t,iS.l):e(this)}}let i9={anticipate:iI,backInOut:ij,circInOut:iB};class i8 extends i7{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in i9&&(t.ease=i9[t.ease])}(t),iz(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new iK({...r,autoplay:!1}),a=e2(this.finishedTime??this.time);e.setWithVelocity(o.sample(a-10).value,o.sample(a).value,10),o.stop()}}let i4=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tV.test(t)||"0"===t)&&!t.startsWith("url(")),i6=new Set(["opacity","clipPath","filter","transform"]),nt=i_(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class ne extends iQ{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:o,name:a,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tG.k.now();const c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:a,motionValue:l,element:h,...u},d=h?.KeyframeResolver||tc;this.keyframeResolver=new d(o,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),a,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:s,type:r,velocity:o,delay:a,isHandoff:l,onUpdate:h}=i;
9this.resolvedAt=tG.k.now(),!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=i4(s,e),a=i4(r,e);return _(`You are trying to animate ${e} from "${s}" to "${r}". "${o?r:s}" is not an animatable value.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||i3(i))&&n)}(t,s,r,o)&&((e_.W.instantAnimations||!a)&&h?.(iH(t,i,e)),t[0]=t[t.length-1],eJ(i),i.repeat=0);let u={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},c=!l&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return nt()&&i&&i6.has(i)&&("transform"!==i||!l)&&!a&&!n&&"mirror"!==s&&0!==r&&"inertia"!==o}(u)?new i8({...u,element:u.motionValue.owner.current}):new iK(u);c.finished.then(()=>this.notifyFinished()).catch(iS.l),this.pendingTimeline&&(this.stopTimeline=c.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=c}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tl=!0,tu(),th(),tl=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let ni=t=>null!==t,nn={type:"spring",stiffness:500,damping:25,restSpeed:10},ns={type:"keyframes",duration:.8},nr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},no=(t,e,i,n={},s,r)=>o=>{let l=eq(n,t)||{},h=l.delay||n.delay||0,{elapsed:u=0}=n;u-=e2(h);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-u,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(l)&&Object.assign(c,((t,{keyframes:e})=>e.length>2?ns:a.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nn:nr)(t,c)),c.duration&&(c.duration=e2(c.duration)),c.repeatDelay&&(c.repeatDelay=e2(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(eJ(c),0===c.delay&&(d=!0)),(e_.W.instantAnimations||e_.W.skipAnimations)&&(d=!0,eJ(c),c.delay=0),c.allowFlatten=!l.type&&!l.ease,d&&!r&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"}){let n=t.filter(ni),s=e&&"loop"!==i&&e%2==1?0:n.length-1;return n[s]}(c.keyframes,l);if(void 0!==t)return void ts.Gt.update(()=>{c.onUpdate(t),c.onComplete()})}return l.isSync?new iK(c):new ne(c)};function na(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:o,...a}=e;n&&(r=n);let l=[],h=s&&t.animationState&&t.animationState.getState()[s];for(let e in a){let n=t.getValue(e,t.latestValues[e]??null),s=a[e];if(void 0===s||h&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(h,e))continue;let o={delay:i,...eq(r||{},e)},u=n.get();if(void 0!==u&&!n.isAnimating&&!Array.isArray(s)&&s===u&&!o.velocity)continue;let c=!1;if(window.MotionHandoffAnimation){let i=t.props[eY];if(i){let t=window.MotionHandoffAnimation(i,e,ts.Gt);null!==t&&(o.startTime=t,c=!0)}}eZ(t,e),n.start(no(e,n,s,t.shouldReduceMotion&&F.has(e)?{type:!1}:o,t,c));let d=n.animation;d&&l.push(d)}return o&&Promise.all(l).then(()=>{ts.Gt.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=eQ(t,e)||{};for(let e in s={...s,...i}){var r;let i=eK(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,tY.OQ)(i))}}(t,o)})}),l}function nl(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(r,o):1===s?r*n:a-r*n}function nh(t,e,i={}){let n=eQ(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(na(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;
9return function(t,e,i=0,n=0,s=0,r=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nh(l,e,{...o,delay:i+("function"==typeof n?0:n)+nl(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,r,o,a,i)}:()=>Promise.resolve(),{when:a}=s;if(!a)return Promise.all([r(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[r,o]:[o,r];return t().then(()=>e())}}function nu(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let nc=t9.length,nd=[...t7].reverse(),np=t7.length;function nm(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nf(){return{animate:nm(!0),whileInView:nm(),whileHover:nm(),whileTap:nm(),whileDrag:nm(),whileFocus:nm(),exit:nm()}}class nv{constructor(t){this.isMounted=!1,this.node=t}update(){}}let ng=0,ny={x:!1,y:!1};function nx(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let nw=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function nP(t){return{point:{x:t.pageX,y:t.pageY}}}function nb(t,e,i,n){return nx(t,e,t=>nw(t)&&i(t,nP(t)),n)}function nT(t){return t.max-t.min}function nS(t,e,i,n=.5){t.origin=n,t.originPoint=S(e.min,e.max,t.origin),t.scale=nT(i)/nT(e),t.translate=S(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 nM(t,e,i,n){nS(t.x,e.x,i.x,n?n.originX:void 0),nS(t.y,e.y,i.y,n?n.originY:void 0)}function nA(t,e,i){t.min=i.min+e.min,t.max=t.min+nT(e)}function nC(t,e,i){t.min=e.min-i.min,t.max=t.min+nT(e)}function nE(t,e,i){nC(t.x,e.x,i.x),nC(t.y,e.y,i.y)}function nk(t){return[t("x"),t("y")]}let nV=({current:t})=>t?t.ownerDocument.defaultView:null,nD=(t,e)=>Math.abs(t-e);class nR{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=nI(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(nD(t.x,e.x)**2+nD(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:r}=i,{timestamp:o}=ts.uv;this.history.push({...r,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=nO(e,this.transformPagePoint),ts.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=nI("pointercancel"===t.type?this.lastMoveEventInfo:nO(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!nw(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;const o=nO(nP(t),this.transformPagePoint),{point:a}=o,{timestamp:l}=ts.uv;this.history=[{...a,timestamp:l}];const{onSessionStart:h}=e;h&&h(t,nI(o,this.history)),this.removeListeners=e1(nb(this.contextWindow,"pointermove",this.handlePointerMove),nb(this.contextWindow,"pointerup",this.handlePointerUp),nb(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,ts.WG)(this.updatePoint)}}function nO(t,e){return e?{point:e(t.point)}:t}function nj(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nI({point:t},e){return{point:t,delta:nj(t,nF(e)),offset:nj(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=nF(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>e2(.1)));)e--;if(!i)return{x:0,y:0};let s=(n.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};let r={x:(n.x-i.x)/s,y:(n.y-i.y)/s}
9;return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function nF(t){return t[t.length-1]}function nL(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 nB(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function nU(t,e,i){return{min:nN(t,e),max:nN(t,i)}}function nN(t,e){return"number"==typeof t?t:t[e]||0}let nW=new WeakMap;class n${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=tJ(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let s=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(nP(t).point)},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(ny[t])return null;else return ny[t]=!0,()=>{ny[t]=!1};return ny.x||ny.y?null:(ny.x=ny.y=!0,()=>{ny.x=ny.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nk(t=>{let e=this.getAxisMotionValue(t).get()||0;if(G.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=nT(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&ts.Gt.postRender(()=>s(t,e)),eZ(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&r(t,e)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>nk(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:h}=this.getProps();this.panSession=new nR(t,{onSessionStart:s,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:nV(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:r}=n;this.startAnimation(r);let{onDragEnd:o}=this.getProps();o&&ts.Gt.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!nG(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?S(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?S(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&eG(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:nL(t.x,i,s),y:nL(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:nU(t,"left","right"),y:nU(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&nk(t=>{var e,n;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],s={},void 0!==n.min&&(s.min=n.min-e.min),void 0!==n.max&&(s.max=n.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!eG(e))return!1;let n=e.current;Z();let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;
9let r=function(t,e,i){let n=I(t,i),{scroll:s}=e;return s&&(R(n.x,s.offset.x),R(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),o=(t=s.layout.layoutBox,{x:nB(t.x,r.x),y:nB(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=T(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(nk(o=>{if(!nG(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return eZ(this.visualElement,t),i.start(no(t,i,0,e,this.visualElement,!1))}stopAnimation(){nk(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nk(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){nk(e=>{let{drag:i}=this.getProps();if(!nG(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e];s.set(t[e]-S(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!eG(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nk(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let r,o,a,l=e.get();n[t]=(i={min:l,max:l},s=this.constraints[t],r=.5,o=nT(i),(a=nT(s))>o?r=i$(s.min,s.max-o,i.min):o>a&&(r=i$(i.min,i.max-a,s.min)),L(0,1,r))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),nk(e=>{if(!nG(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set(S(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;nW.set(this.visualElement,this);let t=nb(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();eG(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ts.Gt.read(e);let s=nx(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nk(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),n(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o}}}function nG(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let nY=t=>(e,i)=>{t&&ts.Gt.postRender(()=>t(e,i))};var nH=i(23773);let nX={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nz(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let nQ={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!Y.test(t))return t;else t=parseFloat(t);let i=nz(t,e.target.x),n=nz(t,e.target.y);return`${i}% ${n}%`}},nq=!1;class nK extends r.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;for(let t in nZ)eh[t]=nZ[t],x(t)&&(eh[t].isCSSVariable=!0);s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),nq&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),nX.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,nq=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||ts.Gt.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tX.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;nq=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function n_(t){let[e,i]=(0,nH.xQ)(),n=(0,r.useContext)(eS.L);return(0,eT.jsx)(nK,{...t,layoutGroup:n,switchLayoutGroup:(0,r.useContext)(eH),isPresent:e,safeToRemove:i})}let nZ={borderRadius:{...nQ,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nQ,borderTopRightRadius:nQ,borderBottomLeftRadius:nQ,borderBottomRightRadius:nQ,boxSh
9adow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tV.parse(t);if(n.length>5)return t;let s=tV.createTransformer(t),r=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+r]/=o,n[1+r]/=a;let l=S(o,a,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};var nJ=i(629217);function n0(t){return(0,nJ.G)(t)&&"ownerSVGElement"in t}var n1=i(94830);let n2=(t,e)=>t.depth-e.depth;class n5{constructor(){this.children=[],this.isDirty=!1}add(t){(0,n1.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,n1.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(n2),this.isDirty=!1,this.children.forEach(t)}}let n3=["TopLeft","TopRight","BottomLeft","BottomRight"],n7=n3.length,n9=t=>"string"==typeof t?parseFloat(t):t,n8=t=>"number"==typeof t||Y.test(t);function n4(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let n6=se(0,.5,iL),st=se(.5,.95,iS.l);function se(t,e,i){return n=>n<t?0:n>e?1:i(i$(t,e,n))}function si(t,e){t.min=e.min,t.max=e.max}function sn(t,e){si(t.x,e.x),si(t.y,e.y)}function ss(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sr(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function so(t,e,[i,n,s],r,o){!function(t,e=0,i=1,n=.5,s,r=t,o=t){if(G.test(e)&&(e=parseFloat(e),e=S(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=S(r.min,r.max,n);t===r&&(a-=e),t.min=sr(t.min,e,i,a,s),t.max=sr(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,r,o)}let sa=["x","scaleX","originX"],sl=["y","scaleY","originY"];function sh(t,e,i,n){so(t.x,e,sa,i?i.x:void 0,n?n.x:void 0),so(t.y,e,sl,i?i.y:void 0,n?n.y:void 0)}function su(t){return 0===t.translate&&1===t.scale}function sc(t){return su(t.x)&&su(t.y)}function sd(t,e){return t.min===e.min&&t.max===e.max}function sp(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function sm(t,e){return sp(t.x,e.x)&&sp(t.y,e.y)}function sf(t){return nT(t.x)/nT(t.y)}function sv(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sg{constructor(){this.members=[]}add(t){(0,n1.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,n1.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let sy={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},sx=["","X","Y","Z"],sw=0;function sP(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function sb({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=sw++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,iJ.Q.value&&(sy.nodes=sy.calculatedTargetDeltas=sy.
9calculatedProjections=0),this.nodes.forEach(sM),this.nodes.forEach(sR),this.nodes.forEach(sO),this.nodes.forEach(sA),iJ.Q.addProjectionMetrics&&iJ.Q.addProjectionMetrics(sy)},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 n5)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tz.v),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=n0(e)&&!(n0(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,s=()=>this.root.updateBlockedByResize=!1;ts.Gt.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,r;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=tG.k.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&((0,ts.WG)(r),s())},ts.Gt.setup(r,!0),i=()=>(0,ts.WG)(r),nX.hasAnimatedSinceResize&&(nX.hasAnimatedSinceResize=!1,this.nodes.forEach(sD))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||sU,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!sm(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...eq(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||sD(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,ts.WG)(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(sj),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 n=i.props[eY];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ts.Gt,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
9h(sE);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(sk);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sV),this.nodes.forEach(sT),this.nodes.forEach(sS)):this.nodes.forEach(sk),this.clearAllSnapshots();let t=tG.k.now();ts.uv.delta=L(0,1e3/60,t-ts.uv.timestamp),ts.uv.timestamp=t,ts.uv.isProcessing=!0,ts.PP.update.process(ts.uv),ts.PP.preRender.process(ts.uv),ts.PP.render.process(ts.uv),ts.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tX.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sC),this.sharedNodes.forEach(sI)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ts.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ts.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nT(this.snapshot.measuredBox.x)||nT(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=tJ(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!sc(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||C(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),s$((e=n).x),s$(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return tJ();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sY))){let{scroll:t}=this.root;t&&(R(e.x,t.offset.x),R(e.y,t.offset.y))}return e}removeElementScroll(t){let e=tJ();if(sn(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&sn(e,t),R(e.x,s.offset.x),R(e.y,s.offset.y))}return e}applyTransform(t,e=!1){let i=tJ();sn(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&j(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),C(n.latestValues)&&j(i,n.latestValues)}return C(this.latestValues)&&j(i,this.latestValues),i}removeTransform(t){let e=tJ();sn(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!C(i.latestValues))continue;A(i.latestValues)&&i.updateSnapshot();let n=tJ();sn(n,i.measurePageBox()),sh(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return C(this.latestValues)&&sh(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!==ts.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(this.layout&&(n||s)){if(this.resolvedRelativeTargetAt=ts.uv.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tJ(),this.relativeTargetOrigin=tJ(),nE(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=tJ(),this.targetWithTransforms=tJ()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var r,o,a;this.forceRelativeParentToResolveTarget(),r=this.target,o=this.relativeTarget,a=this.relativeParent.target,nA(r.x,o.x,a.x),nA(r.y,o.y,a.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),D(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tJ(),this.relativeTargetOrigin=tJ(),nE(this.relativeTargetOrigin,this.target,t.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}iJ.Q.value&&sy.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||A(this.parent.latestValues)||E(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(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
9if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===ts.uv.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;sn(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,n=!1){let s,r,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){r=(s=i[a]).projectionDelta;let{visualElement:o}=s.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&j(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,D(t,r)),n&&C(s.latestValues)&&j(t,s.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=tJ());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(ss(this.prevProjectionDelta.x,this.projectionDelta.x),ss(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nM(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&sv(this.projectionDelta.x,this.prevProjectionDelta.x)&&sv(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),iJ.Q.value&&sy.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=t_(),this.projectionDelta=t_(),this.projectionDeltaWithTransform=t_()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},o=t_();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=tJ(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(sB));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(sF(o.x,t.x,n),sF(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,d,p,m,f,v;nE(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,v=n,sL(p.x,m.x,f.x,v),sL(p.y,m.y,f.y,v),i&&(h=this.relativeTarget,d=i,sd(h.x,d.x)&&sd(h.y,d.y))&&(this.isProjectionDirty=!1),i||(i=tJ()),sn(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=S(0,i.opacity??1,n6(n)),t.opacityExit=S(e.opacity??1,0,st(n))):r&&(t.opacity=S(e.opacity??1,i.opacity??1,n));for(let s=0;s<n7;s++){let r=`border${n3[s]}Radius`,o=n4(e,r),a=n4(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||n8(o)===n8(a)?(t[r]=Math.max(S(n9(o),n9(a),n),0),(G.test(a)||G.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=S(e.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,ts.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ts.Gt.update(()=>{var e,i,n;let s;nX.hasAnimatedSinceResize=!0,e5.layout++,this.motionValue||(this.motionValue=(0,tY.OQ)(0)),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{e5.layout--},onComplete:()=>{e5.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(s=t$(e)?e:(0,tY.OQ)(e)).start(no("",s,i,n)),s.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:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&sG(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||tJ();let e=nT(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nT(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}sn(e,i),j(e,s),nM(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new sg),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
9return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&sP("z",t,n,this.animationValues);for(let e=0;e<sx.length;e++)sP(`rotate${sx[e]}`,t,n,this.animationValues),sP(`skew${sx[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=eL(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eL(e?.pointerEvents)||""),this.hasProjected&&!C(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,o=i?.z||0;if((s||r||o)&&(n=`translate3d(${s}px, ${r}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),r&&(n+=`rotateY(${r}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(r=i(s,r)),t.transform=r;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,eh){if(void 0===s[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=eh[e],l="none"===r?s[e]:i(s[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?eL(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(sE),this.root.sharedNodes.clear()}}}function sT(t){t.updateLayout()}function sS(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;"size"===s?nk(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=nT(n);n.min=i[t].min,n.max=n.min+s}):sG(s,e.layoutBox,i)&&nk(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],o=nT(i[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=t_();nM(o,i,e.layoutBox);let a=t_();r?nM(a,t.applyTransform(n,!0),e.measuredBox):nM(a,i,e.layoutBox);let l=!sc(o),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let o=tJ();nE(o,e.layoutBox,s.layoutBox);let a=tJ();nE(a,i,r.layoutBox),sm(o,a)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function sM(t){iJ.Q.value&&sy.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
9isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function sA(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function sC(t){t.clearSnapshot()}function sE(t){t.clearMeasurements()}function sk(t){t.isLayoutDirty=!1}function sV(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function sD(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function sR(t){t.resolveTargetDelta()}function sO(t){t.calcProjection()}function sj(t){t.resetSkewAndRotation()}function sI(t){t.removeLeadSnapshot()}function sF(t,e,i){t.translate=S(e.translate,0,i),t.scale=S(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function sL(t,e,i,n){t.min=S(e.min,i.min,n),t.max=S(e.max,i.max,n)}function sB(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sU={duration:.45,ease:[.4,0,.1,1]},sN=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),sW=sN("applewebkit/")&&!sN("chrome/")?Math.round:iS.l;function s$(t){t.min=sW(t.min),t.max=sW(t.max)}function sG(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(sf(e)-sf(i)))}function sY(t){return t!==t.root&&t.scroll?.wasRoot}let sH=sb({attachResizeListener:(t,e)=>nx(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sX={current:void 0},sz=sb({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sX.current){let t=new sH({});t.mount(window),t.setOptions({layoutScroll:!0}),sX.current=t}return sX.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sQ(t,e){let i=function(t){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(void 0)??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function sq(t){return!("touch"===t.pointerType||ny.x||ny.y)}function sK(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&ts.Gt.postRender(()=>s(e,nP(e)))}var s_=i(557787);let sZ=(t,e)=>!!e&&(t===e||sZ(t,e.parentElement)),sJ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),s0=new WeakSet;function s1(t){return e=>{"Enter"===e.key&&t(e)}}function s2(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function s5(t){return nw(t)&&!(ny.x||ny.y)}function s3(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&ts.Gt.postRender(()=>s(e,nP(e)))}let s7=new WeakMap,s9=new WeakMap,s8=t=>{let e=s7.get(t.target);e&&e(t)},s4=t=>{t.forEach(s8)},s6={some:0,all:1},rt=function(t,e){if("u"<typeof Proxy)return ez;let i=new Map,n=(i,n)=>ez(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,ez(r,void 0,t,e)),i.get(r))})}({animation:{Feature:class extends nv{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nh(t,e,i)));else if("string"==typeof e)n=nh(t,e,i);else{let s="function"==typeof e?eQ(t,e,i.custom):e;n=Promise.all(na(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nf(),n=!0,s=e=>(i,n)=>{let s=eQ(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function r(r){let{props:o}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<nc;t++){let n=t9[t],s=e.props[n];(t3(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},l=[],h=new Set,u={},c=1/0;for(let e=0;e<np;e++){var d,p;let m=nd[e],f=i[m],v=void 0!==o[m]?o[m]:a[m],g=t3(v),y=m===r?f.isActive:null;!1===y&&(c=e);let x=v===a[m]&&v!==o[m]&&g;if(x&&n&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...u},!f.isActive&&null===y||!v&&!f.prevProp||t5(v)||"boolean"==typeof v)continue;let w=(d=f.prevProp,"string"==typeof(p=v)?p!==d:!!Array.isArray(p)&&!nu(p,d)),P=w||m===r&&f.isActive&&!x&&g||e>c&&g,b=!1,T=Array.isArray(v)?v:[v],S=T.reduce(s(m),{});!1===y&&(S={});let{prevResolvedValues:M={}}=f,A={...M,...S},C=e=>{P=!0,h.has(e)&&(b=!0,h.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);
9i&&(i.liveStyle=!1)};for(let t in A){let e=S[t],i=M[t];if(!u.hasOwnProperty(t))(eK(e)&&eK(i)?nu(e,i):e===i)?void 0!==e&&h.has(t)?C(t):f.protectedKeys[t]=!0:null!=e?C(t):h.add(t)}f.prevProp=v,f.prevResolvedValues=S,f.isActive&&(u={...u,...S}),n&&t.blockInitialAnimation&&(P=!1);let E=x&&w,k=!E||b;P&&k&&l.push(...T.map(e=>{let i={type:m};if("string"==typeof e&&n&&!E&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=eQ(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=nl(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof o.initial){let i=eQ(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),l.push({animation:e})}let m=!!l.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,m?e(l):Promise.resolve()}return{animateChanges:r,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=r(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nf()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();t5(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends nv{constructor(){super(...arguments),this.id=ng++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
9e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends nv{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:o}=i,a={root:n?n.current:void 0,rootMargin:s,threshold:"number"==typeof r?r:s6[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;s9.has(i)||s9.set(i,{});let n=s9.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(s4,{root:t,...e})),n[s]}(a),s7.set(t,l),e.observe(t),()=>{s7.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(){}}},tap:{Feature:class extends nv{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=sQ(t,i),o=t=>{let n=t.currentTarget;if(!s5(t))return;s0.add(n);let r=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),s0.has(n)&&s0.delete(n),s5(t)&&"function"==typeof r&&r(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||sZ(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),(0,s_.s)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=s1(()=>{if(s0.has(i))return;s2(i,"down");let t=s1(()=>{s2(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>s2(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),sJ.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(s3(this.node,e,"Start"),(t,{success:e})=>s3(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends nv{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=e1(nx(this.node.current,"focus",()=>this.onFocus()),nx(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends nv{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=sQ(t,i),o=t=>{if(!sq(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let r=t=>{sq(t)&&(n(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,s)};return n.forEach(t=>{t.addEventListener("pointerenter",o,s)}),r}(t,(t,e)=>(sK(this.node,e,"Start"),t=>sK(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends nv{constructor(){super(...arguments),this.removePointerDownListener=iS.l}onPointerDown(t){this.session=new nR(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nV(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:nY(t),onStart:nY(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&ts.Gt.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=nb(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends nv{constructor(t){super(t),this.removeGroupControls=iS.l,this.removeListeners=iS.l,this.controls=new n$(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||iS.l}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:sz,MeasureLayout:n_},layout:{ProjectionNode:sz,MeasureLayout:n_}},(t,e)=>eb(t)?new ew(e):new ed(e,{allowProjection:t!==r.Fragment}))},144407(t,e,i){"use strict";let n="u">typeof window;i.d(e,{},{B:n})},887508(t,e,i){"use strict";var n=i(144407),s=i(539483);function r(){if(s.r.current=!0,n.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>s.O.current=t.matches;t.addEventListener("change",e),e()}else s.O.current=!1}i.d(e,{U:()=>r})},539483(t,e,i){"use strict";i.d(e,{},{O:{current:null},r:{current:!1}})},764631(t,e,i){"use strict";var n=i(933578),s=i(887508),r=i(539483);function o(){r.r.current||(0,s.U)();
9let[t]=(0,n.useState)(r.O.current);return t}i.d(e,{I:()=>o})},237162(t,e,i){"use strict";var n=i(933578);function s(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}i.d(e,{M:()=>s})},535245(t,e,i){"use strict";var n=i(933578);let s=i(144407).B?n.useLayoutEffect:n.useEffect;i.d(e,{},{E:s})},223227(t,e,i){"use strict";i.d(e,{I:()=>o});var n=i(610657);let s=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var r=i(908058);function o(t,e){let i=!1,o=!0,a={delta:0,timestamp:0,isProcessing:!1},l=()=>i=!0,h=s.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,o=!1,a=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},h=0;function u(e){a.has(e)&&(c.schedule(e),t()),h++,e(l)}let c={schedule:(t,e=!1,r=!1)=>{let o=r&&s?i:n;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(l=t,s){o=!0;return}s=!0,[i,n]=[n,i],i.forEach(u),e&&r.Q.value&&r.Q.value.frameloop[e].push(h),h=0,i.clear(),s=!1,o&&(o=!1,c.process(t))}};return c}(l,e?i:void 0),t),{}),{setup:u,read:c,resolveKeyframes:d,preUpdate:p,update:m,preRender:f,render:v,postRender:g}=h,y=()=>{let s=n.W.useManualTiming?a.timestamp:performance.now();i=!1,n.W.useManualTiming||(a.delta=o?1e3/60:Math.max(Math.min(s-a.timestamp,40),1)),a.timestamp=s,a.isProcessing=!0,u.process(a),c.process(a),d.process(a),p.process(a),m.process(a),f.process(a),v.process(a),g.process(a),a.isProcessing=!1,i&&e&&(o=!1,t(y))};return{schedule:s.reduce((e,n)=>{let s=h[n];return e[n]=(e,n=!1,r=!1)=>(!i&&(i=!0,o=!0,a.isProcessing||t(y)),s.schedule(e,n,r)),e},{}),cancel:t=>{for(let e=0;e<s.length;e++)h[s[e]].cancel(t)},state:a,steps:h}}},694831(t,e,i){"use strict";var n=i(175523);let{schedule:s,cancel:r,state:o,steps:a}=(0,i(223227).I)("u">typeof requestAnimationFrame?requestAnimationFrame:n.l,!0);i.d(e,{},{Gt:s,PP:a,WG:r,uv:o})},55729(t,e,i){"use strict";let n;var s=i(610657),r=i(694831);function o(){n=void 0}let a={now:()=>(void 0===n&&a.set(r.uv.isProcessing||s.W.useManualTiming?r.uv.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(o)}};i.d(e,{},{k:a})},908058(t,e,i){"use strict";i.d(e,{},{Q:{value:null,addProjectionMetrics:null}})},557787(t,e,i){"use strict";var n=i(629217);function s(t){return(0,n.G)(t)&&"offsetHeight"in t}i.d(e,{s:()=>s})},83238(t,e,i){"use strict";let n;var s=i(587238),r=i(708913),o=i(55729),a=i(694831);class l{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=o.k.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=o.k.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 s.v);let i=this.events[t].add(e);return"change"===t?()=>{i(),a.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return n&&n.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=o.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,r.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function h(t,e){return new l(t,e)}i.d(e,{OQ:()=>h})},94830(t,e,i){"use strict";function n(t,e){-1===t.indexOf(e)&&t.push(e)}function s(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{Ai:()=>s,Kq:()=>n})},610657(t,e,i){"use strict";i.d(e,{},{W:{}})},629217(t,e,i){"use strict";function n(t){return"object"==typeof t&&null!==t}i.d(e,{G:()=>n})},175523(t,e,i){"use strict";i.d(e,{},{l:t=>t})},587238(t,e,i){"use strict";var n=i(94830);class s{constructor(){this.subscriptions=[]}add(t){return(0,n.Kq)(this.subscriptions,t),()=>(0,n.Ai)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}i.d(e,{v:()=>s})},708913(t,e,i){"use strict";function n(t,e){return e?1e3/e*t:0}i.d(e,{f:()=>n})},713033(t,e,i){"use strict";var n,s,r,o,a=i(391426),l=i(933578),h=i(15224);function u(t,e){return t+Math.random()*(e-t)}
9(n=r||(r={}))[n.Circle=0]="Circle",n[n.Square=1]="Square",n[n.Strip=2]="Strip",(s=o||(o={}))[s.Positive=1]="Positive",s[s.Negative=-1]="Negative";let c=1e3/60;class d{constructor(t,e,i,n){this.getOptions=e;const{colors:s,initialVelocityX:r,initialVelocityY:a}=this.getOptions();this.context=t,this.x=i,this.y=n,this.w=u(5,20),this.h=u(5,20),this.radius=u(5,10),this.vx="number"==typeof r?u(-r,r):u(r.min,r.max),this.vy="number"==typeof a?u(-a,0):u(a.min,a.max),this.shape=Math.floor(0+3*Math.random()),this.angle=function(t){return t*Math.PI/180}(u(0,360)),this.angularSpin=u(-.2,.2),this.color=s[Math.floor(Math.random()*s.length)],this.rotateY=u(0,1),this.rotationDirection=u(0,1)?o.Positive:o.Negative}update(t){let{gravity:e,wind:i,friction:n,opacity:s,drawShape:a}=this.getOptions(),l=t/c;this.x+=this.vx*l,this.y+=this.vy*l,this.vy+=e*l,this.vx+=i*l,this.vx*=n**l,this.vy*=n**l,this.rotateY>=1&&this.rotationDirection===o.Positive?this.rotationDirection=o.Negative:this.rotateY<=-1&&this.rotationDirection===o.Negative&&(this.rotationDirection=o.Positive);let h=.1*this.rotationDirection*l;if(this.rotateY+=h,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=s,this.context.lineCap="round",this.context.lineWidth=2,a&&"function"==typeof a)a.call(this,this.context);else switch(this.shape){case r.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case r.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case r.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}class p{constructor(t,e){this.x=0,this.y=0,this.w=0,this.h=0,this.lastNumberOfPieces=0,this.tweenProgress=0,this.tweenFrom=0,this.particles=[],this.particlesGenerated=0,this.removeParticleAt=t=>{this.particles.splice(t,1)},this.getParticle=()=>{let t=u(this.x,this.w+this.x),e=u(this.y,this.h+this.y);return new d(this.context,this.getOptions,t,e)},this.animate=t=>{let{canvas:e,context:i,particlesGenerated:n,lastNumberOfPieces:s}=this,{run:r,recycle:o,numberOfPieces:a,debug:l,tweenFunction:h,tweenDuration:u}=this.getOptions();if(!r)return!1;let c=this.particles.length,d=o?c:n;if(d<a){s!==a&&(this.tweenProgress=0,this.tweenFrom=d,this.lastNumberOfPieces=a),this.tweenProgress=Math.min(u,Math.max(0,this.tweenProgress+t));let e=Math.round(h(this.tweenProgress,this.tweenFrom,a,u)-d);for(let t=0;t<e;t++)this.particles.push(this.getParticle());this.particlesGenerated+=e}l&&(i.font="12px sans-serif",i.fillStyle="#333",i.textAlign="right",i.fillText(`Particles: ${c}`,e.width-10,e.height-20));for(let i=this.particles.length-1;i>=0;i--){let n=this.particles[i];n.update(t),(n.y>e.height||n.y<-100||n.x>e.width+100||n.x<-100)&&(o&&d<=a?this.particles[i]=this.getParticle():this.removeParticleAt(i))}return c>0||d<a},this.canvas=t;const i=this.canvas.getContext("2d");if(!i)throw Error("Could not get canvas context");this.context=i,this.getOptions=e}}let m={width:"u">typeof window?window.innerWidth:300,height:"u">typeof window?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548"],opacity:1,debug:!1,tweenFunction:h.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0};class f{constructor(t,e){this.lastFrameTime=0,this.setOptionsWithDefaults=t=>{let e={confettiSource:{x:0,y:0,w:this.canvas.width,h:0}};this._options={...e,...m,...t},Object.assign(this,t.confettiSource)},this.update=(t=0)=>{let{options:{run:e,onConfettiComplete:i,frameRate:n},canvas:s,context:r}=this,o=Math.min(t-this.lastFrameTime,50);if(n&&o<1e3/n){this.rafId=requestAnimationFrame(this.update);return}this.lastFrameTime=t-(n?o%n:0),e&&(r.fillStyle="white",r.clearRect(0,0,s.width,s.height)),this.generator.animate(o)?this.rafId=requestAnimationFrame(this.update):(i&&"function"==typeof i&&this.generator.particlesGenerated>0&&i.call(this,this),this._options.run=!1)},this.reset=()=>{this.generator&&this.generator.particlesGenerated>0&&(this.generator.particlesGenerated=0,this.generator.particles=[],this.generator.lastNumberOfPieces=0)},this.stop=()=>{this.options={run:!1},this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=void 0)},this.canvas=t;const i=this.canvas.getContext("2d");if(!i)throw Error("Could not get canvas context");this.context=i,this.generator=new p(this.canvas,()=>this.options),this.options=e,this.update()}get options(){return this._options}set options(t){let e=this._options?.run,i=this._options?.recycle;this.setOptionsWithDefaults(t),this.generator&&(Object.assign(this.generator,this.options.confettiSource),"boolean"==typeof t.recycle&&t.recycle&&!1===i&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),"boolean"==typeof t.run&&t.run&&!1===e&&this.update()}}let v=l.createRef();class g extends l.Component{constructor(t){super(t),this.canvas=l.createRef(),this.canvas=t.canvasRef||v}componentDidMount(){if(this.canvas.current){let t=y(this.props)[0];this.confetti=new f(this.canvas.current,t)}}componentDidUpdate(){let t=y(this.props)[0];
9this.confetti&&(this.confetti.options=t)}componentWillUnmount(){this.confetti&&this.confetti.stop(),this.confetti=void 0}render(){let[t,e]=y(this.props),i={zIndex:2,position:"absolute",pointerEvents:"none",top:0,left:0,bottom:0,right:0,...e.style};return(0,a.jsx)("canvas",{width:t.width,height:t.height,ref:this.canvas,...e,style:i})}}function y(t){let e={},i={},n=[...Object.keys(m),"confettiSource","drawShape","onConfettiComplete","frameRate"],s=["canvasRef"];for(let r in t){let o=t[r];n.includes(r)?e[r]=o:s.includes(r)?s[r]=o:i[r]=o}return[e,i,{}]}g.defaultProps={...m},g.displayName="ReactConfetti";let x=l.forwardRef((t,e)=>(0,a.jsx)(g,{canvasRef:e,...t}));i.d(e,{},{A:x})}}]);
10//# sourceMappingURL=/packs/js/6061-31bfc631fabae63a.js.map

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.