@snowbomb1/nova-ui 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Box.d.ts +2 -0
- package/dist/chunks/Box-ByLjqYJZ.js +4670 -0
- package/dist/chunks/Box-vMWmmOuo.js +6 -0
- package/dist/components/Box/Box.d.ts +6 -0
- package/dist/components/Box/index.d.ts +1 -0
- package/dist/components/Box/index.js +1 -0
- package/dist/components/Button/Button.d.ts +11 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/FormField/FormField.d.ts +7 -0
- package/dist/components/FormField/index.d.ts +1 -0
- package/dist/components/Header/Header.d.ts +6 -0
- package/dist/components/Header/index.d.ts +1 -0
- package/dist/components/Input/Input.d.ts +8 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Modal/Modal.d.ts +9 -0
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/Select/Select.d.ts +15 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Toggle/Toggle.d.ts +7 -0
- package/dist/components/Toggle/index.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +7 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/TopNav/ThemeToggler.d.ts +1 -0
- package/dist/components/TopNav/TopNav.d.ts +7 -0
- package/dist/components/TopNav/index.d.ts +1 -0
- package/dist/components/Viewer/Viewer.d.ts +15 -0
- package/dist/components/Viewer/ViewerLoader.d.ts +6 -0
- package/dist/components/Viewer/index.d.ts +1 -0
- package/dist/hooks/useKeyboardShortcuts.d.ts +7 -0
- package/dist/hooks/useMediaLoader.d.ts +11 -0
- package/dist/hooks/useTheme.d.ts +6 -0
- package/dist/icons/close.d.ts +6 -0
- package/dist/icons/hamburger.d.ts +6 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +9 -0
- package/dist/nova-ui.css +2 -0
- package/package.json +51 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=e=>{let n={};for(var r in e)t(n,r,{get:e[r],enumerable:!0});return n},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>l(t({},`__esModule`,{value:!0}),e);let f=require(`react`);var p=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),m=s((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case ee:return`SuspenseList`;case E:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case T:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===_)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===T)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=ne.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(re.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){ae||(ae=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function l(){var e=t(this.type);return O[e]||(O[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var p=n.children;if(p!==void 0)if(o)if(ie(p)){for(o=0;o<p.length;o++)f(p[o]);Object.freeze&&Object.freeze(p)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else f(p);if(re.call(n,`key`)){p=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,k[p+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
|
+
let props = %s;
|
|
3
|
+
<%s {...props} />
|
|
4
|
+
React keys must be passed directly to JSX without using spread:
|
|
5
|
+
let props = %s;
|
|
6
|
+
<%s key={someKey} {...props} />`,o,p,m,p),k[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===T&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=require(`react`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),ee=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),T=Symbol.for(`react.lazy`),E=Symbol.for(`react.activity`),te=Symbol.for(`react.client.reference`),ne=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re=Object.prototype.hasOwnProperty,ie=Array.isArray,D=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var ae,O={},oe=m.react_stack_bottom_frame.bind(m,o)(),se=D(i(o)),k={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>ne.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):oe,r?D(i(e)):se)},e.jsxs=function(e,t,n){var r=1e4>ne.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):oe,r?D(i(e)):se)}})()})),h=s(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=p():t.exports=m()})),g=(0,f.createContext)({});function _(e){let t=(0,f.useRef)(null);return t.current===null&&(t.current=e()),t.current}var v=typeof window<`u`,y=v?f.useLayoutEffect:f.useEffect,b=(0,f.createContext)(null);function x(e,t){e.indexOf(t)===-1&&e.push(t)}function S(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var C=(e,t,n)=>n>t?t:n<e?e:n;function ee(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var w=()=>{},T=()=>{};typeof process<`u`&&process.env.NODE_ENV!==`production`&&(w=(e,t,n)=>{!e&&typeof console<`u`&&console.warn(ee(t,n))},T=(e,t,n)=>{if(!e)throw Error(ee(t,n))});var E={},te=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ne(e){return typeof e==`object`&&!!e}var re=e=>/^0[^.\s]+$/u.test(e);function ie(e){let t;return()=>(t===void 0&&(t=e()),t)}var D=e=>e,ae=(e,t)=>n=>t(e(n)),O=(...e)=>e.reduce(ae),oe=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},se=class{constructor(){this.subscriptions=[]}add(e){return x(this.subscriptions,e),()=>S(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},k=e=>e*1e3,A=e=>e/1e3;function ce(e,t){return t?e*(1e3/t):0}var le=new Set;function ue(e,t,n){e||le.has(t)||(console.warn(ee(t,n)),le.add(t))}var de=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,fe=1e-7,pe=12;function me(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=de(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>fe&&++s<pe);return o}function he(e,t,n,r){if(e===t&&n===r)return D;let i=t=>me(t,0,1,e,n);return e=>e===0||e===1?e:de(i(e),t,r)}var ge=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_e=e=>t=>1-e(1-t),ve=he(.33,1.53,.69,.99),ye=_e(ve),be=ge(ye),xe=e=>(e*=2)<1?.5*ye(e):.5*(2-2**(-10*(e-1))),Se=e=>1-Math.sin(Math.acos(e)),Ce=_e(Se),we=ge(Se),Te=he(.42,0,1,1),Ee=he(0,0,.58,1),De=he(.42,0,.58,1),Oe=e=>Array.isArray(e)&&typeof e[0]!=`number`,ke=e=>Array.isArray(e)&&typeof e[0]==`number`,Ae={linear:D,easeIn:Te,easeInOut:De,easeOut:Ee,circIn:Se,circInOut:we,circOut:Ce,backIn:ye,backInOut:be,backOut:ve,anticipate:xe},je=e=>typeof e==`string`,Me=e=>{if(ke(e)){T(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return he(t,n,r,i)}else if(je(e))return T(Ae[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),Ae[e];return e},Ne=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],j={value:null,addProjectionMetrics:null};function Pe(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),t&&j.value&&j.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Fe=40;function Ie(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Ne.reduce((e,n)=>(e[n]=Pe(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=E.useManualTiming?i.timestamp:performance.now();n=!1,E.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,Fe),1)),i.timestamp=a,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Ne.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Ne.length;t++)o[Ne[t]].cancel(e)},state:i,steps:o}}var{schedule:M,cancel:N,state:P,steps:Le}=Ie(typeof requestAnimationFrame<`u`?requestAnimationFrame:D,!0),Re;function ze(){Re=void 0}var F={now:()=>(Re===void 0&&F.set(P.isProcessing||E.useManualTiming?P.timestamp:performance.now()),Re),set:e=>{Re=e,queueMicrotask(ze)}},I={layout:0,mainThread:0,waapi:0},Be=e=>t=>typeof t==`string`&&t.startsWith(e),Ve=Be(`--`),He=Be(`var(--`),Ue=e=>He(e)?We.test(e.split(`/*`)[0].trim()):!1,We=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ge(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var Ke={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},qe={...Ke,transform:e=>C(0,1,e)},Je={...Ke,default:1},Ye=e=>Math.round(e*1e5)/1e5,Xe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ze(e){return e==null}var Qe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,$e=(e,t)=>n=>!!(typeof n==`string`&&Qe.test(n)&&n.startsWith(e)||t&&!Ze(n)&&Object.prototype.hasOwnProperty.call(n,t)),et=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Xe);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},tt=e=>C(0,255,e),nt={...Ke,transform:e=>Math.round(tt(e))},rt={test:$e(`rgb`,`red`),parse:et(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+nt.transform(e)+`, `+nt.transform(t)+`, `+nt.transform(n)+`, `+Ye(qe.transform(r))+`)`};function it(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var at={test:$e(`#`),parse:it,transform:rt.transform},ot=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),L=ot(`deg`),R=ot(`%`),z=ot(`px`),st=ot(`vh`),ct=ot(`vw`),lt=(()=>({...R,parse:e=>R.parse(e)/100,transform:e=>R.transform(e*100)}))(),ut={test:$e(`hsl`,`hue`),parse:et(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+R.transform(Ye(t))+`, `+R.transform(Ye(n))+`, `+Ye(qe.transform(r))+`)`},B={test:e=>rt.test(e)||at.test(e)||ut.test(e),parse:e=>rt.test(e)?rt.parse(e):ut.test(e)?ut.parse(e):at.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?rt.transform(e):ut.transform(e),getAnimatableNone:e=>{let t=B.parse(e);return t.alpha=0,B.transform(t)}},dt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ft(e){return isNaN(e)&&typeof e==`string`&&(e.match(Xe)?.length||0)+(e.match(dt)?.length||0)>0}var pt=`number`,mt=`color`,ht=`var`,gt=`var(`,_t="${}",vt=/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 yt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(vt,e=>(B.test(e)?(r.color.push(a),i.push(mt),n.push(B.parse(e))):e.startsWith(gt)?(r.var.push(a),i.push(ht),n.push(e)):(r.number.push(a),i.push(pt),n.push(parseFloat(e))),++a,_t)).split(_t),indexes:r,types:i}}function bt(e){return yt(e).values}function xt(e){let{split:t,types:n}=yt(e),r=t.length;return e=>{let i=``;for(let a=0;a<r;a++)if(i+=t[a],e[a]!==void 0){let t=n[a];t===pt?i+=Ye(e[a]):t===mt?i+=B.transform(e[a]):i+=e[a]}return i}}var St=e=>typeof e==`number`?0:B.test(e)?B.getAnimatableNone(e):e;function Ct(e){let t=bt(e);return xt(e)(t.map(St))}var V={test:ft,parse:bt,createTransformer:xt,getAnimatableNone:Ct};function wt(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Tt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=wt(s,r,e+1/3),a=wt(s,r,e),o=wt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Et(e,t){return n=>n>0?t:e}var H=(e,t,n)=>e+(t-e)*n,Dt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ot=[at,rt,ut],kt=e=>Ot.find(t=>t.test(e));function At(e){let t=kt(e);if(w(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!t)return!1;let n=t.parse(e);return t===ut&&(n=Tt(n)),n}var jt=(e,t)=>{let n=At(e),r=At(t);if(!n||!r)return Et(e,t);let i={...n};return e=>(i.red=Dt(n.red,r.red,e),i.green=Dt(n.green,r.green,e),i.blue=Dt(n.blue,r.blue,e),i.alpha=H(n.alpha,r.alpha,e),rt.transform(i))},Mt=new Set([`none`,`hidden`]);function Nt(e,t){return Mt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Pt(e,t){return n=>H(e,t,n)}function Ft(e){return typeof e==`number`?Pt:typeof e==`string`?Ue(e)?Et:B.test(e)?jt:zt:Array.isArray(e)?It:typeof e==`object`?B.test(e)?jt:Lt:Et}function It(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Ft(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Lt(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ft(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Rt(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var zt=(e,t)=>{let n=V.createTransformer(t),r=yt(e),i=yt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Mt.has(e)&&!i.values.length||Mt.has(t)&&!r.values.length?Nt(e,t):O(It(Rt(r,i),i.values),n):(w(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,`complex-values-different`),Et(e,t))};function Bt(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?H(e,t,n):Ft(e)(e,t)}var Vt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>M.update(t,e),stop:()=>N(t),now:()=>P.isProcessing?P.timestamp:F.now()}},Ht=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Ut=2e4;function Wt(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function Gt(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Wt(r),Ut);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:A(i)}}var Kt=5;function qt(e,t,n){let r=Math.max(t-Kt,0);return ce(n-e(r),t-r)}var U={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Jt=.001;function Yt({duration:e=U.duration,bounce:t=U.bounce,velocity:n=U.velocity,mass:r=U.mass}){let i,a;w(e<=k(U.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let o=1-t;o=C(U.minDamping,U.maxDamping,o),e=C(U.minDuration,U.maxDuration,A(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Qt(t,o),c=Math.exp(-i);return Jt-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Qt(t**2,o);return(-i(t)+Jt>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-Jt+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Zt(i,a,s);if(e=k(e),isNaN(c))return{stiffness:U.stiffness,damping:U.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Xt=12;function Zt(e,t,n){let r=n;for(let n=1;n<Xt;n++)r-=e(r)/t(r);return r}function Qt(e,t){return e*Math.sqrt(1-t*t)}var $t=[`duration`,`bounce`],en=[`stiffness`,`damping`,`mass`];function tn(e,t){return t.some(t=>e[t]!==void 0)}function nn(e){let t={velocity:U.velocity,stiffness:U.stiffness,damping:U.damping,mass:U.mass,isResolvedFromDuration:!1,...e};if(!tn(e,en)&&tn(e,$t))if(e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*C(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:U.mass,stiffness:i,damping:a}}else{let n=Yt(e);t={...t,...n,mass:U.mass},t.isResolvedFromDuration=!0}return t}function rn(e=U.visualDuration,t=U.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=nn({...n,velocity:-A(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=A(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?U.restSpeed.granular:U.restSpeed.default,i||=v?U.restDelta.granular:U.restDelta.default;let y;if(h<1){let e=Qt(_,h);y=t=>o-Math.exp(-h*_*t)*((m+h*_*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(h===1)y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let b={calculatedDuration:p&&d||null,next:e=>{let t=y(e);if(p)s.done=e>=d;else{let n=e===0?m:0;h<1&&(n=e===0?k(m):qt(y,e,t));let a=Math.abs(n)<=r,c=Math.abs(o-t)<=i;s.done=a&&c}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Wt(b),Ut),t=Ht(t=>b.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return b}rn.applyToOptions=e=>{let t=Gt(e,100,rn);return e.ease=t.ease,e.duration=k(t.duration),e.type=`keyframes`,e};function an({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=rn({keyframes:[f.value,m(f.value)],velocity:qt(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function on(e,t,n){let r=[],i=n||E.mix||Bt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=O(Array.isArray(t)?t[n]||D:t,a)),r.push(a)}return r}function sn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(T(a===t.length,`Both input and output ranges must be the same length`,`range-length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=on(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=oe(e[r],e[r+1],n);return s[r](i)};return n?t=>l(C(e[0],e[a-1],t)):l}function cn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=oe(0,t,r);e.push(H(n,1,i))}}function ln(e){let t=[0];return cn(t,e.length-1),t}function un(e,t){return e.map(e=>e*t)}function dn(e,t){return e.map(()=>t||De).splice(0,e.length-1)}function fn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Oe(r)?r.map(Me):Me(r),a={done:!1,value:t[0]},o=sn(un(n&&n.length===t.length?n:ln(t),e),t,{ease:Array.isArray(i)?i:dn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var pn=e=>e!==null;function mn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(pn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var hn={decay:an,inertia:an,tween:fn,keyframes:fn,spring:rn};function gn(e){typeof e.type==`string`&&(e.type=hn[e.type])}var _n=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},vn=e=>e/100,yn=class extends _n{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==F.now()&&this.tick(F.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},I.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;gn(e);let{type:t=fn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||fn;process.env.NODE_ENV!==`production`&&s!==fn&&T(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,`spring-two-frames`),s!==fn&&typeof o[0]!=`number`&&(this.mixKeyframes=O(vn,Bt(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Wt(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=C(0,1,n)*o}let b=_?{done:!1,value:l[0]}:y.next(v);i&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==an&&(b.value=mn(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return A(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+A(e)}get time(){return A(this.currentTime)}set time(e){e=k(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(F.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=A(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Vt,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(F.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&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,I.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function bn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var W=e=>e*180/Math.PI,xn=e=>Cn(W(Math.atan2(e[1],e[0]))),Sn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:xn,rotateZ:xn,skewX:e=>W(Math.atan(e[1])),skewY:e=>W(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Cn=e=>(e%=360,e<0&&(e+=360),e),wn=xn,Tn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),En=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Dn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Tn,scaleY:En,scale:e=>(Tn(e)+En(e))/2,rotateX:e=>Cn(W(Math.atan2(e[6],e[5]))),rotateY:e=>Cn(W(Math.atan2(-e[2],e[0]))),rotateZ:wn,rotate:wn,skewX:e=>W(Math.atan(e[4])),skewY:e=>W(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function On(e){return e.includes(`scale`)?1:0}function kn(e,t){if(!e||e===`none`)return On(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Dn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Sn,i=t}if(!i)return On(t);let a=r[t],o=i[1].split(`,`).map(jn);return typeof a==`function`?a(o):o[a]}var An=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return kn(n,t)};function jn(e){return parseFloat(e.trim())}var Mn=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Nn=(()=>new Set(Mn))(),Pn=e=>e===Ke||e===z,Fn=new Set([`x`,`y`,`z`]),In=Mn.filter(e=>!Fn.has(e));function Ln(e){let t=[];return In.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith(`scale`)?1:0))}),t}var G={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>kn(t,`x`),y:(e,{transform:t})=>kn(t,`y`)};G.translateX=G.x,G.translateY=G.y;var K=new Set,Rn=!1,zn=!1,Bn=!1;function Vn(){if(zn){let e=Array.from(K).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Ln(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}zn=!1,Rn=!1,K.forEach(e=>e.complete(Bn)),K.clear()}function Hn(){K.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(zn=!0)})}function Un(){Bn=!0,Hn(),Vn(),Bn=!1}var Wn=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(K.add(this),Rn||(Rn=!0,M.read(Hn),M.resolveKeyframes(Vn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}bn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),K.delete(this)}cancel(){this.state===`scheduled`&&(K.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Gn=e=>e.startsWith(`--`);function Kn(e,t,n){Gn(t)?e.style.setProperty(t,n):e.style[t]=n}var qn=ie(()=>window.ScrollTimeline!==void 0),Jn={};function Yn(e,t){let n=ie(e);return()=>Jn[t]??n()}var Xn=Yn(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Zn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Qn={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Zn([0,.65,.55,1]),circOut:Zn([.55,0,1,.45]),backIn:Zn([.31,.01,.66,-.59]),backOut:Zn([.33,1.53,.69,.99])};function $n(e,t){if(e)return typeof e==`function`?Xn()?Ht(e,t):`ease-out`:ke(e)?Zn(e):Array.isArray(e)?e.map(e=>$n(e,t)||Qn.easeOut):Qn[e]}function er(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=$n(s,i);Array.isArray(d)&&(u.easing=d),j.value&&I.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return j.value&&p.finished.finally(()=>{I.waapi--}),p}function tr(e){return typeof e==`function`&&`applyToOptions`in e}function nr({type:e,...t}){return tr(e)&&Xn()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var rr=class extends _n{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,T(typeof e.type!=`string`,`Mini animate() doesn't support "type" as a string.`,`mini-spring`);let c=nr(e);this.animation=er(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=mn(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):Kn(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return A(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+A(e)}get time(){return A(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=k(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&qn()?(this.animation.timeline=e,D):t(this)}},ir={anticipate:xe,backInOut:be,circInOut:we};function ar(e){return e in ir}function or(e){typeof e.ease==`string`&&ar(e.ease)&&(e.ease=ir[e.ease])}var sr=10,cr=class extends rr{constructor(e){or(e),gn(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new yn({...a,autoplay:!1}),s=Math.max(sr,F.now()-this.startTime),c=C(0,sr,s-sr);t.setWithVelocity(o.sample(Math.max(0,s-c)).value,o.sample(s).value,c),o.stop()}},lr=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(V.test(e)||e===`0`)&&!e.startsWith(`url(`));function ur(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function dr(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=lr(i,t),s=lr(a,t);return w(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,`value-not-animatable`),!o||!s?!1:ur(e)||(n===`spring`||tr(n))&&r}function fr(e){e.duration=0,e.type=`keyframes`}var pr=new Set([`opacity`,`clipPath`,`filter`,`transform`]),mr=ie(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function hr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:c}=t.owner.getProps();return mr()&&n&&pr.has(n)&&(n!==`transform`||!c)&&!s&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var gr=40,_r=class extends _n{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=F.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u};this.keyframeResolver=new(l?.KeyframeResolver||Wn)(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=F.now(),dr(e,i,a,o)||((E.instantAnimations||!s)&&l?.(mn(e,n,t)),e[0]=e[e.length-1],fr(n),n.repeat=0);let u={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>gr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!c&&hr(u),f=u.motionValue?.owner?.current,p=d?new cr({...u,element:f}):new yn(u);p.finished.then(()=>{this.notifyFinished()}).catch(D),this.pendingTimeline&&=(this.stopTimeline=p.attachTimeline(this.pendingTimeline),void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Un()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function vr(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var yr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function br(e){let t=yr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var xr=4;function Sr(e,t,n=1){T(n<=xr,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,`max-css-var-depth`);let[r,i]=br(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return te(e)?parseFloat(e):e}return Ue(i)?Sr(i,t,n+1):i}var Cr={type:`spring`,stiffness:500,damping:25,restSpeed:10},wr=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Tr={type:`keyframes`,duration:.8},Er={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Dr=(e,{keyframes:t})=>t.length>2?Tr:Nn.has(e)?e.startsWith(`scale`)?wr(t[1]):Cr:Er,Or=e=>e!==null;function kr(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter(Or),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}function Ar(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function jr(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Ar(n,e)}function Mr({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}var Nr=(e,t,n,r={},i,a)=>o=>{let s=jr(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=k(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Mr(s)||Object.assign(u,Dr(e,u)),u.duration&&=k(u.duration),u.repeatDelay&&=k(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(fr(u),u.delay===0&&(d=!0)),(E.instantAnimations||E.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,fr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=kr(u.keyframes,s);if(e!==void 0){M.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new yn(u):new _r(u)};function Pr(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Fr(e,t,n,r){if(typeof t==`function`){let[i,a]=Pr(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Pr(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Ir(e,t,n){let r=e.getProps();return Fr(r,t,n===void 0?r.custom:n,e)}var Lr=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Mn]),Rr=30,zr=e=>!isNaN(parseFloat(e)),Br={current:void 0},Vr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=F.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=F.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=zr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!==`production`&&ue(!1,`value.onChange(callback) is deprecated. Switch to value.on("change", callback).`),this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new se);let n=this.events[e].add(t);return e===`change`?()=>{n(),M.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Br.current&&Br.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=F.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Rr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Rr);return ce(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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 Hr(e,t){return new Vr(e,t)}var Ur=e=>Array.isArray(e);function Wr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Hr(n))}function Gr(e){return Ur(e)?e[e.length-1]||0:e}function Kr(e,t){let{transitionEnd:n={},transition:r={},...i}=Ir(e,t)||{};for(let t in i={...i,...n},i)Wr(e,t,Gr(i[t]))}var q=e=>!!(e&&e.getVelocity);function qr(e){return!!(q(e)&&e.add)}function Jr(e,t){let n=e.getValue(`willChange`);if(qr(n))return n.add(t);if(!n&&E.WillChange){let n=new E.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Yr(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Xr=`framerAppearId`,Zr=`data-`+Yr(Xr);function Qr(e){return e.props[Zr]}function $r({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ei(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Ar(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&$r(d,t))continue;let o={delay:n,...jr(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating&&!Array.isArray(i)&&i===c&&!o.velocity)continue;let f=!1;if(window.MotionHandoffAnimation){let n=Qr(e);if(n){let e=window.MotionHandoffAnimation(n,t,M);e!==null&&(o.startTime=e,f=!0)}}Jr(e,t);let p=l??e.shouldReduceMotion;r.start(Nr(t,r,i,p&&Lr.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>M.update(()=>{o&&Kr(e,o)});u.length?Promise.all(u).then(t):t()}return u}function ti(e,t,n={}){let r=Ir(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(ei(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return ni(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function ni(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(ti(c,t,{...o,delay:n+(typeof r==`function`?0:r)+vr(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function ri(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>ti(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=ti(e,t,n);else{let i=typeof t==`function`?Ir(e,t,n.custom):t;r=Promise.all(ei(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var ii={test:e=>e===`auto`,parse:e=>e},ai=e=>t=>t.test(e),oi=[Ke,z,R,L,ct,st,ii],si=e=>oi.find(ai(e));function ci(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||re(e)}var li=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function ui(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Xe)||[];if(!r)return e;let i=n.replace(r,``),a=li.has(t)?1:0;return r!==n&&(a*=100),t+`(`+a+i+`)`}var di=/\b([a-z-]*)\(.*?\)/gu,fi={...V,getAnimatableNone:e=>{let t=e.match(di);return t?t.map(ui).join(` `):e}},pi={...Ke,transform:Math.round},mi={rotate:L,rotateX:L,rotateY:L,rotateZ:L,scale:Je,scaleX:Je,scaleY:Je,scaleZ:Je,skew:L,skewX:L,skewY:L,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z,perspective:z,transformPerspective:z,opacity:qe,originX:lt,originY:lt,originZ:z},hi={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,top:z,right:z,bottom:z,left:z,inset:z,insetBlock:z,insetBlockStart:z,insetBlockEnd:z,insetInline:z,insetInlineStart:z,insetInlineEnd:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,paddingBlock:z,paddingBlockStart:z,paddingBlockEnd:z,paddingInline:z,paddingInlineStart:z,paddingInlineEnd:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,marginBlock:z,marginBlockStart:z,marginBlockEnd:z,marginInline:z,marginInlineStart:z,marginInlineEnd:z,fontSize:z,backgroundPositionX:z,backgroundPositionY:z,...mi,zIndex:pi,fillOpacity:qe,strokeOpacity:qe,numOctaves:pi},gi={...hi,color:B,backgroundColor:B,outlineColor:B,fill:B,stroke:B,borderColor:B,borderTopColor:B,borderRightColor:B,borderBottomColor:B,borderLeftColor:B,filter:fi,WebkitFilter:fi},_i=e=>gi[e];function vi(e,t){let n=_i(e);return n!==fi&&(n=V),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var yi=new Set([`auto`,`none`,`0`]);function bi(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!yi.has(t)&&yt(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=vi(n,i)}var xi=class extends Wn{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Ue(r))){let i=Sr(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Lr.has(n)||e.length!==2)return;let[r,i]=e,a=si(r),o=si(i);if(Ge(r)!==Ge(i)&&G[n]){this.needsMeasurement=!0;return}if(a!==o)if(Pn(a)&&Pn(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else G[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||ci(e[t]))&&n.push(t);n.length&&bi(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=G[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=G[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},Si=new Set([`opacity`,`clipPath`,`filter`,`transform`]);function Ci(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var wi=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Ti(e){return ne(e)&&`offsetHeight`in e}var{schedule:Ei,cancel:Di}=Ie(queueMicrotask,!1),J={x:!1,y:!1};function Oi(){return J.x||J.y}function ki(e){return e===`x`||e===`y`?J[e]?null:(J[e]=!0,()=>{J[e]=!1}):J.x||J.y?null:(J.x=J.y=!0,()=>{J.x=J.y=!1})}function Ai(e,t){let n=Ci(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function ji(e){return!(e.pointerType===`touch`||Oi())}function Mi(e,t,n={}){let[r,i,a]=Ai(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!ji(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Ni=(e,t)=>t?e===t?!0:Ni(e,t.parentElement):!1,Pi=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Fi=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Ii(e){return Fi.has(e.tagName)||e.isContentEditable===!0}var Li=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Ri(e){return Li.has(e.tagName)||e.isContentEditable===!0}var zi=new WeakSet;function Bi(e){return t=>{t.key===`Enter`&&e(t)}}function Vi(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Hi=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Bi(()=>{if(zi.has(n))return;Vi(n,`down`);let e=Bi(()=>{Vi(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Vi(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Ui(e){return Pi(e)&&!Oi()}var Wi=new WeakSet;function Gi(e,t,n={}){let[r,i,a]=Ai(e,n),o=e=>{let r=e.currentTarget;if(!Ui(e)||Wi.has(e))return;zi.add(r),n.stopPropagation&&Wi.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),zi.has(r)&&zi.delete(r),Ui(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||Ni(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Ti(e)&&(e.addEventListener(`focus`,e=>Hi(e,i)),!Ii(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Ki(e){return ne(e)&&`ownerSVGElement`in e}var qi=new WeakMap,Ji,Yi=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Ki(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Xi=Yi(`inline`,`width`,`offsetWidth`),Zi=Yi(`block`,`height`,`offsetHeight`);function Qi({target:e,borderBoxSize:t}){qi.get(e)?.forEach(n=>{n(e,{get width(){return Xi(e,t)},get height(){return Zi(e,t)}})})}function $i(e){e.forEach(Qi)}function ea(){typeof ResizeObserver>`u`||(Ji=new ResizeObserver($i))}function ta(e,t){Ji||ea();let n=Ci(e);return n.forEach(e=>{let n=qi.get(e);n||(n=new Set,qi.set(e,n)),n.add(t),Ji?.observe(e)}),()=>{n.forEach(e=>{let n=qi.get(e);n?.delete(t),n?.size||Ji?.unobserve(e)})}}var na=new Set,ra;function ia(){ra=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};na.forEach(t=>t(e))},window.addEventListener(`resize`,ra)}function aa(e){return na.add(e),ra||ia(),()=>{na.delete(e),!na.size&&typeof ra==`function`&&(window.removeEventListener(`resize`,ra),ra=void 0)}}function oa(e,t){return typeof e==`function`?aa(e):ta(e,t)}function sa(e){return Ki(e)&&e.tagName===`svg`}var ca=[...oi,B,V],la=e=>ca.find(ai(e)),ua=()=>({translate:0,scale:1,origin:0,originPoint:0}),da=()=>({x:ua(),y:ua()}),fa=()=>({min:0,max:0}),Y=()=>({x:fa(),y:fa()}),pa=new WeakMap;function ma(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function ha(e){return typeof e==`string`||Array.isArray(e)}var ga=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],_a=[`initial`,...ga];function va(e){return ma(e.animate)||_a.some(t=>ha(e[t]))}function ya(e){return!!(va(e)||e.variants)}function ba(e,t,n){for(let r in t){let i=t[r],a=n[r];if(q(i))e.addValue(r,i);else if(q(a))e.addValue(r,Hr(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Hr(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var xa={current:null},Sa={current:!1},Ca=typeof window<`u`;function wa(){if(Sa.current=!0,Ca)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>xa.current=e.matches;e.addEventListener(`change`,t),t()}else xa.current=!1}var Ta=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Ea={};function Da(e){Ea=e}function Oa(){return Ea}var ka=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Wn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=F.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,M.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=va(t),this.isVariantNode=ya(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&q(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,pa.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Sa.current||wa(),this.shouldReduceMotion=xa.current),process.env.NODE_ENV!==`production`&&ue(this.shouldReduceMotion!==!0,`You have Reduced Motion enabled on your device. Animations may not appear as expected.`,`reduced-motion-disabled`),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),N(this.notifyUpdate),N(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Si.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new rr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:k(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Nn.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&M.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Ea){let t=Ea[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Y()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Ta.length;t++){let n=Ta[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=ba(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Hr(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(te(n)||re(n))?n=parseFloat(n):!la(n)&&V.test(t)&&(n=vi(e,t)),this.setBaseTarget(e,q(n)?n.get():n)),q(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Fr(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!q(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new se),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Ei.render(this.render)}},Aa=class extends ka{constructor(){super(...arguments),this.KeyframeResolver=xi}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;q(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},X=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function ja({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ma({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Na(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Pa(e){return e===void 0||e===1}function Fa({scale:e,scaleX:t,scaleY:n}){return!Pa(e)||!Pa(t)||!Pa(n)}function Ia(e){return Fa(e)||La(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function La(e){return Ra(e.x)||Ra(e.y)}function Ra(e){return e&&e!==`0%`}function za(e,t,n){return n+t*(e-n)}function Ba(e,t,n,r,i){return i!==void 0&&(e=za(e,i,r)),za(e,n,r)+t}function Va(e,t=0,n=1,r,i){e.min=Ba(e.min,t,n,r,i),e.max=Ba(e.max,t,n,r,i)}function Ha(e,{x:t,y:n}){Va(e.x,t.translate,t.scale,t.originPoint),Va(e.y,n.translate,n.scale,n.originPoint)}var Ua=.999999999999,Wa=1.0000000000001;function Ga(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Ja(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Ha(e,o)),r&&Ia(a.latestValues)&&Ja(e,a.latestValues))}t.x<Wa&&t.x>Ua&&(t.x=1),t.y<Wa&&t.y>Ua&&(t.y=1)}function Ka(e,t){e.min+=t,e.max+=t}function qa(e,t,n,r,i=.5){Va(e,t,n,H(e.min,e.max,i),r)}function Ja(e,t){qa(e.x,t.x,t.scaleX,t.scale,t.originX),qa(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ya(e,t){return ja(Na(e.getBoundingClientRect(),t))}function Xa(e,t,n){let r=Ya(e,n),{scroll:i}=t;return i&&(Ka(r.x,i.offset.x),Ka(r.y,i.offset.y)),r}var Za={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Qa=Mn.length;function $a(e,t,n){let r=``,i=!0;for(let a=0;a<Qa;a++){let o=Mn[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===(o.startsWith(`scale`)?1:0);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=wi(s,hi[o]);if(!c){i=!1;let t=Za[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function eo(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Nn.has(e)){o=!0;continue}else if(Ve(e)){i[e]=n;continue}else{let t=wi(n,hi[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=$a(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function to(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function no(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ro={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(z.test(e))e=parseFloat(e);else return e;return`${no(e,t.target.x)}% ${no(e,t.target.y)}%`}},io={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=V.parse(e);if(i.length>5)return r;let a=V.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=H(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},ao={borderRadius:{...ro,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:ro,borderTopRightRadius:ro,borderBottomLeftRadius:ro,borderBottomRightRadius:ro,boxShadow:io};function oo(e,{layout:t,layoutId:n}){return Nn.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!ao[e]||e===`opacity`)}function so(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(q(r[t])||i&&q(i[t])||oo(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function co(e){return window.getComputedStyle(e)}var lo=class extends Aa{constructor(){super(...arguments),this.type=`html`,this.renderInstance=to}readValueFromInstance(e,t){if(Nn.has(t))return this.projection?.isProjecting?On(t):An(e,t);{let n=co(e),r=(Ve(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ya(e,t)}build(e,t,n){eo(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return so(e,t,n)}},uo={offset:`stroke-dashoffset`,array:`stroke-dasharray`},fo={offset:`strokeDashoffset`,array:`strokeDasharray`};function po(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?uo:fo;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var mo=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function ho(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(eo(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of mo)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&po(d,i,a,o,!1)}var go=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`]),_o=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function vo(e,t,n,r){for(let n in to(e,t,void 0,r),t.attrs)e.setAttribute(go.has(n)?n:Yr(n),t.attrs[n])}function yo(e,t,n){let r=so(e,t,n);for(let n in e)if(q(e[n])||q(t[n])){let t=Mn.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var bo=class extends Aa{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Y}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Nn.has(t)){let e=_i(t);return e&&e.default||0}return t=go.has(t)?t:Yr(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return yo(e,t,n)}build(e,t,n){ho(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){vo(e,t,n,r)}mount(e){this.isSVGTag=_o(e.tagName),super.mount(e)}},xo=_a.length;function So(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&So(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<xo;n++){let r=_a[n],i=e.props[r];(ha(i)||i===!1)&&(t[r]=i)}return t}function Co(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var wo=[...ga].reverse(),To=ga.length;function Eo(e){return t=>Promise.all(t.map(({animation:t,options:n})=>ri(e,t,n)))}function Do(e){let t=Eo(e),n=Ao(),r=!0,i=t=>(n,r)=>{let i=Ir(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(n){t=n(e)}function o(a){let{props:o}=e,s=So(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;t<To;t++){let f=wo[t],p=n[f],m=o[f]===void 0?s[f]:o[f],h=ha(m),g=f===a?p.isActive:null;g===!1&&(d=t);let _=m===s[f]&&m!==o[f]&&h;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),p.protectedKeys={...u},!p.isActive&&g===null||!m&&!p.prevProp||ma(m)||typeof m==`boolean`)continue;if(f===`exit`&&p.isActive&&g!==!0){p.prevResolvedValues&&(u={...u,...p.prevResolvedValues});continue}let v=Oo(p.prevProp,m),y=v||f===a&&p.isActive&&!_&&h||t>d&&h,b=!1,x=Array.isArray(m)?m:[m],S=x.reduce(i(f),{});g===!1&&(S={});let{prevResolvedValues:C={}}=p,ee={...C,...S},w=t=>{y=!0,l.has(t)&&(b=!0,l.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in ee){let t=S[e],n=C[e];if(u.hasOwnProperty(e))continue;let r=!1;r=Ur(t)&&Ur(n)?!Co(t,n):t!==n,r?t==null?l.add(e):w(e):t!==void 0&&l.has(e)?w(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(y=!1);let T=_&&v;y&&(!T||b)&&c.push(...x.map(t=>{let n={type:f};if(typeof t==`string`&&r&&!T&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Ir(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=vr(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(l.size){let t={};if(typeof o.initial!=`boolean`){let n=Ir(e,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(t.transition=n.transition)}l.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(o.initial===!1||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(c):Promise.resolve()}function s(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Ao()}}}function Oo(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Co(t,e):!1}function ko(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ao(){return{animate:ko(!0),whileInView:ko(),whileHover:ko(),whileTap:ko(),whileDrag:ko(),whileFocus:ko(),exit:ko()}}function jo(e,t){e.min=t.min,e.max=t.max}function Z(e,t){jo(e.x,t.x),jo(e.y,t.y)}function Mo(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var No=1e-4,Po=1-No,Fo=1+No,Io=.01,Lo=0-Io,Ro=0+Io;function Q(e){return e.max-e.min}function zo(e,t,n){return Math.abs(e-t)<=n}function Bo(e,t,n,r=.5){e.origin=r,e.originPoint=H(t.min,t.max,e.origin),e.scale=Q(n)/Q(t),e.translate=H(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Po&&e.scale<=Fo||isNaN(e.scale))&&(e.scale=1),(e.translate>=Lo&&e.translate<=Ro||isNaN(e.translate))&&(e.translate=0)}function Vo(e,t,n,r){Bo(e.x,t.x,n.x,r?r.originX:void 0),Bo(e.y,t.y,n.y,r?r.originY:void 0)}function Ho(e,t,n){e.min=n.min+t.min,e.max=e.min+Q(t)}function Uo(e,t,n){Ho(e.x,t.x,n.x),Ho(e.y,t.y,n.y)}function Wo(e,t,n){e.min=t.min-n.min,e.max=e.min+Q(t)}function Go(e,t,n){Wo(e.x,t.x,n.x),Wo(e.y,t.y,n.y)}function Ko(e,t,n,r,i){return e-=t,e=za(e,1/n,r),i!==void 0&&(e=za(e,1/i,r)),e}function qo(e,t=0,n=1,r=.5,i,a=e,o=e){if(R.test(t)&&(t=parseFloat(t),t=H(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=H(a.min,a.max,r);e===a&&(s-=t),e.min=Ko(e.min,t,n,s,i),e.max=Ko(e.max,t,n,s,i)}function Jo(e,t,[n,r,i],a,o){qo(e,t[n],t[r],t[i],t.scale,a,o)}var Yo=[`x`,`scaleX`,`originX`],Xo=[`y`,`scaleY`,`originY`];function Zo(e,t,n,r){Jo(e.x,t,Yo,n?n.x:void 0,r?r.x:void 0),Jo(e.y,t,Xo,n?n.y:void 0,r?r.y:void 0)}function Qo(e){return e.translate===0&&e.scale===1}function $o(e){return Qo(e.x)&&Qo(e.y)}function es(e,t){return e.min===t.min&&e.max===t.max}function ts(e,t){return es(e.x,t.x)&&es(e.y,t.y)}function ns(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rs(e,t){return ns(e.x,t.x)&&ns(e.y,t.y)}function is(e){return Q(e.x)/Q(e.y)}function as(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function $(e){return[e(`x`),e(`y`)]}function os(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var ss=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],cs=ss.length,ls=e=>typeof e==`string`?parseFloat(e):e,us=e=>typeof e==`number`||z.test(e);function ds(e,t,n,r,i,a){i?(e.opacity=H(0,n.opacity??1,ps(r)),e.opacityExit=H(t.opacity??1,0,ms(r))):a&&(e.opacity=H(t.opacity??1,n.opacity??1,r));for(let i=0;i<cs;i++){let a=`border${ss[i]}Radius`,o=fs(t,a),s=fs(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||us(o)===us(s)?(e[a]=Math.max(H(ls(o),ls(s),r),0),(R.test(s)||R.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=H(t.rotate||0,n.rotate||0,r))}function fs(e,t){return e[t]===void 0?e.borderRadius:e[t]}var ps=hs(0,.5,Ce),ms=hs(.5,.95,D);function hs(e,t,n){return r=>r<e?0:r>t?1:n(oe(e,t,r))}function gs(e,t,n){let r=q(e)?e:Hr(e);return r.start(Nr(``,r,t,n)),r.animation}function _s(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var vs=(e,t)=>e.depth-t.depth,ys=class{constructor(){this.children=[],this.isDirty=!1}add(e){x(this.children,e),this.isDirty=!0}remove(e){S(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(vs),this.isDirty=!1,this.children.forEach(e)}};function bs(e,t){let n=F.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(N(r),e(a-t))};return M.setup(r,!0),()=>N(r)}function xs(e){return q(e)?e.get():e}var Ss=class{constructor(){this.members=[]}add(e){x(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&r.isConnected===!1&&n.isPresent!==!1&&!n.snapshot&&S(this.members,n)}e.scheduleRender()}remove(e){if(S(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t=this.members.findIndex(t=>e===t);if(t===0)return!1;let n;for(let e=t;e>=0;e--){let t=this.members[e],r=t.instance;if(t.isPresent!==!1&&(!r||r.isConnected!==!1)){n=t;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender();let r=n.options.layoutDependency,i=e.options.layoutDependency;if(!(r!==void 0&&i!==void 0&&r===i)){let r=n.instance;r&&r.isConnected===!1&&!n.snapshot||(e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0))}let{crossfade:a}=e.options;a===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}},Cs={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ws={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Ts=[``,`X`,`Y`,`Z`],Es=1e3,Ds=0;function Os(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ks(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Qr(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,M,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ks(r)}function As({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Ds++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,j.value&&(ws.nodes=ws.calculatedTargetDeltas=ws.calculatedProjections=0),this.nodes.forEach(Ns),this.nodes.forEach(Bs),this.nodes.forEach(Vs),this.nodes.forEach(Ps),j.addProjectionMetrics&&j.addProjectionMetrics(ws)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ys)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new se),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Ki(t)&&!sa(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;M.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=bs(i,250),Cs.hasAnimatedSinceResize&&(Cs.hasAnimatedSinceResize=!1,this.nodes.forEach(zs)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Js,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!rs(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...jr(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||zs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),N(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(Hs),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ks(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Is);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ls);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Rs),this.nodes.forEach(js),this.nodes.forEach(Ms)):this.nodes.forEach(Ls),this.clearAllSnapshots();let e=F.now();P.delta=C(0,1e3/60,e-P.timestamp),P.timestamp=e,P.isProcessing=!0,Le.update.process(P),Le.preRender.process(P),Le.render.process(P),P.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ei.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Fs),this.sharedNodes.forEach(Us)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,M.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){M.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Q(this.snapshot.measuredBox.x)&&!Q(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Y(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!$o(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Ia(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Qs(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Y();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ec))){let{scroll:e}=this.root;e&&(Ka(t.x,e.offset.x),Ka(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Y();if(Z(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Z(t,e),Ka(t.x,i.offset.x),Ka(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=Y();Z(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Ja(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Ia(r.latestValues)&&Ja(n,r.latestValues)}return Ia(this.latestValues)&&Ja(n,this.latestValues),n}removeTransform(e){let t=Y();Z(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!Ia(n.latestValues))continue;Fa(n.latestValues)&&n.updateSnapshot();let r=Y();Z(r,n.measurePageBox()),Zo(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Ia(this.latestValues)&&Zo(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.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!==P.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=P.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Y(),this.targetWithTransforms=Y()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Uo(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Z(this.target,this.layout.layoutBox),Ha(this.target,this.targetDelta)):Z(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),j.value&&ws.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Fa(this.parent.latestValues)||La(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y(),this.relativeTargetOrigin=Y(),Go(this.relativeTargetOrigin,t,n),Z(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===P.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Z(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Ga(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Y());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Mo(this.prevProjectionDelta.x,this.projectionDelta.x),Mo(this.prevProjectionDelta.y,this.projectionDelta.y)),Vo(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!as(this.projectionDelta.x,this.prevProjectionDelta.x)||!as(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),j.value&&ws.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=da(),this.projectionDelta=da(),this.projectionDeltaWithTransform=da()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=da();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=Y(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(qs));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;Ws(a.x,e.x,n),Ws(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Go(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ks(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&ts(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=Y(),Z(d,this.relativeTarget)),s&&(this.animationValues=i,ds(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(N(this.pendingAnimation),void 0),this.pendingAnimation=M.update(()=>{Cs.hasAnimatedSinceResize=!0,I.layout++,this.motionValue||=Hr(0),this.currentAnimation=gs(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{I.layout--},onComplete:()=>{I.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Es),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&$s(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Y();let t=Q(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Q(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Z(t,n),Ja(t,i),Vo(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ss),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Os(`z`,e,r,this.animationValues);for(let t=0;t<Ts.length;t++)Os(`rotate${Ts[t]}`,e,r,this.animationValues),Os(`skew${Ts[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=xs(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=xs(t?.pointerEvents)||``),this.hasProjected&&!Ia(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=os(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit,ao){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=ao[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?xs(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Is),this.root.sharedNodes.clear()}}}function js(e){e.updateLayout()}function Ms(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i===`size`?$(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Q(r);r.min=n[e].min,r.max=r.min+i}):$s(i,t.layoutBox,n)&&$(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Q(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=da();Vo(o,n,t.layoutBox);let s=da();a?Vo(s,e.applyTransform(r,!0),t.measuredBox):Vo(s,n,t.layoutBox);let c=!$o(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=Y();Go(o,t.layoutBox,i.layoutBox);let s=Y();Go(s,n,a.layoutBox),rs(o,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Ns(e){j.value&&ws.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Ps(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Fs(e){e.clearSnapshot()}function Is(e){e.clearMeasurements()}function Ls(e){e.isLayoutDirty=!1}function Rs(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function zs(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Bs(e){e.resolveTargetDelta()}function Vs(e){e.calcProjection()}function Hs(e){e.resetSkewAndRotation()}function Us(e){e.removeLeadSnapshot()}function Ws(e,t,n){e.translate=H(t.translate,0,n),e.scale=H(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Gs(e,t,n,r){e.min=H(t.min,n.min,r),e.max=H(t.max,n.max,r)}function Ks(e,t,n,r){Gs(e.x,t.x,n.x,r),Gs(e.y,t.y,n.y,r)}function qs(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Js={duration:.45,ease:[.4,0,.1,1]},Ys=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Xs=Ys(`applewebkit/`)&&!Ys(`chrome/`)?Math.round:D;function Zs(e){e.min=Xs(e.min),e.max=Xs(e.max)}function Qs(e){Zs(e.x),Zs(e.y)}function $s(e,t,n){return e===`position`||e===`preserve-aspect`&&!zo(is(t),is(n),.2)}function ec(e){return e!==e.root&&e.scroll?.wasRoot}var tc=As({attachResizeListener:(e,t)=>_s(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),nc={current:void 0},rc=As({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!nc.current){let e=new tc({});e.mount(window),e.setOptions({layoutScroll:!0}),nc.current=e}return nc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),ic=(0,f.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function ac(e=!0){let t=(0,f.useContext)(b);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,f.useId)();(0,f.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,f.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var oc=(0,f.createContext)({strict:!1}),sc={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`]},cc=!1;function lc(){if(cc)return;let e={};for(let t in sc)e[t]={isEnabled:e=>sc[t].some(t=>!!e[t])};Da(e),cc=!0}function uc(){return lc(),Oa()}function dc(e){let t=uc();for(let n in e)t[n]={...t[n],...e[n]};Da(t)}var fc=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function pc(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||fc.has(e)}var mc=c({default:()=>hc}),hc,gc=o((()=>{throw hc={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),_c=e=>!pc(e);function vc(e){typeof e==`function`&&(_c=t=>t.startsWith(`on`)?!pc(t):e(t))}try{vc((gc(),d(mc)).default)}catch{}function yc(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||(_c(i)||n===!0&&pc(i)||!t&&!pc(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var bc=(0,f.createContext)({});function xc(e,t){if(va(e)){let{initial:t,animate:n}=e;return{initial:t===!1||ha(t)?t:void 0,animate:ha(n)?n:void 0}}return e.inherit===!1?{}:t}function Sc(e){let{initial:t,animate:n}=xc(e,(0,f.useContext)(bc));return(0,f.useMemo)(()=>({initial:t,animate:n}),[Cc(t),Cc(n)])}function Cc(e){return Array.isArray(e)?e.join(` `):e}var wc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Tc(e,t,n){for(let r in t)!q(t[r])&&!oo(r,n)&&(e[r]=t[r])}function Ec({transformTemplate:e},t){return(0,f.useMemo)(()=>{let n=wc();return eo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Dc(e,t){let n=e.style||{},r={};return Tc(r,n,e),Object.assign(r,Ec(e,t)),r}function Oc(e,t){let n={},r=Dc(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var kc=()=>({...wc(),attrs:{}});function Ac(e,t,n,r){let i=(0,f.useMemo)(()=>{let n=kc();return ho(n,t,_o(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Tc(t,e.style,e),i.style={...t,...i.style}}return i}var jc=[`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 Mc(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(jc.indexOf(e)>-1||/[A-Z]/u.test(e))}function Nc(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??Mc(e)?Ac:Oc)(t,r,i,e),c=yc(t,typeof e==`string`,a),l=e===f.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,f.useMemo)(()=>q(u)?u.get():u,[u]);return(0,f.createElement)(e,{...l,children:d})}function Pc({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Fc(n,r,i,e),renderState:t()}}function Fc(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=xs(a[e]);let{initial:o,animate:s}=e,c=va(e),l=ya(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!ma(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Fr(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Ic=e=>(t,n)=>{let r=(0,f.useContext)(bc),i=(0,f.useContext)(b),a=()=>Pc(e,t,r,i);return n?a():_(a)},Lc=Ic({scrapeMotionValuesFromProps:so,createRenderState:wc}),Rc=Ic({scrapeMotionValuesFromProps:yo,createRenderState:kc}),zc=Symbol.for(`motionComponentSymbol`);function Bc(e,t,n){let r=(0,f.useRef)(n);(0,f.useInsertionEffect)(()=>{r.current=n});let i=(0,f.useRef)(null);return(0,f.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var Vc=(0,f.createContext)({});function Hc(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Uc(e,t,n,r,i,a){let{visualElement:o}=(0,f.useContext)(bc),s=(0,f.useContext)(oc),c=(0,f.useContext)(b),l=(0,f.useContext)(ic),u=l.reducedMotion,d=l.skipAnimations,p=(0,f.useRef)(null),m=(0,f.useRef)(!1);r||=s.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),m.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let h=p.current,g=(0,f.useContext)(Vc);h&&!h.projection&&i&&(h.type===`html`||h.type===`svg`)&&Wc(p.current,n,i,g);let _=(0,f.useRef)(!1);(0,f.useInsertionEffect)(()=>{h&&_.current&&h.update(n,c)});let v=n[Zr],x=(0,f.useRef)(!!v&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return y(()=>{m.current=!0,h&&(_.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),x.current&&h.animationState&&h.animationState.animateChanges())}),(0,f.useEffect)(()=>{h&&(!x.current&&h.animationState&&h.animationState.animateChanges(),x.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),!1),h.enteringChildren=void 0)}),h}function Wc(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Gc(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Hc(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function Gc(e){if(e)return e.options.allowProjection===!1?Gc(e.parent):e.projection}var Kc=h();function qc(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&dc(r);let a=n?n===`svg`:Mc(e),o=a?Rc:Lc;function s(n,s){let c,l={...(0,f.useContext)(ic),...n,layoutId:Jc(n)},{isStatic:u}=l,d=Sc(n),p=o(n,u);if(!u&&v){Yc(l,r);let t=Xc(l);c=t.MeasureLayout,d.visualElement=Uc(e,p,l,i,t.ProjectionNode,a)}return(0,Kc.jsxs)(bc.Provider,{value:d,children:[c&&d.visualElement?(0,Kc.jsx)(c,{visualElement:d.visualElement,...l}):null,Nc(e,n,Bc(p,d.visualElement,s),p,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,f.forwardRef)(s);return c[zc]=e,c}function Jc({layoutId:e}){let t=(0,f.useContext)(g).id;return t&&e!==void 0?t+`-`+e:e}function Yc(e,t){let n=(0,f.useContext)(oc).strict;if(process.env.NODE_ENV!==`production`&&t&&n){let t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?w(!1,t,`lazy-strict-mode`):T(!1,t,`lazy-strict-mode`)}}function Xc(e){let{drag:t,layout:n}=uc();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Zc(e,t){if(typeof Proxy>`u`)return qc;let n=new Map,r=(n,r)=>qc(n,r,e,t);return new Proxy((e,t)=>(process.env.NODE_ENV!==`production`&&ue(!1,`motion() is deprecated. Use motion.create() instead.`),r(e,t)),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,qc(a,void 0,e,t)),n.get(a))})}var Qc=(e,t)=>t.isSVG??Mc(e)?new bo(t):new lo(t,{allowProjection:e!==f.Fragment}),$c=class extends X{constructor(e){super(e),e.animationState||=Do(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();ma(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},el=0,tl=class extends X{constructor(){super(...arguments),this.id=el++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}},nl={animation:{Feature:$c},exit:{Feature:tl}};function rl(e){return{point:{x:e.pageX,y:e.pageY}}}var il=e=>t=>Pi(t)&&e(t,rl(t));function al(e,t,n,r){return _s(e,t,il(n),r)}var ol=({current:e})=>e?e.ownerDocument.defaultView:null,sl=(e,t)=>Math.abs(e-t);function cl(e,t){let n=sl(e.x,t.x),r=sl(e.y,t.y);return Math.sqrt(n**2+r**2)}var ll=new Set([`auto`,`scroll`]),ul=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=pl(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=cl(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=P;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=dl(t,this.transformPagePoint),M.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=pl(e.type===`pointercancel`?this.lastMoveEventInfo:dl(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Pi(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=dl(rl(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=P;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,pl(s,this.history)),this.removeListeners=O(al(this.contextWindow,`pointermove`,this.handlePointerMove),al(this.contextWindow,`pointerup`,this.handlePointerUp),al(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(ll.has(e.overflowX)||ll.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener(`scroll`,this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),M.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),N(this.updatePoint)}};function dl(e,t){return t?{point:t(e.point)}:e}function fl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pl({point:e},t){return{point:e,delta:fl(e,hl(t)),offset:fl(e,ml(t)),velocity:gl(t,.1)}}function ml(e){return e[0]}function hl(e){return e[e.length-1]}function gl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=hl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>k(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>k(t)*2&&(r=e[1]);let a=A(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function _l(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?H(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?H(n,e,r.max):Math.min(e,n)),e}function vl(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function yl(e,{top:t,left:n,bottom:r,right:i}){return{x:vl(e.x,n,i),y:vl(e.y,t,r)}}function bl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function xl(e,t){return{x:bl(e.x,t.x),y:bl(e.y,t.y)}}function Sl(e,t){let n=.5,r=Q(e),i=Q(t);return i>r?n=oe(t.min,t.max-r,e.min):r>i&&(n=oe(e.min,e.max-i,t.min)),C(0,1,n)}function Cl(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var wl=.35;function Tl(e=wl){return e===!1?e=0:e===!0&&(e=wl),{x:El(e,`left`,`right`),y:El(e,`top`,`bottom`)}}function El(e,t,n){return{min:Dl(e,t),max:Dl(e,n)}}function Dl(e,t){return typeof e==`number`?e:e[t]||0}var Ol=new WeakMap,kl=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Y(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(rl(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ki(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$(e=>{let t=this.getAxisMotionValue(e).get()||0;if(R.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Q(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&M.update(()=>i(e,t),!1,!0),Jr(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Nl(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&M.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new ul(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:ol(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&M.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Ml(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=_l(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Hc(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=yl(n.layoutBox,e):this.constraints=!1,this.elastic=Tl(t),r!==this.constraints&&!Hc(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&$(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Cl(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Hc(e))return!1;let n=e.current;T(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.",`drag-constraints-ref`);let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=Xa(n,r.root,this.visualElement.getTransformPagePoint()),a=xl(r.layout.layoutBox,i);if(t){let e=t(Ma(a));this.hasMutatedConstraints=!!e,e&&(a=ja(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=$(o=>{if(!Ml(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Jr(this.visualElement,e),n.start(Nr(e,n,0,t,this.visualElement,!1))}stopAnimation(){$(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){$(t=>{let{drag:n}=this.getProps();if(!Ml(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-H(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Hc(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};$(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Sl({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),$(t=>{if(!Ml(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(H(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Ol.set(this.visualElement,this);let e=this.visualElement.current,t=al(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Ri(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Hc(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=jl(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),M.read(r);let o=_s(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&($(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=wl,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Al(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function jl(e,t,n){let r=oa(e,Al(n)),i=oa(t,Al(n));return()=>{r(),i()}}function Ml(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Nl(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Pl=class extends X{constructor(e){super(e),this.removeGroupControls=D,this.removeListeners=D,this.controls=new kl(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||D}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Fl=e=>(t,n)=>{e&&M.update(()=>e(t,n),!1,!0)},Il=class extends X{constructor(){super(...arguments),this.removePointerDownListener=D}onPointerDown(e){this.session=new ul(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ol(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Fl(e),onStart:Fl(t),onMove:Fl(n),onEnd:(e,t)=>{delete this.session,r&&M.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=al(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Ll=!1,Rl=class extends f.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Ll&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Cs.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Ll=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||M.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Ei.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Ll=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function zl(e){let[t,n]=ac(),r=(0,f.useContext)(g);return(0,Kc.jsx)(Rl,{...e,layoutGroup:r,switchLayoutGroup:(0,f.useContext)(Vc),isPresent:t,safeToRemove:n})}var Bl={pan:{Feature:Il},drag:{Feature:Pl,ProjectionNode:rc,MeasureLayout:zl}};function Vl(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&M.postRender(()=>i(t,rl(t)))}var Hl=class extends X{mount(){let{current:e}=this.node;e&&(this.unmount=Mi(e,(e,t)=>(Vl(this.node,t,`Start`),e=>Vl(this.node,e,`End`))))}unmount(){}},Ul=class extends X{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!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=O(_s(this.node.current,`focus`,()=>this.onFocus()),_s(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Wl(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&M.postRender(()=>i(t,rl(t)))}var Gl=class extends X{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Gi(e,(e,t)=>(Wl(this.node,t,`Start`),(e,{success:t})=>Wl(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Kl=new WeakMap,ql=new WeakMap,Jl=e=>{let t=Kl.get(e.target);t&&t(e)},Yl=e=>{e.forEach(Jl)};function Xl({root:e,...t}){let n=e||document;ql.has(n)||ql.set(n,{});let r=ql.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Yl,{root:e,...t})),r[i]}function Zl(e,t,n){let r=Xl(t);return Kl.set(e,n),r.observe(e),()=>{Kl.delete(e),r.unobserve(e)}}var Ql={some:0,all:1},$l=class extends X{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Ql[r]};return Zl(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)})}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(eu(e,t))&&this.startObserver()}unmount(){}};function eu({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var tu={inView:{Feature:$l},tap:{Feature:Gl},focus:{Feature:Ul},hover:{Feature:Hl}},nu={layout:{ProjectionNode:rc,MeasureLayout:zl}},ru={...nl,...tu,...Bl,...nu},iu=Zc(ru,Qc);const au=`box-module__box___FP5Js`;var ou={box:`box-module__box___FP5Js`};const su=({children:e,position:t})=>(0,Kc.jsx)(iu.div,{className:ou.box,"data-position":t,children:e});Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return Ti}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return ic}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return iu}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return ac}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return su}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return h}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Box';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../chunks/Box-vMWmmOuo.js`);exports.Box=e.t;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TooltipPosition } from '../Tooltip/Tooltip';
|
|
2
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'icon';
|
|
3
|
+
export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
6
|
+
variant?: ButtonVariant;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
disabledMessage?: string;
|
|
9
|
+
tooltipPosition?: TooltipPosition;
|
|
10
|
+
}
|
|
11
|
+
export declare const Button: ({ children, onClick, variant, disabled, disabledMessage, tooltipPosition, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Button';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LabelHTMLAttributes } from 'react';
|
|
2
|
+
export interface FormFieldProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
label: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const FormField: ({ label, description, children }: FormFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormField';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Header';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
2
|
+
value: string | undefined;
|
|
3
|
+
onChange: (newValue: string) => void;
|
|
4
|
+
autoComplete?: "on" | "off";
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
suggestions?: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare const Input: ({ value, onChange, autoComplete, disabled, suggestions, placeholder, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Input';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface ModalProps {
|
|
2
|
+
isVisible: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
size?: 's' | 'm' | 'l' | 'xl';
|
|
6
|
+
header?: React.ReactNode;
|
|
7
|
+
footer?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const Modal: ({ isVisible, onClose, size, header, footer, children }: ModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Modal';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SelectHTMLAttributes } from 'react';
|
|
2
|
+
export type Option = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string | number;
|
|
5
|
+
};
|
|
6
|
+
export interface SelectProps<T> extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'onChange' | 'value'> {
|
|
7
|
+
selectedOption?: T;
|
|
8
|
+
selectType?: "multi" | "single";
|
|
9
|
+
autoFilter?: boolean;
|
|
10
|
+
options: Option[];
|
|
11
|
+
onChange: (option: T) => void;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const Select: <T extends Option | Option[]>({ selectedOption, selectType, autoFilter, options, onChange, placeholder, disabled, className, name, id, required, ...htmlProps }: SelectProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Select';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Toggle';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
2
|
+
export interface TooltipProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
message?: string;
|
|
5
|
+
position?: TooltipPosition;
|
|
6
|
+
}
|
|
7
|
+
export declare const Tooltip: ({ children, message, position }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tooltip';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ThemeToggler: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TopNav';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface VideoProps {
|
|
2
|
+
controls?: boolean;
|
|
3
|
+
loop?: boolean;
|
|
4
|
+
autoPlay?: boolean;
|
|
5
|
+
muted?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface ViewerProps {
|
|
8
|
+
src: string;
|
|
9
|
+
alt?: string;
|
|
10
|
+
video?: VideoProps;
|
|
11
|
+
thumbnailWidth?: string;
|
|
12
|
+
onError?: (error: Error) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const Viewer: ({ src, alt, video, thumbnailWidth, onError }: ViewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Viewer';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface UseMediaLoaderProps {
|
|
2
|
+
src: string;
|
|
3
|
+
onError?: (error: Error) => void;
|
|
4
|
+
}
|
|
5
|
+
export declare const useMediaLoader: ({ src, onError }: UseMediaLoaderProps) => {
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
hasError: boolean;
|
|
8
|
+
isVideo: boolean;
|
|
9
|
+
reload: () => void;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './components/Box';
|
|
2
|
+
export * from './components/Button';
|
|
3
|
+
export * from './components/FormField';
|
|
4
|
+
export * from './components/Header';
|
|
5
|
+
export * from './components/Input';
|
|
6
|
+
export * from './components/Modal';
|
|
7
|
+
export * from './components/Select';
|
|
8
|
+
export * from './components/Toggle';
|
|
9
|
+
export * from './components/Tooltip';
|
|
10
|
+
export * from './components/TopNav';
|
|
11
|
+
export * from './components/Viewer';
|
|
12
|
+
export { useMediaLoader } from './hooks/useMediaLoader';
|
|
13
|
+
export { useTheme } from './hooks/useTheme';
|