luis-ui-lib 1.1.92 → 1.1.93

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.
@@ -76,7 +76,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
76
76
  ${m}px !important;
77
77
  top: ${d}px !important;
78
78
  }
79
- `),()=>{b.contains(g)&&b.removeChild(g)}},[t]),p.jsx(p9,{isPresent:t,childRef:i,sizeRef:a,children:v.cloneElement(e,{ref:l})})}const g9=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a,anchorX:s,root:l})=>{const c=ss(m9),u=S.useId();let d=!0,f=S.useMemo(()=>(d=!1,{id:u,initial:t,isPresent:n,custom:o,onExitComplete:h=>{c.set(h,!0);for(const m of c.values())if(!m)return;r&&r()},register:h=>(c.set(h,!1),()=>c.delete(h))}),[n,c,r]);return i&&d&&(f={...f}),S.useMemo(()=>{c.forEach((h,m)=>c.set(m,!1))},[n]),v.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),a==="popLayout"&&(e=p.jsx(h9,{isPresent:n,anchorX:s,root:l,children:e})),p.jsx(Mo.Provider,{value:f,children:e})};function m9(){return new Map}function tp(e=!0){const t=S.useContext(Mo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=S.useId();S.useEffect(()=>{if(e)return o(i)},[e]);const a=S.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,a]:[!0]}const Rr=e=>e.key||"";function gc(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const np=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:a=!1,anchorX:s="left",root:l})=>{const[c,u]=tp(a),d=S.useMemo(()=>gc(e),[e]),f=a&&!c?[]:d.map(Rr),h=S.useRef(!0),m=S.useRef(d),g=ss(()=>new Map),[b,y]=S.useState(d),[C,x]=S.useState(d);uf(()=>{h.current=!1,m.current=d;for(let T=0;T<C.length;T++){const A=Rr(C[T]);f.includes(A)?g.delete(A):g.get(A)!==!0&&g.set(A,!1)}},[C,f.length,f.join("-")]);const w=[];if(d!==b){let T=[...d];for(let A=0;A<C.length;A++){const E=C[A],D=Rr(E);f.includes(D)||(T.splice(A,0,E),w.push(E))}return i==="wait"&&w.length&&(T=w),x(gc(T)),y(d),null}process.env.NODE_ENV!=="production"&&i==="wait"&&C.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:I}=S.useContext(as);return p.jsx(p.Fragment,{children:C.map(T=>{const A=Rr(T),E=a&&!c?!1:d===C||f.includes(A),D=()=>{if(g.has(A))g.set(A,!0);else return;let L=!0;g.forEach(W=>{W||(L=!1)}),L&&(I==null||I(),x(m.current),a&&(u==null||u()),r&&r())};return p.jsx(g9,{isPresent:E,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:E?void 0:D,anchorX:s,children:T},A)})})},rp=S.createContext({strict:!1}),mc={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"]},In={};for(const e in mc)In[e]={isEnabled:t=>mc[e].some(n=>!!t[n])};function v9(e){for(const t in e)In[t]={...In[t],...e[t]}}const b9=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function fo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||b9.has(e)}let op=e=>!fo(e);function y9(e){typeof e=="function"&&(op=t=>t.startsWith("on")?!fo(t):e(t))}try{y9(require("@emotion/is-prop-valid").default)}catch{}function C9(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(op(o)||n===!0&&fo(o)||!t&&!fo(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const Vo=S.createContext({});function Fo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function tr(e){return typeof e=="string"||Array.isArray(e)}const Os=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ms=["initial",...Os];function No(e){return Fo(e.animate)||Ms.some(t=>tr(e[t]))}function ip(e){return!!(No(e)||e.variants)}function x9(e,t){if(No(e)){const{initial:n,animate:r}=e;return{initial:n===!1||tr(n)?n:void 0,animate:tr(r)?r:void 0}}return e.inherit!==!1?t:{}}function I9(e){const{initial:t,animate:n}=x9(e,S.useContext(Vo));return S.useMemo(()=>({initial:t,animate:n}),[vc(t),vc(n)])}function vc(e){return Array.isArray(e)?e.join(" "):e}const nr={};function w9(e){for(const t in e)nr[t]=e[t],ms(t)&&(nr[t].isCSSVariable=!0)}function ap(e,{layout:t,layoutId:n}){return On.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!nr[e]||e==="opacity")}const S9={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},A9=_n.length;function E9(e,t,n){let r="",o=!0;for(let i=0;i<A9;i++){const a=_n[i],s=e[a];if(s===void 0)continue;let l=!0;if(typeof s=="number"?l=s===(a.startsWith("scale")?1:0):l=parseFloat(s)===0,!l||n){const c=Jf(s,Ts[a]);if(!l){o=!1;const u=S9[a]||a;r+=`${u}(${c}) `}n&&(t[a]=c)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Vs(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let a=!1,s=!1;for(const l in t){const c=t[l];if(On.has(l)){a=!0;continue}else if(ms(l)){o[l]=c;continue}else{const u=Jf(c,Ts[l]);l.startsWith("origin")?(s=!0,i[l]=u):r[l]=u}}if(t.transform||(a||n?r.transform=E9(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}const Fs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sp(e,t,n){for(const r in t)!Me(t[r])&&!ap(r,n)&&(e[r]=t[r])}function T9({transformTemplate:e},t){return S.useMemo(()=>{const n=Fs();return Vs(n,t,e),Object.assign({},n.vars,n.style)},[t])}function R9(e,t){const n=e.style||{},r={};return sp(r,n,e),Object.assign(r,T9(e,t)),r}function P9(e,t){const n={},r=R9(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}const _9={offset:"stroke-dashoffset",array:"stroke-dasharray"},O9={offset:"strokeDashoffset",array:"strokeDasharray"};function M9(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?_9:O9;e[i.offset]=oe.transform(-r);const a=oe.transform(t),s=oe.transform(n);e[i.array]=`${a} ${s}`}function lp(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:a=0,...s},l,c,u){if(Vs(e,s,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{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==null?void 0:u.transformBox)??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&M9(d,o,i,a,!1)}const cp=()=>({...Fs(),attrs:{}}),up=e=>typeof e=="string"&&e.toLowerCase()==="svg";function V9(e,t,n,r){const o=S.useMemo(()=>{const i=cp();return lp(i,t,up(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};sp(i,e.style,e),o.style={...i,...o.style}}return o}const F9=["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 Ns(e){return typeof e!="string"||e.includes("-")?!1:!!(F9.indexOf(e)>-1||/[A-Z]/u.test(e))}function N9(e,t,n,{latestValues:r},o,i=!1){const s=(Ns(e)?V9:P9)(t,r,o,e),l=C9(t,typeof e=="string",i),c=e!==S.Fragment?{...l,...s,ref:n}:{},{children:u}=t,d=S.useMemo(()=>Me(u)?u.get():u,[u]);return S.createElement(e,{...c,children:d})}function bc(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ds(e,t,n,r){if(typeof t=="function"){const[o,i]=bc(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=bc(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Gr(e){return Me(e)?e.get():e}function D9({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:L9(n,r,o,e),renderState:t()}}function L9(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Gr(i[f]);let{initial:a,animate:s}=e;const l=No(e),c=ip(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u=u||a===!1;const d=u?s:a;if(d&&typeof d!="boolean"&&!Fo(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const m=Ds(e,f[h]);if(m){const{transitionEnd:g,transition:b,...y}=m;for(const C in y){let x=y[C];if(Array.isArray(x)){const w=u?x.length-1:0;x=x[w]}x!==null&&(o[C]=x)}for(const C in g)o[C]=g[C]}}}return o}const dp=e=>(t,n)=>{const r=S.useContext(Vo),o=S.useContext(Mo),i=()=>D9(e,t,r,o);return n?i():ss(i)};function Ls(e,t,n){var i;const{style:r}=e,o={};for(const a in r)(Me(r[a])||t.style&&Me(t.style[a])||ap(a,e)||((i=n==null?void 0:n.getValue(a))==null?void 0:i.liveStyle)!==void 0)&&(o[a]=r[a]);return o}const B9=dp({scrapeMotionValuesFromProps:Ls,createRenderState:Fs});function fp(e,t,n){const r=Ls(e,t,n);for(const o in e)if(Me(e[o])||Me(t[o])){const i=_n.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const k9=dp({scrapeMotionValuesFromProps:fp,createRenderState:cp}),j9=Symbol.for("motionComponentSymbol");function ln(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function G9(e,t,n){return S.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ln(n)&&(n.current=r))},[t])}const Bs=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),W9="framerAppearId",pp="data-"+Bs(W9),hp=S.createContext({});function H9(e,t,n,r,o){var g,b;const{visualElement:i}=S.useContext(Vo),a=S.useContext(rp),s=S.useContext(Mo),l=S.useContext(_s).reducedMotion,c=S.useRef(null);r=r||a.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,d=S.useContext(hp);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&X9(c.current,n,o,d);const f=S.useRef(!1);S.useInsertionEffect(()=>{u&&f.current&&u.update(n,s)});const h=n[pp],m=S.useRef(!!h&&!((g=window.MotionHandoffIsComplete)!=null&&g.call(window,h))&&((b=window.MotionHasOptimisedAnimation)==null?void 0:b.call(window,h)));return uf(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),m.current&&u.animationState&&u.animationState.animateChanges())}),S.useEffect(()=>{u&&(!m.current&&u.animationState&&u.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)==null||y.call(window,h)}),m.current=!1),u.enteringChildren=void 0)}),u}function X9(e,t,n,r){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:gp(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!a||s&&ln(s),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}function gp(e){if(e)return e.options.allowProjection!==!1?e.projection:gp(e.parent)}function pi(e,{forwardMotionProps:t=!1}={},n,r){n&&v9(n);const o=Ns(e)?k9:B9;function i(s,l){let c;const u={...S.useContext(_s),...s,layoutId:Z9(s)},{isStatic:d}=u,f=I9(s),h=o(s,d);if(!d&&ls){z9(u,n);const m=Y9(u);c=m.MeasureLayout,f.visualElement=H9(e,h,u,r,m.ProjectionNode)}return p.jsxs(Vo.Provider,{value:f,children:[c&&f.visualElement?p.jsx(c,{visualElement:f.visualElement,...u}):null,N9(e,s,G9(h,f.visualElement,l),h,d,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const a=S.forwardRef(i);return a[j9]=e,a}function Z9({layoutId:e}){const t=S.useContext(as).id;return t&&e!==void 0?t+"-"+e:e}function z9(e,t){const n=S.useContext(rp).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Rn(!1,r,"lazy-strict-mode"):bt(!1,r,"lazy-strict-mode")}}function Y9(e){const{drag:t,layout:n}=In;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function $9(e,t){if(typeof Proxy>"u")return pi;const n=new Map,r=(i,a)=>pi(i,a,e,t),o=(i,a)=>(process.env.NODE_ENV!=="production"&&ps(!1,"motion() is deprecated. Use motion.create() instead."),r(i,a));return new Proxy(o,{get:(i,a)=>a==="create"?r:(n.has(a)||n.set(a,pi(a,void 0,e,t)),n.get(a))})}function mp({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function J9({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function U9(e,t){if(!t)return e;const 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 hi(e){return e===void 0||e===1}function ua({scale:e,scaleX:t,scaleY:n}){return!hi(e)||!hi(t)||!hi(n)}function Ht(e){return ua(e)||vp(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vp(e){return yc(e.x)||yc(e.y)}function yc(e){return e&&e!=="0%"}function po(e,t,n){const r=e-n,o=t*r;return n+o}function Cc(e,t,n,r,o){return o!==void 0&&(e=po(e,o,r)),po(e,n,r)+t}function da(e,t=0,n=1,r,o){e.min=Cc(e.min,t,n,r,o),e.max=Cc(e.max,t,n,r,o)}function bp(e,{x:t,y:n}){da(e.x,t.translate,t.scale,t.originPoint),da(e.y,n.translate,n.scale,n.originPoint)}const xc=.999999999999,Ic=1.0000000000001;function K9(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&un(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,bp(e,a)),r&&Ht(i.latestValues)&&un(e,i.latestValues))}t.x<Ic&&t.x>xc&&(t.x=1),t.y<Ic&&t.y>xc&&(t.y=1)}function cn(e,t){e.min=e.min+t,e.max=e.max+t}function wc(e,t,n,r,o=.5){const i=Ce(e.min,e.max,o);da(e,t,n,i,r)}function un(e,t){wc(e.x,t.x,t.scaleX,t.scale,t.originX),wc(e.y,t.y,t.scaleY,t.scale,t.originY)}function yp(e,t){return mp(U9(e.getBoundingClientRect(),t))}function Q9(e,t,n){const r=yp(e,n),{scroll:o}=t;return o&&(cn(r.x,o.offset.x),cn(r.y,o.offset.y)),r}const Sc=()=>({translate:0,scale:1,origin:0,originPoint:0}),dn=()=>({x:Sc(),y:Sc()}),Ac=()=>({min:0,max:0}),Ie=()=>({x:Ac(),y:Ac()}),fa={current:null},Cp={current:!1};function q9(){if(Cp.current=!0,!!ls)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>fa.current=e.matches;e.addEventListener("change",t),t()}else fa.current=!1}const e6=new WeakMap;function t6(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Me(o))e.addValue(r,o);else if(Me(i))e.addValue(r,xn(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=e.getStaticValue(r);e.addValue(r,xn(a!==void 0?a:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Ec=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class n6{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=As,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=Ne.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,be.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=No(n),this.isVariantNode=ip(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const h=d[f];l[f]!==void 0&&Me(h)&&h.set(l[f])}}mount(t){var n;this.current=t,e6.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),Cp.current||q9(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:fa.current,process.env.NODE_ENV!=="production"&&ps(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Ot(this.notifyUpdate),Ot(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=On.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&be.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in In){const n=In[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ie()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Ec.length;r++){const o=Ec[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,a=t[i];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=t6(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=xn(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(df(r)||pf(r))?r=parseFloat(r):!u9(r)&&Mt.test(n)&&(r=$f(t,n)),this.setBaseTarget(t,Me(r)?r.get():r)),Me(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=Ds(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Me(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new fs),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Rs.render(this.render)}}class xp extends n6{constructor(){super(...arguments),this.KeyframeResolver=Q4}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Me(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ip(e,{style:t,vars:n},r,o){const i=e.style;let a;for(a in t)i[a]=t[a];o==null||o.applyProjectionStyles(i,r);for(a in n)i.setProperty(a,n[a])}function r6(e){return window.getComputedStyle(e)}class o6 extends xp{constructor(){super(...arguments),this.type="html",this.renderInstance=Ip}readValueFromInstance(t,n){var r;if(On.has(n))return(r=this.projection)!=null&&r.isProjecting?ra(n):m4(t,n);{const o=r6(t),i=(ms(n)?o.getPropertyValue(n):o[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return yp(t,n)}build(t,n,r){Vs(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ls(t,n,r)}}const wp=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function i6(e,t,n,r){Ip(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(wp.has(o)?o:Bs(o),t.attrs[o])}class a6 extends xp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ie}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(On.has(n)){const r=Yf(n);return r&&r.default||0}return n=wp.has(n)?n:Bs(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return fp(t,n,r)}build(t,n,r){lp(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){i6(t,n,r,o)}mount(t){this.isSVGTag=up(t.tagName),super.mount(t)}}const s6=(e,t)=>Ns(e)?new a6(t):new o6(t,{allowProjection:e!==S.Fragment});function gn(e,t,n){const r=e.getProps();return Ds(r,t,n!==void 0?n:r.custom,e)}const pa=e=>Array.isArray(e);function l6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xn(n))}function c6(e){return pa(e)?e[e.length-1]||0:e}function u6(e,t){const n=gn(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const a in i){const s=c6(i[a]);l6(e,a,s)}}function d6(e){return!!(Me(e)&&e.add)}function ha(e,t){const n=e.getValue("willChange");if(d6(n))return n.add(t);if(!n&&yt.WillChange){const r=new yt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Sp(e){return e.props[pp]}const f6=e=>e!==null;function p6(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(f6),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const h6={type:"spring",stiffness:500,damping:25,restSpeed:10},g6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),m6={type:"keyframes",duration:.8},v6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},b6=(e,{keyframes:t})=>t.length>2?m6:On.has(e)?e.startsWith("scale")?g6(t[1]):h6:v6;function y6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const ks=(e,t,n,r={},o,i)=>a=>{const s=Es(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c=c-$e(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:f=>{t.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};y6(s)||Object.assign(u,b6(e,u)),u.duration&&(u.duration=$e(u.duration)),u.repeatDelay&&(u.repeatDelay=$e(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(la(u),u.delay===0&&(d=!0)),(yt.instantAnimations||yt.skipAnimations)&&(d=!0,la(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!i&&t.get()!==void 0){const f=p6(u.keyframes,s);if(f!==void 0){be.update(()=>{u.onUpdate(f),u.onComplete()});return}}return s.isSync?new Ss(u):new k4(u)};function C6({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ap(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=t;r&&(i=r);const l=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const u in s){const d=e.getValue(u,e.latestValues[u]??null),f=s[u];if(f===void 0||c&&C6(c,u))continue;const h={delay:n,...Es(i||{},u)},m=d.get();if(m!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===m&&!h.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const y=Sp(e);if(y){const C=window.MotionHandoffAnimation(y,u,be);C!==null&&(h.startTime=C,g=!0)}}ha(e,u),d.start(ks(u,d,f,e.shouldReduceMotion&&Xf.has(u)?{type:!1}:h,e,g));const b=d.animation;b&&l.push(b)}return a&&Promise.all(l).then(()=>{be.update(()=>{a&&u6(e,a)})}),l}function Ep(e,t,n,r=0,o=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),a=e.size,s=(a-1)*r;return typeof n=="function"?n(i,a):o===1?i*r:s-i*r}function ga(e,t,n={}){var l;const r=gn(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Ap(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=o;return x6(e,t,c,u,d,f,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[c,u]=s==="beforeChildren"?[i,a]:[a,i];return c().then(()=>u())}else return Promise.all([i(),a(n.delay)])}function x6(e,t,n=0,r=0,o=0,i=1,a){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(ga(l,t,{...a,delay:n+(typeof r=="function"?0:r)+Ep(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function I6(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>ga(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=ga(e,t,n);else{const o=typeof t=="function"?gn(e,t,n.custom):t;r=Promise.all(Ap(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Tp(e,t){if(!Array.isArray(t))return!1;const 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}const w6=Ms.length;function Rp(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Rp(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<w6;n++){const r=Ms[n],o=e.props[r];(tr(o)||o===!1)&&(t[r]=o)}return t}const S6=[...Os].reverse(),A6=Os.length;function E6(e){return t=>Promise.all(t.map(({animation:n,options:r})=>I6(e,n,r)))}function T6(e){let t=E6(e),n=Tc(),r=!0;const o=l=>(c,u)=>{var f;const d=gn(e,u,l==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(d){const{transition:h,transitionEnd:m,...g}=d;c={...c,...g,...m}}return c};function i(l){t=l(e)}function a(l){const{props:c}=e,u=Rp(e.parent)||{},d=[],f=new Set;let h={},m=1/0;for(let b=0;b<A6;b++){const y=S6[b],C=n[y],x=c[y]!==void 0?c[y]:u[y],w=tr(x),I=y===l?C.isActive:null;I===!1&&(m=b);let T=x===u[y]&&x!==c[y]&&w;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),C.protectedKeys={...h},!C.isActive&&I===null||!x&&!C.prevProp||Fo(x)||typeof x=="boolean")continue;const A=R6(C.prevProp,x);let E=A||y===l&&C.isActive&&!T&&w||b>m&&w,D=!1;const L=Array.isArray(x)?x:[x];let W=L.reduce(o(y),{});I===!1&&(W={});const{prevResolvedValues:B={}}=C,R={...B,...W},_=F=>{E=!0,f.has(F)&&(D=!0,f.delete(F)),C.needsAnimating[F]=!0;const O=e.getValue(F);O&&(O.liveStyle=!1)};for(const F in R){const O=W[F],k=B[F];if(h.hasOwnProperty(F))continue;let P=!1;pa(O)&&pa(k)?P=!Tp(O,k):P=O!==k,P?O!=null?_(F):f.add(F):O!==void 0&&f.has(F)?_(F):C.protectedKeys[F]=!0}C.prevProp=x,C.prevResolvedValues=W,C.isActive&&(h={...h,...W}),r&&e.blockInitialAnimation&&(E=!1);const V=T&&A;E&&(!V||D)&&d.push(...L.map(F=>{const O={type:y};if(typeof F=="string"&&r&&!V&&e.manuallyAnimateOnMount&&e.parent){const{parent:k}=e,P=gn(k,F);if(k.enteringChildren&&P){const{delayChildren:M}=P.transition||{};O.delay=Ep(k.enteringChildren,e,M)}}return{animation:F,options:O}}))}if(f.size){const b={};if(typeof c.initial!="boolean"){const y=gn(e,Array.isArray(c.initial)?c.initial[0]:c.initial);y&&y.transition&&(b.transition=y.transition)}f.forEach(y=>{const C=e.getBaseTarget(y),x=e.getValue(y);x&&(x.liveStyle=!0),b[y]=C??null}),d.push({animation:b})}let g=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(d):Promise.resolve()}function s(l,c){var d;if(n[l].isActive===c)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(f=>{var h;return(h=f.animationState)==null?void 0:h.setActive(l,c)}),n[l].isActive=c;const u=a(l);for(const f in n)n[f].protectedKeys={};return u}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Tc(),r=!0}}}function R6(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Tp(t,e):!1}function kt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Tc(){return{animate:kt(!0),whileInView:kt(),whileHover:kt(),whileTap:kt(),whileDrag:kt(),whileFocus:kt(),exit:kt()}}class Dt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class P6 extends Dt{constructor(t){super(t),t.animationState||(t.animationState=T6(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Fo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let _6=0;class O6 extends Dt{constructor(){super(...arguments),this.id=_6++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const M6={animation:{Feature:P6},exit:{Feature:O6}};function rr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function pr(e){return{point:{x:e.pageX,y:e.pageY}}}const V6=e=>t=>Ps(t)&&e(t,pr(t));function Xn(e,t,n,r){return rr(e,t,V6(n),r)}const Pp=1e-4,F6=1-Pp,N6=1+Pp,_p=.01,D6=0-_p,L6=0+_p;function Fe(e){return e.max-e.min}function B6(e,t,n){return Math.abs(e-t)<=n}function Rc(e,t,n,r=.5){e.origin=r,e.originPoint=Ce(t.min,t.max,e.origin),e.scale=Fe(n)/Fe(t),e.translate=Ce(n.min,n.max,e.origin)-e.originPoint,(e.scale>=F6&&e.scale<=N6||isNaN(e.scale))&&(e.scale=1),(e.translate>=D6&&e.translate<=L6||isNaN(e.translate))&&(e.translate=0)}function Zn(e,t,n,r){Rc(e.x,t.x,n.x,r?r.originX:void 0),Rc(e.y,t.y,n.y,r?r.originY:void 0)}function Pc(e,t,n){e.min=n.min+t.min,e.max=e.min+Fe(t)}function k6(e,t,n){Pc(e.x,t.x,n.x),Pc(e.y,t.y,n.y)}function _c(e,t,n){e.min=t.min-n.min,e.max=e.min+Fe(t)}function zn(e,t,n){_c(e.x,t.x,n.x),_c(e.y,t.y,n.y)}function Ge(e){return[e("x"),e("y")]}const Op=({current:e})=>e?e.ownerDocument.defaultView:null,Oc=(e,t)=>Math.abs(e-t);function j6(e,t){const n=Oc(e.x,t.x),r=Oc(e.y,t.y);return Math.sqrt(n**2+r**2)}class Mp{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=mi(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=j6(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!m)return;const{point:g}=f,{timestamp:b}=Re;this.history.push({...g,timestamp:b});const{onStart:y,onMove:C}=this.handlers;h||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=gi(h,this.transformPagePoint),be.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=mi(f.type==="pointercancel"?this.lastMoveEventInfo:gi(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,y),g&&g(f,y)},!Ps(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=o||window;const s=pr(t),l=gi(s,this.transformPagePoint),{point:c}=l,{timestamp:u}=Re;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,mi(l,this.history)),this.removeListeners=ur(Xn(this.contextWindow,"pointermove",this.handlePointerMove),Xn(this.contextWindow,"pointerup",this.handlePointerUp),Xn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ot(this.updatePoint)}}function gi(e,t){return t?{point:t(e.point)}:e}function Mc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mi({point:e},t){return{point:e,delta:Mc(e,Vp(t)),offset:Mc(e,G6(t)),velocity:W6(t,.1)}}function G6(e){return e[0]}function Vp(e){return e[e.length-1]}function W6(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Vp(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>$e(t)));)n--;if(!r)return{x:0,y:0};const i=We(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function H6(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ce(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ce(n,e,r.max):Math.min(e,n)),e}function Vc(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function X6(e,{top:t,left:n,bottom:r,right:o}){return{x:Vc(e.x,n,o),y:Vc(e.y,t,r)}}function Fc(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 Z6(e,t){return{x:Fc(e.x,t.x),y:Fc(e.y,t.y)}}function z6(e,t){let n=.5;const r=Fe(e),o=Fe(t);return o>r?n=Qn(t.min,t.max-r,e.min):r>o&&(n=Qn(e.min,e.max-o,t.min)),vt(0,1,n)}function Y6(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const ma=.35;function $6(e=ma){return e===!1?e=0:e===!0&&(e=ma),{x:Nc(e,"left","right"),y:Nc(e,"top","bottom")}}function Nc(e,t,n){return{min:Dc(e,t),max:Dc(e,n)}}function Dc(e,t){return typeof e=="number"?e:e[t]||0}const J6=new WeakMap;class U6{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ie(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(pr(d).point)},a=(d,f)=>{const{drag:h,dragPropagation:m,onDragStart:g}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=n9(h),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ge(y=>{let C=this.getAxisMotionValue(y).get()||0;if(at.test(C)){const{projection:x}=this.visualElement;if(x&&x.layout){const w=x.layout.layoutBox[y];w&&(C=Fe(w)*(parseFloat(C)/100))}}this.originPoint[y]=C}),g&&be.postRender(()=>g(d,f)),ha(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:g,onDrag:b}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:y}=f;if(m&&this.currentDirection===null){this.currentDirection=K6(y),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),b&&b(d,f)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>Ge(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)==null?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Mp(t,{onSessionStart:i,onStart:a,onMove:s,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:Op(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:a}=o;this.startAnimation(a);const{onDragEnd:s}=this.getProps();s&&be.postRender(()=>s(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Pr(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=H6(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,o=this.constraints;t&&ln(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=X6(r.layoutBox,t):this.constraints=!1,this.elastic=$6(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ge(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=Y6(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ln(t))return!1;const r=t.current;bt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=Q9(r,o.root,this.visualElement.getTransformPagePoint());let a=Z6(o.layout.layoutBox,i);if(n){const s=n(J9(a));this.hasMutatedConstraints=!!s,s&&(a=mp(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=Ge(u=>{if(!Pr(u,n,this.currentDirection))return;let d=l&&l[u]||{};a&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,m={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,m)});return Promise.all(c).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ha(this.visualElement,t),r.start(ks(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ge(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ge(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ge(n=>{const{drag:r}=this.getProps();if(!Pr(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[n];i.set(t[n]-Ce(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ln(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ge(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const l=s.get();o[a]=z6({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ge(a=>{if(!Pr(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:c}=this.constraints[a];s.set(Ce(l,c,o[a]))})}addListeners(){if(!this.visualElement.current)return;J6.set(this.visualElement,this);const t=this.visualElement.current,n=Xn(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ln(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),be.read(r);const a=rr(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Ge(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=ma,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function Pr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function K6(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Q6 extends Dt{constructor(t){super(t),this.removeGroupControls=Xe,this.removeListeners=Xe,this.controls=new U6(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Xe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Lc=e=>(t,n)=>{e&&be.postRender(()=>e(t,n))};class q6 extends Dt{constructor(){super(...arguments),this.removePointerDownListener=Xe}onPointerDown(t){this.session=new Mp(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Op(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Lc(t),onStart:Lc(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&be.postRender(()=>o(i,a))}}}mount(){this.removePointerDownListener=Xn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Wr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Bc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Fn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(oe.test(e))e=parseFloat(e);else return e;const n=Bc(e,t.target.x),r=Bc(e,t.target.y);return`${n}% ${r}%`}},e8={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Mt.parse(e);if(o.length>5)return r;const i=Mt.createTransformer(e),a=typeof o[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=Ce(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=c),typeof o[3+a]=="number"&&(o[3+a]/=c),i(o)}};let vi=!1;class t8 extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;w9(n8),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),vi&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Wr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:a}=r;return a&&(a.isPresent=i,vi=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||be.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Rs.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;vi=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Fp(e){const[t,n]=tp(),r=S.useContext(as);return p.jsx(t8,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(hp),isPresent:t,safeToRemove:n})}const n8={borderRadius:{...Fn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Fn,borderTopRightRadius:Fn,borderBottomLeftRadius:Fn,borderBottomRightRadius:Fn,boxShadow:e8};function r8(e,t,n){const r=Me(e)?e:xn(e);return r.start(ks("",r,t,n)),r.animation}const o8=(e,t)=>e.depth-t.depth;class i8{constructor(){this.children=[],this.isDirty=!1}add(t){cs(this.children,t),this.isDirty=!0}remove(t){us(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(o8),this.isDirty=!1,this.children.forEach(t)}}function a8(e,t){const n=Ne.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Ot(r),e(i-t))};return be.setup(r,!0),()=>Ot(r)}const Np=["TopLeft","TopRight","BottomLeft","BottomRight"],s8=Np.length,kc=e=>typeof e=="string"?parseFloat(e):e,jc=e=>typeof e=="number"||oe.test(e);function l8(e,t,n,r,o,i){o?(e.opacity=Ce(0,n.opacity??1,c8(r)),e.opacityExit=Ce(t.opacity??1,0,u8(r))):i&&(e.opacity=Ce(t.opacity??1,n.opacity??1,r));for(let a=0;a<s8;a++){const s=`border${Np[a]}Radius`;let l=Gc(t,s),c=Gc(n,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||jc(l)===jc(c)?(e[s]=Math.max(Ce(kc(l),kc(c),r),0),(at.test(c)||at.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||n.rotate)&&(e.rotate=Ce(t.rotate||0,n.rotate||0,r))}function Gc(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const c8=Dp(0,.5,xf),u8=Dp(.5,.95,Xe);function Dp(e,t,n){return r=>r<e?0:r>t?1:n(Qn(e,t,r))}function Wc(e,t){e.min=t.min,e.max=t.max}function je(e,t){Wc(e.x,t.x),Wc(e.y,t.y)}function Hc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Xc(e,t,n,r,o){return e-=t,e=po(e,1/n,r),o!==void 0&&(e=po(e,1/o,r)),e}function d8(e,t=0,n=1,r=.5,o,i=e,a=e){if(at.test(t)&&(t=parseFloat(t),t=Ce(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Ce(i.min,i.max,r);e===i&&(s-=t),e.min=Xc(e.min,t,n,s,o),e.max=Xc(e.max,t,n,s,o)}function Zc(e,t,[n,r,o],i,a){d8(e,t[n],t[r],t[o],t.scale,i,a)}const f8=["x","scaleX","originX"],p8=["y","scaleY","originY"];function zc(e,t,n,r){Zc(e.x,t,f8,n?n.x:void 0,r?r.x:void 0),Zc(e.y,t,p8,n?n.y:void 0,r?r.y:void 0)}function Yc(e){return e.translate===0&&e.scale===1}function Lp(e){return Yc(e.x)&&Yc(e.y)}function $c(e,t){return e.min===t.min&&e.max===t.max}function h8(e,t){return $c(e.x,t.x)&&$c(e.y,t.y)}function Jc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Bp(e,t){return Jc(e.x,t.x)&&Jc(e.y,t.y)}function Uc(e){return Fe(e.x)/Fe(e.y)}function Kc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class g8{constructor(){this.members=[]}add(t){cs(this.members,t),t.scheduleRender()}remove(t){if(us(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function m8(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:h,skewY:m}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}deg) `),m&&(r+=`skewY(${m}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const bi=["","X","Y","Z"],v8=1e3;let b8=0;function yi(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function kp(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Sp(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",be,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&kp(r)}function jp({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=b8++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(x8),this.nodes.forEach(A8),this.nodes.forEach(E8),this.nodes.forEach(I8)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new i8)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new fs),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const l=this.eventHandlers.get(a);l&&l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=ep(a)&&!l9(a),this.instance=a;const{layoutId:s,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let u,d=0;const f=()=>this.root.updateBlockedByResize=!1;be.read(()=>{d=window.innerWidth}),e(a,()=>{const h=window.innerWidth;h!==d&&(d=h,this.root.updateBlockedByResize=!0,u&&u(),u=a8(f,250),Wr.hasAnimatedSinceResize&&(Wr.hasAnimatedSinceResize=!1,this.nodes.forEach(eu)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&c&&(s||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||O8,{onLayoutAnimationStart:g,onLayoutAnimationComplete:b}=c.getProps(),y=!this.targetLayout||!Bp(this.targetLayout,h),C=!d&&f;if(this.options.layoutRoot||this.resumeFrom||C||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...Es(m,"layout"),onPlay:g,onComplete:b};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(u,C)}else d||eu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ot(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(T8),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&kp(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Qc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(qc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(S8),this.nodes.forEach(y8),this.nodes.forEach(C8)):this.nodes.forEach(qc),this.clearAllSnapshots();const s=Ne.now();Re.delta=vt(0,1e3/60,s-Re.timestamp),Re.timestamp=s,Re.isProcessing=!0,li.update.process(Re),li.preRender.process(Re),li.render.process(Re),Re.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Rs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(w8),this.sharedNodes.forEach(R8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,be.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){be.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Fe(this.snapshot.measuredBox.x)&&!Fe(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ie(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!Lp(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;a&&this.instance&&(s||Ht(this.latestValues)||u)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),M8(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:a}=this.options;if(!a)return Ie();const s=a.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(V8))){const{scroll:u}=this.root;u&&(cn(s.x,u.offset.x),cn(s.y,u.offset.y))}return s}removeElementScroll(a){var l;const s=Ie();if(je(s,a),(l=this.scroll)!=null&&l.wasRoot)return s;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&je(s,a),cn(s.x,d.offset.x),cn(s.y,d.offset.y))}return s}applyTransform(a,s=!1){const l=Ie();je(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];!s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&un(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Ht(u.latestValues)&&un(l,u.latestValues)}return Ht(this.latestValues)&&un(l,this.latestValues),l}removeTransform(a){const s=Ie();je(s,a);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Ht(c.latestValues))continue;ua(c.latestValues)&&c.updateSnapshot();const u=Ie(),d=c.measurePageBox();je(u,d),zc(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Ht(this.latestValues)&&zc(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}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!==Re.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var f;const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==s;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!(!this.layout||!(u||d))){if(this.resolvedRelativeTargetAt=Re.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ie(),this.relativeTargetOrigin=Ie(),zn(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),je(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ie(),this.targetWithTransforms=Ie()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),k6(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):je(this.target,this.layout.layoutBox),bp(this.target,this.targetDelta)):je(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ie(),this.relativeTargetOrigin=Ie(),zn(this.relativeTargetOrigin,this.target,h.target),je(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ua(this.parent.latestValues)||vp(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var m;const a=this.getLead(),s=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Re.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;je(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;K9(this.layoutCorrected,this.treeScale,this.path,s),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Ie());const{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Hc(this.prevProjectionDelta.x,this.projectionDelta.x),Hc(this.prevProjectionDelta.y,this.projectionDelta.y)),Zn(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!Kc(this.projectionDelta.x,this.prevProjectionDelta.x)||!Kc(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var s;if((s=this.options.visualElement)==null||s.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=dn(),this.projectionDelta=dn(),this.projectionDeltaWithTransform=dn()}setAnimationOrigin(a,s=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=dn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const f=Ie(),h=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=h!==m,b=this.getStack(),y=!b||b.members.length<=1,C=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(_8));this.animationProgress=0;let x;this.mixTargetDelta=w=>{const I=w/1e3;tu(d.x,a.x,I),tu(d.y,a.y,I),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zn(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),P8(this.relativeTarget,this.relativeTargetOrigin,f,I),x&&h8(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Ie()),je(x,this.relativeTarget)),g&&(this.animationValues=u,l8(u,c,this.latestValues,I,C,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var s,l,c;this.notifyListeners("animationStart"),(s=this.currentAnimation)==null||s.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(Ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=be.update(()=>{Wr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=xn(0)),this.currentAnimation=r8(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),a.onUpdate&&a.onUpdate(u)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.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);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(v8),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:u}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&Gp(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ie();const d=Fe(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;const f=Fe(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}je(s,l),un(s,u),Zn(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new g8),this.sharedNodes.get(a).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())==null?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())==null?void 0:s.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const c={};l.z&&yi("z",a,c,this.animationValues);for(let u=0;u<bi.length;u++)yi(`rotate${bi[u]}`,a,c,this.animationValues),yi(`skew${bi[u]}`,a,c,this.animationValues);a.render();for(const u in c)a.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);a.scheduleRender()}applyProjectionStyles(a,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=Gr(s==null?void 0:s.pointerEvents)||"",a.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=Gr(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Ht(this.latestValues)&&(a.transform=l?l({},""):"none",this.hasProjected=!1);return}a.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=m8(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),a.transform=d;const{x:f,y:h}=this.projectionDelta;a.transformOrigin=`${f.origin*100}% ${h.origin*100}% 0`,c.animationValues?a.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:a.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const m in nr){if(u[m]===void 0)continue;const{correct:g,applyTo:b,isCSSVariable:y}=nr[m],C=d==="none"?u[m]:g(u[m],c);if(b){const x=b.length;for(let w=0;w<x;w++)a[b[w]]=C}else y?this.options.visualElement.renderState.vars[m]=C:a[m]=C}this.options.layoutId&&(a.pointerEvents=c===this?Gr(s==null?void 0:s.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)==null?void 0:s.stop()}),this.root.nodes.forEach(Qc),this.root.sharedNodes.clear()}}}function y8(e){e.updateLayout()}function C8(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?Ge(d=>{const f=a?t.measuredBox[d]:t.layoutBox[d],h=Fe(f);f.min=r[d].min,f.max=f.min+h}):Gp(i,t.layoutBox,r)&&Ge(d=>{const f=a?t.measuredBox[d]:t.layoutBox[d],h=Fe(r[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const s=dn();Zn(s,r,t.layoutBox);const l=dn();a?Zn(l,e.applyTransform(o,!0),t.measuredBox):Zn(l,r,t.layoutBox);const c=!Lp(s);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const m=Ie();zn(m,t.layoutBox,f.layoutBox);const g=Ie();zn(g,r,h.layoutBox),Bp(m,g)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function x8(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function I8(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function w8(e){e.clearSnapshot()}function Qc(e){e.clearMeasurements()}function qc(e){e.isLayoutDirty=!1}function S8(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function eu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function A8(e){e.resolveTargetDelta()}function E8(e){e.calcProjection()}function T8(e){e.resetSkewAndRotation()}function R8(e){e.removeLeadSnapshot()}function tu(e,t,n){e.translate=Ce(t.translate,0,n),e.scale=Ce(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function nu(e,t,n,r){e.min=Ce(t.min,n.min,r),e.max=Ce(t.max,n.max,r)}function P8(e,t,n,r){nu(e.x,t.x,n.x,r),nu(e.y,t.y,n.y,r)}function _8(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const O8={duration:.45,ease:[.4,0,.1,1]},ru=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ou=ru("applewebkit/")&&!ru("chrome/")?Math.round:Xe;function iu(e){e.min=ou(e.min),e.max=ou(e.max)}function M8(e){iu(e.x),iu(e.y)}function Gp(e,t,n){return e==="position"||e==="preserve-aspect"&&!B6(Uc(t),Uc(n),.2)}function V8(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const F8=jp({attachResizeListener:(e,t)=>rr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ci={current:void 0},Wp=jp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ci.current){const e=new F8({});e.mount(window),e.setOptions({layoutScroll:!0}),Ci.current=e}return Ci.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),N8={pan:{Feature:q6},drag:{Feature:Q6,ProjectionNode:Wp,MeasureLayout:Fp}};function au(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&be.postRender(()=>i(t,pr(t)))}class D8 extends Dt{mount(){const{current:t}=this.node;t&&(this.unmount=r9(t,(n,r)=>(au(this.node,r,"Start"),o=>au(this.node,o,"End"))))}unmount(){}}class L8 extends Dt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ur(rr(this.node.current,"focus",()=>this.onFocus()),rr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function su(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&be.postRender(()=>i(t,pr(t)))}class B8 extends Dt{mount(){const{current:t}=this.node;t&&(this.unmount=s9(t,(n,r)=>(su(this.node,r,"Start"),(o,{success:i})=>su(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const va=new WeakMap,xi=new WeakMap,k8=e=>{const t=va.get(e.target);t&&t(e)},j8=e=>{e.forEach(k8)};function G8({root:e,...t}){const n=e||document;xi.has(n)||xi.set(n,{});const r=xi.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(j8,{root:e,...t})),r[o]}function W8(e,t,n){const r=G8(t);return va.set(e,n),r.observe(e),()=>{va.delete(e),r.unobserve(e)}}const H8={some:0,all:1};class X8 extends Dt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:H8[o]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return W8(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Z8(t,n))&&this.startObserver()}unmount(){}}function Z8({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const z8={inView:{Feature:X8},tap:{Feature:B8},focus:{Feature:L8},hover:{Feature:D8}},Y8={layout:{ProjectionNode:Wp,MeasureLayout:Fp}},$8={...M6,...z8,...N8,...Y8},js=$9($8,s6),Hp=S.createContext(null),hr=()=>{const e=S.useContext(Hp);if(!e)throw new Error("useModalContext must be used within a Modal provider");return e},Xp=({children:e,isOpen:t,onOpenChange:n,initialOpen:r=!1})=>{const[o,i]=S.useState(r),a=S.useId(),s=S.useId(),l=t!==void 0,c=l?t:o,u=S.useCallback(f=>{l||i(f),n==null||n(f)},[l,n]),d={isOpen:c,onOpenChange:u,titleId:a,descriptionId:s};return p.jsx(Hp.Provider,{value:d,children:e})},Zp=S.forwardRef(({children:e,...t},n)=>{const{isOpen:r,onOpenChange:o}=hr();return p.jsx("button",{ref:n,onClick:()=>o(!r),...t,children:e})});Zp.displayName="ModalTrigger";const Gs=({children:e})=>{const{isOpen:t}=hr(),[n,r]=S.useState(!1);return S.useEffect(()=>{r(!0)},[]),n?ht.createPortal(p.jsx(np,{children:t&&e}),document.body):null};Gs.displayName="ModalPortal";const Ws=()=>{const{overlay:e}=X.modalSlot();return p.jsx(js.div,{className:e,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeInOut"},"aria-hidden":"true"})};Ws.displayName="ModalOverlay";const Hs=({children:e,size:t="default",noPadding:n=!1,fullScreen:r=!1,fullHeight:o=!1,...i})=>{const{onOpenChange:a,titleId:s,descriptionId:l}=hr(),{positioner:c,content:u}=X.modalSlot({size:t,noPadding:n,fullScreen:r,fullHeight:o}),d=h=>{h.target===h.currentTarget&&a(!1)};S.useEffect(()=>{const h=m=>{m.key==="Escape"&&a(!1)};return document.addEventListener("keydown",h),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",h),document.body.style.overflow=""}},[a]);const f={hidden:{opacity:0,scale:.95,y:20},visible:{opacity:1,scale:1,y:0,transition:{duration:.2,ease:"easeOut"}},exit:{opacity:0,scale:.95,y:20,transition:{duration:.15,ease:"easeIn"}}};return p.jsx(hb,{active:!0,children:p.jsx("div",{className:c,onClick:d,children:p.jsx(js.div,{...i,className:u,role:"dialog","aria-modal":"true","aria-labelledby":s,"aria-describedby":l,variants:f,initial:"hidden",animate:"visible",exit:"exit",children:e})})})};Hs.displayName="ModalContent";const gr=(e,t)=>{const n=S.forwardRef((r,o)=>{const{as:i,...a}=r,s=i||t,c=X.modalSlot()[e],{titleId:u,descriptionId:d}=hr(),f=e==="title"?{id:u}:e==="description"?{id:d}:{};return p.jsx(s,{ref:o,className:c,...f,...a})});return n.displayName=`Modal.${e.charAt(0).toUpperCase()+e.slice(1)}`,n},zp=gr("header","div"),Yp=gr("body","div"),$p=gr("footer","div"),Jp=gr("title","h2"),J8=gr("description","p"),Xs=e=>{const{closeButton:t}=X.modalSlot(),{onOpenChange:n}=hr();return p.jsx("button",{className:t,onClick:()=>n(!1),"aria-label":"Fechar modal",...e,children:"✕"})};Xs.displayName="ModalCloseButton";const U8=({isOpen:e,onOpenChange:t,initialOpen:n,title:r,children:o,footer:i,hideCloseButton:a,size:s,noPadding:l,fullScreen:c,fullHeight:u,...d})=>p.jsx(Xp,{isOpen:e,onOpenChange:t,initialOpen:n,children:p.jsxs(Gs,{children:[p.jsx(Ws,{}),p.jsxs(Hs,{size:s,noPadding:l,fullScreen:c,fullHeight:u,...d,children:[r&&p.jsx(zp,{children:p.jsx(Jp,{children:r})}),!a&&p.jsx(Xs,{}),p.jsx(Yp,{children:o}),i&&p.jsx($p,{children:i})]})]})}),K8=Object.assign(U8,{Root:Xp,Trigger:Zp,Portal:Gs,Overlay:Ws,Content:Hs,Header:zp,Body:Yp,Footer:$p,Title:Jp,Description:J8,CloseButton:Xs}),jn="...",_r=(e,t)=>{const n=t-e+1;return Array.from({length:n},(r,o)=>o+e)},Q8=({pageSize:e,siblingCount:t=1,currentPage:n})=>S.useMemo(()=>{const o=e;if(t+5>=o)return _r(1,o);const a=Math.max(n-t,1),s=Math.min(n+t,o),l=a>2,c=s<o-2,u=1,d=o;if(!l&&c){const f=3+2*t;return[..._r(1,f),jn,o]}if(l&&!c){const f=3+2*t,h=_r(o-f+1,o);return[u,jn,...h]}if(l&&c){const f=_r(a,s);return[u,jn,...f,jn,d]}return[]},[e,t,n]),q8=({onPageChange:e,totalCount:t,currentPage:n,pageSize:r,siblingCount:o=1})=>{const i=Q8({currentPage:n,siblingCount:o,pageSize:r});if(n===0||(i==null?void 0:i.length)<2)return null;const a=()=>{e(n+1)},s=()=>{e(n-1)},l=i[i.length-1],c=X.paginationSlot({});return p.jsxs("ul",{className:c.container,children:[p.jsx("li",{className:X.paginationSlot({disabled:n===1}).item,onClick:s,children:p.jsx("div",{className:X.paginationSlot({direction:"left"}).arrow})}),i==null?void 0:i.map((u,d)=>u===jn?p.jsx("li",{className:X.paginationSlot({dots:!0}).item,children:"…"},`dots-${d}`):p.jsx("li",{className:X.paginationSlot({selected:u===n}).item,onClick:()=>e(Number(u)),children:u},u)),p.jsx("li",{className:X.paginationSlot({disabled:n===l}).item,onClick:a,children:p.jsx("div",{className:X.paginationSlot({direction:"right",disabled:n===l}).arrow})})]})};function Tt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function lu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Up(...e){return t=>{let n=!1;const r=e.map(o=>{const i=lu(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():lu(e[o],null)}}}}function Lt(...e){return v.useCallback(Up(...e),e)}function Kp(e,t=[]){let n=[];function r(i,a){const s=v.createContext(a),l=n.length;n=[...n,a];const c=d=>{var y;const{scope:f,children:h,...m}=d,g=((y=f==null?void 0:f[e])==null?void 0:y[l])||s,b=v.useMemo(()=>m,Object.values(m));return p.jsx(g.Provider,{value:b,children:h})};c.displayName=i+"Provider";function u(d,f){var g;const h=((g=f==null?void 0:f[e])==null?void 0:g[l])||s,m=v.useContext(h);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const o=()=>{const i=n.map(a=>v.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,e7(o,...t)]}function e7(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...s,...d}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Qp(e){const t=t7(e),n=v.forwardRef((r,o)=>{const{children:i,...a}=r,s=v.Children.toArray(i),l=s.find(r7);if(l){const c=l.props.children,u=s.map(d=>d===l?v.Children.count(c)>1?v.Children.only(null):v.isValidElement(c)?c.props.children:null:d);return p.jsx(t,{...a,ref:o,children:v.isValidElement(c)?v.cloneElement(c,void 0,u):null})}return p.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function t7(e){const t=v.forwardRef((n,r)=>{const{children:o,...i}=n;if(v.isValidElement(o)){const a=i7(o),s=o7(i,o.props);return o.type!==v.Fragment&&(s.ref=r?Up(r,a):a),v.cloneElement(o,s)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var n7=Symbol("radix.slottable");function r7(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===n7}function o7(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function i7(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var a7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xt=a7.reduce((e,t)=>{const n=Qp(`Primitive.${t}`),r=v.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function s7(e,t){e&&Ea.flushSync(()=>e.dispatchEvent(t))}function wn(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function l7(e,t=globalThis==null?void 0:globalThis.document){const n=wn(e);v.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var c7="DismissableLayer",ba="dismissableLayer.update",u7="dismissableLayer.pointerDownOutside",d7="dismissableLayer.focusOutside",cu,qp=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),e2=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=e,c=v.useContext(qp),[u,d]=v.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=v.useState({}),m=Lt(t,A=>d(A)),g=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),C=u?g.indexOf(u):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,w=C>=y,I=h7(A=>{const E=A.target,D=[...c.branches].some(L=>L.contains(E));!w||D||(o==null||o(A),a==null||a(A),A.defaultPrevented||s==null||s())},f),T=g7(A=>{const E=A.target;[...c.branches].some(L=>L.contains(E))||(i==null||i(A),a==null||a(A),A.defaultPrevented||s==null||s())},f);return l7(A=>{C===c.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&s&&(A.preventDefault(),s()))},f),v.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(cu=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),uu(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=cu)}},[u,f,n,c]),v.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),uu())},[u,c]),v.useEffect(()=>{const A=()=>h({});return document.addEventListener(ba,A),()=>document.removeEventListener(ba,A)},[]),p.jsx(xt.div,{...l,ref:m,style:{pointerEvents:x?w?"auto":"none":void 0,...e.style},onFocusCapture:Tt(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Tt(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Tt(e.onPointerDownCapture,I.onPointerDownCapture)})});e2.displayName=c7;var f7="DismissableLayerBranch",p7=v.forwardRef((e,t)=>{const n=v.useContext(qp),r=v.useRef(null),o=Lt(t,r);return v.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(xt.div,{...e,ref:o})});p7.displayName=f7;function h7(e,t=globalThis==null?void 0:globalThis.document){const n=wn(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){t2(u7,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function g7(e,t=globalThis==null?void 0:globalThis.document){const n=wn(e),r=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!r.current&&t2(d7,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function uu(){const e=new CustomEvent(ba);document.dispatchEvent(e)}function t2(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?s7(o,i):o.dispatchEvent(i)}var Ii=0;function m7(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??du()),document.body.insertAdjacentElement("beforeend",e[1]??du()),Ii++,()=>{Ii===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ii--}},[])}function du(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var wi="focusScope.autoFocusOnMount",Si="focusScope.autoFocusOnUnmount",fu={bubbles:!1,cancelable:!0},v7="FocusScope",n2=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=v.useState(null),c=wn(o),u=wn(i),d=v.useRef(null),f=Lt(t,g=>l(g)),h=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let g=function(x){if(h.paused||!s)return;const w=x.target;s.contains(w)?d.current=w:St(d.current,{select:!0})},b=function(x){if(h.paused||!s)return;const w=x.relatedTarget;w!==null&&(s.contains(w)||St(d.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const I of x)I.removedNodes.length>0&&St(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const C=new MutationObserver(y);return s&&C.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),C.disconnect()}}},[r,s,h.paused]),v.useEffect(()=>{if(s){hu.add(h);const g=document.activeElement;if(!s.contains(g)){const y=new CustomEvent(wi,fu);s.addEventListener(wi,c),s.dispatchEvent(y),y.defaultPrevented||(b7(w7(r2(s)),{select:!0}),document.activeElement===g&&St(s))}return()=>{s.removeEventListener(wi,c),setTimeout(()=>{const y=new CustomEvent(Si,fu);s.addEventListener(Si,u),s.dispatchEvent(y),y.defaultPrevented||St(g??document.body,{select:!0}),s.removeEventListener(Si,u),hu.remove(h)},0)}}},[s,c,u,h]);const m=v.useCallback(g=>{if(!n&&!r||h.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(b&&y){const C=g.currentTarget,[x,w]=y7(C);x&&w?!g.shiftKey&&y===w?(g.preventDefault(),n&&St(x,{select:!0})):g.shiftKey&&y===x&&(g.preventDefault(),n&&St(w,{select:!0})):y===C&&g.preventDefault()}},[n,r,h.paused]);return p.jsx(xt.div,{tabIndex:-1,...a,ref:f,onKeyDown:m})});n2.displayName=v7;function b7(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(St(r,{select:t}),document.activeElement!==n)return}function y7(e){const t=r2(e),n=pu(t,e),r=pu(t.reverse(),e);return[n,r]}function r2(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function pu(e,t){for(const n of e)if(!C7(n,{upTo:t}))return n}function C7(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function x7(e){return e instanceof HTMLInputElement&&"select"in e}function St(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&x7(e)&&t&&e.select()}}var hu=I7();function I7(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=gu(e,t),e.unshift(t)},remove(t){var n;e=gu(e,t),(n=e[0])==null||n.resume()}}}function gu(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function w7(e){return e.filter(t=>t.tagName!=="A")}var Vt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},S7=v[" useId ".trim().toString()]||(()=>{}),A7=0;function E7(e){const[t,n]=v.useState(S7());return Vt(()=>{n(r=>r??String(A7++))},[e]),e||(t?`radix-${t}`:"")}var T7="Arrow",o2=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return p.jsx(xt.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});o2.displayName=T7;var R7=o2;function P7(e){const[t,n]=v.useState(void 0);return Vt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,s=c.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Zs="Popper",[i2,a2]=Kp(Zs),[_7,s2]=i2(Zs),l2=e=>{const{__scopePopper:t,children:n}=e,[r,o]=v.useState(null);return p.jsx(_7,{scope:t,anchor:r,onAnchorChange:o,children:n})};l2.displayName=Zs;var c2="PopperAnchor",u2=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=s2(c2,n),a=v.useRef(null),s=Lt(t,a),l=v.useRef(null);return v.useEffect(()=>{const c=l.current;l.current=(r==null?void 0:r.current)||a.current,c!==l.current&&i.onAnchorChange(l.current)}),r?null:p.jsx(xt.div,{...o,ref:s})});u2.displayName=c2;var zs="PopperContent",[O7,M7]=i2(zs),d2=v.forwardRef((e,t)=>{var $,Y,te,ne,ae,j;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:m,...g}=e,b=s2(zs,n),[y,C]=v.useState(null),x=Lt(t,le=>C(le)),[w,I]=v.useState(null),T=P7(w),A=(T==null?void 0:T.width)??0,E=(T==null?void 0:T.height)??0,D=r+(i!=="center"?"-"+i:""),L=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},W=Array.isArray(c)?c:[c],B=W.length>0,R={padding:L,boundary:W.filter(F7),altBoundary:B},{refs:_,floatingStyles:V,placement:N,isPositioned:F,middlewareData:O}=Nd({strategy:"fixed",placement:D,whileElementsMounted:(...le)=>Za(...le,{animationFrame:h==="always"}),elements:{reference:b.anchor},middleware:[Dd({mainAxis:o+E,alignmentAxis:a}),l&&Ld({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Bd():void 0,...R}),l&&kd({...R}),jd({...R,apply:({elements:le,rects:ve,availableWidth:Ae,availableHeight:Ze})=>{const{width:J,height:K}=ve.reference,Q=le.floating.style;Q.setProperty("--radix-popper-available-width",`${Ae}px`),Q.setProperty("--radix-popper-available-height",`${Ze}px`),Q.setProperty("--radix-popper-anchor-width",`${J}px`),Q.setProperty("--radix-popper-anchor-height",`${K}px`)}}),w&&Wd({element:w,padding:s}),N7({arrowWidth:A,arrowHeight:E}),f&&Gd({strategy:"referenceHidden",...R})]}),[k,P]=h2(N),M=wn(m);Vt(()=>{F&&(M==null||M())},[F,M]);const G=($=O.arrow)==null?void 0:$.x,Z=(Y=O.arrow)==null?void 0:Y.y,H=((te=O.arrow)==null?void 0:te.centerOffset)!==0,[U,z]=v.useState();return Vt(()=>{y&&z(window.getComputedStyle(y).zIndex)},[y]),p.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:F?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[(ne=O.transformOrigin)==null?void 0:ne.x,(ae=O.transformOrigin)==null?void 0:ae.y].join(" "),...((j=O.hide)==null?void 0:j.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(O7,{scope:n,placedSide:k,onArrowChange:I,arrowX:G,arrowY:Z,shouldHideArrow:H,children:p.jsx(xt.div,{"data-side":k,"data-align":P,...g,ref:x,style:{...g.style,animation:F?void 0:"none"}})})})});d2.displayName=zs;var f2="PopperArrow",V7={top:"bottom",right:"left",bottom:"top",left:"right"},p2=v.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=M7(f2,r),a=V7[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:p.jsx(R7,{...o,ref:n,style:{...o.style,display:"block"}})})});p2.displayName=f2;function F7(e){return e!==null}var N7=e=>({name:"transformOrigin",options:e,fn(t){var b,y,C;const{placement:n,rects:r,middlewareData:o}=t,a=((b=o.arrow)==null?void 0:b.centerOffset)!==0,s=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[c,u]=h2(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((y=o.arrow)==null?void 0:y.x)??0)+s/2,h=(((C=o.arrow)==null?void 0:C.y)??0)+l/2;let m="",g="";return c==="bottom"?(m=a?d:`${f}px`,g=`${-l}px`):c==="top"?(m=a?d:`${f}px`,g=`${r.floating.height+l}px`):c==="right"?(m=`${-l}px`,g=a?d:`${h}px`):c==="left"&&(m=`${r.floating.width+l}px`,g=a?d:`${h}px`),{data:{x:m,y:g}}}});function h2(e){const[t,n="center"]=e.split("-");return[t,n]}var D7=l2,g2=u2,L7=d2,B7=p2,k7="Portal",m2=v.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,i]=v.useState(!1);Vt(()=>i(!0),[]);const a=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return a?ht.createPortal(p.jsx(xt.div,{...r,ref:t}),a):null});m2.displayName=k7;function j7(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var Ys=e=>{const{present:t,children:n}=e,r=G7(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=Lt(r.ref,W7(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};Ys.displayName="Presence";function G7(e){const[t,n]=v.useState(),r=v.useRef(null),o=v.useRef(e),i=v.useRef("none"),a=e?"mounted":"unmounted",[s,l]=j7(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const c=Or(r.current);i.current=s==="mounted"?c:"none"},[s]),Vt(()=>{const c=r.current,u=o.current;if(u!==e){const f=i.current,h=Or(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&f!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Vt(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=h=>{const g=Or(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&g&&(l("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=h=>{h.target===t&&(i.current=Or(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Or(e){return(e==null?void 0:e.animationName)||"none"}function W7(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var H7=v[" useInsertionEffect ".trim().toString()]||Vt;function X7({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=Z7({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:o;{const u=v.useRef(e!==void 0);v.useEffect(()=>{const d=u.current;d!==s&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,r])}const c=v.useCallback(u=>{var d;if(s){const f=z7(u)?u(e):u;f!==e&&((d=a.current)==null||d.call(a,f))}else i(u)},[s,e,i,a]);return[l,c]}function Z7({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),o=v.useRef(n),i=v.useRef(t);return H7(()=>{i.current=t},[t]),v.useEffect(()=>{var a;o.current!==n&&((a=i.current)==null||a.call(i,n),o.current=n)},[n,o]),[n,r,i]}function z7(e){return typeof e=="function"}var Do="Popover",[v2,Yw]=Kp(Do,[a2]),mr=a2(),[Y7,Bt]=v2(Do),b2=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=mr(t),l=v.useRef(null),[c,u]=v.useState(!1),[d,f]=X7({prop:r,defaultProp:o??!1,onChange:i,caller:Do});return p.jsx(D7,{...s,children:p.jsx(Y7,{scope:t,contentId:E7(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(h=>!h),[f]),hasCustomAnchor:c,onCustomAnchorAdd:v.useCallback(()=>u(!0),[]),onCustomAnchorRemove:v.useCallback(()=>u(!1),[]),modal:a,children:n})})};b2.displayName=Do;var y2="PopoverAnchor",$7=v.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Bt(y2,n),i=mr(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return v.useEffect(()=>(a(),()=>s()),[a,s]),p.jsx(g2,{...i,...r,ref:t})});$7.displayName=y2;var C2="PopoverTrigger",x2=v.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Bt(C2,n),i=mr(n),a=Lt(t,o.triggerRef),s=p.jsx(xt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":T2(o.open),...r,ref:a,onClick:Tt(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:p.jsx(g2,{asChild:!0,...i,children:s})});x2.displayName=C2;var $s="PopoverPortal",[J7,U7]=v2($s,{forceMount:void 0}),I2=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Bt($s,t);return p.jsx(J7,{scope:t,forceMount:n,children:p.jsx(Ys,{present:n||i.open,children:p.jsx(m2,{asChild:!0,container:o,children:r})})})};I2.displayName=$s;var Sn="PopoverContent",w2=v.forwardRef((e,t)=>{const n=U7(Sn,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Bt(Sn,e.__scopePopover);return p.jsx(Ys,{present:r||i.open,children:i.modal?p.jsx(Q7,{...o,ref:t}):p.jsx(q7,{...o,ref:t})})});w2.displayName=Sn;var K7=Qp("PopoverContent.RemoveScroll"),Q7=v.forwardRef((e,t)=>{const n=Bt(Sn,e.__scopePopover),r=v.useRef(null),o=Lt(t,r),i=v.useRef(!1);return v.useEffect(()=>{const a=r.current;if(a)return M1(a)},[]),p.jsx(es,{as:K7,allowPinchZoom:!0,children:p.jsx(S2,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Tt(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Tt(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,c=s.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:Tt(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),q7=v.forwardRef((e,t)=>{const n=Bt(Sn,e.__scopePopover),r=v.useRef(!1),o=v.useRef(!1);return p.jsx(S2,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,s;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),S2=v.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,f=Bt(Sn,n),h=mr(n);return m7(),p.jsx(n2,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:p.jsx(e2,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:p.jsx(L7,{"data-state":T2(f.open),role:"dialog",id:f.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),A2="PopoverClose",ey=v.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Bt(A2,n);return p.jsx(xt.button,{type:"button",...r,ref:t,onClick:Tt(e.onClick,()=>o.onOpenChange(!1))})});ey.displayName=A2;var ty="PopoverArrow",E2=v.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=mr(n);return p.jsx(B7,{...o,...r,ref:t})});E2.displayName=ty;function T2(e){return e?"open":"closed"}var ny=b2,ry=x2,oy=I2,iy=w2,ay=E2;const sy=({trigger:e,content:t,children:n,side:r="bottom",align:o="center",sideOffset:i=5,collisionPadding:a=8,open:s,onOpenChange:l,className:c})=>{const u=X.popover(),d=t||n;return p.jsxs(ny,{open:s,onOpenChange:l,children:[p.jsx(ry,{asChild:!0,children:e}),p.jsx(np,{children:s&&p.jsx(oy,{forceMount:!0,children:p.jsx(iy,{asChild:!0,forceMount:!0,side:r,align:o,sideOffset:i,collisionPadding:a,onOpenAutoFocus:f=>f.preventDefault(),className:c,children:p.jsxs(js.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.15,ease:"easeInOut"},className:u.content,children:[d,p.jsx(ay,{className:u.arrow})]})})})})]})},R2=e=>{const t=n=>p.jsx(g1,{children:r=>p.jsx(e,{...n,breakpoint:r.breakpoint,isGreaterThan:o=>b1(o,r.breakpoint.value),isLessThan:o=>v1(o,r.breakpoint.value)})});return t.displayName=`WithBreakpoints(${e.displayName||e.name||"Component"})`,t};function Qt(e){"@babel/helpers - typeof";return Qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qt(e)}function ly(e,t){if(Qt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P2(e){var t=ly(e,"string");return Qt(t)=="symbol"?t:t+""}function fn(e,t,n){return(t=P2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mu(Object(n),!0).forEach(function(r){fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cy(e){if(Array.isArray(e))return e}function uy(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function ya(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _2(e,t){if(e){if(typeof e=="string")return ya(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ya(e,t):void 0}}function dy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
79
+ `),()=>{b.contains(g)&&b.removeChild(g)}},[t]),p.jsx(p9,{isPresent:t,childRef:i,sizeRef:a,children:v.cloneElement(e,{ref:l})})}const g9=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a,anchorX:s,root:l})=>{const c=ss(m9),u=S.useId();let d=!0,f=S.useMemo(()=>(d=!1,{id:u,initial:t,isPresent:n,custom:o,onExitComplete:h=>{c.set(h,!0);for(const m of c.values())if(!m)return;r&&r()},register:h=>(c.set(h,!1),()=>c.delete(h))}),[n,c,r]);return i&&d&&(f={...f}),S.useMemo(()=>{c.forEach((h,m)=>c.set(m,!1))},[n]),v.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),a==="popLayout"&&(e=p.jsx(h9,{isPresent:n,anchorX:s,root:l,children:e})),p.jsx(Mo.Provider,{value:f,children:e})};function m9(){return new Map}function tp(e=!0){const t=S.useContext(Mo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=S.useId();S.useEffect(()=>{if(e)return o(i)},[e]);const a=S.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,a]:[!0]}const Rr=e=>e.key||"";function gc(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const np=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:a=!1,anchorX:s="left",root:l})=>{const[c,u]=tp(a),d=S.useMemo(()=>gc(e),[e]),f=a&&!c?[]:d.map(Rr),h=S.useRef(!0),m=S.useRef(d),g=ss(()=>new Map),[b,y]=S.useState(d),[C,x]=S.useState(d);uf(()=>{h.current=!1,m.current=d;for(let T=0;T<C.length;T++){const A=Rr(C[T]);f.includes(A)?g.delete(A):g.get(A)!==!0&&g.set(A,!1)}},[C,f.length,f.join("-")]);const w=[];if(d!==b){let T=[...d];for(let A=0;A<C.length;A++){const E=C[A],D=Rr(E);f.includes(D)||(T.splice(A,0,E),w.push(E))}return i==="wait"&&w.length&&(T=w),x(gc(T)),y(d),null}process.env.NODE_ENV!=="production"&&i==="wait"&&C.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:I}=S.useContext(as);return p.jsx(p.Fragment,{children:C.map(T=>{const A=Rr(T),E=a&&!c?!1:d===C||f.includes(A),D=()=>{if(g.has(A))g.set(A,!0);else return;let L=!0;g.forEach(W=>{W||(L=!1)}),L&&(I==null||I(),x(m.current),a&&(u==null||u()),r&&r())};return p.jsx(g9,{isPresent:E,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:E?void 0:D,anchorX:s,children:T},A)})})},rp=S.createContext({strict:!1}),mc={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"]},In={};for(const e in mc)In[e]={isEnabled:t=>mc[e].some(n=>!!t[n])};function v9(e){for(const t in e)In[t]={...In[t],...e[t]}}const b9=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function fo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||b9.has(e)}let op=e=>!fo(e);function y9(e){typeof e=="function"&&(op=t=>t.startsWith("on")?!fo(t):e(t))}try{y9(require("@emotion/is-prop-valid").default)}catch{}function C9(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(op(o)||n===!0&&fo(o)||!t&&!fo(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const Vo=S.createContext({});function Fo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function tr(e){return typeof e=="string"||Array.isArray(e)}const Os=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ms=["initial",...Os];function No(e){return Fo(e.animate)||Ms.some(t=>tr(e[t]))}function ip(e){return!!(No(e)||e.variants)}function x9(e,t){if(No(e)){const{initial:n,animate:r}=e;return{initial:n===!1||tr(n)?n:void 0,animate:tr(r)?r:void 0}}return e.inherit!==!1?t:{}}function I9(e){const{initial:t,animate:n}=x9(e,S.useContext(Vo));return S.useMemo(()=>({initial:t,animate:n}),[vc(t),vc(n)])}function vc(e){return Array.isArray(e)?e.join(" "):e}const nr={};function w9(e){for(const t in e)nr[t]=e[t],ms(t)&&(nr[t].isCSSVariable=!0)}function ap(e,{layout:t,layoutId:n}){return On.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!nr[e]||e==="opacity")}const S9={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},A9=_n.length;function E9(e,t,n){let r="",o=!0;for(let i=0;i<A9;i++){const a=_n[i],s=e[a];if(s===void 0)continue;let l=!0;if(typeof s=="number"?l=s===(a.startsWith("scale")?1:0):l=parseFloat(s)===0,!l||n){const c=Jf(s,Ts[a]);if(!l){o=!1;const u=S9[a]||a;r+=`${u}(${c}) `}n&&(t[a]=c)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Vs(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let a=!1,s=!1;for(const l in t){const c=t[l];if(On.has(l)){a=!0;continue}else if(ms(l)){o[l]=c;continue}else{const u=Jf(c,Ts[l]);l.startsWith("origin")?(s=!0,i[l]=u):r[l]=u}}if(t.transform||(a||n?r.transform=E9(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}const Fs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sp(e,t,n){for(const r in t)!Me(t[r])&&!ap(r,n)&&(e[r]=t[r])}function T9({transformTemplate:e},t){return S.useMemo(()=>{const n=Fs();return Vs(n,t,e),Object.assign({},n.vars,n.style)},[t])}function R9(e,t){const n=e.style||{},r={};return sp(r,n,e),Object.assign(r,T9(e,t)),r}function P9(e,t){const n={},r=R9(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}const _9={offset:"stroke-dashoffset",array:"stroke-dasharray"},O9={offset:"strokeDashoffset",array:"strokeDasharray"};function M9(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?_9:O9;e[i.offset]=oe.transform(-r);const a=oe.transform(t),s=oe.transform(n);e[i.array]=`${a} ${s}`}function lp(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:a=0,...s},l,c,u){if(Vs(e,s,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{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==null?void 0:u.transformBox)??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&M9(d,o,i,a,!1)}const cp=()=>({...Fs(),attrs:{}}),up=e=>typeof e=="string"&&e.toLowerCase()==="svg";function V9(e,t,n,r){const o=S.useMemo(()=>{const i=cp();return lp(i,t,up(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};sp(i,e.style,e),o.style={...i,...o.style}}return o}const F9=["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 Ns(e){return typeof e!="string"||e.includes("-")?!1:!!(F9.indexOf(e)>-1||/[A-Z]/u.test(e))}function N9(e,t,n,{latestValues:r},o,i=!1){const s=(Ns(e)?V9:P9)(t,r,o,e),l=C9(t,typeof e=="string",i),c=e!==S.Fragment?{...l,...s,ref:n}:{},{children:u}=t,d=S.useMemo(()=>Me(u)?u.get():u,[u]);return S.createElement(e,{...c,children:d})}function bc(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ds(e,t,n,r){if(typeof t=="function"){const[o,i]=bc(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=bc(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Gr(e){return Me(e)?e.get():e}function D9({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:L9(n,r,o,e),renderState:t()}}function L9(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Gr(i[f]);let{initial:a,animate:s}=e;const l=No(e),c=ip(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u=u||a===!1;const d=u?s:a;if(d&&typeof d!="boolean"&&!Fo(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const m=Ds(e,f[h]);if(m){const{transitionEnd:g,transition:b,...y}=m;for(const C in y){let x=y[C];if(Array.isArray(x)){const w=u?x.length-1:0;x=x[w]}x!==null&&(o[C]=x)}for(const C in g)o[C]=g[C]}}}return o}const dp=e=>(t,n)=>{const r=S.useContext(Vo),o=S.useContext(Mo),i=()=>D9(e,t,r,o);return n?i():ss(i)};function Ls(e,t,n){var i;const{style:r}=e,o={};for(const a in r)(Me(r[a])||t.style&&Me(t.style[a])||ap(a,e)||((i=n==null?void 0:n.getValue(a))==null?void 0:i.liveStyle)!==void 0)&&(o[a]=r[a]);return o}const B9=dp({scrapeMotionValuesFromProps:Ls,createRenderState:Fs});function fp(e,t,n){const r=Ls(e,t,n);for(const o in e)if(Me(e[o])||Me(t[o])){const i=_n.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const k9=dp({scrapeMotionValuesFromProps:fp,createRenderState:cp}),j9=Symbol.for("motionComponentSymbol");function ln(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function G9(e,t,n){return S.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ln(n)&&(n.current=r))},[t])}const Bs=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),W9="framerAppearId",pp="data-"+Bs(W9),hp=S.createContext({});function H9(e,t,n,r,o){var g,b;const{visualElement:i}=S.useContext(Vo),a=S.useContext(rp),s=S.useContext(Mo),l=S.useContext(_s).reducedMotion,c=S.useRef(null);r=r||a.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,d=S.useContext(hp);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&X9(c.current,n,o,d);const f=S.useRef(!1);S.useInsertionEffect(()=>{u&&f.current&&u.update(n,s)});const h=n[pp],m=S.useRef(!!h&&!((g=window.MotionHandoffIsComplete)!=null&&g.call(window,h))&&((b=window.MotionHasOptimisedAnimation)==null?void 0:b.call(window,h)));return uf(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),m.current&&u.animationState&&u.animationState.animateChanges())}),S.useEffect(()=>{u&&(!m.current&&u.animationState&&u.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)==null||y.call(window,h)}),m.current=!1),u.enteringChildren=void 0)}),u}function X9(e,t,n,r){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:gp(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!a||s&&ln(s),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}function gp(e){if(e)return e.options.allowProjection!==!1?e.projection:gp(e.parent)}function pi(e,{forwardMotionProps:t=!1}={},n,r){n&&v9(n);const o=Ns(e)?k9:B9;function i(s,l){let c;const u={...S.useContext(_s),...s,layoutId:Z9(s)},{isStatic:d}=u,f=I9(s),h=o(s,d);if(!d&&ls){z9(u,n);const m=Y9(u);c=m.MeasureLayout,f.visualElement=H9(e,h,u,r,m.ProjectionNode)}return p.jsxs(Vo.Provider,{value:f,children:[c&&f.visualElement?p.jsx(c,{visualElement:f.visualElement,...u}):null,N9(e,s,G9(h,f.visualElement,l),h,d,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const a=S.forwardRef(i);return a[j9]=e,a}function Z9({layoutId:e}){const t=S.useContext(as).id;return t&&e!==void 0?t+"-"+e:e}function z9(e,t){const n=S.useContext(rp).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Rn(!1,r,"lazy-strict-mode"):bt(!1,r,"lazy-strict-mode")}}function Y9(e){const{drag:t,layout:n}=In;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function $9(e,t){if(typeof Proxy>"u")return pi;const n=new Map,r=(i,a)=>pi(i,a,e,t),o=(i,a)=>(process.env.NODE_ENV!=="production"&&ps(!1,"motion() is deprecated. Use motion.create() instead."),r(i,a));return new Proxy(o,{get:(i,a)=>a==="create"?r:(n.has(a)||n.set(a,pi(a,void 0,e,t)),n.get(a))})}function mp({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function J9({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function U9(e,t){if(!t)return e;const 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 hi(e){return e===void 0||e===1}function ua({scale:e,scaleX:t,scaleY:n}){return!hi(e)||!hi(t)||!hi(n)}function Ht(e){return ua(e)||vp(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vp(e){return yc(e.x)||yc(e.y)}function yc(e){return e&&e!=="0%"}function po(e,t,n){const r=e-n,o=t*r;return n+o}function Cc(e,t,n,r,o){return o!==void 0&&(e=po(e,o,r)),po(e,n,r)+t}function da(e,t=0,n=1,r,o){e.min=Cc(e.min,t,n,r,o),e.max=Cc(e.max,t,n,r,o)}function bp(e,{x:t,y:n}){da(e.x,t.translate,t.scale,t.originPoint),da(e.y,n.translate,n.scale,n.originPoint)}const xc=.999999999999,Ic=1.0000000000001;function K9(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&un(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,bp(e,a)),r&&Ht(i.latestValues)&&un(e,i.latestValues))}t.x<Ic&&t.x>xc&&(t.x=1),t.y<Ic&&t.y>xc&&(t.y=1)}function cn(e,t){e.min=e.min+t,e.max=e.max+t}function wc(e,t,n,r,o=.5){const i=Ce(e.min,e.max,o);da(e,t,n,i,r)}function un(e,t){wc(e.x,t.x,t.scaleX,t.scale,t.originX),wc(e.y,t.y,t.scaleY,t.scale,t.originY)}function yp(e,t){return mp(U9(e.getBoundingClientRect(),t))}function Q9(e,t,n){const r=yp(e,n),{scroll:o}=t;return o&&(cn(r.x,o.offset.x),cn(r.y,o.offset.y)),r}const Sc=()=>({translate:0,scale:1,origin:0,originPoint:0}),dn=()=>({x:Sc(),y:Sc()}),Ac=()=>({min:0,max:0}),Ie=()=>({x:Ac(),y:Ac()}),fa={current:null},Cp={current:!1};function q9(){if(Cp.current=!0,!!ls)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>fa.current=e.matches;e.addEventListener("change",t),t()}else fa.current=!1}const e6=new WeakMap;function t6(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Me(o))e.addValue(r,o);else if(Me(i))e.addValue(r,xn(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=e.getStaticValue(r);e.addValue(r,xn(a!==void 0?a:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Ec=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class n6{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=As,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=Ne.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,be.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=No(n),this.isVariantNode=ip(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const h=d[f];l[f]!==void 0&&Me(h)&&h.set(l[f])}}mount(t){var n;this.current=t,e6.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),Cp.current||q9(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:fa.current,process.env.NODE_ENV!=="production"&&ps(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Ot(this.notifyUpdate),Ot(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=On.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&be.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in In){const n=In[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ie()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Ec.length;r++){const o=Ec[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,a=t[i];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=t6(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=xn(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(df(r)||pf(r))?r=parseFloat(r):!u9(r)&&Mt.test(n)&&(r=$f(t,n)),this.setBaseTarget(t,Me(r)?r.get():r)),Me(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=Ds(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Me(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new fs),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Rs.render(this.render)}}class xp extends n6{constructor(){super(...arguments),this.KeyframeResolver=Q4}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Me(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ip(e,{style:t,vars:n},r,o){const i=e.style;let a;for(a in t)i[a]=t[a];o==null||o.applyProjectionStyles(i,r);for(a in n)i.setProperty(a,n[a])}function r6(e){return window.getComputedStyle(e)}class o6 extends xp{constructor(){super(...arguments),this.type="html",this.renderInstance=Ip}readValueFromInstance(t,n){var r;if(On.has(n))return(r=this.projection)!=null&&r.isProjecting?ra(n):m4(t,n);{const o=r6(t),i=(ms(n)?o.getPropertyValue(n):o[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return yp(t,n)}build(t,n,r){Vs(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ls(t,n,r)}}const wp=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function i6(e,t,n,r){Ip(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(wp.has(o)?o:Bs(o),t.attrs[o])}class a6 extends xp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ie}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(On.has(n)){const r=Yf(n);return r&&r.default||0}return n=wp.has(n)?n:Bs(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return fp(t,n,r)}build(t,n,r){lp(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){i6(t,n,r,o)}mount(t){this.isSVGTag=up(t.tagName),super.mount(t)}}const s6=(e,t)=>Ns(e)?new a6(t):new o6(t,{allowProjection:e!==S.Fragment});function gn(e,t,n){const r=e.getProps();return Ds(r,t,n!==void 0?n:r.custom,e)}const pa=e=>Array.isArray(e);function l6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xn(n))}function c6(e){return pa(e)?e[e.length-1]||0:e}function u6(e,t){const n=gn(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const a in i){const s=c6(i[a]);l6(e,a,s)}}function d6(e){return!!(Me(e)&&e.add)}function ha(e,t){const n=e.getValue("willChange");if(d6(n))return n.add(t);if(!n&&yt.WillChange){const r=new yt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Sp(e){return e.props[pp]}const f6=e=>e!==null;function p6(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(f6),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const h6={type:"spring",stiffness:500,damping:25,restSpeed:10},g6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),m6={type:"keyframes",duration:.8},v6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},b6=(e,{keyframes:t})=>t.length>2?m6:On.has(e)?e.startsWith("scale")?g6(t[1]):h6:v6;function y6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const ks=(e,t,n,r={},o,i)=>a=>{const s=Es(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c=c-$e(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:f=>{t.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};y6(s)||Object.assign(u,b6(e,u)),u.duration&&(u.duration=$e(u.duration)),u.repeatDelay&&(u.repeatDelay=$e(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(la(u),u.delay===0&&(d=!0)),(yt.instantAnimations||yt.skipAnimations)&&(d=!0,la(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!i&&t.get()!==void 0){const f=p6(u.keyframes,s);if(f!==void 0){be.update(()=>{u.onUpdate(f),u.onComplete()});return}}return s.isSync?new Ss(u):new k4(u)};function C6({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ap(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=t;r&&(i=r);const l=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const u in s){const d=e.getValue(u,e.latestValues[u]??null),f=s[u];if(f===void 0||c&&C6(c,u))continue;const h={delay:n,...Es(i||{},u)},m=d.get();if(m!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===m&&!h.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const y=Sp(e);if(y){const C=window.MotionHandoffAnimation(y,u,be);C!==null&&(h.startTime=C,g=!0)}}ha(e,u),d.start(ks(u,d,f,e.shouldReduceMotion&&Xf.has(u)?{type:!1}:h,e,g));const b=d.animation;b&&l.push(b)}return a&&Promise.all(l).then(()=>{be.update(()=>{a&&u6(e,a)})}),l}function Ep(e,t,n,r=0,o=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),a=e.size,s=(a-1)*r;return typeof n=="function"?n(i,a):o===1?i*r:s-i*r}function ga(e,t,n={}){var l;const r=gn(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Ap(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=o;return x6(e,t,c,u,d,f,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[c,u]=s==="beforeChildren"?[i,a]:[a,i];return c().then(()=>u())}else return Promise.all([i(),a(n.delay)])}function x6(e,t,n=0,r=0,o=0,i=1,a){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(ga(l,t,{...a,delay:n+(typeof r=="function"?0:r)+Ep(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function I6(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>ga(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=ga(e,t,n);else{const o=typeof t=="function"?gn(e,t,n.custom):t;r=Promise.all(Ap(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Tp(e,t){if(!Array.isArray(t))return!1;const 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}const w6=Ms.length;function Rp(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Rp(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<w6;n++){const r=Ms[n],o=e.props[r];(tr(o)||o===!1)&&(t[r]=o)}return t}const S6=[...Os].reverse(),A6=Os.length;function E6(e){return t=>Promise.all(t.map(({animation:n,options:r})=>I6(e,n,r)))}function T6(e){let t=E6(e),n=Tc(),r=!0;const o=l=>(c,u)=>{var f;const d=gn(e,u,l==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(d){const{transition:h,transitionEnd:m,...g}=d;c={...c,...g,...m}}return c};function i(l){t=l(e)}function a(l){const{props:c}=e,u=Rp(e.parent)||{},d=[],f=new Set;let h={},m=1/0;for(let b=0;b<A6;b++){const y=S6[b],C=n[y],x=c[y]!==void 0?c[y]:u[y],w=tr(x),I=y===l?C.isActive:null;I===!1&&(m=b);let T=x===u[y]&&x!==c[y]&&w;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),C.protectedKeys={...h},!C.isActive&&I===null||!x&&!C.prevProp||Fo(x)||typeof x=="boolean")continue;const A=R6(C.prevProp,x);let E=A||y===l&&C.isActive&&!T&&w||b>m&&w,D=!1;const L=Array.isArray(x)?x:[x];let W=L.reduce(o(y),{});I===!1&&(W={});const{prevResolvedValues:B={}}=C,R={...B,...W},_=F=>{E=!0,f.has(F)&&(D=!0,f.delete(F)),C.needsAnimating[F]=!0;const O=e.getValue(F);O&&(O.liveStyle=!1)};for(const F in R){const O=W[F],k=B[F];if(h.hasOwnProperty(F))continue;let P=!1;pa(O)&&pa(k)?P=!Tp(O,k):P=O!==k,P?O!=null?_(F):f.add(F):O!==void 0&&f.has(F)?_(F):C.protectedKeys[F]=!0}C.prevProp=x,C.prevResolvedValues=W,C.isActive&&(h={...h,...W}),r&&e.blockInitialAnimation&&(E=!1);const V=T&&A;E&&(!V||D)&&d.push(...L.map(F=>{const O={type:y};if(typeof F=="string"&&r&&!V&&e.manuallyAnimateOnMount&&e.parent){const{parent:k}=e,P=gn(k,F);if(k.enteringChildren&&P){const{delayChildren:M}=P.transition||{};O.delay=Ep(k.enteringChildren,e,M)}}return{animation:F,options:O}}))}if(f.size){const b={};if(typeof c.initial!="boolean"){const y=gn(e,Array.isArray(c.initial)?c.initial[0]:c.initial);y&&y.transition&&(b.transition=y.transition)}f.forEach(y=>{const C=e.getBaseTarget(y),x=e.getValue(y);x&&(x.liveStyle=!0),b[y]=C??null}),d.push({animation:b})}let g=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(d):Promise.resolve()}function s(l,c){var d;if(n[l].isActive===c)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(f=>{var h;return(h=f.animationState)==null?void 0:h.setActive(l,c)}),n[l].isActive=c;const u=a(l);for(const f in n)n[f].protectedKeys={};return u}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Tc(),r=!0}}}function R6(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Tp(t,e):!1}function kt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Tc(){return{animate:kt(!0),whileInView:kt(),whileHover:kt(),whileTap:kt(),whileDrag:kt(),whileFocus:kt(),exit:kt()}}class Dt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class P6 extends Dt{constructor(t){super(t),t.animationState||(t.animationState=T6(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Fo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let _6=0;class O6 extends Dt{constructor(){super(...arguments),this.id=_6++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const M6={animation:{Feature:P6},exit:{Feature:O6}};function rr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function pr(e){return{point:{x:e.pageX,y:e.pageY}}}const V6=e=>t=>Ps(t)&&e(t,pr(t));function Xn(e,t,n,r){return rr(e,t,V6(n),r)}const Pp=1e-4,F6=1-Pp,N6=1+Pp,_p=.01,D6=0-_p,L6=0+_p;function Fe(e){return e.max-e.min}function B6(e,t,n){return Math.abs(e-t)<=n}function Rc(e,t,n,r=.5){e.origin=r,e.originPoint=Ce(t.min,t.max,e.origin),e.scale=Fe(n)/Fe(t),e.translate=Ce(n.min,n.max,e.origin)-e.originPoint,(e.scale>=F6&&e.scale<=N6||isNaN(e.scale))&&(e.scale=1),(e.translate>=D6&&e.translate<=L6||isNaN(e.translate))&&(e.translate=0)}function Zn(e,t,n,r){Rc(e.x,t.x,n.x,r?r.originX:void 0),Rc(e.y,t.y,n.y,r?r.originY:void 0)}function Pc(e,t,n){e.min=n.min+t.min,e.max=e.min+Fe(t)}function k6(e,t,n){Pc(e.x,t.x,n.x),Pc(e.y,t.y,n.y)}function _c(e,t,n){e.min=t.min-n.min,e.max=e.min+Fe(t)}function zn(e,t,n){_c(e.x,t.x,n.x),_c(e.y,t.y,n.y)}function Ge(e){return[e("x"),e("y")]}const Op=({current:e})=>e?e.ownerDocument.defaultView:null,Oc=(e,t)=>Math.abs(e-t);function j6(e,t){const n=Oc(e.x,t.x),r=Oc(e.y,t.y);return Math.sqrt(n**2+r**2)}class Mp{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=mi(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=j6(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!m)return;const{point:g}=f,{timestamp:b}=Re;this.history.push({...g,timestamp:b});const{onStart:y,onMove:C}=this.handlers;h||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=gi(h,this.transformPagePoint),be.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=mi(f.type==="pointercancel"?this.lastMoveEventInfo:gi(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,y),g&&g(f,y)},!Ps(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=o||window;const s=pr(t),l=gi(s,this.transformPagePoint),{point:c}=l,{timestamp:u}=Re;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,mi(l,this.history)),this.removeListeners=ur(Xn(this.contextWindow,"pointermove",this.handlePointerMove),Xn(this.contextWindow,"pointerup",this.handlePointerUp),Xn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ot(this.updatePoint)}}function gi(e,t){return t?{point:t(e.point)}:e}function Mc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mi({point:e},t){return{point:e,delta:Mc(e,Vp(t)),offset:Mc(e,G6(t)),velocity:W6(t,.1)}}function G6(e){return e[0]}function Vp(e){return e[e.length-1]}function W6(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Vp(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>$e(t)));)n--;if(!r)return{x:0,y:0};const i=We(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function H6(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ce(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ce(n,e,r.max):Math.min(e,n)),e}function Vc(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function X6(e,{top:t,left:n,bottom:r,right:o}){return{x:Vc(e.x,n,o),y:Vc(e.y,t,r)}}function Fc(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 Z6(e,t){return{x:Fc(e.x,t.x),y:Fc(e.y,t.y)}}function z6(e,t){let n=.5;const r=Fe(e),o=Fe(t);return o>r?n=Qn(t.min,t.max-r,e.min):r>o&&(n=Qn(e.min,e.max-o,t.min)),vt(0,1,n)}function Y6(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const ma=.35;function $6(e=ma){return e===!1?e=0:e===!0&&(e=ma),{x:Nc(e,"left","right"),y:Nc(e,"top","bottom")}}function Nc(e,t,n){return{min:Dc(e,t),max:Dc(e,n)}}function Dc(e,t){return typeof e=="number"?e:e[t]||0}const J6=new WeakMap;class U6{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ie(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(pr(d).point)},a=(d,f)=>{const{drag:h,dragPropagation:m,onDragStart:g}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=n9(h),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ge(y=>{let C=this.getAxisMotionValue(y).get()||0;if(at.test(C)){const{projection:x}=this.visualElement;if(x&&x.layout){const w=x.layout.layoutBox[y];w&&(C=Fe(w)*(parseFloat(C)/100))}}this.originPoint[y]=C}),g&&be.postRender(()=>g(d,f)),ha(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:g,onDrag:b}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:y}=f;if(m&&this.currentDirection===null){this.currentDirection=K6(y),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),b&&b(d,f)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>Ge(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)==null?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Mp(t,{onSessionStart:i,onStart:a,onMove:s,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:Op(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:a}=o;this.startAnimation(a);const{onDragEnd:s}=this.getProps();s&&be.postRender(()=>s(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Pr(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=H6(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,o=this.constraints;t&&ln(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=X6(r.layoutBox,t):this.constraints=!1,this.elastic=$6(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ge(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=Y6(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ln(t))return!1;const r=t.current;bt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=Q9(r,o.root,this.visualElement.getTransformPagePoint());let a=Z6(o.layout.layoutBox,i);if(n){const s=n(J9(a));this.hasMutatedConstraints=!!s,s&&(a=mp(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=Ge(u=>{if(!Pr(u,n,this.currentDirection))return;let d=l&&l[u]||{};a&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,m={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,m)});return Promise.all(c).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ha(this.visualElement,t),r.start(ks(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ge(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ge(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ge(n=>{const{drag:r}=this.getProps();if(!Pr(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[n];i.set(t[n]-Ce(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ln(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ge(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const l=s.get();o[a]=z6({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ge(a=>{if(!Pr(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:c}=this.constraints[a];s.set(Ce(l,c,o[a]))})}addListeners(){if(!this.visualElement.current)return;J6.set(this.visualElement,this);const t=this.visualElement.current,n=Xn(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ln(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),be.read(r);const a=rr(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Ge(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=ma,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function Pr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function K6(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Q6 extends Dt{constructor(t){super(t),this.removeGroupControls=Xe,this.removeListeners=Xe,this.controls=new U6(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Xe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Lc=e=>(t,n)=>{e&&be.postRender(()=>e(t,n))};class q6 extends Dt{constructor(){super(...arguments),this.removePointerDownListener=Xe}onPointerDown(t){this.session=new Mp(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Op(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Lc(t),onStart:Lc(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&be.postRender(()=>o(i,a))}}}mount(){this.removePointerDownListener=Xn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Wr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Bc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Fn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(oe.test(e))e=parseFloat(e);else return e;const n=Bc(e,t.target.x),r=Bc(e,t.target.y);return`${n}% ${r}%`}},e8={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Mt.parse(e);if(o.length>5)return r;const i=Mt.createTransformer(e),a=typeof o[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=Ce(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=c),typeof o[3+a]=="number"&&(o[3+a]/=c),i(o)}};let vi=!1;class t8 extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;w9(n8),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),vi&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Wr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:a}=r;return a&&(a.isPresent=i,vi=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||be.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Rs.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;vi=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Fp(e){const[t,n]=tp(),r=S.useContext(as);return p.jsx(t8,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(hp),isPresent:t,safeToRemove:n})}const n8={borderRadius:{...Fn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Fn,borderTopRightRadius:Fn,borderBottomLeftRadius:Fn,borderBottomRightRadius:Fn,boxShadow:e8};function r8(e,t,n){const r=Me(e)?e:xn(e);return r.start(ks("",r,t,n)),r.animation}const o8=(e,t)=>e.depth-t.depth;class i8{constructor(){this.children=[],this.isDirty=!1}add(t){cs(this.children,t),this.isDirty=!0}remove(t){us(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(o8),this.isDirty=!1,this.children.forEach(t)}}function a8(e,t){const n=Ne.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Ot(r),e(i-t))};return be.setup(r,!0),()=>Ot(r)}const Np=["TopLeft","TopRight","BottomLeft","BottomRight"],s8=Np.length,kc=e=>typeof e=="string"?parseFloat(e):e,jc=e=>typeof e=="number"||oe.test(e);function l8(e,t,n,r,o,i){o?(e.opacity=Ce(0,n.opacity??1,c8(r)),e.opacityExit=Ce(t.opacity??1,0,u8(r))):i&&(e.opacity=Ce(t.opacity??1,n.opacity??1,r));for(let a=0;a<s8;a++){const s=`border${Np[a]}Radius`;let l=Gc(t,s),c=Gc(n,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||jc(l)===jc(c)?(e[s]=Math.max(Ce(kc(l),kc(c),r),0),(at.test(c)||at.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||n.rotate)&&(e.rotate=Ce(t.rotate||0,n.rotate||0,r))}function Gc(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const c8=Dp(0,.5,xf),u8=Dp(.5,.95,Xe);function Dp(e,t,n){return r=>r<e?0:r>t?1:n(Qn(e,t,r))}function Wc(e,t){e.min=t.min,e.max=t.max}function je(e,t){Wc(e.x,t.x),Wc(e.y,t.y)}function Hc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Xc(e,t,n,r,o){return e-=t,e=po(e,1/n,r),o!==void 0&&(e=po(e,1/o,r)),e}function d8(e,t=0,n=1,r=.5,o,i=e,a=e){if(at.test(t)&&(t=parseFloat(t),t=Ce(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Ce(i.min,i.max,r);e===i&&(s-=t),e.min=Xc(e.min,t,n,s,o),e.max=Xc(e.max,t,n,s,o)}function Zc(e,t,[n,r,o],i,a){d8(e,t[n],t[r],t[o],t.scale,i,a)}const f8=["x","scaleX","originX"],p8=["y","scaleY","originY"];function zc(e,t,n,r){Zc(e.x,t,f8,n?n.x:void 0,r?r.x:void 0),Zc(e.y,t,p8,n?n.y:void 0,r?r.y:void 0)}function Yc(e){return e.translate===0&&e.scale===1}function Lp(e){return Yc(e.x)&&Yc(e.y)}function $c(e,t){return e.min===t.min&&e.max===t.max}function h8(e,t){return $c(e.x,t.x)&&$c(e.y,t.y)}function Jc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Bp(e,t){return Jc(e.x,t.x)&&Jc(e.y,t.y)}function Uc(e){return Fe(e.x)/Fe(e.y)}function Kc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class g8{constructor(){this.members=[]}add(t){cs(this.members,t),t.scheduleRender()}remove(t){if(us(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function m8(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:h,skewY:m}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}deg) `),m&&(r+=`skewY(${m}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const bi=["","X","Y","Z"],v8=1e3;let b8=0;function yi(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function kp(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Sp(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",be,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&kp(r)}function jp({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=b8++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(x8),this.nodes.forEach(A8),this.nodes.forEach(E8),this.nodes.forEach(I8)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new i8)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new fs),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const l=this.eventHandlers.get(a);l&&l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=ep(a)&&!l9(a),this.instance=a;const{layoutId:s,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let u,d=0;const f=()=>this.root.updateBlockedByResize=!1;be.read(()=>{d=window.innerWidth}),e(a,()=>{const h=window.innerWidth;h!==d&&(d=h,this.root.updateBlockedByResize=!0,u&&u(),u=a8(f,250),Wr.hasAnimatedSinceResize&&(Wr.hasAnimatedSinceResize=!1,this.nodes.forEach(eu)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&c&&(s||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||O8,{onLayoutAnimationStart:g,onLayoutAnimationComplete:b}=c.getProps(),y=!this.targetLayout||!Bp(this.targetLayout,h),C=!d&&f;if(this.options.layoutRoot||this.resumeFrom||C||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...Es(m,"layout"),onPlay:g,onComplete:b};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(u,C)}else d||eu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ot(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(T8),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&kp(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Qc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(qc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(S8),this.nodes.forEach(y8),this.nodes.forEach(C8)):this.nodes.forEach(qc),this.clearAllSnapshots();const s=Ne.now();Re.delta=vt(0,1e3/60,s-Re.timestamp),Re.timestamp=s,Re.isProcessing=!0,li.update.process(Re),li.preRender.process(Re),li.render.process(Re),Re.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Rs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(w8),this.sharedNodes.forEach(R8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,be.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){be.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Fe(this.snapshot.measuredBox.x)&&!Fe(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ie(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!Lp(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;a&&this.instance&&(s||Ht(this.latestValues)||u)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),M8(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:a}=this.options;if(!a)return Ie();const s=a.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(V8))){const{scroll:u}=this.root;u&&(cn(s.x,u.offset.x),cn(s.y,u.offset.y))}return s}removeElementScroll(a){var l;const s=Ie();if(je(s,a),(l=this.scroll)!=null&&l.wasRoot)return s;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&je(s,a),cn(s.x,d.offset.x),cn(s.y,d.offset.y))}return s}applyTransform(a,s=!1){const l=Ie();je(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];!s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&un(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Ht(u.latestValues)&&un(l,u.latestValues)}return Ht(this.latestValues)&&un(l,this.latestValues),l}removeTransform(a){const s=Ie();je(s,a);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Ht(c.latestValues))continue;ua(c.latestValues)&&c.updateSnapshot();const u=Ie(),d=c.measurePageBox();je(u,d),zc(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Ht(this.latestValues)&&zc(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}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!==Re.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var f;const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==s;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!(!this.layout||!(u||d))){if(this.resolvedRelativeTargetAt=Re.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ie(),this.relativeTargetOrigin=Ie(),zn(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),je(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ie(),this.targetWithTransforms=Ie()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),k6(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):je(this.target,this.layout.layoutBox),bp(this.target,this.targetDelta)):je(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ie(),this.relativeTargetOrigin=Ie(),zn(this.relativeTargetOrigin,this.target,h.target),je(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ua(this.parent.latestValues)||vp(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var m;const a=this.getLead(),s=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Re.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;je(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;K9(this.layoutCorrected,this.treeScale,this.path,s),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Ie());const{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Hc(this.prevProjectionDelta.x,this.projectionDelta.x),Hc(this.prevProjectionDelta.y,this.projectionDelta.y)),Zn(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!Kc(this.projectionDelta.x,this.prevProjectionDelta.x)||!Kc(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var s;if((s=this.options.visualElement)==null||s.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=dn(),this.projectionDelta=dn(),this.projectionDeltaWithTransform=dn()}setAnimationOrigin(a,s=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=dn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const f=Ie(),h=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=h!==m,b=this.getStack(),y=!b||b.members.length<=1,C=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(_8));this.animationProgress=0;let x;this.mixTargetDelta=w=>{const I=w/1e3;tu(d.x,a.x,I),tu(d.y,a.y,I),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zn(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),P8(this.relativeTarget,this.relativeTargetOrigin,f,I),x&&h8(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Ie()),je(x,this.relativeTarget)),g&&(this.animationValues=u,l8(u,c,this.latestValues,I,C,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var s,l,c;this.notifyListeners("animationStart"),(s=this.currentAnimation)==null||s.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(Ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=be.update(()=>{Wr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=xn(0)),this.currentAnimation=r8(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),a.onUpdate&&a.onUpdate(u)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.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);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(v8),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:u}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&Gp(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ie();const d=Fe(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;const f=Fe(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}je(s,l),un(s,u),Zn(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new g8),this.sharedNodes.get(a).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())==null?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())==null?void 0:s.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const c={};l.z&&yi("z",a,c,this.animationValues);for(let u=0;u<bi.length;u++)yi(`rotate${bi[u]}`,a,c,this.animationValues),yi(`skew${bi[u]}`,a,c,this.animationValues);a.render();for(const u in c)a.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);a.scheduleRender()}applyProjectionStyles(a,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=Gr(s==null?void 0:s.pointerEvents)||"",a.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=Gr(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Ht(this.latestValues)&&(a.transform=l?l({},""):"none",this.hasProjected=!1);return}a.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=m8(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),a.transform=d;const{x:f,y:h}=this.projectionDelta;a.transformOrigin=`${f.origin*100}% ${h.origin*100}% 0`,c.animationValues?a.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:a.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const m in nr){if(u[m]===void 0)continue;const{correct:g,applyTo:b,isCSSVariable:y}=nr[m],C=d==="none"?u[m]:g(u[m],c);if(b){const x=b.length;for(let w=0;w<x;w++)a[b[w]]=C}else y?this.options.visualElement.renderState.vars[m]=C:a[m]=C}this.options.layoutId&&(a.pointerEvents=c===this?Gr(s==null?void 0:s.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)==null?void 0:s.stop()}),this.root.nodes.forEach(Qc),this.root.sharedNodes.clear()}}}function y8(e){e.updateLayout()}function C8(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?Ge(d=>{const f=a?t.measuredBox[d]:t.layoutBox[d],h=Fe(f);f.min=r[d].min,f.max=f.min+h}):Gp(i,t.layoutBox,r)&&Ge(d=>{const f=a?t.measuredBox[d]:t.layoutBox[d],h=Fe(r[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const s=dn();Zn(s,r,t.layoutBox);const l=dn();a?Zn(l,e.applyTransform(o,!0),t.measuredBox):Zn(l,r,t.layoutBox);const c=!Lp(s);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const m=Ie();zn(m,t.layoutBox,f.layoutBox);const g=Ie();zn(g,r,h.layoutBox),Bp(m,g)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function x8(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function I8(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function w8(e){e.clearSnapshot()}function Qc(e){e.clearMeasurements()}function qc(e){e.isLayoutDirty=!1}function S8(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function eu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function A8(e){e.resolveTargetDelta()}function E8(e){e.calcProjection()}function T8(e){e.resetSkewAndRotation()}function R8(e){e.removeLeadSnapshot()}function tu(e,t,n){e.translate=Ce(t.translate,0,n),e.scale=Ce(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function nu(e,t,n,r){e.min=Ce(t.min,n.min,r),e.max=Ce(t.max,n.max,r)}function P8(e,t,n,r){nu(e.x,t.x,n.x,r),nu(e.y,t.y,n.y,r)}function _8(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const O8={duration:.45,ease:[.4,0,.1,1]},ru=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ou=ru("applewebkit/")&&!ru("chrome/")?Math.round:Xe;function iu(e){e.min=ou(e.min),e.max=ou(e.max)}function M8(e){iu(e.x),iu(e.y)}function Gp(e,t,n){return e==="position"||e==="preserve-aspect"&&!B6(Uc(t),Uc(n),.2)}function V8(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const F8=jp({attachResizeListener:(e,t)=>rr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ci={current:void 0},Wp=jp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ci.current){const e=new F8({});e.mount(window),e.setOptions({layoutScroll:!0}),Ci.current=e}return Ci.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),N8={pan:{Feature:q6},drag:{Feature:Q6,ProjectionNode:Wp,MeasureLayout:Fp}};function au(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&be.postRender(()=>i(t,pr(t)))}class D8 extends Dt{mount(){const{current:t}=this.node;t&&(this.unmount=r9(t,(n,r)=>(au(this.node,r,"Start"),o=>au(this.node,o,"End"))))}unmount(){}}class L8 extends Dt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ur(rr(this.node.current,"focus",()=>this.onFocus()),rr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function su(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&be.postRender(()=>i(t,pr(t)))}class B8 extends Dt{mount(){const{current:t}=this.node;t&&(this.unmount=s9(t,(n,r)=>(su(this.node,r,"Start"),(o,{success:i})=>su(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const va=new WeakMap,xi=new WeakMap,k8=e=>{const t=va.get(e.target);t&&t(e)},j8=e=>{e.forEach(k8)};function G8({root:e,...t}){const n=e||document;xi.has(n)||xi.set(n,{});const r=xi.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(j8,{root:e,...t})),r[o]}function W8(e,t,n){const r=G8(t);return va.set(e,n),r.observe(e),()=>{va.delete(e),r.unobserve(e)}}const H8={some:0,all:1};class X8 extends Dt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:H8[o]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return W8(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Z8(t,n))&&this.startObserver()}unmount(){}}function Z8({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const z8={inView:{Feature:X8},tap:{Feature:B8},focus:{Feature:L8},hover:{Feature:D8}},Y8={layout:{ProjectionNode:Wp,MeasureLayout:Fp}},$8={...M6,...z8,...N8,...Y8},js=$9($8,s6),Hp=S.createContext(null),hr=()=>{const e=S.useContext(Hp);if(!e)throw new Error("useModalContext must be used within a Modal provider");return e},Xp=({children:e,isOpen:t,onOpenChange:n,initialOpen:r=!1})=>{const[o,i]=S.useState(r),a=S.useId(),s=S.useId(),l=t!==void 0,c=l?t:o,u=S.useCallback(f=>{l||i(f),n==null||n(f)},[l,n]),d={isOpen:c,onOpenChange:u,titleId:a,descriptionId:s};return p.jsx(Hp.Provider,{value:d,children:e})},Zp=S.forwardRef(({children:e,...t},n)=>{const{isOpen:r,onOpenChange:o}=hr();return p.jsx("button",{ref:n,onClick:()=>o(!r),...t,children:e})});Zp.displayName="ModalTrigger";const Gs=({children:e})=>{const{isOpen:t}=hr(),[n,r]=S.useState(!1);return S.useEffect(()=>{r(!0)},[]),n?ht.createPortal(p.jsx(np,{children:t&&e}),document.body):null};Gs.displayName="ModalPortal";const Ws=()=>{const{overlay:e}=X.modalSlot();return p.jsx(js.div,{className:e,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeInOut"},"aria-hidden":"true"})};Ws.displayName="ModalOverlay";const Hs=({children:e,size:t="default",noPadding:n=!1,fullScreen:r=!1,fullHeight:o=!1,...i})=>{const{onOpenChange:a,titleId:s,descriptionId:l}=hr(),{positioner:c,content:u}=X.modalSlot({size:t,noPadding:n,fullScreen:r,fullHeight:o}),d=h=>{h.target===h.currentTarget&&a(!1)};S.useEffect(()=>{const h=m=>{m.key==="Escape"&&a(!1)};return document.addEventListener("keydown",h),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",h),document.body.style.overflow=""}},[a]);const f={hidden:{opacity:0,scale:.95,y:20},visible:{opacity:1,scale:1,y:0,transition:{duration:.2,ease:"easeOut"}},exit:{opacity:0,scale:.95,y:20,transition:{duration:.15,ease:"easeIn"}}};return p.jsx(hb,{active:!0,children:p.jsx("div",{className:c,onClick:d,children:p.jsx(js.div,{...i,className:u,role:"dialog","aria-modal":"true","aria-labelledby":s,"aria-describedby":l,variants:f,initial:"hidden",animate:"visible",exit:"exit",children:e})})})};Hs.displayName="ModalContent";const gr=(e,t)=>{const n=S.forwardRef((r,o)=>{const{as:i,...a}=r,s=i||t,c=X.modalSlot()[e],{titleId:u,descriptionId:d}=hr(),f=e==="title"?{id:u}:e==="description"?{id:d}:{};return p.jsx(s,{ref:o,className:c,...f,...a})});return n.displayName=`Modal.${e.charAt(0).toUpperCase()+e.slice(1)}`,n},zp=gr("header","div"),Yp=gr("body","div"),$p=gr("footer","div"),Jp=gr("title","h2"),J8=gr("description","p"),Xs=e=>{const{closeButton:t}=X.modalSlot(),{onOpenChange:n}=hr();return p.jsx("button",{className:t,onClick:()=>n(!1),"aria-label":"Fechar modal",...e,children:"✕"})};Xs.displayName="ModalCloseButton";const U8=({isOpen:e,onOpenChange:t,initialOpen:n,title:r,children:o,footer:i,hideCloseButton:a,size:s,noPadding:l,fullScreen:c,fullHeight:u,...d})=>p.jsx(Xp,{isOpen:e,onOpenChange:t,initialOpen:n,children:p.jsxs(Gs,{children:[p.jsx(Ws,{},"modal-overlay"),p.jsxs(Hs,{size:s,noPadding:l,fullScreen:c,fullHeight:u,...d,children:[r&&p.jsx(zp,{children:p.jsx(Jp,{children:r})}),!a&&p.jsx(Xs,{}),p.jsx(Yp,{children:o}),i&&p.jsx($p,{children:i})]},"modal-content")]})}),K8=Object.assign(U8,{Root:Xp,Trigger:Zp,Portal:Gs,Overlay:Ws,Content:Hs,Header:zp,Body:Yp,Footer:$p,Title:Jp,Description:J8,CloseButton:Xs}),jn="...",_r=(e,t)=>{const n=t-e+1;return Array.from({length:n},(r,o)=>o+e)},Q8=({pageSize:e,siblingCount:t=1,currentPage:n})=>S.useMemo(()=>{const o=e;if(t+5>=o)return _r(1,o);const a=Math.max(n-t,1),s=Math.min(n+t,o),l=a>2,c=s<o-2,u=1,d=o;if(!l&&c){const f=3+2*t;return[..._r(1,f),jn,o]}if(l&&!c){const f=3+2*t,h=_r(o-f+1,o);return[u,jn,...h]}if(l&&c){const f=_r(a,s);return[u,jn,...f,jn,d]}return[]},[e,t,n]),q8=({onPageChange:e,totalCount:t,currentPage:n,pageSize:r,siblingCount:o=1})=>{const i=Q8({currentPage:n,siblingCount:o,pageSize:r});if(n===0||(i==null?void 0:i.length)<2)return null;const a=()=>{e(n+1)},s=()=>{e(n-1)},l=i[i.length-1],c=X.paginationSlot({});return p.jsxs("ul",{className:c.container,children:[p.jsx("li",{className:X.paginationSlot({disabled:n===1}).item,onClick:s,children:p.jsx("div",{className:X.paginationSlot({direction:"left"}).arrow})}),i==null?void 0:i.map((u,d)=>u===jn?p.jsx("li",{className:X.paginationSlot({dots:!0}).item,children:"…"},`dots-${d}`):p.jsx("li",{className:X.paginationSlot({selected:u===n}).item,onClick:()=>e(Number(u)),children:u},u)),p.jsx("li",{className:X.paginationSlot({disabled:n===l}).item,onClick:a,children:p.jsx("div",{className:X.paginationSlot({direction:"right",disabled:n===l}).arrow})})]})};function Tt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function lu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Up(...e){return t=>{let n=!1;const r=e.map(o=>{const i=lu(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():lu(e[o],null)}}}}function Lt(...e){return v.useCallback(Up(...e),e)}function Kp(e,t=[]){let n=[];function r(i,a){const s=v.createContext(a),l=n.length;n=[...n,a];const c=d=>{var y;const{scope:f,children:h,...m}=d,g=((y=f==null?void 0:f[e])==null?void 0:y[l])||s,b=v.useMemo(()=>m,Object.values(m));return p.jsx(g.Provider,{value:b,children:h})};c.displayName=i+"Provider";function u(d,f){var g;const h=((g=f==null?void 0:f[e])==null?void 0:g[l])||s,m=v.useContext(h);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const o=()=>{const i=n.map(a=>v.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,e7(o,...t)]}function e7(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...s,...d}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Qp(e){const t=t7(e),n=v.forwardRef((r,o)=>{const{children:i,...a}=r,s=v.Children.toArray(i),l=s.find(r7);if(l){const c=l.props.children,u=s.map(d=>d===l?v.Children.count(c)>1?v.Children.only(null):v.isValidElement(c)?c.props.children:null:d);return p.jsx(t,{...a,ref:o,children:v.isValidElement(c)?v.cloneElement(c,void 0,u):null})}return p.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function t7(e){const t=v.forwardRef((n,r)=>{const{children:o,...i}=n;if(v.isValidElement(o)){const a=i7(o),s=o7(i,o.props);return o.type!==v.Fragment&&(s.ref=r?Up(r,a):a),v.cloneElement(o,s)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var n7=Symbol("radix.slottable");function r7(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===n7}function o7(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function i7(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var a7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xt=a7.reduce((e,t)=>{const n=Qp(`Primitive.${t}`),r=v.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function s7(e,t){e&&Ea.flushSync(()=>e.dispatchEvent(t))}function wn(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function l7(e,t=globalThis==null?void 0:globalThis.document){const n=wn(e);v.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var c7="DismissableLayer",ba="dismissableLayer.update",u7="dismissableLayer.pointerDownOutside",d7="dismissableLayer.focusOutside",cu,qp=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),e2=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=e,c=v.useContext(qp),[u,d]=v.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=v.useState({}),m=Lt(t,A=>d(A)),g=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),C=u?g.indexOf(u):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,w=C>=y,I=h7(A=>{const E=A.target,D=[...c.branches].some(L=>L.contains(E));!w||D||(o==null||o(A),a==null||a(A),A.defaultPrevented||s==null||s())},f),T=g7(A=>{const E=A.target;[...c.branches].some(L=>L.contains(E))||(i==null||i(A),a==null||a(A),A.defaultPrevented||s==null||s())},f);return l7(A=>{C===c.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&s&&(A.preventDefault(),s()))},f),v.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(cu=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),uu(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=cu)}},[u,f,n,c]),v.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),uu())},[u,c]),v.useEffect(()=>{const A=()=>h({});return document.addEventListener(ba,A),()=>document.removeEventListener(ba,A)},[]),p.jsx(xt.div,{...l,ref:m,style:{pointerEvents:x?w?"auto":"none":void 0,...e.style},onFocusCapture:Tt(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Tt(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Tt(e.onPointerDownCapture,I.onPointerDownCapture)})});e2.displayName=c7;var f7="DismissableLayerBranch",p7=v.forwardRef((e,t)=>{const n=v.useContext(qp),r=v.useRef(null),o=Lt(t,r);return v.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(xt.div,{...e,ref:o})});p7.displayName=f7;function h7(e,t=globalThis==null?void 0:globalThis.document){const n=wn(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){t2(u7,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function g7(e,t=globalThis==null?void 0:globalThis.document){const n=wn(e),r=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!r.current&&t2(d7,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function uu(){const e=new CustomEvent(ba);document.dispatchEvent(e)}function t2(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?s7(o,i):o.dispatchEvent(i)}var Ii=0;function m7(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??du()),document.body.insertAdjacentElement("beforeend",e[1]??du()),Ii++,()=>{Ii===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ii--}},[])}function du(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var wi="focusScope.autoFocusOnMount",Si="focusScope.autoFocusOnUnmount",fu={bubbles:!1,cancelable:!0},v7="FocusScope",n2=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=v.useState(null),c=wn(o),u=wn(i),d=v.useRef(null),f=Lt(t,g=>l(g)),h=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let g=function(x){if(h.paused||!s)return;const w=x.target;s.contains(w)?d.current=w:St(d.current,{select:!0})},b=function(x){if(h.paused||!s)return;const w=x.relatedTarget;w!==null&&(s.contains(w)||St(d.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const I of x)I.removedNodes.length>0&&St(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const C=new MutationObserver(y);return s&&C.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),C.disconnect()}}},[r,s,h.paused]),v.useEffect(()=>{if(s){hu.add(h);const g=document.activeElement;if(!s.contains(g)){const y=new CustomEvent(wi,fu);s.addEventListener(wi,c),s.dispatchEvent(y),y.defaultPrevented||(b7(w7(r2(s)),{select:!0}),document.activeElement===g&&St(s))}return()=>{s.removeEventListener(wi,c),setTimeout(()=>{const y=new CustomEvent(Si,fu);s.addEventListener(Si,u),s.dispatchEvent(y),y.defaultPrevented||St(g??document.body,{select:!0}),s.removeEventListener(Si,u),hu.remove(h)},0)}}},[s,c,u,h]);const m=v.useCallback(g=>{if(!n&&!r||h.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(b&&y){const C=g.currentTarget,[x,w]=y7(C);x&&w?!g.shiftKey&&y===w?(g.preventDefault(),n&&St(x,{select:!0})):g.shiftKey&&y===x&&(g.preventDefault(),n&&St(w,{select:!0})):y===C&&g.preventDefault()}},[n,r,h.paused]);return p.jsx(xt.div,{tabIndex:-1,...a,ref:f,onKeyDown:m})});n2.displayName=v7;function b7(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(St(r,{select:t}),document.activeElement!==n)return}function y7(e){const t=r2(e),n=pu(t,e),r=pu(t.reverse(),e);return[n,r]}function r2(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function pu(e,t){for(const n of e)if(!C7(n,{upTo:t}))return n}function C7(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function x7(e){return e instanceof HTMLInputElement&&"select"in e}function St(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&x7(e)&&t&&e.select()}}var hu=I7();function I7(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=gu(e,t),e.unshift(t)},remove(t){var n;e=gu(e,t),(n=e[0])==null||n.resume()}}}function gu(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function w7(e){return e.filter(t=>t.tagName!=="A")}var Vt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},S7=v[" useId ".trim().toString()]||(()=>{}),A7=0;function E7(e){const[t,n]=v.useState(S7());return Vt(()=>{n(r=>r??String(A7++))},[e]),e||(t?`radix-${t}`:"")}var T7="Arrow",o2=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return p.jsx(xt.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});o2.displayName=T7;var R7=o2;function P7(e){const[t,n]=v.useState(void 0);return Vt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,s=c.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Zs="Popper",[i2,a2]=Kp(Zs),[_7,s2]=i2(Zs),l2=e=>{const{__scopePopper:t,children:n}=e,[r,o]=v.useState(null);return p.jsx(_7,{scope:t,anchor:r,onAnchorChange:o,children:n})};l2.displayName=Zs;var c2="PopperAnchor",u2=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=s2(c2,n),a=v.useRef(null),s=Lt(t,a),l=v.useRef(null);return v.useEffect(()=>{const c=l.current;l.current=(r==null?void 0:r.current)||a.current,c!==l.current&&i.onAnchorChange(l.current)}),r?null:p.jsx(xt.div,{...o,ref:s})});u2.displayName=c2;var zs="PopperContent",[O7,M7]=i2(zs),d2=v.forwardRef((e,t)=>{var $,Y,te,ne,ae,j;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:m,...g}=e,b=s2(zs,n),[y,C]=v.useState(null),x=Lt(t,le=>C(le)),[w,I]=v.useState(null),T=P7(w),A=(T==null?void 0:T.width)??0,E=(T==null?void 0:T.height)??0,D=r+(i!=="center"?"-"+i:""),L=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},W=Array.isArray(c)?c:[c],B=W.length>0,R={padding:L,boundary:W.filter(F7),altBoundary:B},{refs:_,floatingStyles:V,placement:N,isPositioned:F,middlewareData:O}=Nd({strategy:"fixed",placement:D,whileElementsMounted:(...le)=>Za(...le,{animationFrame:h==="always"}),elements:{reference:b.anchor},middleware:[Dd({mainAxis:o+E,alignmentAxis:a}),l&&Ld({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Bd():void 0,...R}),l&&kd({...R}),jd({...R,apply:({elements:le,rects:ve,availableWidth:Ae,availableHeight:Ze})=>{const{width:J,height:K}=ve.reference,Q=le.floating.style;Q.setProperty("--radix-popper-available-width",`${Ae}px`),Q.setProperty("--radix-popper-available-height",`${Ze}px`),Q.setProperty("--radix-popper-anchor-width",`${J}px`),Q.setProperty("--radix-popper-anchor-height",`${K}px`)}}),w&&Wd({element:w,padding:s}),N7({arrowWidth:A,arrowHeight:E}),f&&Gd({strategy:"referenceHidden",...R})]}),[k,P]=h2(N),M=wn(m);Vt(()=>{F&&(M==null||M())},[F,M]);const G=($=O.arrow)==null?void 0:$.x,Z=(Y=O.arrow)==null?void 0:Y.y,H=((te=O.arrow)==null?void 0:te.centerOffset)!==0,[U,z]=v.useState();return Vt(()=>{y&&z(window.getComputedStyle(y).zIndex)},[y]),p.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:F?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[(ne=O.transformOrigin)==null?void 0:ne.x,(ae=O.transformOrigin)==null?void 0:ae.y].join(" "),...((j=O.hide)==null?void 0:j.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(O7,{scope:n,placedSide:k,onArrowChange:I,arrowX:G,arrowY:Z,shouldHideArrow:H,children:p.jsx(xt.div,{"data-side":k,"data-align":P,...g,ref:x,style:{...g.style,animation:F?void 0:"none"}})})})});d2.displayName=zs;var f2="PopperArrow",V7={top:"bottom",right:"left",bottom:"top",left:"right"},p2=v.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=M7(f2,r),a=V7[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:p.jsx(R7,{...o,ref:n,style:{...o.style,display:"block"}})})});p2.displayName=f2;function F7(e){return e!==null}var N7=e=>({name:"transformOrigin",options:e,fn(t){var b,y,C;const{placement:n,rects:r,middlewareData:o}=t,a=((b=o.arrow)==null?void 0:b.centerOffset)!==0,s=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[c,u]=h2(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((y=o.arrow)==null?void 0:y.x)??0)+s/2,h=(((C=o.arrow)==null?void 0:C.y)??0)+l/2;let m="",g="";return c==="bottom"?(m=a?d:`${f}px`,g=`${-l}px`):c==="top"?(m=a?d:`${f}px`,g=`${r.floating.height+l}px`):c==="right"?(m=`${-l}px`,g=a?d:`${h}px`):c==="left"&&(m=`${r.floating.width+l}px`,g=a?d:`${h}px`),{data:{x:m,y:g}}}});function h2(e){const[t,n="center"]=e.split("-");return[t,n]}var D7=l2,g2=u2,L7=d2,B7=p2,k7="Portal",m2=v.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,i]=v.useState(!1);Vt(()=>i(!0),[]);const a=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return a?ht.createPortal(p.jsx(xt.div,{...r,ref:t}),a):null});m2.displayName=k7;function j7(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var Ys=e=>{const{present:t,children:n}=e,r=G7(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=Lt(r.ref,W7(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};Ys.displayName="Presence";function G7(e){const[t,n]=v.useState(),r=v.useRef(null),o=v.useRef(e),i=v.useRef("none"),a=e?"mounted":"unmounted",[s,l]=j7(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const c=Or(r.current);i.current=s==="mounted"?c:"none"},[s]),Vt(()=>{const c=r.current,u=o.current;if(u!==e){const f=i.current,h=Or(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&f!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Vt(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=h=>{const g=Or(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&g&&(l("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=h=>{h.target===t&&(i.current=Or(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Or(e){return(e==null?void 0:e.animationName)||"none"}function W7(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var H7=v[" useInsertionEffect ".trim().toString()]||Vt;function X7({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=Z7({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:o;{const u=v.useRef(e!==void 0);v.useEffect(()=>{const d=u.current;d!==s&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,r])}const c=v.useCallback(u=>{var d;if(s){const f=z7(u)?u(e):u;f!==e&&((d=a.current)==null||d.call(a,f))}else i(u)},[s,e,i,a]);return[l,c]}function Z7({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),o=v.useRef(n),i=v.useRef(t);return H7(()=>{i.current=t},[t]),v.useEffect(()=>{var a;o.current!==n&&((a=i.current)==null||a.call(i,n),o.current=n)},[n,o]),[n,r,i]}function z7(e){return typeof e=="function"}var Do="Popover",[v2,Yw]=Kp(Do,[a2]),mr=a2(),[Y7,Bt]=v2(Do),b2=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=mr(t),l=v.useRef(null),[c,u]=v.useState(!1),[d,f]=X7({prop:r,defaultProp:o??!1,onChange:i,caller:Do});return p.jsx(D7,{...s,children:p.jsx(Y7,{scope:t,contentId:E7(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(h=>!h),[f]),hasCustomAnchor:c,onCustomAnchorAdd:v.useCallback(()=>u(!0),[]),onCustomAnchorRemove:v.useCallback(()=>u(!1),[]),modal:a,children:n})})};b2.displayName=Do;var y2="PopoverAnchor",$7=v.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Bt(y2,n),i=mr(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return v.useEffect(()=>(a(),()=>s()),[a,s]),p.jsx(g2,{...i,...r,ref:t})});$7.displayName=y2;var C2="PopoverTrigger",x2=v.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Bt(C2,n),i=mr(n),a=Lt(t,o.triggerRef),s=p.jsx(xt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":T2(o.open),...r,ref:a,onClick:Tt(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:p.jsx(g2,{asChild:!0,...i,children:s})});x2.displayName=C2;var $s="PopoverPortal",[J7,U7]=v2($s,{forceMount:void 0}),I2=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Bt($s,t);return p.jsx(J7,{scope:t,forceMount:n,children:p.jsx(Ys,{present:n||i.open,children:p.jsx(m2,{asChild:!0,container:o,children:r})})})};I2.displayName=$s;var Sn="PopoverContent",w2=v.forwardRef((e,t)=>{const n=U7(Sn,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Bt(Sn,e.__scopePopover);return p.jsx(Ys,{present:r||i.open,children:i.modal?p.jsx(Q7,{...o,ref:t}):p.jsx(q7,{...o,ref:t})})});w2.displayName=Sn;var K7=Qp("PopoverContent.RemoveScroll"),Q7=v.forwardRef((e,t)=>{const n=Bt(Sn,e.__scopePopover),r=v.useRef(null),o=Lt(t,r),i=v.useRef(!1);return v.useEffect(()=>{const a=r.current;if(a)return M1(a)},[]),p.jsx(es,{as:K7,allowPinchZoom:!0,children:p.jsx(S2,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Tt(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Tt(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,c=s.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:Tt(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),q7=v.forwardRef((e,t)=>{const n=Bt(Sn,e.__scopePopover),r=v.useRef(!1),o=v.useRef(!1);return p.jsx(S2,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,s;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),S2=v.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,f=Bt(Sn,n),h=mr(n);return m7(),p.jsx(n2,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:p.jsx(e2,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:p.jsx(L7,{"data-state":T2(f.open),role:"dialog",id:f.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),A2="PopoverClose",ey=v.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Bt(A2,n);return p.jsx(xt.button,{type:"button",...r,ref:t,onClick:Tt(e.onClick,()=>o.onOpenChange(!1))})});ey.displayName=A2;var ty="PopoverArrow",E2=v.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=mr(n);return p.jsx(B7,{...o,...r,ref:t})});E2.displayName=ty;function T2(e){return e?"open":"closed"}var ny=b2,ry=x2,oy=I2,iy=w2,ay=E2;const sy=({trigger:e,content:t,children:n,side:r="bottom",align:o="center",sideOffset:i=5,collisionPadding:a=8,open:s,onOpenChange:l,className:c})=>{const u=X.popover(),d=t||n;return p.jsxs(ny,{open:s,onOpenChange:l,children:[p.jsx(ry,{asChild:!0,children:e}),p.jsx(np,{children:s&&p.jsx(oy,{forceMount:!0,children:p.jsx(iy,{asChild:!0,forceMount:!0,side:r,align:o,sideOffset:i,collisionPadding:a,onOpenAutoFocus:f=>f.preventDefault(),className:c,children:p.jsxs(js.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.15,ease:"easeInOut"},className:u.content,children:[d,p.jsx(ay,{className:u.arrow})]})})})})]})},R2=e=>{const t=n=>p.jsx(g1,{children:r=>p.jsx(e,{...n,breakpoint:r.breakpoint,isGreaterThan:o=>b1(o,r.breakpoint.value),isLessThan:o=>v1(o,r.breakpoint.value)})});return t.displayName=`WithBreakpoints(${e.displayName||e.name||"Component"})`,t};function Qt(e){"@babel/helpers - typeof";return Qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qt(e)}function ly(e,t){if(Qt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P2(e){var t=ly(e,"string");return Qt(t)=="symbol"?t:t+""}function fn(e,t,n){return(t=P2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mu(Object(n),!0).forEach(function(r){fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cy(e){if(Array.isArray(e))return e}function uy(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function ya(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _2(e,t){if(e){if(typeof e=="string")return ya(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ya(e,t):void 0}}function dy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
80
80
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Te(e,t){return cy(e)||uy(e,t)||_2(e,t)||dy()}function qe(e,t){if(e==null)return{};var n,r,o=d1(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var fy=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Js(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,o=r===void 0?!1:r,i=e.defaultValue,a=i===void 0?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,h=e.value,m=qe(e,fy),g=S.useState(s!==void 0?s:n),b=Te(g,2),y=b[0],C=b[1],x=S.useState(l!==void 0?l:o),w=Te(x,2),I=w[0],T=w[1],A=S.useState(h!==void 0?h:a),E=Te(A,2),D=E[0],L=E[1],W=S.useCallback(function(O,k){typeof c=="function"&&c(O,k),L(O)},[c]),B=S.useCallback(function(O,k){var P;typeof u=="function"&&(P=u(O,k)),C(P!==void 0?P:O)},[u]),R=S.useCallback(function(){typeof f=="function"&&f(),T(!0)},[f]),_=S.useCallback(function(){typeof d=="function"&&d(),T(!1)},[d]),V=s!==void 0?s:y,N=l!==void 0?l:I,F=h!==void 0?h:D;return q(q({},m),{},{inputValue:V,menuIsOpen:N,onChange:W,onInputChange:B,onMenuClose:_,onMenuOpen:R,value:F})}function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},re.apply(null,arguments)}function py(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,P2(r.key),r)}}function hy(e,t,n){return t&&vu(e.prototype,t),n&&vu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gy(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&to(e,t)}function ho(e){return ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ho(e)}function O2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(O2=function(){return!!e})()}function my(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vy(e,t){if(t&&(Qt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return my(e)}function by(e){var t=O2();return function(){var n,r=ho(e);if(t){var o=ho(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vy(this,n)}}function yy(e){if(Array.isArray(e))return ya(e)}function Cy(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xy(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
81
81
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mn(e){return yy(e)||Cy(e)||_2(e)||xy()}function Iy(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function wy(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Sy=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(wy(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Iy(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Oe="-ms-",go="-moz-",ce="-webkit-",M2="comm",Us="rule",Ks="decl",Ay="@import",V2="@keyframes",Ey="@layer",Ty=Math.abs,Lo=String.fromCharCode,Ry=Object.assign;function Py(e,t){return Pe(e,0)^45?(((t<<2^Pe(e,0))<<2^Pe(e,1))<<2^Pe(e,2))<<2^Pe(e,3):0}function F2(e){return e.trim()}function _y(e,t){return(e=t.exec(e))?e[0]:e}function ue(e,t,n){return e.replace(t,n)}function Ca(e,t){return e.indexOf(t)}function Pe(e,t){return e.charCodeAt(t)|0}function or(e,t,n){return e.slice(t,n)}function nt(e){return e.length}function Qs(e){return e.length}function Mr(e,t){return t.push(e),e}function Oy(e,t){return e.map(t).join("")}var Bo=1,An=1,N2=0,De=0,Se=0,Mn="";function ko(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Bo,column:An,length:a,return:""}}function Nn(e,t){return Ry(ko("",null,null,"",null,null,0),e,{length:-e.length},t)}function My(){return Se}function Vy(){return Se=De>0?Pe(Mn,--De):0,An--,Se===10&&(An=1,Bo--),Se}function ke(){return Se=De<N2?Pe(Mn,De++):0,An++,Se===10&&(An=1,Bo++),Se}function st(){return Pe(Mn,De)}function Hr(){return De}function vr(e,t){return or(Mn,e,t)}function ir(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function D2(e){return Bo=An=1,N2=nt(Mn=e),De=0,[]}function L2(e){return Mn="",e}function Xr(e){return F2(vr(De-1,xa(e===91?e+2:e===40?e+1:e)))}function Fy(e){for(;(Se=st())&&Se<33;)ke();return ir(e)>2||ir(Se)>3?"":" "}function Ny(e,t){for(;--t&&ke()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return vr(e,Hr()+(t<6&&st()==32&&ke()==32))}function xa(e){for(;ke();)switch(Se){case e:return De;case 34:case 39:e!==34&&e!==39&&xa(Se);break;case 40:e===41&&xa(e);break;case 92:ke();break}return De}function Dy(e,t){for(;ke()&&e+Se!==57;)if(e+Se===84&&st()===47)break;return"/*"+vr(t,De-1)+"*"+Lo(e===47?e:ke())}function Ly(e){for(;!ir(st());)ke();return vr(e,De)}function By(e){return L2(Zr("",null,null,null,[""],e=D2(e),0,[0],e))}function Zr(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,m=0,g=1,b=1,y=1,C=0,x="",w=o,I=i,T=r,A=x;b;)switch(m=C,C=ke()){case 40:if(m!=108&&Pe(A,d-1)==58){Ca(A+=ue(Xr(C),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=Xr(C);break;case 9:case 10:case 13:case 32:A+=Fy(m);break;case 92:A+=Ny(Hr()-1,7);continue;case 47:switch(st()){case 42:case 47:Mr(ky(Dy(ke(),Hr()),t,n),l);break;default:A+="/"}break;case 123*g:s[c++]=nt(A)*y;case 125*g:case 59:case 0:switch(C){case 0:case 125:b=0;case 59+u:y==-1&&(A=ue(A,/\f/g,"")),h>0&&nt(A)-d&&Mr(h>32?yu(A+";",r,n,d-1):yu(ue(A," ","")+";",r,n,d-2),l);break;case 59:A+=";";default:if(Mr(T=bu(A,t,n,c,u,o,s,x,w=[],I=[],d),i),C===123)if(u===0)Zr(A,t,T,T,w,i,d,s,I);else switch(f===99&&Pe(A,3)===110?100:f){case 100:case 108:case 109:case 115:Zr(e,T,T,r&&Mr(bu(e,T,T,0,0,o,s,x,o,w=[],d),I),o,I,d,s,r?w:I);break;default:Zr(A,T,T,T,[""],I,0,s,I)}}c=u=h=0,g=y=1,x=A="",d=a;break;case 58:d=1+nt(A),h=m;default:if(g<1){if(C==123)--g;else if(C==125&&g++==0&&Vy()==125)continue}switch(A+=Lo(C),C*g){case 38:y=u>0?1:(A+="\f",-1);break;case 44:s[c++]=(nt(A)-1)*y,y=1;break;case 64:st()===45&&(A+=Xr(ke())),f=st(),u=d=nt(x=A+=Ly(Hr())),C++;break;case 45:m===45&&nt(A)==2&&(g=0)}}return i}function bu(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=o===0?i:[""],h=Qs(f),m=0,g=0,b=0;m<r;++m)for(var y=0,C=or(e,d+1,d=Ty(g=a[m])),x=e;y<h;++y)(x=F2(g>0?f[y]+" "+C:ue(C,/&\f/g,f[y])))&&(l[b++]=x);return ko(e,t,n,o===0?Us:s,l,c,u)}function ky(e,t,n){return ko(e,t,n,M2,Lo(My()),or(e,2,-2),0)}function yu(e,t,n,r){return ko(e,t,n,Ks,or(e,0,r),or(e,r+1,-1),r)}function vn(e,t){for(var n="",r=Qs(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function jy(e,t,n,r){switch(e.type){case Ey:if(e.children.length)break;case Ay:case Ks:return e.return=e.return||e.value;case M2:return"";case V2:return e.return=e.value+"{"+vn(e.children,r)+"}";case Us:e.value=e.props.join(",")}return nt(n=vn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Gy(e){var t=Qs(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function Wy(e){return function(t){t.root||(t=t.return)&&e(t)}}function Hy(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Xy=function(t,n,r){for(var o=0,i=0;o=i,i=st(),o===38&&i===12&&(n[r]=1),!ir(i);)ke();return vr(t,De)},Zy=function(t,n){var r=-1,o=44;do switch(ir(o)){case 0:o===38&&st()===12&&(n[r]=1),t[r]+=Xy(De-1,n,r);break;case 2:t[r]+=Xr(o);break;case 4:if(o===44){t[++r]=st()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Lo(o)}while(o=ke());return t},zy=function(t,n){return L2(Zy(D2(t),n))},Cu=new WeakMap,Yy=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Cu.get(r))&&!o){Cu.set(t,!0);for(var i=[],a=zy(n,i),s=r.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=i[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l]}}},$y=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function B2(e,t){switch(Py(e,t)){case 5103:return ce+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ce+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ce+e+go+e+Oe+e+e;case 6828:case 4268:return ce+e+Oe+e+e;case 6165:return ce+e+Oe+"flex-"+e+e;case 5187:return ce+e+ue(e,/(\w+).+(:[^]+)/,ce+"box-$1$2"+Oe+"flex-$1$2")+e;case 5443:return ce+e+Oe+"flex-item-"+ue(e,/flex-|-self/,"")+e;case 4675:return ce+e+Oe+"flex-line-pack"+ue(e,/align-content|flex-|-self/,"")+e;case 5548:return ce+e+Oe+ue(e,"shrink","negative")+e;case 5292:return ce+e+Oe+ue(e,"basis","preferred-size")+e;case 6060:return ce+"box-"+ue(e,"-grow","")+ce+e+Oe+ue(e,"grow","positive")+e;case 4554:return ce+ue(e,/([^-])(transform)/g,"$1"+ce+"$2")+e;case 6187:return ue(ue(ue(e,/(zoom-|grab)/,ce+"$1"),/(image-set)/,ce+"$1"),e,"")+e;case 5495:case 3959:return ue(e,/(image-set\([^]*)/,ce+"$1$`$1");case 4968:return ue(ue(e,/(.+:)(flex-)?(.*)/,ce+"box-pack:$3"+Oe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ce+e+e;case 4095:case 3583:case 4068:case 2532:return ue(e,/(.+)-inline(.+)/,ce+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(nt(e)-1-t>6)switch(Pe(e,t+1)){case 109:if(Pe(e,t+4)!==45)break;case 102:return ue(e,/(.+:)(.+)-([^]+)/,"$1"+ce+"$2-$3$1"+go+(Pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ca(e,"stretch")?B2(ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pe(e,t+1)!==115)break;case 6444:switch(Pe(e,nt(e)-3-(~Ca(e,"!important")&&10))){case 107:return ue(e,":",":"+ce)+e;case 101:return ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ce+(Pe(e,14)===45?"inline-":"")+"box$3$1"+ce+"$2$3$1"+Oe+"$2box$3")+e}break;case 5936:switch(Pe(e,t+11)){case 114:return ce+e+Oe+ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ce+e+Oe+ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ce+e+Oe+ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ce+e+Oe+e+e}return e}var Jy=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ks:t.return=B2(t.value,t.length);break;case V2:return vn([Nn(t,{value:ue(t.value,"@","@"+ce)})],o);case Us:if(t.length)return Oy(t.props,function(i){switch(_y(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vn([Nn(t,{props:[ue(i,/:(read-\w+)/,":"+go+"$1")]})],o);case"::placeholder":return vn([Nn(t,{props:[ue(i,/:(plac\w+)/,":"+ce+"input-$1")]}),Nn(t,{props:[ue(i,/:(plac\w+)/,":"+go+"$1")]}),Nn(t,{props:[ue(i,/:(plac\w+)/,Oe+"input-$1")]})],o)}return""})}},Uy=[Jy],Ky=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var b=g.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||Uy,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var b=g.getAttribute("data-emotion").split(" "),y=1;y<b.length;y++)i[b[y]]=!0;s.push(g)});var l,c=[Yy,$y];{var u,d=[jy,Wy(function(g){u.insert(g)})],f=Gy(c.concat(o,d)),h=function(b){return vn(By(b),f)};l=function(b,y,C,x){u=C,h(b?b+"{"+y.styles+"}":y.styles),x&&(m.inserted[y.name]=!0)}}var m={key:n,sheet:new Sy({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return m.sheet.hydrate(s),m},k2=Ka(),Qy={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},j2={};j2[k2.ForwardRef]=Qy;j2[k2.Memo]=qy;var eC=!0;function tC(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var G2=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||eC===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},nC=function(t,n,r){G2(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function rC(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var oC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},iC=/[A-Z]|^ms/g,aC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,W2=function(t){return t.charCodeAt(1)===45},xu=function(t){return t!=null&&typeof t!="boolean"},Ai=Hy(function(e){return W2(e)?e:e.replace(iC,"-$&").toLowerCase()}),Iu=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(aC,function(r,o,i){return rt={name:o,styles:i,next:rt},o})}return oC[t]!==1&&!W2(t)&&typeof n=="number"&&n!==0?n+"px":n};function ar(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return rt={name:o.name,styles:o.styles,next:rt},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)rt={name:a.name,styles:a.styles,next:rt},a=a.next;var s=i.styles+";";return s}return sC(e,t,n)}case"function":{if(e!==void 0){var l=rt,c=n(e);return rt=l,ar(e,t,c)}break}}var u=n;return u}function sC(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ar(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var s=a;xu(s)&&(r+=Ai(i)+":"+Iu(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var l=0;l<a.length;l++)xu(a[l])&&(r+=Ai(i)+":"+Iu(i,a[l])+";");else{var c=ar(e,t,a);switch(i){case"animation":case"animationName":{r+=Ai(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var wu=/label:\s*([^\s;{]+)\s*(;|$)/g,rt;function H2(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";rt=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=ar(n,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=ar(n,t,e[s]),r){var l=i;o+=l[s]}wu.lastIndex=0;for(var c="",u;(u=wu.exec(o))!==null;)c+="-"+u[1];var d=rC(o)+c;return{name:d,styles:o,next:rt}}var lC=function(t){return t()},cC=v.useInsertionEffect?v.useInsertionEffect:!1,uC=cC||lC,X2=v.createContext(typeof HTMLElement<"u"?Ky({key:"css"}):null);X2.Provider;var dC=function(t){return S.forwardRef(function(n,r){var o=S.useContext(X2);return t(n,o,r)})},fC=v.createContext({}),qs={}.hasOwnProperty,Ia="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",pC=function(t,n){var r={};for(var o in n)qs.call(n,o)&&(r[o]=n[o]);return r[Ia]=t,r},hC=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return G2(n,r,o),uC(function(){return nC(n,r,o)}),null},gC=dC(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Ia],i=[r],a="";typeof e.className=="string"?a=tC(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=H2(i,void 0,v.useContext(fC));a+=t.key+"-"+s.name;var l={};for(var c in e)qs.call(e,c)&&c!=="css"&&c!==Ia&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),v.createElement(v.Fragment,null,v.createElement(hC,{cache:t,serialized:s,isStringTag:typeof o=="string"}),v.createElement(o,l))}),mC=gC,ee=function(t,n){var r=arguments;if(n==null||!qs.call(n,"css"))return v.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=mC,i[1]=pC(t,n);for(var a=2;a<o;a++)i[a]=r[a];return v.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(ee||(ee={}));function el(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return H2(t)}function vC(){var e=el.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function bC(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var wa=S.useLayoutEffect,yC=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],mo=function(){};function CC(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function xC(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(CC(e,a)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var vo=function(t){return OC(t)?t.filter(Boolean):Qt(t)==="object"&&t!==null?[t]:[]},Z2=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=qe(t,yC);return q({},n)},xe=function(t,n,r){var o=t.cx,i=t.getStyles,a=t.getClassNames,s=t.className;return{css:i(n,t),className:o(r??{},a(n,t),s)}};function IC(e,t,n){if(n){var r=n(e,t);if(typeof r=="string")return r}return e}function jo(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function wC(e){return jo(e)?window.innerHeight:e.clientHeight}function z2(e){return jo(e)?window.pageYOffset:e.scrollTop}function bo(e,t){if(jo(e)){window.scrollTo(0,t);return}e.scrollTop=t}function SC(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function AC(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Vr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:mo,o=z2(e),i=t-o,a=10,s=0;function l(){s+=a;var c=AC(s,o,i,n);bo(e,c),s<n?window.requestAnimationFrame(l):r(e)}l()}function Su(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?bo(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&bo(e,Math.max(t.offsetTop-o,0))}function EC(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Au(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function TC(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Y2=!1,RC={get passive(){return Y2=!0}},Fr=typeof window<"u"?window:{};Fr.addEventListener&&Fr.removeEventListener&&(Fr.addEventListener("p",mo,RC),Fr.removeEventListener("p",mo,!1));var PC=Y2;function _C(e){return e!=null}function OC(e){return Array.isArray(e)}function Gn(e,t,n){return e?t:n}var MC=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=Object.entries(t).filter(function(a){var s=Te(a,1),l=s[0];return!r.includes(l)});return i.reduce(function(a,s){var l=Te(s,2),c=l[0],u=l[1];return a[c]=u,a},{})},VC=["children","innerProps"],FC=["children","innerProps"];function NC(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=SC(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect(),d=u.height,f=n.getBoundingClientRect(),h=f.bottom,m=f.height,g=f.top,b=n.offsetParent.getBoundingClientRect(),y=b.top,C=a?window.innerHeight:wC(l),x=z2(l),w=parseInt(getComputedStyle(n).marginBottom,10),I=parseInt(getComputedStyle(n).marginTop,10),T=y-I,A=C-g,E=T+x,D=d-x-g,L=h-C+x+w,W=x+g-I,B=160;switch(o){case"auto":case"bottom":if(A>=m)return{placement:"bottom",maxHeight:t};if(D>=m&&!a)return i&&Vr(l,L,B),{placement:"bottom",maxHeight:t};if(!a&&D>=r||a&&A>=r){i&&Vr(l,L,B);var R=a?A-w:D-w;return{placement:"bottom",maxHeight:R}}if(o==="auto"||a){var _=t,V=a?T:E;return V>=r&&(_=Math.min(V-w-s,t)),{placement:"top",maxHeight:_}}if(o==="bottom")return i&&bo(l,L),{placement:"bottom",maxHeight:t};break;case"top":if(T>=m)return{placement:"top",maxHeight:t};if(E>=m&&!a)return i&&Vr(l,W,B),{placement:"top",maxHeight:t};if(!a&&E>=r||a&&T>=r){var N=t;return(!a&&E>=r||a&&T>=r)&&(N=a?T-I:E-I),i&&Vr(l,W,B),{placement:"top",maxHeight:N}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}function DC(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var $2=function(t){return t==="auto"?"bottom":t},LC=function(t,n){var r,o=t.placement,i=t.theme,a=i.borderRadius,s=i.spacing,l=i.colors;return q((r={label:"menu"},fn(r,DC(o),"100%"),fn(r,"position","absolute"),fn(r,"width","100%"),fn(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},J2=S.createContext(null),BC=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=S.useContext(J2)||{},u=c.setPortalPlacement,d=S.useRef(null),f=S.useState(o),h=Te(f,2),m=h[0],g=h[1],b=S.useState(null),y=Te(b,2),C=y[0],x=y[1],w=l.spacing.controlHeight;return wa(function(){var I=d.current;if(I){var T=a==="fixed",A=s&&!T,E=NC({maxHeight:o,menuEl:I,minHeight:r,placement:i,shouldScroll:A,isFixedPosition:T,controlHeight:w});g(E.maxHeight),x(E.placement),u==null||u(E.placement)}},[o,i,a,s,r,u,w]),n({ref:d,placerProps:q(q({},t),{},{placement:C||$2(i),maxHeight:m})})},kC=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return ee("div",re({},xe(t,"menu",{menu:!0}),{ref:r},o),n)},jC=kC,GC=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return q({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},WC=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,i=t.isMulti;return ee("div",re({},xe(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},r),n)},U2=function(t,n){var r=t.theme,o=r.spacing.baseUnit,i=r.colors;return q({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},HC=U2,XC=U2,ZC=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,i=qe(t,VC);return ee("div",re({},xe(q(q({},i),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},zC=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,i=qe(t,FC);return ee("div",re({},xe(q(q({},i),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},YC=function(t){var n=t.rect,r=t.offset,o=t.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},$C=function(t){var n=t.appendTo,r=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,s=t.menuPosition,l=S.useRef(null),c=S.useRef(null),u=S.useState($2(a)),d=Te(u,2),f=d[0],h=d[1],m=S.useMemo(function(){return{setPortalPlacement:h}},[]),g=S.useState(null),b=Te(g,2),y=b[0],C=b[1],x=S.useCallback(function(){if(o){var A=EC(o),E=s==="fixed"?0:window.pageYOffset,D=A[f]+E;(D!==(y==null?void 0:y.offset)||A.left!==(y==null?void 0:y.rect.left)||A.width!==(y==null?void 0:y.rect.width))&&C({offset:D,rect:A})}},[o,s,f,y==null?void 0:y.offset,y==null?void 0:y.rect.left,y==null?void 0:y.rect.width]);wa(function(){x()},[x]);var w=S.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),o&&l.current&&(c.current=Za(o,l.current,x,{elementResize:"ResizeObserver"in window}))},[o,x]);wa(function(){w()},[w]);var I=S.useCallback(function(A){l.current=A,w()},[w]);if(!n&&s!=="fixed"||!y)return null;var T=ee("div",re({ref:I},xe(q(q({},t),{},{offset:y.offset,position:s,rect:y.rect}),"menuPortal",{"menu-portal":!0}),i),r);return ee(J2.Provider,{value:m},n?ht.createPortal(T,n):T)},JC=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},UC=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,i=t.isRtl;return ee("div",re({},xe(t,"container",{"--is-disabled":o,"--is-rtl":i}),r),n)},KC=function(t,n){var r=t.theme.spacing,o=t.isMulti,i=t.hasValue,a=t.selectProps.controlShouldRenderValue;return q({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},QC=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,i=t.hasValue;return ee("div",re({},xe(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),r),n)},qC=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ex=function(t){var n=t.children,r=t.innerProps;return ee("div",re({},xe(t,"indicatorsContainer",{indicators:!0}),r),n)},Eu,tx=["size"],nx=["innerProps","isRtl","size"];function rx(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var ox=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:rx},K2=function(t){var n=t.size,r=qe(t,tx);return ee("svg",re({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ox},r))},tl=function(t){return ee(K2,re({size:20},t),ee("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Q2=function(t){return ee(K2,re({size:20},t),ee("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},q2=function(t,n){var r=t.isFocused,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return q({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:i*2,":hover":{color:r?a.neutral80:a.neutral40}})},ix=q2,ax=function(t){var n=t.children,r=t.innerProps;return ee("div",re({},xe(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||ee(Q2,null))},sx=q2,lx=function(t){var n=t.children,r=t.innerProps;return ee("div",re({},xe(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||ee(tl,null))},cx=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return q({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},ux=function(t){var n=t.innerProps;return ee("span",re({},n,xe(t,"indicatorSeparator",{"indicator-separator":!0})))},dx=vC(Eu||(Eu=bC([`
82
82
  0%, 80%, 100% { opacity: 0; }
@@ -17632,13 +17632,13 @@ const L7 = ({
17632
17632
  fullHeight: u,
17633
17633
  ...d
17634
17634
  }) => /* @__PURE__ */ h(p2, { isOpen: e, onOpenChange: t, initialOpen: n, children: /* @__PURE__ */ U(ll, { children: [
17635
- /* @__PURE__ */ h(cl, {}),
17635
+ /* @__PURE__ */ h(cl, {}, "modal-overlay"),
17636
17636
  /* @__PURE__ */ U(ul, { size: s, noPadding: l, fullScreen: c, fullHeight: u, ...d, children: [
17637
17637
  r && /* @__PURE__ */ h(g2, { children: /* @__PURE__ */ h(b2, { children: r }) }),
17638
17638
  !a && /* @__PURE__ */ h(dl, {}),
17639
17639
  /* @__PURE__ */ h(m2, { children: o }),
17640
17640
  i && /* @__PURE__ */ h(v2, { children: i })
17641
- ] })
17641
+ ] }, "modal-content")
17642
17642
  ] }) }), WS = Object.assign(L7, {
17643
17643
  Root: p2,
17644
17644
  Trigger: h2,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Modal/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,eAAe,EAGrB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,EACZ,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAMf,KAAK,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE/E,UAAU,cAAc;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAGD,UAAU,iBAAkB,SAAQ,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAC1E,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AA6JD,KAAK,yBAAyB,CAC5B,CAAC,SAAS,KAAK,CAAC,WAAW,EAC3B,KAAK,GAAG,EAAE,IACR,KAAK,CAAC,iBAAiB,CAAC,KAAK,GAAG;IAAE,EAAE,CAAC,EAAE,CAAC,CAAA;CAAE,CAAC,GAC7C,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,GAAG;IAAE,EAAE,CAAC,EAAE,CAAC,CAAA;CAAE,CAAC,CAAC,CAAC;AA6DtE,UAAU,gBACR,SAAQ,cAAc,EACpB,IAAI,CAAC,iBAAiB,EAAE,UAAU,GAAG,OAAO,CAAC;IAC/C,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;;;;;kBArLuC,SAAS;;;;;;;;;;;AAsOjD,wBAYG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Modal/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,eAAe,EAGrB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,EACZ,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAMf,KAAK,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE/E,UAAU,cAAc;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAGD,UAAU,iBAAkB,SAAQ,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAC1E,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AA6JD,KAAK,yBAAyB,CAC5B,CAAC,SAAS,KAAK,CAAC,WAAW,EAC3B,KAAK,GAAG,EAAE,IACR,KAAK,CAAC,iBAAiB,CAAC,KAAK,GAAG;IAAE,EAAE,CAAC,EAAE,CAAC,CAAA;CAAE,CAAC,GAC7C,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,GAAG;IAAE,EAAE,CAAC,EAAE,CAAC,CAAA;CAAE,CAAC,CAAC,CAAC;AA6DtE,UAAU,gBACR,SAAQ,cAAc,EACpB,IAAI,CAAC,iBAAiB,EAAE,UAAU,GAAG,OAAO,CAAC;IAC/C,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;;;;;kBArLuC,SAAS;;;;;;;;;;;AAuOjD,wBAYG"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "luis-ui-lib",
3
3
  "private": false,
4
- "version": "1.1.92",
4
+ "version": "1.1.93",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist/**/*"