@prisma/studio-core-licensed 0.5.2 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui/index.js CHANGED
@@ -15,7 +15,7 @@ import{h as Ji}from"../chunk-AQXRIQHE.js";import{a as Lx,b as ot,c as Mx,d as Cn
15
15
  top: ${c}px !important;
16
16
  }
17
17
  `),()=>{document.head.removeChild(m)}},[t]),xU(Ex,{isPresent:t,childRef:n,sizeRef:a,children:Zf.cloneElement(e,{ref:n})})}var tI=({children:e,initial:t,isPresent:o,onExitComplete:r,custom:n,presenceAffectsLayout:a,mode:s,anchorX:i})=>{let u=Ea(bU),c=SU(),d=!0,f=J0(()=>(d=!1,{id:c,initial:t,isPresent:o,custom:n,onExitComplete:p=>{u.set(p,!0);for(let m of u.values())if(!m)return;r&&r()},register:p=>(u.set(p,!1),()=>u.delete(p))}),[o,u,r]);return a&&d&&(f={...f}),J0(()=>{u.forEach((p,m)=>u.set(m,!1))},[o]),eI.useEffect(()=>{!o&&!u.size&&r&&r()},[o]),s==="popLayout"&&(e=Z0(Q0,{isPresent:o,anchorX:i,children:e})),Z0(Yn.Provider,{value:f,children:e})};function bU(){return new Map}l();import{useContext as oI,useId as IU,useEffect as RU,useCallback as PU}from"react";function tc(e=!0){let t=oI(Yn);if(t===null)return[!0,null];let{isPresent:o,onExitComplete:r,register:n}=t,a=IU();RU(()=>{if(e)return n(a)},[e]);let s=PU(()=>e&&r&&r(a),[a,r,e]);return!o&&r?[!1,s]:[!0]}function oc(){return LU(oI(Yn))}function LU(e){return e===null?!0:e.isPresent}l();import{Children as MU,isValidElement as EU}from"react";var rc=e=>e.key||"";function Tx(e){let t=[];return MU.forEach(e,o=>{EU(o)&&t.push(o)}),t}var Zr=({children:e,custom:t,initial:o=!0,onExitComplete:r,presenceAffectsLayout:n=!0,mode:a="sync",propagate:s=!1,anchorX:i="left"})=>{let[u,c]=tc(s),d=DU(()=>Tx(e),[e]),f=s&&!u?[]:d.map(rc),p=nI(!0),m=nI(d),y=Ea(()=>new Map),[g,v]=aI(d),[x,w]=aI(d);tl(()=>{p.current=!1,m.current=d;for(let b=0;b<x.length;b++){let R=rc(x[b]);f.includes(R)?y.delete(R):y.get(R)!==!0&&y.set(R,!1)}},[x,f.length,f.join("-")]);let C=[];if(d!==g){let b=[...d];for(let R=0;R<x.length;R++){let P=x[R],M=rc(P);f.includes(M)||(b.splice(R,0,P),C.push(P))}return a==="wait"&&C.length&&(b=C),w(Tx(b)),v(d),null}a==="wait"&&x.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.`);let{forceRender:S}=AU(Kn);return rI(TU,{children:x.map(b=>{let R=rc(b),P=s&&!u?!1:d===x||f.includes(R),M=()=>{if(y.has(R))y.set(R,!0);else return;let T=!0;y.forEach(_=>{_||(T=!1)}),T&&(S?.(),w(m.current),s&&c?.(),r&&r())};return rI(tI,{isPresent:P,initial:!p.current||o?void 0:!1,custom:t,presenceAffectsLayout:n,mode:a,onExitComplete:P?void 0:M,anchorX:i,children:b},R)})})};l();import{jsx as BU}from"react/jsx-runtime";import{useContext as dI,useRef as VU,useMemo as HU}from"react";l();import{createContext as OU}from"react";var sI=OU(null);l();import{useState as _U,useCallback as uI}from"react";l();import{useRef as kU}from"react";function iI(){let e=kU(!1);return tl(()=>(e.current=!0,()=>{e.current=!1}),[]),e}l();l();l();var nc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];l();l();var vr={value:null,addProjectionMetrics:null};function lI(e,t){let o=new Set,r=new Set,n=!1,a=!1,s=new WeakSet,i={delta:0,timestamp:0,isProcessing:!1},u=0;function c(f){s.has(f)&&(d.schedule(f),e()),u++,f(i)}let d={schedule:(f,p=!1,m=!1)=>{let g=m&&n?o:r;return p&&s.add(f),g.has(f)||g.add(f),f},cancel:f=>{r.delete(f),s.delete(f)},process:f=>{if(i=f,n){a=!0;return}n=!0,[o,r]=[r,o],o.forEach(c),t&&vr.value&&vr.value.frameloop[t].push(u),u=0,o.clear(),n=!1,a&&(a=!1,d.process(f))}};return d}l();var Uo={};var NU=40;function Jf(e,t){let o=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},a=()=>o=!0,s=nc.reduce((C,S)=>(C[S]=lI(a,t?S:void 0),C),{}),{setup:i,read:u,resolveKeyframes:c,preUpdate:d,update:f,preRender:p,render:m,postRender:y}=s,g=()=>{let C=Uo.useManualTiming?n.timestamp:performance.now();o=!1,Uo.useManualTiming||(n.delta=r?1e3/60:Math.max(Math.min(C-n.timestamp,NU),1)),n.timestamp=C,n.isProcessing=!0,i.process(n),u.process(n),c.process(n),d.process(n),f.process(n),p.process(n),m.process(n),y.process(n),n.isProcessing=!1,o&&t&&(r=!1,e(g))},v=()=>{o=!0,r=!0,n.isProcessing||e(g)};return{schedule:nc.reduce((C,S)=>{let b=s[S];return C[S]=(R,P=!1,M=!1)=>(o||v(),b.schedule(R,P,M)),C},{}),cancel:C=>{for(let S=0;S<nc.length;S++)s[nc[S]].cancel(C)},state:n,steps:s}}l();var bt=e=>e;var{schedule:be,cancel:wr,state:Et,steps:ep}=Jf(typeof requestAnimationFrame<"u"?requestAnimationFrame:bt,!0);function cI(){let e=iI(),[t,o]=_U(0),r=uI(()=>{e.current&&o(t+1)},[t]);return[uI(()=>be.postRender(r),[r]),t]}l();var FU=e=>!e.isLayoutDirty&&e.willUpdate(!1);function Dx(){let e=new Set,t=new WeakMap,o=()=>e.forEach(FU);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",o))},remove:r=>{e.delete(r);let n=t.get(r);n&&(n(),t.delete(r)),o()},dirty:o}}var fI=e=>e===!0,UU=e=>fI(e===!0)||e==="id",Ax=({children:e,id:t,inherit:o=!0})=>{let r=dI(Kn),n=dI(sI),[a,s]=cI(),i=VU(null),u=r.id||n;i.current===null&&(UU(o)&&u&&(t=t?u+"-"+t:u),i.current={id:t,group:fI(o)?r.group||Dx():Dx()});let c=HU(()=>({...i.current,forceRender:a}),[s]);return BU(Kn.Provider,{value:c,children:e})};l();import{createContext as zU}from"react";var tp=zU({strict:!1});l();l();var pI={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"]},Xn={};for(let e in pI)Xn[e]={isEnabled:t=>pI[e].some(o=>!!t[o])};function mI(e){for(let t in e)Xn[t]={...Xn[t],...e[t]}}l();import{jsx as WU}from"react/jsx-runtime";import{useContext as $U,useMemo as GU}from"react";l();l();var qU=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 ac(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||qU.has(e)}var hI=e=>!ac(e);function Ox(e){e&&(hI=t=>t.startsWith("on")?!ac(t):e(t))}try{Ox(Lx("@emotion/is-prop-valid").default)}catch{}function gI(e,t,o){let r={};for(let n in e)n==="values"&&typeof e.values=="object"||(hI(n)||o===!0&&ac(n)||!t&&!ac(n)||e.draggable&&n.startsWith("onDrag"))&&(r[n]=e[n]);return r}function kx({children:e,isValidProp:t,...o}){t&&Ox(t),o={...$U(er),...o},o.isStatic=Ea(()=>o.isStatic);let r=GU(()=>o,[JSON.stringify(o.transition),o.transformPagePoint,o.reducedMotion]);return WU(er.Provider,{value:r,children:e})}l();l();var yI=new Set;function ol(e,t,o){e||yI.has(t)||(console.warn(t),o&&console.warn(o),yI.add(t))}function xI(e){if(typeof Proxy>"u")return e;let t=new Map,o=(...r)=>(ol(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(o,{get:(r,n)=>n==="create"?e:(t.has(n)||t.set(n,e(n)),t.get(n))})}l();l();import{jsxs as oz,jsx as rz}from"react/jsx-runtime";import{forwardRef as nz,useContext as _x}from"react";l();import{createContext as jU}from"react";var Ta=jU({});l();import{useContext as KU,useMemo as YU}from"react";l();l();l();function Da(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}l();function Qn(e){return typeof e=="string"||Array.isArray(e)}l();var op=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],sc=["initial",...op];function Os(e){return Da(e.animate)||sc.some(t=>Qn(e[t]))}function rp(e){return!!(Os(e)||e.variants)}function vI(e,t){if(Os(e)){let{initial:o,animate:r}=e;return{initial:o===!1||Qn(o)?o:void 0,animate:Qn(r)?r:void 0}}return e.inherit!==!1?t:{}}function CI(e){let{initial:t,animate:o}=vI(e,KU(Ta));return YU(()=>({initial:t,animate:o}),[wI(t),wI(o)])}function wI(e){return Array.isArray(e)?e.join(" "):e}l();var SI=Symbol.for("motionComponentSymbol");l();import{useCallback as XU}from"react";l();function Zn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function bI(e,t,o){return XU(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),o&&(typeof o=="function"?o(r):Zn(o)&&(o.current=r))},[t])}l();import{useContext as ic,useRef as Nx,useInsertionEffect as JU,useEffect as ez}from"react";l();l();var rl=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var QU="framerAppearId",np="data-"+rl(QU);l();import{createContext as ZU}from"react";var ap=ZU({});l();var{schedule:nl,cancel:fie}=Jf(queueMicrotask,!1);function II(e,t,o,r,n){let{visualElement:a}=ic(Ta),s=ic(tp),i=ic(Yn),u=ic(er).reducedMotion,c=Nx(null);r=r||s.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:a,props:o,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:u}));let d=c.current,f=ic(ap);d&&!d.projection&&n&&(d.type==="html"||d.type==="svg")&&tz(c.current,o,n,f);let p=Nx(!1);JU(()=>{d&&p.current&&d.update(o,i)});let m=o[np],y=Nx(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return tl(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),nl.render(d.render),y.current&&d.animationState&&d.animationState.animateChanges())}),ez(()=>{d&&(!y.current&&d.animationState&&d.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),y.current=!1))}),d}function tz(e,t,o,r){let{layoutId:n,layout:a,drag:s,dragConstraints:i,layoutScroll:u,layoutRoot:c,layoutCrossfade:d}=t;e.projection=new o(e.latestValues,t["data-framer-portal-id"]?void 0:RI(e.parent)),e.projection.setOptions({layoutId:n,layout:a,alwaysMeasureLayout:!!s||i&&Zn(i),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:u,layoutRoot:c})}function RI(e){if(e)return e.options.allowProjection!==!1?e.projection:RI(e.parent)}l();var Jr=()=>{},kt=()=>{};Jr=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},kt=(e,t)=>{if(!e)throw new Error(t)};function PI({preloadedFeatures:e,createVisualElement:t,useRender:o,useVisualState:r,Component:n}){e&&mI(e);function a(i,u){let c,d={..._x(er),...i,layoutId:az(i)},{isStatic:f}=d,p=CI(i),m=r(i,f);if(!f&&el){sz(d,e);let y=iz(d);c=y.MeasureLayout,p.visualElement=II(n,m,d,t,y.ProjectionNode)}return oz(Ta.Provider,{value:p,children:[c&&p.visualElement?rz(c,{visualElement:p.visualElement,...d}):null,o(n,i,bI(m,p.visualElement,u),m,f,p.visualElement)]})}a.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;let s=nz(a);return s[SI]=n,s}function az({layoutId:e}){let t=_x(Kn).id;return t&&e!==void 0?t+"-"+e:e}function sz(e,t){let o=_x(tp).strict;if(t&&o){let 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?Jr(!1,r):kt(!1,r)}}function iz(e){let{drag:t,layout:o}=Xn;if(!t&&!o)return{};let r={...t,...o};return{MeasureLayout:t?.isEnabled(e)||o?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}l();import{Fragment as xz,useMemo as vz,createElement as wz}from"react";l();import{useMemo as fz}from"react";l();l();l();var LI=e=>t=>typeof t=="string"&&t.startsWith(e),al=LI("--"),lz=LI("var(--"),sl=e=>lz(e)?uz.test(e.split("/*")[0].trim()):!1,uz=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var ks={};function lc(e){for(let t in e)ks[t]=e[t],al(t)&&(ks[t].isCSSVariable=!0)}l();var Sn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_r=new Set(Sn);function sp(e,{layout:t,layoutId:o}){return _r.has(e)||e.startsWith("origin")||(t||o!==void 0)&&(!!ks[e]||e==="opacity")}l();var ze=e=>!!(e&&e.getVelocity);l();l();l();var ip=(e,t)=>t&&typeof e=="number"?t.transform(e):e;l();l();l();l();var ho=(e,t,o)=>o>t?t:o<e?e:o;var bn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Jn={...bn,transform:e=>ho(0,1,e)},uc={...bn,default:1};var Fx={...bn,transform:Math.round};l();var cc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),In=cc("deg"),zo=cc("%"),ue=cc("px"),MI=cc("vh"),EI=cc("vw"),Bx={...zo,parse:e=>zo.parse(e)/100,transform:e=>zo.transform(e*100)};l();var TI={rotate:In,rotateX:In,rotateY:In,rotateZ:In,scale:uc,scaleX:uc,scaleY:uc,scaleZ:uc,skew:In,skewX:In,skewY:In,distance:ue,translateX:ue,translateY:ue,translateZ:ue,x:ue,y:ue,z:ue,perspective:ue,transformPerspective:ue,opacity:Jn,originX:Bx,originY:Bx,originZ:ue};var il={borderWidth:ue,borderTopWidth:ue,borderRightWidth:ue,borderBottomWidth:ue,borderLeftWidth:ue,borderRadius:ue,radius:ue,borderTopLeftRadius:ue,borderTopRightRadius:ue,borderBottomRightRadius:ue,borderBottomLeftRadius:ue,width:ue,maxWidth:ue,height:ue,maxHeight:ue,top:ue,right:ue,bottom:ue,left:ue,padding:ue,paddingTop:ue,paddingRight:ue,paddingBottom:ue,paddingLeft:ue,margin:ue,marginTop:ue,marginRight:ue,marginBottom:ue,marginLeft:ue,backgroundPositionX:ue,backgroundPositionY:ue,...TI,zIndex:Fx,fillOpacity:Jn,strokeOpacity:Jn,numOctaves:Fx};var cz={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},dz=Sn.length;function DI(e,t,o){let r="",n=!0;for(let a=0;a<dz;a++){let s=Sn[a],i=e[s];if(i===void 0)continue;let u=!0;if(typeof i=="number"?u=i===(s.startsWith("scale")?1:0):u=parseFloat(i)===0,!u||o){let c=ip(i,il[s]);if(!u){n=!1;let d=cz[s]||s;r+=`${d}(${c}) `}o&&(t[s]=c)}}return r=r.trim(),o?r=o(t,n?"":r):n&&(r="none"),r}function ll(e,t,o){let{style:r,vars:n,transformOrigin:a}=e,s=!1,i=!1;for(let u in t){let c=t[u];if(_r.has(u)){s=!0;continue}else if(al(u)){n[u]=c;continue}else{let d=ip(c,il[u]);u.startsWith("origin")?(i=!0,a[u]=d):r[u]=d}}if(t.transform||(s||o?r.transform=DI(t,e.transform,o):r.transform&&(r.transform="none")),i){let{originX:u="50%",originY:c="50%",originZ:d=0}=a;r.transformOrigin=`${u} ${c} ${d}`}}l();var ul=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Vx(e,t,o){for(let r in t)!ze(t[r])&&!sp(r,o)&&(e[r]=t[r])}function pz({transformTemplate:e},t){return fz(()=>{let o=ul();return ll(o,t,e),Object.assign({},o.vars,o.style)},[t])}function mz(e,t){let o=e.style||{},r={};return Vx(r,o,e),Object.assign(r,pz(e,t)),r}function AI(e,t){let o={},r=mz(e,t);return e.drag&&e.dragListener!==!1&&(o.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)&&(o.tabIndex=0),o.style=r,o}l();l();var OI=["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 cl(e){return typeof e!="string"||e.includes("-")?!1:!!(OI.indexOf(e)>-1||/[A-Z]/u.test(e))}l();import{useMemo as yz}from"react";l();l();var hz={offset:"stroke-dashoffset",array:"stroke-dasharray"},gz={offset:"strokeDashoffset",array:"strokeDasharray"};function kI(e,t,o=1,r=0,n=!0){e.pathLength=1;let a=n?hz:gz;e[a.offset]=ue.transform(-r);let s=ue.transform(t),i=ue.transform(o);e[a.array]=`${s} ${i}`}function lp(e,{attrX:t,attrY:o,attrScale:r,pathLength:n,pathSpacing:a=1,pathOffset:s=0,...i},u,c){if(ll(e,i,c),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox="fill-box",delete d.transformBox),t!==void 0&&(d.x=t),o!==void 0&&(d.y=o),r!==void 0&&(d.scale=r),n!==void 0&&kI(d,n,a,s,!1)}l();var up=()=>({...ul(),attrs:{}});l();var cp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function NI(e,t,o,r){let n=yz(()=>{let a=up();return lp(a,t,cp(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){let a={};Vx(a,e.style,e),n.style={...a,...n.style}}return n}function _I(e=!1){return(o,r,n,{latestValues:a},s)=>{let u=(cl(o)?NI:AI)(r,a,s,o),c=gI(r,typeof o=="string",e),d=o!==xz?{...c,...u,ref:n}:{},{children:f}=r,p=vz(()=>ze(f)?f.get():f,[f]);return wz(o,{...d,children:p})}}l();l();import{useContext as BI}from"react";l();function FI(e){let t=[{},{}];return e?.values.forEach((o,r)=>{t[0][r]=o.get(),t[1][r]=o.getVelocity()}),t}function dl(e,t,o,r){if(typeof t=="function"){let[n,a]=FI(r);t=t(o!==void 0?o:e.custom,n,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[n,a]=FI(r);t=t(o!==void 0?o:e.custom,n,a)}return t}l();function fl(e){return ze(e)?e.get():e}function Cz({scrapeMotionValuesFromProps:e,createRenderState:t},o,r,n){return{latestValues:Sz(o,r,n,e),renderState:t()}}var dp=e=>(t,o)=>{let r=BI(Ta),n=BI(Yn),a=()=>Cz(e,t,r,n);return o?a():Ea(a)};function Sz(e,t,o,r){let n={},a=r(e,{});for(let p in a)n[p]=fl(a[p]);let{initial:s,animate:i}=e,u=Os(e),c=rp(e);t&&c&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),i===void 0&&(i=t.animate));let d=o?o.initial===!1:!1;d=d||s===!1;let f=d?i:s;if(f&&typeof f!="boolean"&&!Da(f)){let p=Array.isArray(f)?f:[f];for(let m=0;m<p.length;m++){let y=dl(e,p[m]);if(y){let{transitionEnd:g,transition:v,...x}=y;for(let w in x){let C=x[w];if(Array.isArray(C)){let S=d?C.length-1:0;C=C[S]}C!==null&&(n[w]=C)}for(let w in g)n[w]=g[w]}}}return n}l();function pl(e,t,o){let{style:r}=e,n={};for(let a in r)(ze(r[a])||t.style&&ze(t.style[a])||sp(a,e)||o?.getValue(a)?.liveStyle!==void 0)&&(n[a]=r[a]);return n}var VI={useVisualState:dp({scrapeMotionValuesFromProps:pl,createRenderState:ul})};l();l();function fp(e,t,o){let r=pl(e,t,o);for(let n in e)if(ze(e[n])||ze(t[n])){let a=Sn.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[a]=e[n]}return r}var HI={useVisualState:dp({scrapeMotionValuesFromProps:fp,createRenderState:up})};function UI(e,t){return function(r,{forwardMotionProps:n}={forwardMotionProps:!1}){let s={...cl(r)?HI:VI,preloadedFeatures:e,useRender:_I(n),createVisualElement:t,Component:r};return PI(s)}}l();l();l();l();l();l();l();function ea(e,t,o){let r=e.getProps();return dl(r,t,o!==void 0?o:r.custom,e)}l();l();l();var dc=e=>Array.isArray(e);l();l();var pp;function bz(){pp=void 0}var Tt={now:()=>(pp===void 0&&Tt.set(Et.isProcessing||Uo.useManualTiming?Et.timestamp:performance.now()),pp),set:e=>{pp=e,queueMicrotask(bz)}};l();l();function ml(e,t){e.indexOf(t)===-1&&e.push(t)}function Aa(e,t){let o=e.indexOf(t);o>-1&&e.splice(o,1)}var Oa=class{constructor(){this.subscriptions=[]}add(t){return ml(this.subscriptions,t),()=>Aa(this.subscriptions,t)}notify(t,o,r){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](t,o,r);else for(let a=0;a<n;a++){let s=this.subscriptions[a];s&&s(t,o,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};l();function mp(e,t){return t?e*(1e3/t):0}var zI=30,Iz=e=>!isNaN(parseFloat(e)),qI={current:void 0},Hx=class{constructor(t,o={}){this.version="12.9.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,n=!0)=>{let a=Tt.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change?.notify(this.current),n&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=o.owner}setCurrent(t){this.current=t,this.updatedAt=Tt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Iz(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return ol(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,o){this.events[t]||(this.events[t]=new Oa);let r=this.events[t].add(o);return t==="change"?()=>{r(),be.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,o){this.passiveEffect=t,this.stopPassiveEffect=o}set(t,o=!0){!o||!this.passiveEffect?this.updateAndNotify(t,o):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,o,r){this.set(o),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,o=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return qI.current&&qI.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=Tt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>zI)return 0;let o=Math.min(this.updatedAt-this.prevUpdatedAt,zI);return mp(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(t){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=t(o),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function ta(e,t){return new Hx(e,t)}function Rz(e,t,o){e.hasValue(t)?e.getValue(t).set(o):e.addValue(t,ta(o))}function Pz(e){return dc(e)?e[e.length-1]||0:e}function WI(e,t){let o=ea(e,t),{transitionEnd:r={},transition:n={},...a}=o||{};a={...a,...r};for(let s in a){let i=Pz(a[s]);Rz(e,s,i)}}l();l();function $I(e){return!!(ze(e)&&e.add)}function fc(e,t){let o=e.getValue("willChange");if($I(o))return o.add(t);if(!o&&Uo.WillChange){let r=new Uo.WillChange("auto");e.addValue("willChange",r),r.add(t)}}l();function hp(e){return e.props[np]}l();l();var Lz=e=>e!==null;function GI(e,{repeat:t,repeatType:o="loop"},r){let n=e.filter(Lz),a=t&&o!=="loop"&&t%2===1?0:n.length-1;return!a||r===void 0?n[a]:r}l();var Mz={type:"spring",stiffness:500,damping:25,restSpeed:10},Ez=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Tz={type:"keyframes",duration:.8},Dz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},jI=(e,{keyframes:t})=>t.length>2?Tz:_r.has(e)?e.startsWith("scale")?Ez(t[1]):Mz:Dz;l();function KI({when:e,delay:t,delayChildren:o,staggerChildren:r,staggerDirection:n,repeat:a,repeatType:s,repeatDelay:i,from:u,elapsed:c,...d}){return!!Object.keys(d).length}l();function hl(e,t){return e?.[t]??e?.default??e}l();var Nt=e=>e*1e3,Ro=e=>e/1e3;l();l();l();var Rn={layout:0,mainThread:0,waapi:0};l();l();l();l();l();l();var ka=e=>Math.round(e*1e5)/1e5;l();l();var gl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;l();function YI(e){return e==null}l();var XI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var yl=(e,t)=>o=>!!(typeof o=="string"&&XI.test(o)&&o.startsWith(e)||t&&!YI(o)&&Object.prototype.hasOwnProperty.call(o,t)),gp=(e,t,o)=>r=>{if(typeof r!="string")return r;let[n,a,s,i]=r.match(gl);return{[e]:parseFloat(n),[t]:parseFloat(a),[o]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}};var Az=e=>ho(0,255,e),Ux={...bn,transform:e=>Math.round(Az(e))},Pn={test:yl("rgb","red"),parse:gp("red","green","blue"),transform:({red:e,green:t,blue:o,alpha:r=1})=>"rgba("+Ux.transform(e)+", "+Ux.transform(t)+", "+Ux.transform(o)+", "+ka(Jn.transform(r))+")"};function Oz(e){let t="",o="",r="",n="";return e.length>5?(t=e.substring(1,3),o=e.substring(3,5),r=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),o=e.substring(2,3),r=e.substring(3,4),n=e.substring(4,5),t+=t,o+=o,r+=r,n+=n),{red:parseInt(t,16),green:parseInt(o,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}}var pc={test:yl("#"),parse:Oz,transform:Pn.transform};l();var Na={test:yl("hsl","hue"),parse:gp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:o,alpha:r=1})=>"hsla("+Math.round(e)+", "+zo.transform(ka(t))+", "+zo.transform(ka(o))+", "+ka(Jn.transform(r))+")"};var _t={test:e=>Pn.test(e)||pc.test(e)||Na.test(e),parse:e=>Pn.test(e)?Pn.parse(e):Na.test(e)?Na.parse(e):pc.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Pn.transform(e):Na.transform(e)};l();l();var QI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kz(e){return isNaN(e)&&typeof e=="string"&&(e.match(gl)?.length||0)+(e.match(QI)?.length||0)>0}var JI="number",eR="color",Nz="var",_z="var(",ZI="${}",Fz=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ns(e){let t=e.toString(),o=[],r={color:[],number:[],var:[]},n=[],a=0,i=t.replace(Fz,u=>(_t.test(u)?(r.color.push(a),n.push(eR),o.push(_t.parse(u))):u.startsWith(_z)?(r.var.push(a),n.push(Nz),o.push(u)):(r.number.push(a),n.push(JI),o.push(parseFloat(u))),++a,ZI)).split(ZI);return{values:o,split:i,indexes:r,types:n}}function tR(e){return Ns(e).values}function oR(e){let{split:t,types:o}=Ns(e),r=t.length;return n=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],n[s]!==void 0){let i=o[s];i===JI?a+=ka(n[s]):i===eR?a+=_t.transform(n[s]):a+=n[s]}return a}}var Bz=e=>typeof e=="number"?0:e;function Vz(e){let t=tR(e);return oR(e)(t.map(Bz))}var qo={test:kz,parse:tR,createTransformer:oR,getAnimatableNone:Vz};l();l();function zx(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(t-e)*6*o:o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function rR({hue:e,saturation:t,lightness:o,alpha:r}){e/=360,t/=100,o/=100;let n=0,a=0,s=0;if(!t)n=a=s=o;else{let i=o<.5?o*(1+t):o+t-o*t,u=2*o-i;n=zx(u,i,e+1/3),a=zx(u,i,e),s=zx(u,i,e-1/3)}return{red:Math.round(n*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}l();function xl(e,t){return o=>o>0?t:e}l();var Pe=(e,t,o)=>e+(t-e)*o;var qx=(e,t,o)=>{let r=e*e,n=o*(t*t-r)+r;return n<0?0:Math.sqrt(n)},Hz=[pc,Pn,Na],Uz=e=>Hz.find(t=>t.test(e));function nR(e){let t=Uz(e);if(Jr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let o=t.parse(e);return t===Na&&(o=rR(o)),o}var Wx=(e,t)=>{let o=nR(e),r=nR(t);if(!o||!r)return xl(e,t);let n={...o};return a=>(n.red=qx(o.red,r.red,a),n.green=qx(o.green,r.green,a),n.blue=qx(o.blue,r.blue,a),n.alpha=Pe(o.alpha,r.alpha,a),Pn.transform(n))};l();var yp=new Set(["none","hidden"]);function aR(e,t){return yp.has(e)?o=>o<=0?e:t:o=>o>=1?t:e}l();var zz=(e,t)=>o=>t(e(o)),Ln=(...e)=>e.reduce(zz);function qz(e,t){return o=>Pe(e,t,o)}function xp(e){return typeof e=="number"?qz:typeof e=="string"?sl(e)?xl:_t.test(e)?Wx:Gz:Array.isArray(e)?sR:typeof e=="object"?_t.test(e)?Wx:Wz:xl}function sR(e,t){let o=[...e],r=o.length,n=e.map((a,s)=>xp(a)(a,t[s]));return a=>{for(let s=0;s<r;s++)o[s]=n[s](a);return o}}function Wz(e,t){let o={...e,...t},r={};for(let n in o)e[n]!==void 0&&t[n]!==void 0&&(r[n]=xp(e[n])(e[n],t[n]));return n=>{for(let a in r)o[a]=r[a](n);return o}}function $z(e,t){let o=[],r={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let a=t.types[n],s=e.indexes[a][r[a]],i=e.values[s]??0;o[n]=i,r[a]++}return o}var Gz=(e,t)=>{let o=qo.createTransformer(t),r=Ns(e),n=Ns(t);return r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length?yp.has(e)&&!n.values.length||yp.has(t)&&!r.values.length?aR(e,t):Ln(sR($z(r,n),n.values),o):(Jr(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),xl(e,t))};function vp(e,t,o){return typeof e=="number"&&typeof t=="number"&&typeof o=="number"?Pe(e,t,o):xp(e)(e,t)}l();var iR=e=>{let t=({timestamp:o})=>e(o);return{start:()=>be.update(t,!0),stop:()=>wr(t),now:()=>Et.isProcessing?Et.timestamp:Tt.now()}};l();l();l();var wp=(e,t,o=10)=>{let r="",n=Math.max(Math.round(t/o),2);for(let a=0;a<n;a++)r+=e(a/(n-1))+", ";return`linear(${r.substring(0,r.length-2)})`};l();function vl(e){let t=0,o=50,r=e.next(t);for(;!r.done&&t<2e4;)t+=o,r=e.next(t);return t>=2e4?1/0:t}l();function Cp(e,t=100,o){let r=o({...e,keyframes:[0,t]}),n=Math.min(vl(r),2e4);return{type:"keyframes",ease:a=>r.next(n*a).value/t,duration:Ro(n)}}l();var jz=5;function Sp(e,t,o){let r=Math.max(t-jz,0);return mp(o-e(r),t-r)}l();var rt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};l();var Gx=.001;function lR({duration:e=rt.duration,bounce:t=rt.bounce,velocity:o=rt.velocity,mass:r=rt.mass}){let n,a;Jr(e<=Nt(rt.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=ho(rt.minDamping,rt.maxDamping,s),e=ho(rt.minDuration,rt.maxDuration,Ro(e)),s<1?(n=c=>{let d=c*s,f=d*e,p=d-o,m=bp(c,s),y=Math.exp(-f);return Gx-p/m*y},a=c=>{let f=c*s*e,p=f*o+o,m=Math.pow(s,2)*Math.pow(c,2)*e,y=Math.exp(-f),g=bp(Math.pow(c,2),s);return(-n(c)+Gx>0?-1:1)*((p-m)*y)/g}):(n=c=>{let d=Math.exp(-c*e),f=(c-o)*e+1;return-Gx+d*f},a=c=>{let d=Math.exp(-c*e),f=(o-c)*(e*e);return d*f});let i=5/e,u=Yz(n,a,i);if(e=Nt(e),isNaN(u))return{stiffness:rt.stiffness,damping:rt.damping,duration:e};{let c=Math.pow(u,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}var Kz=12;function Yz(e,t,o){let r=o;for(let n=1;n<Kz;n++)r=r-e(r)/t(r);return r}function bp(e,t){return e*Math.sqrt(1-t*t)}var Xz=["duration","bounce"],Qz=["stiffness","damping","mass"];function uR(e,t){return t.some(o=>e[o]!==void 0)}function Zz(e){let t={velocity:rt.velocity,stiffness:rt.stiffness,damping:rt.damping,mass:rt.mass,isResolvedFromDuration:!1,...e};if(!uR(e,Qz)&&uR(e,Xz))if(e.visualDuration){let o=e.visualDuration,r=2*Math.PI/(o*1.2),n=r*r,a=2*ho(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:rt.mass,stiffness:n,damping:a}}else{let o=lR(e);t={...t,...o,mass:rt.mass},t.isResolvedFromDuration=!0}return t}function _a(e=rt.visualDuration,t=rt.bounce){let o=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:r,restDelta:n}=o,a=o.keyframes[0],s=o.keyframes[o.keyframes.length-1],i={done:!1,value:a},{stiffness:u,damping:c,mass:d,duration:f,velocity:p,isResolvedFromDuration:m}=Zz({...o,velocity:-Ro(o.velocity||0)}),y=p||0,g=c/(2*Math.sqrt(u*d)),v=s-a,x=Ro(Math.sqrt(u/d)),w=Math.abs(v)<5;r||(r=w?rt.restSpeed.granular:rt.restSpeed.default),n||(n=w?rt.restDelta.granular:rt.restDelta.default);let C;if(g<1){let b=bp(x,g);C=R=>{let P=Math.exp(-g*x*R);return s-P*((y+g*x*v)/b*Math.sin(b*R)+v*Math.cos(b*R))}}else if(g===1)C=b=>s-Math.exp(-x*b)*(v+(y+x*v)*b);else{let b=x*Math.sqrt(g*g-1);C=R=>{let P=Math.exp(-g*x*R),M=Math.min(b*R,300);return s-P*((y+g*x*v)*Math.sinh(M)+b*v*Math.cosh(M))/b}}let S={calculatedDuration:m&&f||null,next:b=>{let R=C(b);if(m)i.done=b>=f;else{let P=b===0?y:0;g<1&&(P=b===0?Nt(y):Sp(C,b,R));let M=Math.abs(P)<=r,T=Math.abs(s-R)<=n;i.done=M&&T}return i.value=i.done?s:R,i},toString:()=>{let b=Math.min(vl(S),2e4),R=wp(P=>S.next(b*P).value,b,30);return b+"ms "+R},toTransition:()=>{}};return S}_a.applyToOptions=e=>{let t=Cp(e,100,_a);return e.ease=t.ease,e.duration=Nt(t.duration),e.type="keyframes",e};function mc({keyframes:e,velocity:t=0,power:o=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:a=500,modifyTarget:s,min:i,max:u,restDelta:c=.5,restSpeed:d}){let f=e[0],p={done:!1,value:f},m=M=>i!==void 0&&M<i||u!==void 0&&M>u,y=M=>i===void 0?u:u===void 0||Math.abs(i-M)<Math.abs(u-M)?i:u,g=o*t,v=f+g,x=s===void 0?v:s(v);x!==v&&(g=x-f);let w=M=>-g*Math.exp(-M/r),C=M=>x+w(M),S=M=>{let T=w(M),_=C(M);p.done=Math.abs(T)<=c,p.value=p.done?x:_},b,R,P=M=>{m(p.value)&&(b=M,R=_a({keyframes:[p.value,y(p.value)],velocity:Sp(C,M,p.value),damping:n,stiffness:a,restDelta:c,restSpeed:d}))};return P(0),{calculatedDuration:null,next:M=>{let T=!1;return!R&&b===void 0&&(T=!0,S(M),P(M)),b!==void 0&&M>=b?R.next(M-b):(!T&&S(M),p)}}}l();l();l();var en=(e,t,o)=>{let r=t-e;return r===0?1:(o-e)/r};function Jz(e,t,o){let r=[],n=o||Uo.mix||vp,a=e.length-1;for(let s=0;s<a;s++){let i=n(e[s],e[s+1]);if(t){let u=Array.isArray(t)?t[s]||bt:t;i=Ln(u,i)}r.push(i)}return r}function cR(e,t,{clamp:o=!0,ease:r,mixer:n}={}){let a=e.length;if(kt(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let i=Jz(t,r,n),u=i.length,c=d=>{if(s&&d<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);let p=en(e[f],e[f+1],d);return i[f](p)};return o?d=>c(ho(e[0],e[a-1],d)):c}l();l();function Ip(e,t){let o=e[e.length-1];for(let r=1;r<=t;r++){let n=en(0,t,r);e.push(Pe(o,1,n))}}function Rp(e){let t=[0];return Ip(t,e.length-1),t}l();function dR(e,t){return e.map(o=>o*t)}l();l();var fR=(e,t,o)=>(((1-3*o+3*t)*e+(3*o-6*t))*e+3*t)*e,eq=1e-7,tq=12;function oq(e,t,o,r,n){let a,s,i=0;do s=t+(o-t)/2,a=fR(s,r,n)-e,a>0?o=s:t=s;while(Math.abs(a)>eq&&++i<tq);return s}function Fa(e,t,o,r){if(e===t&&o===r)return bt;let n=a=>oq(a,0,1,e,o);return a=>a===0||a===1?a:fR(n(a),t,r)}var jx=Fa(.42,0,1,1),hc=Fa(0,0,.58,1),gc=Fa(.42,0,.58,1);l();var Pp=e=>Array.isArray(e)&&typeof e[0]!="number";l();l();l();l();var Lp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;l();var Mp=e=>t=>1-e(1-t);var Kx=Fa(.33,1.53,.69,.99),yc=Mp(Kx),Ep=Lp(yc);var Tp=e=>(e*=2)<1?.5*yc(e):.5*(2-Math.pow(2,-10*(e-1)));l();var Dp=e=>1-Math.sin(Math.acos(e)),Ap=Mp(Dp),Op=Lp(Dp);l();var kp=e=>Array.isArray(e)&&typeof e[0]=="number";var pR={linear:bt,easeIn:jx,easeInOut:gc,easeOut:hc,circIn:Dp,circInOut:Op,circOut:Ap,backIn:yc,backInOut:Ep,backOut:Kx,anticipate:Tp},rq=e=>typeof e=="string",Yx=e=>{if(kp(e)){kt(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,o,r,n]=e;return Fa(t,o,r,n)}else if(rq(e))return kt(pR[e]!==void 0,`Invalid easing type '${e}'`),pR[e];return e};function nq(e,t){return e.map(()=>t||gc).splice(0,e.length-1)}function Ba({duration:e=300,keyframes:t,times:o,ease:r="easeInOut"}){let n=Pp(r)?r.map(Yx):Yx(r),a={done:!1,value:t[0]},s=dR(o&&o.length===t.length?o:Rp(t),e),i=cR(s,t,{ease:Array.isArray(n)?n:nq(t,n)});return{calculatedDuration:e,next:u=>(a.value=i(u),a.done=u>=e,a)}}l();var aq=e=>e!==null;function wl(e,{repeat:t,repeatType:o="loop"},r,n=1){let a=e.filter(aq),i=n<0||t&&o!=="loop"&&t%2===1?0:a.length-1;return!i||r===void 0?a[i]:r}l();var sq={decay:mc,inertia:mc,tween:Ba,keyframes:Ba,spring:_a};function Np(e){typeof e.type=="string"&&(e.type=sq[e.type])}l();var Va=class{constructor(){this.count=0,this.updateFinished()}get finished(){return this._finished}updateFinished(){this.count++,this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,o){return this.finished.then(t,o)}};var iq=e=>e/100,Cl=class extends Va{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:o}=this.options;if(o&&o.updatedAt!==Tt.now()&&this.tick(Tt.now()),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:r}=this.options;r&&r()},Rn.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;Np(t);let{type:o=Ba,repeat:r=0,repeatDelay:n=0,repeatType:a,velocity:s=0}=t,{keyframes:i}=t,u=o||Ba;u!==Ba&&kt(i.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${i}`),u!==Ba&&typeof i[0]!="number"&&(this.mixKeyframes=Ln(iq,vp(i[0],i[1])),i=[0,100]);let c=u({...t,keyframes:i});a==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...i].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=vl(c));let{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+n,this.totalDuration=this.resolvedDuration*(r+1)-n,this.generator=c}updateTime(t){let o=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=o}tick(t,o=!1){let{generator:r,totalDuration:n,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:i,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);let{delay:c=0,keyframes:d,repeat:f,repeatType:p,repeatDelay:m,type:y,onUpdate:g,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),o?this.currentTime=t:this.updateTime(t);let x=this.currentTime-c*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?x<0:x>n;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let C=this.currentTime,S=r;if(f){let M=Math.min(this.currentTime,n)/i,T=Math.floor(M),_=M%1;!_&&M>=1&&(_=1),_===1&&T--,T=Math.min(T,f+1),!!(T%2)&&(p==="reverse"?(_=1-_,m&&(_-=m/i)):p==="mirror"&&(S=s)),C=ho(0,1,_)*i}let b=w?{done:!1,value:d[0]}:S.next(C);a&&(b.value=a(b.value));let{done:R}=b;!w&&u!==null&&(R=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return P&&y!==mc&&(b.value=wl(d,this.options,v,this.speed)),g&&g(b.value),P&&this.finish(),b}then(t,o){return this.finished.then(t,o)}get duration(){return Ro(this.calculatedDuration)}get time(){return Ro(this.currentTime)}set time(t){t=Nt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Tt.now());let o=this.playbackSpeed!==t;this.playbackSpeed=t,o&&(this.time=Ro(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=iR,onPlay:o,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),o&&o();let n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Tt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown()}teardown(){this.notifyFinished(),this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,Rn.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),t.observe(this)}};l();l();function mR(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}l();l();var _s=e=>e*180/Math.PI,Xx=e=>{let t=_s(Math.atan2(e[1],e[0]));return Qx(t)},lq={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Xx,rotateZ:Xx,skewX:e=>_s(Math.atan(e[1])),skewY:e=>_s(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Qx=e=>(e=e%360,e<0&&(e+=360),e),hR=Xx,gR=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),yR=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),uq={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:gR,scaleY:yR,scale:e=>(gR(e)+yR(e))/2,rotateX:e=>Qx(_s(Math.atan2(e[6],e[5]))),rotateY:e=>Qx(_s(Math.atan2(-e[2],e[0]))),rotateZ:hR,rotate:hR,skewX:e=>_s(Math.atan(e[4])),skewY:e=>_s(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function xR(e){return e.includes("scale")?1:0}function _p(e,t){if(!e||e==="none")return xR(t);let o=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,n;if(o)r=uq,n=o;else{let i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=lq,n=i}if(!n)return xR(t);let a=r[t],s=n[1].split(",").map(cq);return typeof a=="function"?a(s):s[a]}var vR=(e,t)=>{let{transform:o="none"}=getComputedStyle(e);return _p(o,t)};function cq(e){return parseFloat(e.trim())}var Zx=e=>e===bn||e===ue,dq=new Set(["x","y","z"]),fq=Sn.filter(e=>!dq.has(e));function wR(e){let t=[];return fq.forEach(o=>{let r=e.getValue(o);r!==void 0&&(t.push([o,r.get()]),r.set(o.startsWith("scale")?1:0))}),t}var Fs={width:({x:e},{paddingLeft:t="0",paddingRight:o="0"})=>e.max-e.min-parseFloat(t)-parseFloat(o),height:({y:e},{paddingTop:t="0",paddingBottom:o="0"})=>e.max-e.min-parseFloat(t)-parseFloat(o),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>_p(t,"x"),y:(e,{transform:t})=>_p(t,"y")};Fs.translateX=Fs.x;Fs.translateY=Fs.y;var Bs=new Set,Jx=!1,ev=!1,tv=!1;function CR(){if(ev){let e=Array.from(Bs).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),o=new Map;t.forEach(r=>{let n=wR(r);n.length&&(o.set(r,n),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();let n=o.get(r);n&&n.forEach(([a,s])=>{r.getValue(a)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ev=!1,Jx=!1,Bs.forEach(e=>e.complete(tv)),Bs.clear()}function SR(){Bs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ev=!0)})}function bR(){tv=!0,SR(),CR(),tv=!1}var Ha=class{constructor(t,o,r,n,a,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=o,this.name=r,this.motionValue=n,this.element=a,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Bs.add(this),Jx||(Jx=!0,be.read(SR),be.resolveKeyframes(CR))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:o,element:r,motionValue:n}=this;if(t[0]===null){let a=n?.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&o){let i=r.readValue(o,s);i!=null&&(t[0]=i)}t[0]===void 0&&(t[0]=s),n&&a===void 0&&n.set(t[0])}mR(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Bs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Bs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};l();l();l();l();var IR=e=>e.startsWith("--");function RR(e,t,o){IR(t)?e.style.setProperty(t,o):e.style[t]=o}l();l();function Sl(e){let t;return()=>(t===void 0&&(t=e()),t)}var PR=Sl(()=>window.ScrollTimeline!==void 0);l();l();l();l();l();var LR={};function MR(e,t){let o=Sl(e);return()=>LR[t]??o()}var Fp=MR(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");l();var Vs=([e,t,o,r])=>`cubic-bezier(${e}, ${t}, ${o}, ${r})`;l();var ov={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vs([0,.65,.55,1]),circOut:Vs([.55,0,1,.45]),backIn:Vs([.31,.01,.66,-.59]),backOut:Vs([.33,1.53,.69,.99])};function rv(e,t){if(e)return typeof e=="function"?Fp()?wp(e,t):"ease-out":kp(e)?Vs(e):Array.isArray(e)?e.map(o=>rv(o,t)||ov.easeOut):ov[e]}function ER(e,t,o,{delay:r=0,duration:n=300,repeat:a=0,repeatType:s="loop",ease:i="easeOut",times:u}={},c=void 0){let d={[t]:o};u&&(d.offset=u);let f=rv(i,n);Array.isArray(f)&&(d.easing=f),vr.value&&Rn.waapi++;let p={delay:r,duration:n,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};c&&(p.pseudoElement=c);let m=e.animate(d,p);return vr.value&&m.finished.finally(()=>{Rn.waapi--}),m}l();l();function bl(e){return typeof e=="function"&&"applyToOptions"in e}function TR({type:e,...t}){return bl(e)&&Fp()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var Bp=class extends Va{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:o,name:r,keyframes:n,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:i,onComplete:u}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,kt(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);let c=TR(t);this.animation=ER(o,r,n,c,a),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){let d=wl(n,this.options,i,this.speed);this.updateMotionValue?this.updateMotionValue(d):RR(o,r,d),this.animation.cancel()}u?.(),this.notifyFinished()},this.animation.oncancel=()=>this.notifyFinished()}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return Ro(Number(t))}get time(){return Ro(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Nt(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&PR()?(this.animation.timeline=t,bt):o(this)}};l();var DR={anticipate:Tp,backInOut:Ep,circInOut:Op};function pq(e){return e in DR}function AR(e){typeof e.ease=="string"&&pq(e.ease)&&(e.ease=DR[e.ease])}var OR=10,Vp=class extends Bp{constructor(t){AR(t),Np(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:o,onUpdate:r,onComplete:n,element:a,...s}=this.options;if(!o)return;if(t!==void 0){o.set(t);return}let i=new Cl({...s,autoplay:!1}),u=Nt(this.finishedTime??this.time);o.setWithVelocity(i.sample(u-OR).value,i.sample(u).value,OR),i.stop()}};l();l();var nv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(qo.test(e)||e==="0")&&!e.startsWith("url("));function mq(e){let t=e[0];if(e.length===1)return!0;for(let o=0;o<e.length;o++)if(e[o]!==t)return!0}function kR(e,t,o,r){let n=e[0];if(n===null)return!1;if(t==="display"||t==="visibility")return!0;let a=e[e.length-1],s=nv(n,t),i=nv(a,t);return Jr(s===i,`You are trying to animate ${t} from "${n}" to "${a}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${a} via the \`style\` property.`),!s||!i?!1:mq(e)||(o==="spring"||bl(o))&&r}l();var hq=new Set(["opacity","clipPath","filter","transform"]),gq=Sl(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function NR(e){let{motionValue:t,name:o,repeatDelay:r,repeatType:n,damping:a,type:s}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;let{onUpdate:i,transformTemplate:u}=t.owner.getProps();return gq()&&o&&hq.has(o)&&(o!=="transform"||!u)&&!i&&!r&&n!=="mirror"&&a!==0&&s!=="inertia"}var yq=40,Hp=class extends Va{constructor({autoplay:t=!0,delay:o=0,type:r="keyframes",repeat:n=0,repeatDelay:a=0,repeatType:s="loop",keyframes:i,name:u,motionValue:c,element:d,...f}){super(),this.stop=()=>{this._animation?(this._animation.stop(),this.stopTimeline?.()):this.keyframeResolver?.cancel()},this.createdAt=Tt.now();let p={autoplay:t,delay:o,type:r,repeat:n,repeatDelay:a,repeatType:s,name:u,motionValue:c,element:d,...f},m=d?.KeyframeResolver||Ha;this.keyframeResolver=new m(i,(y,g,v)=>this.onKeyframesResolved(y,g,p,!v),u,c,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,o,r,n){this.keyframeResolver=void 0;let{name:a,type:s,velocity:i,delay:u,isHandoff:c,onUpdate:d}=r;this.resolvedAt=Tt.now(),kR(t,a,s,i)||((Uo.instantAnimations||!u)&&d?.(wl(t,r,o)),t[0]=t[t.length-1],r.duration=0,r.repeat=0);let p={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>yq?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:o,...r,keyframes:t},m=!c&&NR(p)?new Vp({...p,element:p.motionValue.owner.current}):new Cl(p);m.finished.then(()=>this.notifyFinished()).catch(bt),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,o){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||bR(),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this.animation.cancel()}};var Il=(e,t,o,r={},n,a)=>s=>{let i=hl(r,e)||{},u=i.delay||r.delay||0,{elapsed:c=0}=r;c=c-Nt(u);let d={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-c,onUpdate:p=>{t.set(p),i.onUpdate&&i.onUpdate(p)},onComplete:()=>{s(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:a?void 0:n};KI(i)||Object.assign(d,jI(e,d)),d.duration&&(d.duration=Nt(d.duration)),d.repeatDelay&&(d.repeatDelay=Nt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),(Uo.instantAnimations||Uo.skipAnimations)&&(f=!0,d.duration=0,d.delay=0),d.allowFlatten=!i.type&&!i.ease,f&&!a&&t.get()!==void 0){let p=GI(d.keyframes,i);if(p!==void 0){be.update(()=>{d.onUpdate(p),d.onComplete()});return}}return new Hp(d)};l();var Up=new Set(["width","height","top","left","right","bottom",...Sn]);function xq({protectedKeys:e,needsAnimating:t},o){let r=e.hasOwnProperty(o)&&t[o]!==!0;return t[o]=!1,r}function Rl(e,t,{delay:o=0,transitionOverride:r,type:n}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...i}=t;r&&(a=r);let u=[],c=n&&e.animationState&&e.animationState.getState()[n];for(let d in i){let f=e.getValue(d,e.latestValues[d]??null),p=i[d];if(p===void 0||c&&xq(c,d))continue;let m={delay:o,...hl(a||{},d)},y=f.get();if(y!==void 0&&!f.isAnimating&&!Array.isArray(p)&&p===y&&!m.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){let x=hp(e);if(x){let w=window.MotionHandoffAnimation(x,d,be);w!==null&&(m.startTime=w,g=!0)}}fc(e,d),f.start(Il(d,f,p,e.shouldReduceMotion&&Up.has(d)?{type:!1}:m,e,g));let v=f.animation;v&&u.push(v)}return s&&Promise.all(u).then(()=>{be.update(()=>{s&&WI(e,s)})}),u}l();function zp(e,t,o={}){let r=ea(e,t,o.type==="exit"?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=r||{};o.transitionOverride&&(n=o.transitionOverride);let a=r?()=>Promise.all(Rl(e,r,o)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{let{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=n;return vq(e,t,c+u,d,f,o)}:()=>Promise.resolve(),{when:i}=n;if(i){let[u,c]=i==="beforeChildren"?[a,s]:[s,a];return u().then(()=>c())}else return Promise.all([a(),s(o.delay)])}function vq(e,t,o=0,r=0,n=1,a){let s=[],i=(e.variantChildren.size-1)*r,u=n===1?(c=0)=>c*r:(c=0)=>i-c*r;return Array.from(e.variantChildren).sort(wq).forEach((c,d)=>{c.notify("AnimationStart",t),s.push(zp(c,t,{...a,delay:o+u(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function wq(e,t){return e.sortNodePosition(t)}function _R(e,t,o={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){let n=t.map(a=>zp(e,a,o));r=Promise.all(n)}else if(typeof t=="string")r=zp(e,t,o);else{let n=typeof t=="function"?ea(e,t,o.custom):t;r=Promise.all(Rl(e,n,o))}return r.then(()=>{e.notify("AnimationComplete",t)})}l();function av(e,t){if(!Array.isArray(t))return!1;let o=t.length;if(o!==e.length)return!1;for(let r=0;r<o;r++)if(t[r]!==e[r])return!1;return!0}l();var Cq=sc.length;function sv(e){if(!e)return;if(!e.isControllingVariants){let o=e.parent?sv(e.parent)||{}:{};return e.props.initial!==void 0&&(o.initial=e.props.initial),o}let t={};for(let o=0;o<Cq;o++){let r=sc[o],n=e.props[r];(Qn(n)||n===!1)&&(t[r]=n)}return t}var Sq=[...op].reverse(),bq=op.length;function Iq(e){return t=>Promise.all(t.map(({animation:o,options:r})=>_R(e,o,r)))}function BR(e){let t=Iq(e),o=FR(),r=!0,n=u=>(c,d)=>{let f=ea(e,d,u==="exit"?e.presenceContext?.custom:void 0);if(f){let{transition:p,transitionEnd:m,...y}=f;c={...c,...y,...m}}return c};function a(u){t=u(e)}function s(u){let{props:c}=e,d=sv(e.parent)||{},f=[],p=new Set,m={},y=1/0;for(let v=0;v<bq;v++){let x=Sq[v],w=o[x],C=c[x]!==void 0?c[x]:d[x],S=Qn(C),b=x===u?w.isActive:null;b===!1&&(y=v);let R=C===d[x]&&C!==c[x]&&S;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),w.protectedKeys={...m},!w.isActive&&b===null||!C&&!w.prevProp||Da(C)||typeof C=="boolean")continue;let P=Rq(w.prevProp,C),M=P||x===u&&w.isActive&&!R&&S||v>y&&S,T=!1,_=Array.isArray(C)?C:[C],F=_.reduce(n(x),{});b===!1&&(F={});let{prevResolvedValues:O={}}=w,N={...O,...F},I=D=>{M=!0,p.has(D)&&(T=!0,p.delete(D)),w.needsAnimating[D]=!0;let k=e.getValue(D);k&&(k.liveStyle=!1)};for(let D in N){let k=F[D],E=O[D];if(m.hasOwnProperty(D))continue;let V=!1;dc(k)&&dc(E)?V=!av(k,E):V=k!==E,V?k!=null?I(D):p.add(D):k!==void 0&&p.has(D)?I(D):w.protectedKeys[D]=!0}w.prevProp=C,w.prevResolvedValues=F,w.isActive&&(m={...m,...F}),r&&e.blockInitialAnimation&&(M=!1),M&&(!(R&&P)||T)&&f.push(..._.map(D=>({animation:D,options:{type:x}})))}if(p.size){let v={};if(typeof c.initial!="boolean"){let x=ea(e,Array.isArray(c.initial)?c.initial[0]:c.initial);x&&x.transition&&(v.transition=x.transition)}p.forEach(x=>{let w=e.getBaseTarget(x),C=e.getValue(x);C&&(C.liveStyle=!0),v[x]=w??null}),f.push({animation:v})}let g=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(f):Promise.resolve()}function i(u,c){if(o[u].isActive===c)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(u,c)),o[u].isActive=c;let d=s(u);for(let f in o)o[f].protectedKeys={};return d}return{animateChanges:s,setActive:i,setAnimateFunction:a,getState:()=>o,reset:()=>{o=FR(),r=!0}}}function Rq(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!av(t,e):!1}function Hs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function FR(){return{animate:Hs(!0),whileInView:Hs(),whileHover:Hs(),whileTap:Hs(),whileDrag:Hs(),whileFocus:Hs(),exit:Hs()}}l();var no=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};var qp=class extends no{constructor(t){super(t),t.animationState||(t.animationState=BR(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();Da(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:o}=this.node.prevProps||{};t!==o&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};l();var Pq=0,Wp=class extends no{constructor(){super(...arguments),this.id=Pq++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:o}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let n=this.node.animationState.setActive("exit",!t);o&&!t&&n.then(()=>{o(this.id)})}mount(){let{register:t,onExitComplete:o}=this.node.presenceContext||{};o&&o(this.id),t&&(this.unmount=t(this.id))}unmount(){}};var VR={animation:{Feature:qp},exit:{Feature:Wp}};l();l();l();l();function oa(e,t,o,r={passive:!0}){return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o)}l();l();l();var Pl=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ra(e){return{point:{x:e.pageX,y:e.pageY}}}var HR=e=>t=>Pl(t)&&e(t,ra(t));function Ua(e,t,o,r){return oa(e,t,HR(o),r)}l();function $p({top:e,left:t,right:o,bottom:r}){return{x:{min:t,max:o},y:{min:e,max:r}}}function UR({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function zR(e,t){if(!t)return e;let o=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:o.y,left:o.x,bottom:r.y,right:r.x}}l();var GR=1e-4,Lq=1-GR,Mq=1+GR,jR=.01,Eq=0-jR,Tq=0+jR;function qt(e){return e.max-e.min}function KR(e,t,o){return Math.abs(e-t)<=o}function qR(e,t,o,r=.5){e.origin=r,e.originPoint=Pe(t.min,t.max,e.origin),e.scale=qt(o)/qt(t),e.translate=Pe(o.min,o.max,e.origin)-e.originPoint,(e.scale>=Lq&&e.scale<=Mq||isNaN(e.scale))&&(e.scale=1),(e.translate>=Eq&&e.translate<=Tq||isNaN(e.translate))&&(e.translate=0)}function Ll(e,t,o,r){qR(e.x,t.x,o.x,r?r.originX:void 0),qR(e.y,t.y,o.y,r?r.originY:void 0)}function WR(e,t,o){e.min=o.min+t.min,e.max=e.min+qt(t)}function YR(e,t,o){WR(e.x,t.x,o.x),WR(e.y,t.y,o.y)}function $R(e,t,o){e.min=t.min-o.min,e.max=e.min+qt(t)}function Ml(e,t,o){$R(e.x,t.x,o.x),$R(e.y,t.y,o.y)}l();var XR=()=>({translate:0,scale:1,origin:0,originPoint:0}),Us=()=>({x:XR(),y:XR()}),QR=()=>({min:0,max:0}),Qe=()=>({x:QR(),y:QR()});l();function tr(e){return[e("x"),e("y")]}l();l();l();function iv(e){return e===void 0||e===1}function Gp({scale:e,scaleX:t,scaleY:o}){return!iv(e)||!iv(t)||!iv(o)}function na(e){return Gp(e)||lv(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function lv(e){return ZR(e.x)||ZR(e.y)}function ZR(e){return e&&e!=="0%"}function xc(e,t,o){let r=e-o,n=t*r;return o+n}function JR(e,t,o,r,n){return n!==void 0&&(e=xc(e,n,r)),xc(e,o,r)+t}function uv(e,t=0,o=1,r,n){e.min=JR(e.min,t,o,r,n),e.max=JR(e.max,t,o,r,n)}function cv(e,{x:t,y:o}){uv(e.x,t.translate,t.scale,t.originPoint),uv(e.y,o.translate,o.scale,o.originPoint)}var eP=.999999999999,tP=1.0000000000001;function rP(e,t,o,r=!1){let n=o.length;if(!n)return;t.x=t.y=1;let a,s;for(let i=0;i<n;i++){a=o[i],s=a.projectionDelta;let{visualElement:u}=a.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&zs(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,cv(e,s)),r&&na(a.latestValues)&&zs(e,a.latestValues))}t.x<tP&&t.x>eP&&(t.x=1),t.y<tP&&t.y>eP&&(t.y=1)}function za(e,t){e.min=e.min+t,e.max=e.max+t}function oP(e,t,o,r,n=.5){let a=Pe(e.min,e.max,n);uv(e,t,o,a,r)}function zs(e,t){oP(e.x,t.x,t.scaleX,t.scale,t.originX),oP(e.y,t.y,t.scaleY,t.scale,t.originY)}function dv(e,t){return $p(zR(e.getBoundingClientRect(),t))}function nP(e,t,o){let r=dv(e,o),{scroll:n}=t;return n&&(za(r.x,n.offset.x),za(r.y,n.offset.y)),r}l();var jp=({current:e})=>e?e.ownerDocument.defaultView:null;l();l();var aP=(e,t)=>Math.abs(e-t);function sP(e,t){let o=aP(e.x,t.x),r=aP(e.y,t.y);return Math.sqrt(o**2+r**2)}var El=class{constructor(t,o,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let f=pv(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,m=sP(f.offset,{x:0,y:0})>=3;if(!p&&!m)return;let{point:y}=f,{timestamp:g}=Et;this.history.push({...y,timestamp:g});let{onStart:v,onMove:x}=this.handlers;p||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=fv(p,this.transformPagePoint),be.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();let{onEnd:m,onSessionEnd:y,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let v=pv(f.type==="pointercancel"?this.lastMoveEventInfo:fv(p,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,v),y&&y(f,v)},!Pl(t))return;this.dragSnapToOrigin=a,this.handlers=o,this.transformPagePoint=r,this.contextWindow=n||window;let s=ra(t),i=fv(s,this.transformPagePoint),{point:u}=i,{timestamp:c}=Et;this.history=[{...u,timestamp:c}];let{onSessionStart:d}=o;d&&d(t,pv(i,this.history)),this.removeListeners=Ln(Ua(this.contextWindow,"pointermove",this.handlePointerMove),Ua(this.contextWindow,"pointerup",this.handlePointerUp),Ua(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),wr(this.updatePoint)}};function fv(e,t){return t?{point:t(e.point)}:e}function iP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pv({point:e},t){return{point:e,delta:iP(e,lP(t)),offset:iP(e,Dq(t)),velocity:Aq(t,.1)}}function Dq(e){return e[0]}function lP(e){return e[e.length-1]}function Aq(e,t){if(e.length<2)return{x:0,y:0};let o=e.length-1,r=null,n=lP(e);for(;o>=0&&(r=e[o],!(n.timestamp-r.timestamp>Nt(t)));)o--;if(!r)return{x:0,y:0};let a=Ro(n.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let s={x:(n.x-r.x)/a,y:(n.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}l();function pP(e,{min:t,max:o},r){return t!==void 0&&e<t?e=r?Pe(t,e,r.min):Math.max(e,t):o!==void 0&&e>o&&(e=r?Pe(o,e,r.max):Math.min(e,o)),e}function uP(e,t,o){return{min:t!==void 0?e.min+t:void 0,max:o!==void 0?e.max+o-(e.max-e.min):void 0}}function mP(e,{top:t,left:o,bottom:r,right:n}){return{x:uP(e.x,o,n),y:uP(e.y,t,r)}}function cP(e,t){let o=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([o,r]=[r,o]),{min:o,max:r}}function hP(e,t){return{x:cP(e.x,t.x),y:cP(e.y,t.y)}}function gP(e,t){let o=.5,r=qt(e),n=qt(t);return n>r?o=en(t.min,t.max-r,e.min):r>n&&(o=en(e.min,e.max-n,t.min)),ho(0,1,o)}function yP(e,t){let o={};return t.min!==void 0&&(o.min=t.min-e.min),t.max!==void 0&&(o.max=t.max-e.min),o}var Kp=.35;function xP(e=Kp){return e===!1?e=0:e===!0&&(e=Kp),{x:dP(e,"left","right"),y:dP(e,"top","bottom")}}function dP(e,t,o){return{min:fP(e,t),max:fP(e,o)}}function fP(e,t){return typeof e=="number"?e:e[t]||0}l();l();var Fr={x:!1,y:!1};function Yp(){return Fr.x||Fr.y}function vP(e){return e==="x"||e==="y"?Fr[e]?null:(Fr[e]=!0,()=>{Fr[e]=!1}):Fr.x||Fr.y?null:(Fr.x=Fr.y=!0,()=>{Fr.x=Fr.y=!1})}var Oq=new WeakMap,Qp=class{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=Qe(),this.visualElement=t}start(t,{snapToCursor:o=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let n=d=>{let{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),o&&this.snapToCursor(ra(d).point)},a=(d,f)=>{let{drag:p,dragPropagation:m,onDragStart:y}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vP(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tr(v=>{let x=this.getAxisMotionValue(v).get()||0;if(zo.test(x)){let{projection:w}=this.visualElement;if(w&&w.layout){let C=w.layout.layoutBox[v];C&&(x=qt(C)*(parseFloat(x)/100))}}this.originPoint[v]=x}),y&&be.postRender(()=>y(d,f)),fc(this.visualElement,"transform");let{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(d,f)=>{let{dragPropagation:p,dragDirectionLock:m,onDirectionLock:y,onDrag:g}=this.getProps();if(!p&&!this.openDragLock)return;let{offset:v}=f;if(m&&this.currentDirection===null){this.currentDirection=kq(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),g&&g(d,f)},i=(d,f)=>this.stop(d,f),u=()=>tr(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new El(t,{onSessionStart:n,onStart:a,onMove:s,onSessionEnd:i,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:jp(this.visualElement)})}stop(t,o){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=o;this.startAnimation(n);let{onDragEnd:a}=this.getProps();a&&be.postRender(()=>a(t,o))}cancel(){this.isDragging=!1;let{projection:t,animationState:o}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),o&&o.setActive("whileDrag",!1)}updateAxis(t,o,r){let{drag:n}=this.getProps();if(!r||!Xp(t,n,this.currentDirection))return;let a=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=pP(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:o}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&Zn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=mP(r.layoutBox,t):this.constraints=!1,this.elastic=xP(o),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&tr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=yP(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:o}=this.getProps();if(!t||!Zn(t))return!1;let r=t.current;kt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let a=nP(r,n.root,this.visualElement.getTransformPagePoint()),s=hP(n.layout.layoutBox,a);if(o){let i=o(UR(s));this.hasMutatedConstraints=!!i,i&&(s=$p(i))}return s}startAnimation(t){let{drag:o,dragMomentum:r,dragElastic:n,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),u=this.constraints||{},c=tr(d=>{if(!Xp(d,o,this.currentDirection))return;let f=u&&u[d]||{};s&&(f={min:0,max:0});let p=n?200:1e6,m=n?40:1e7,y={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(d,y)});return Promise.all(c).then(i)}startAxisValueAnimation(t,o){let r=this.getAxisMotionValue(t);return fc(this.visualElement,t),r.start(Il(t,r,0,o,this.visualElement,!1))}stopAnimation(){tr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tr(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let o=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),n=r[o];return n||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){tr(o=>{let{drag:r}=this.getProps();if(!Xp(o,r,this.currentDirection))return;let{projection:n}=this.visualElement,a=this.getAxisMotionValue(o);if(n&&n.layout){let{min:s,max:i}=n.layout.layoutBox[o];a.set(t[o]-Pe(s,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:o}=this.getProps(),{projection:r}=this.visualElement;if(!Zn(o)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};tr(s=>{let i=this.getAxisMotionValue(s);if(i&&this.constraints!==!1){let u=i.get();n[s]=gP({min:u,max:u},this.constraints[s])}});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),tr(s=>{if(!Xp(s,t,null))return;let i=this.getAxisMotionValue(s),{min:u,max:c}=this.constraints[s];i.set(Pe(u,c,n[s]))})}addListeners(){if(!this.visualElement.current)return;Oq.set(this.visualElement,this);let t=this.visualElement.current,o=Ua(t,"pointerdown",u=>{let{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(u)}),r=()=>{let{dragConstraints:u}=this.getProps();Zn(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,a=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),be.read(r);let s=oa(window,"resize",()=>this.scalePositionWithinConstraints()),i=n.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(tr(d=>{let f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())});return()=>{s(),o(),a(),i&&i()}}getProps(){let t=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:a=!1,dragElastic:s=Kp,dragMomentum:i=!0}=t;return{...t,drag:o,dragDirectionLock:r,dragPropagation:n,dragConstraints:a,dragElastic:s,dragMomentum:i}}};function Xp(e,t,o){return(t===!0||t===e)&&(o===null||o===e)}function kq(e,t=10){let o=null;return Math.abs(e.y)>t?o="y":Math.abs(e.x)>t&&(o="x"),o}var Zp=class extends no{constructor(t){super(t),this.removeGroupControls=bt,this.removeListeners=bt,this.controls=new Qp(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bt}unmount(){this.removeGroupControls(),this.removeListeners()}};l();var wP=e=>(t,o)=>{e&&be.postRender(()=>e(t,o))},Jp=class extends no{constructor(){super(...arguments),this.removePointerDownListener=bt}onPointerDown(t){this.session=new El(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:jp(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:o,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:wP(t),onStart:wP(o),onMove:r,onEnd:(a,s)=>{delete this.session,n&&be.postRender(()=>n(a,s))}}}mount(){this.removePointerDownListener=Ua(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};l();import{jsx as Nq}from"react/jsx-runtime";import{useContext as bP,Component as _q}from"react";l();var Tl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};l();function CP(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Dl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ue.test(e))e=parseFloat(e);else return e;let o=CP(e,t.target.x),r=CP(e,t.target.y);return`${o}% ${r}%`}};l();var SP={correct:(e,{treeScale:t,projectionDelta:o})=>{let r=e,n=qo.parse(e);if(n.length>5)return r;let a=qo.createTransformer(e),s=typeof n[0]!="number"?1:0,i=o.x.scale*t.x,u=o.y.scale*t.y;n[0+s]/=i,n[1+s]/=u;let c=Pe(i,u,.5);return typeof n[2+s]=="number"&&(n[2+s]/=c),typeof n[3+s]=="number"&&(n[3+s]/=c),a(n)}};var mv=class extends _q{componentDidMount(){let{visualElement:t,layoutGroup:o,switchLayoutGroup:r,layoutId:n}=this.props,{projection:a}=t;lc(Fq),a&&(o.group&&o.group.add(a),r&&r.register&&n&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Tl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:o,visualElement:r,drag:n,isPresent:a}=this.props,s=r.projection;return s&&(s.isPresent=a,n||t.layoutDependency!==o||o===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||be.postRender(()=>{let i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),nl.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:o,switchLayoutGroup:r}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function em(e){let[t,o]=tc(),r=bP(Kn);return Nq(mv,{...e,layoutGroup:r,switchLayoutGroup:bP(ap),isPresent:t,safeToRemove:o})}var Fq={borderRadius:{...Dl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Dl,borderTopRightRadius:Dl,borderBottomLeftRadius:Dl,borderBottomRightRadius:Dl,boxShadow:SP};l();l();l();function tm(e,t,o){let r=ze(e)?e:ta(e);return r.start(Il("",r,t,o)),r.animation}l();function om(e){return e instanceof SVGElement&&e.tagName!=="svg"}l();l();var IP=(e,t)=>e.depth-t.depth;var rm=class{constructor(){this.children=[],this.isDirty=!1}add(t){ml(this.children,t),this.isDirty=!0}remove(t){Aa(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(IP),this.isDirty=!1,this.children.forEach(t)}};l();function RP(e,t){let o=Tt.now(),r=({timestamp:n})=>{let a=n-o;a>=t&&(wr(r),e(a-t))};return be.setup(r,!0),()=>wr(r)}l();var EP=["TopLeft","TopRight","BottomLeft","BottomRight"],Bq=EP.length,PP=e=>typeof e=="string"?parseFloat(e):e,LP=e=>typeof e=="number"||ue.test(e);function TP(e,t,o,r,n,a){n?(e.opacity=Pe(0,o.opacity??1,Vq(r)),e.opacityExit=Pe(t.opacity??1,0,Hq(r))):a&&(e.opacity=Pe(t.opacity??1,o.opacity??1,r));for(let s=0;s<Bq;s++){let i=`border${EP[s]}Radius`,u=MP(t,i),c=MP(o,i);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||LP(u)===LP(c)?(e[i]=Math.max(Pe(PP(u),PP(c),r),0),(zo.test(c)||zo.test(u))&&(e[i]+="%")):e[i]=c}(t.rotate||o.rotate)&&(e.rotate=Pe(t.rotate||0,o.rotate||0,r))}function MP(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var Vq=DP(0,.5,Ap),Hq=DP(.5,.95,bt);function DP(e,t,o){return r=>r<e?0:r>t?1:o(en(e,t,r))}l();function AP(e,t){e.min=t.min,e.max=t.max}function Cr(e,t){AP(e.x,t.x),AP(e.y,t.y)}function hv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}l();function OP(e,t,o,r,n){return e-=t,e=xc(e,1/o,r),n!==void 0&&(e=xc(e,1/n,r)),e}function Uq(e,t=0,o=1,r=.5,n,a=e,s=e){if(zo.test(t)&&(t=parseFloat(t),t=Pe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=Pe(a.min,a.max,r);e===a&&(i-=t),e.min=OP(e.min,t,o,i,n),e.max=OP(e.max,t,o,i,n)}function kP(e,t,[o,r,n],a,s){Uq(e,t[o],t[r],t[n],t.scale,a,s)}var zq=["x","scaleX","originX"],qq=["y","scaleY","originY"];function gv(e,t,o,r){kP(e.x,t,zq,o?o.x:void 0,r?r.x:void 0),kP(e.y,t,qq,o?o.y:void 0,r?r.y:void 0)}l();function NP(e){return e.translate===0&&e.scale===1}function yv(e){return NP(e.x)&&NP(e.y)}function _P(e,t){return e.min===t.min&&e.max===t.max}function BP(e,t){return _P(e.x,t.x)&&_P(e.y,t.y)}function FP(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function xv(e,t){return FP(e.x,t.x)&&FP(e.y,t.y)}function vv(e){return qt(e.x)/qt(e.y)}function wv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}l();var nm=class{constructor(){this.members=[]}add(t){ml(this.members,t),t.scheduleRender()}remove(t){if(Aa(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(t){let o=this.members.findIndex(n=>t===n);if(o===0)return!1;let r;for(let n=o;n>=0;n--){let a=this.members[n];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,o){let r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,o&&(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);let{crossfade:n}=t.options;n===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:o,resumingFrom:r}=t;o.onExitComplete&&o.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)}};l();function VP(e,t,o){let r="",n=e.x.translate/t.x,a=e.y.translate/t.y,s=o?.z||0;if((n||a||s)&&(r=`translate3d(${n}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),o){let{transformPerspective:c,rotate:d,rotateX:f,rotateY:p,skewX:m,skewY:y}=o;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),m&&(r+=`skewX(${m}deg) `),y&&(r+=`skewY(${y}deg) `)}let i=e.x.scale*t.x,u=e.y.scale*t.y;return(i!==1||u!==1)&&(r+=`scale(${i}, ${u})`),r||"none"}var qs={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Cv=["","X","Y","Z"],Wq={visibility:"hidden"},HP=1e3,$q=0;function Sv(e,t,o,r){let{latestValues:n}=t;n[e]&&(o[e]=n[e],t.setStaticValue(e,0),r&&(r[e]=0))}function KP(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let o=hp(t);if(window.MotionHasOptimisedAnimation(o,"transform")){let{layout:n,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(o,"transform",be,!(n||a))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&KP(r)}function am({attachResizeListener:e,defaultParent:t,measureScroll:o,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(s={},i=t?.()){this.id=$q++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,vr.value&&(qs.nodes=qs.calculatedTargetDeltas=qs.calculatedProjections=0),this.nodes.forEach(Kq),this.nodes.forEach(Jq),this.nodes.forEach(eW),this.nodes.forEach(Yq),vr.addProjectionMetrics&&vr.addProjectionMetrics(qs)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new rm)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Oa),this.eventHandlers.get(s).add(i)}notifyListeners(s,...i){let u=this.eventHandlers.get(s);u&&u.notify(...i)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=om(s),this.instance=s;let{layoutId:u,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(c||u)&&(this.isLayoutDirty=!0),e){let f,p=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=RP(p,250),Tl.hasAnimatedSinceResize&&(Tl.hasAnimatedSinceResize=!1,this.nodes.forEach(zP))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeLayoutChanged:m,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let g=this.options.transition||d.getDefaultTransition()||aW,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=d.getProps(),w=!this.targetLayout||!xv(this.targetLayout,y),C=!p&&m;if(this.options.layoutRoot||this.resumeFrom||C||p&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,C);let S={...hl(g,"layout"),onPlay:v,onComplete:x};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else p||zP(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,wr(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(tW),this.animationId++)}getTransformTemplate(){let{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!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 d=0;d<this.path.length;d++){let f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}let{layoutId:i,layout:u}=this.options;if(i===void 0&&!u)return;let c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(UP);return}this.isUpdating||this.nodes.forEach(Qq),this.isUpdating=!1,this.nodes.forEach(Zq),this.nodes.forEach(Gq),this.nodes.forEach(jq),this.clearAllSnapshots();let i=Tt.now();Et.delta=ho(0,1e3/60,i-Et.timestamp),Et.timestamp=i,Et.isProcessing=!0,ep.update.process(Et),ep.preRender.process(Et),ep.render.process(Et),Et.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nl.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Xq),this.sharedNodes.forEach(oW)}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&&!qt(this.snapshot.measuredBox.x)&&!qt(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 u=0;u<this.path.length;u++)this.path[u].updateScroll();let s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Qe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let i=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(i=!1),i){let u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:u,offset:o(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!n)return;let s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,i=this.projectionDelta&&!yv(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;s&&(i||na(this.latestValues)||d)&&(n(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let i=this.measurePageBox(),u=this.removeElementScroll(i);return s&&(u=this.removeTransform(u)),sW(u),{animationId:this.root.animationId,measuredBox:i,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:s}=this.options;if(!s)return Qe();let i=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(iW))){let{scroll:c}=this.root;c&&(za(i.x,c.offset.x),za(i.y,c.offset.y))}return i}removeElementScroll(s){let i=Qe();if(Cr(i,s),this.scroll?.wasRoot)return i;for(let u=0;u<this.path.length;u++){let c=this.path[u],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&Cr(i,s),za(i.x,d.offset.x),za(i.y,d.offset.y))}return i}applyTransform(s,i=!1){let u=Qe();Cr(u,s);for(let c=0;c<this.path.length;c++){let d=this.path[c];!i&&d.options.layoutScroll&&d.scroll&&d!==d.root&&zs(u,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),na(d.latestValues)&&zs(u,d.latestValues)}return na(this.latestValues)&&zs(u,this.latestValues),u}removeTransform(s){let i=Qe();Cr(i,s);for(let u=0;u<this.path.length;u++){let c=this.path[u];if(!c.instance||!na(c.latestValues))continue;Gp(c.latestValues)&&c.updateSnapshot();let d=Qe(),f=c.measurePageBox();Cr(d,f),gv(i,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return na(this.latestValues)&&gv(i,this.latestValues),i}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==Et.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){let i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);let u=!!this.resumingFrom||this!==i;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=Et.timestamp,!this.targetDelta&&!this.relativeTarget){let p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Qe(),this.relativeTargetOrigin=Qe(),Ml(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),Cr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Qe(),this.targetWithTransforms=Qe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),YR(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Cr(this.target,this.layout.layoutBox),cv(this.target,this.targetDelta)):Cr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Qe(),this.relativeTargetOrigin=Qe(),Ml(this.relativeTargetOrigin,this.target,p.target),Cr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}vr.value&&qs.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Gp(this.parent.latestValues)||lv(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let s=this.getLead(),i=!!this.resumingFrom||this!==s,u=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(u=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Et.timestamp&&(u=!1),u)return;let{layout:c,layoutId:d}=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||d))return;Cr(this.layoutCorrected,this.layout.layoutBox);let f=this.treeScale.x,p=this.treeScale.y;rP(this.layoutCorrected,this.treeScale,this.path,i),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=Qe());let{target:m}=s;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(hv(this.prevProjectionDelta.x,this.projectionDelta.x),hv(this.prevProjectionDelta.y,this.projectionDelta.y)),Ll(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!wv(this.projectionDelta.x,this.prevProjectionDelta.x)||!wv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),vr.value&&qs.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){let i=this.getStack();i&&i.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Us(),this.projectionDelta=Us(),this.projectionDeltaWithTransform=Us()}setAnimationOrigin(s,i=!1){let u=this.snapshot,c=u?u.latestValues:{},d={...this.latestValues},f=Us();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let p=Qe(),m=u?u.source:void 0,y=this.layout?this.layout.source:void 0,g=m!==y,v=this.getStack(),x=!v||v.members.length<=1,w=!!(g&&!x&&this.options.crossfade===!0&&!this.path.some(nW));this.animationProgress=0;let C;this.mixTargetDelta=S=>{let b=S/1e3;qP(f.x,s.x,b),qP(f.y,s.y,b),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ml(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rW(this.relativeTarget,this.relativeTargetOrigin,p,b),C&&BP(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Qe()),Cr(C,this.relativeTarget)),g&&(this.animationValues=d,TP(d,c,this.latestValues,b,w,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(wr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=be.update(()=>{Tl.hasAnimatedSinceResize=!0,Rn.layout++,this.currentAnimation=tm(0,HP,{...s,onUpdate:i=>{this.mixTargetDelta(i),s.onUpdate&&s.onUpdate(i)},onStop:()=>{Rn.layout--},onComplete:()=>{Rn.layout--,s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(HP),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:i,target:u,layout:c,latestValues:d}=s;if(!(!i||!u||!c)){if(this!==s&&this.layout&&c&&YP(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||Qe();let f=qt(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+f;let p=qt(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+p}Cr(i,u),zs(i,d),Ll(this.projectionDeltaWithTransform,this.layoutCorrected,i,d)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new nm),this.sharedNodes.get(s).add(i);let c=i.options.initialPromotionConfig;i.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(i):void 0})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){let{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:i,preserveFollowOpacity:u}={}){let c=this.getStack();c&&c.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){let{visualElement:s}=this.options;if(!s)return;let i=!1,{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(i=!0),!i)return;let c={};u.z&&Sv("z",s,c,this.animationValues);for(let d=0;d<Cv.length;d++)Sv(`rotate${Cv[d]}`,s,c,this.animationValues),Sv(`skew${Cv[d]}`,s,c,this.animationValues);s.render();for(let d in c)s.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);s.scheduleRender()}getProjectionStyles(s){if(!this.instance||this.isSVG)return;if(!this.isVisible)return Wq;let i={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=fl(s?.pointerEvents)||"",i.transform=u?u(this.latestValues,""):"none",i;let c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){let m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=fl(s?.pointerEvents)||""),this.hasProjected&&!na(this.latestValues)&&(m.transform=u?u({},""):"none",this.hasProjected=!1),m}let d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),i.transform=VP(this.projectionDeltaWithTransform,this.treeScale,d),u&&(i.transform=u(d,i.transform));let{x:f,y:p}=this.projectionDelta;i.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,c.animationValues?i.opacity=c===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:i.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(let m in ks){if(d[m]===void 0)continue;let{correct:y,applyTo:g,isCSSVariable:v}=ks[m],x=i.transform==="none"?d[m]:y(d[m],c);if(g){let w=g.length;for(let C=0;C<w;C++)i[g[C]]=x}else v?this.options.visualElement.renderState.vars[m]=x:i[m]=x}return this.options.layoutId&&(i.pointerEvents=c===this?fl(s?.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(UP),this.root.sharedNodes.clear()}}}function Gq(e){e.updateLayout()}function jq(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:o,measuredBox:r}=e.layout,{animationType:n}=e.options,a=t.source!==e.layout.source;n==="size"?tr(d=>{let f=a?t.measuredBox[d]:t.layoutBox[d],p=qt(f);f.min=o[d].min,f.max=f.min+p}):YP(n,t.layoutBox,o)&&tr(d=>{let f=a?t.measuredBox[d]:t.layoutBox[d],p=qt(o[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});let s=Us();Ll(s,o,t.layoutBox);let i=Us();a?Ll(i,e.applyTransform(r,!0),t.measuredBox):Ll(i,o,t.layoutBox);let u=!yv(s),c=!1;if(!e.resumeFrom){let d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){let{snapshot:f,layout:p}=d;if(f&&p){let m=Qe();Ml(m,t.layoutBox,f.layoutBox);let y=Qe();Ml(y,o,p.layoutBox),xv(m,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:t,delta:i,layoutDelta:s,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function Kq(e){vr.value&&qs.nodes++,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 Yq(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Xq(e){e.clearSnapshot()}function UP(e){e.clearMeasurements()}function Qq(e){e.isLayoutDirty=!1}function Zq(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function zP(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Jq(e){e.resolveTargetDelta()}function eW(e){e.calcProjection()}function tW(e){e.resetSkewAndRotation()}function oW(e){e.removeLeadSnapshot()}function qP(e,t,o){e.translate=Pe(t.translate,0,o),e.scale=Pe(t.scale,1,o),e.origin=t.origin,e.originPoint=t.originPoint}function WP(e,t,o,r){e.min=Pe(t.min,o.min,r),e.max=Pe(t.max,o.max,r)}function rW(e,t,o,r){WP(e.x,t.x,o.x,r),WP(e.y,t.y,o.y,r)}function nW(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var aW={duration:.45,ease:[.4,0,.1,1]},$P=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),GP=$P("applewebkit/")&&!$P("chrome/")?Math.round:bt;function jP(e){e.min=GP(e.min),e.max=GP(e.max)}function sW(e){jP(e.x),jP(e.y)}function YP(e,t,o){return e==="position"||e==="preserve-aspect"&&!KR(vv(t),vv(o),.2)}function iW(e){return e!==e.root&&e.scroll?.wasRoot}l();var XP=am({attachResizeListener:(e,t)=>oa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var bv={current:void 0},sm=am({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!bv.current){let e=new XP({});e.mount(window),e.setOptions({layoutScroll:!0}),bv.current=e}return bv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var QP={pan:{Feature:Jp},drag:{Feature:Zp,ProjectionNode:sm,MeasureLayout:em}};l();l();l();l();l();function im(e,t,o){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;t&&(r=t.current);let n=o?.[e]??r.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}function lm(e,t){let o=im(e),r=new AbortController,n={passive:!0,...t,signal:r.signal};return[o,n,()=>r.abort()]}function ZP(e){return!(e.pointerType==="touch"||Yp())}function JP(e,t,o={}){let[r,n,a]=lm(e,o),s=i=>{if(!ZP(i))return;let{target:u}=i,c=t(u,i);if(typeof c!="function"||!u)return;let d=f=>{ZP(f)&&(c(f),u.removeEventListener("pointerleave",d))};u.addEventListener("pointerleave",d,n)};return r.forEach(i=>{i.addEventListener("pointerenter",s,n)}),a}function eL(e,t,o){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",o==="Start");let n="onHover"+o,a=r[n];a&&be.postRender(()=>a(t,ra(t)))}var um=class extends no{mount(){let{current:t}=this.node;t&&(this.unmount=JP(t,(o,r)=>(eL(this.node,r,"Start"),n=>eL(this.node,n,"End"))))}unmount(){}};l();var cm=class extends no{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=Ln(oa(this.node.current,"focus",()=>this.onFocus()),oa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};l();l();l();var Iv=(e,t)=>t?e===t?!0:Iv(e,t.parentElement):!1;l();var lW=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tL(e){return lW.has(e.tagName)||e.tabIndex!==-1}l();l();var Ws=new WeakSet;function oL(e){return t=>{t.key==="Enter"&&e(t)}}function Rv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var rL=(e,t)=>{let o=e.currentTarget;if(!o)return;let r=oL(()=>{if(Ws.has(o))return;Rv(o,"down");let n=oL(()=>{Rv(o,"up")}),a=()=>Rv(o,"cancel");o.addEventListener("keyup",n,t),o.addEventListener("blur",a,t)});o.addEventListener("keydown",r,t),o.addEventListener("blur",()=>o.removeEventListener("keydown",r),t)};function nL(e){return Pl(e)&&!Yp()}function aL(e,t,o={}){let[r,n,a]=lm(e,o),s=i=>{let u=i.currentTarget;if(!nL(i)||Ws.has(u))return;Ws.add(u);let c=t(u,i),d=(m,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),!(!nL(m)||!Ws.has(u))&&(Ws.delete(u),typeof c=="function"&&c(m,{success:y}))},f=m=>{d(m,u===window||u===document||o.useGlobalTarget||Iv(u,m.target))},p=m=>{d(m,!1)};window.addEventListener("pointerup",f,n),window.addEventListener("pointercancel",p,n)};return r.forEach(i=>{(o.useGlobalTarget?window:i).addEventListener("pointerdown",s,n),i instanceof HTMLElement&&(i.addEventListener("focus",c=>rL(c,n)),!tL(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),a}function sL(e,t,o){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",o==="Start");let n="onTap"+(o==="End"?"":o),a=r[n];a&&be.postRender(()=>a(t,ra(t)))}var dm=class extends no{mount(){let{current:t}=this.node;t&&(this.unmount=aL(t,(o,r)=>(sL(this.node,r,"Start"),(n,{success:a})=>sL(this.node,n,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};l();l();var Lv=new WeakMap,Pv=new WeakMap,uW=e=>{let t=Lv.get(e.target);t&&t(e)},cW=e=>{e.forEach(uW)};function dW({root:e,...t}){let o=e||document;Pv.has(o)||Pv.set(o,{});let r=Pv.get(o),n=JSON.stringify(t);return r[n]||(r[n]=new IntersectionObserver(cW,{root:e,...t})),r[n]}function iL(e,t,o){let r=dW(t);return Lv.set(e,o),r.observe(e),()=>{Lv.delete(e),r.unobserve(e)}}var fW={some:0,all:1},fm=class extends no{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:o,margin:r,amount:n="some",once:a}=t,s={root:o?o.current:void 0,rootMargin:r,threshold:typeof n=="number"?n:fW[n]},i=u=>{let{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,a&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);let{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=c?d:f;p&&p(u)};return iL(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:o}=this.node;["amount","margin","root"].some(pW(t,o))&&this.startObserver()}unmount(){}};function pW({viewport:e={}},{viewport:t={}}={}){return o=>e[o]!==t[o]}var lL={inView:{Feature:fm},tap:{Feature:dm},focus:{Feature:cm},hover:{Feature:um}};l();var uL={layout:{ProjectionNode:sm,MeasureLayout:em}};l();import{Fragment as IW}from"react";l();l();l();l();l();var vc={current:null},pm={current:!1};function cL(){if(pm.current=!0,!!el)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vc.current=e.matches;e.addListener(t),t()}else vc.current=!1}l();var qa=new WeakMap;l();function dL(e,t,o){for(let r in t){let n=t[r],a=o[r];if(ze(n))e.addValue(r,n);else if(ze(a))e.addValue(r,ta(n,{owner:e}));else if(a!==n)if(e.hasValue(r)){let s=e.getValue(r);s.liveStyle===!0?s.jump(n):s.hasAnimated||s.set(n)}else{let s=e.getStaticValue(r);e.addValue(r,ta(s!==void 0?s:n,{owner:e}))}}for(let r in o)t[r]===void 0&&e.removeValue(r);return t}l();var mm=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);l();var hm=e=>/^0[^.\s]+$/u.test(e);l();l();l();var fL={test:e=>e==="auto",parse:e=>e};l();var gm=e=>t=>t.test(e);var Mv=[bn,ue,zo,In,EI,MI,fL],Ev=e=>Mv.find(gm(e));var mW=[...Mv,_t,qo],pL=e=>mW.find(gm(e));l();l();var hW=new Set(["brightness","contrast","saturate","opacity"]);function gW(e){let[t,o]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[r]=o.match(gl)||[];if(!r)return e;let n=o.replace(r,""),a=hW.has(t)?1:0;return r!==o&&(a*=100),t+"("+a+n+")"}var yW=/\b([a-z-]*)\(.*?\)/gu,wc={...qo,getAnimatableNone:e=>{let t=e.match(yW);return t?t.map(gW).join(" "):e}};l();var xW={...il,color:_t,backgroundColor:_t,outlineColor:_t,fill:_t,stroke:_t,borderColor:_t,borderTopColor:_t,borderRightColor:_t,borderBottomColor:_t,borderLeftColor:_t,filter:wc,WebkitFilter:wc},ym=e=>xW[e];function xm(e,t){let o=ym(e);return o!==wc&&(o=qo),o.getAnimatableNone?o.getAnimatableNone(t):void 0}var mL=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Al=class{scrapeMotionValuesFromProps(t,o,r){return{}}constructor({parent:t,props:o,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:a,visualState:s},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ha,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let p=Tt.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,be.render(this.render,!1,!0))};let{latestValues:u,renderState:c}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=o.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=o,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.blockInitialAnimation=!!a,this.isControllingVariants=Os(o),this.isVariantNode=rp(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:d,...f}=this.scrapeMotionValuesFromProps(o,{},this);for(let p in f){let m=f[p];u[p]!==void 0&&ze(m)&&m.set(u[p],!1)}}mount(t){this.current=t,qa.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((o,r)=>this.bindToMotionValue(r,o)),pm.current||cL(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:vc.current,ol(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),wr(this.notifyUpdate),wr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let o=this.features[t];o&&(o.unmount(),o.isMounted=!1)}this.current=null}bindToMotionValue(t,o){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=_r.has(t);r&&this.onBindTransform&&this.onBindTransform();let n=o.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&be.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=o.on("renderRequest",this.scheduleRender),s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,o)),this.valueSubscriptions.set(t,()=>{n(),a(),s&&s(),o.owner&&o.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 Xn){let o=Xn[t];if(!o)continue;let{isEnabled:r,Feature:n}=o;if(!this.features[t]&&n&&r(this.props)&&(this.features[t]=new n(this)),this.features[t]){let a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Qe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,o){this.latestValues[t]=o}update(t,o){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let r=0;r<mL.length;r++){let n=mL[r];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let a="on"+n,s=t[a];s&&(this.propEventSubscriptions[n]=this.on(n,s))}this.prevMotionValues=dL(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let o=this.getClosestVariantNode();if(o)return o.variantChildren&&o.variantChildren.add(t),()=>o.variantChildren.delete(t)}addValue(t,o){let r=this.values.get(t);o!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,o),this.values.set(t,o),this.latestValues[t]=o.get())}removeValue(t){this.values.delete(t);let o=this.valueSubscriptions.get(t);o&&(o(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,o){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&o!==void 0&&(r=ta(o===null?void 0:o,{owner:this}),this.addValue(t,r)),r}readValue(t,o){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"&&(mm(r)||hm(r))?r=parseFloat(r):!pL(r)&&qo.test(o)&&(r=xm(t,o)),this.setBaseTarget(t,ze(r)?r.get():r)),ze(r)?r.get():r}setBaseTarget(t,o){this.baseTarget[t]=o}getBaseTarget(t){let{initial:o}=this.props,r;if(typeof o=="string"||typeof o=="object"){let a=dl(this.props,o,this.presenceContext?.custom);a&&(r=a[t])}if(o&&r!==void 0)return r;let n=this.getBaseTargetFromProps(this.props,t);return n!==void 0&&!ze(n)?n:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,o){return this.events[t]||(this.events[t]=new Oa),this.events[t].add(o)}notify(t,...o){this.events[t]&&this.events[t].notify(...o)}};l();l();var vW=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wW(e){let t=vW.exec(e);if(!t)return[,];let[,o,r,n]=t;return[`--${o??r}`,n]}var CW=4;function Tv(e,t,o=1){kt(o<=CW,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,n]=wW(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let s=a.trim();return mm(s)?parseFloat(s):s}return sl(n)?Tv(n,t,o+1):n}l();function hL(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||hm(e):!0}l();var SW=new Set(["auto","none","0"]);function gL(e,t,o){let r=0,n;for(;r<e.length&&!n;){let a=e[r];typeof a=="string"&&!SW.has(a)&&Ns(a).values.length&&(n=e[r]),r++}if(n&&o)for(let a of t)e[a]=xm(o,n)}var vm=class extends Ha{constructor(t,o,r,n,a){super(t,o,r,n,a,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:o,name:r}=this;if(!o||!o.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let c=t[u];if(typeof c=="string"&&(c=c.trim(),sl(c))){let d=Tv(c,o.current);d!==void 0&&(t[u]=d),u===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Up.has(r)||t.length!==2)return;let[n,a]=t,s=Ev(n),i=Ev(a);if(s!==i)if(Zx(s)&&Zx(i))for(let u=0;u<t.length;u++){let c=t[u];typeof c=="string"&&(t[u]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:o}=this,r=[];for(let n=0;n<t.length;n++)(t[n]===null||hL(t[n]))&&r.push(n);r.length&&gL(t,r,o)}measureInitialState(){let{element:t,unresolvedKeyframes:o,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Fs[r](t.measureViewportBox(),window.getComputedStyle(t.current)),o[0]=this.measuredOrigin;let n=o[o.length-1];n!==void 0&&t.getValue(r,n).jump(n,!1)}measureEndState(){let{element:t,name:o,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let n=t.getValue(o);n&&n.jump(this.measuredOrigin,!1);let a=r.length-1,s=r[a];r[a]=Fs[o](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([i,u])=>{t.getValue(i).set(u)}),this.resolveNoneKeyframes()}};var Ol=class extends Al{constructor(){super(...arguments),this.KeyframeResolver=vm}sortInstanceNodePosition(t,o){return t.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(t,o){return t.style?t.style[o]:void 0}removeValueFromRenderState(t,{vars:o,style:r}){delete o[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;ze(t)&&(this.childSubscription=t.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}};l();function wm(e,{style:t,vars:o},r,n){Object.assign(e.style,t,n&&n.getProjectionStyles(r));for(let a in o)e.style.setProperty(a,o[a])}function bW(e){return window.getComputedStyle(e)}var kl=class extends Ol{constructor(){super(...arguments),this.type="html",this.renderInstance=wm}readValueFromInstance(t,o){if(_r.has(o))return vR(t,o);{let r=bW(t),n=(al(o)?r.getPropertyValue(o):r[o])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:o}){return dv(t,o)}build(t,o,r){ll(t,o,r.transformTemplate)}scrapeMotionValuesFromProps(t,o,r){return pl(t,o,r)}};l();l();var Cm=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"]);l();function yL(e,t,o,r){wm(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Cm.has(n)?n:rl(n),t.attrs[n])}var Nl=class extends Ol{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Qe}getBaseTargetFromProps(t,o){return t[o]}readValueFromInstance(t,o){if(_r.has(o)){let r=ym(o);return r&&r.default||0}return o=Cm.has(o)?o:rl(o),t.getAttribute(o)}scrapeMotionValuesFromProps(t,o,r){return fp(t,o,r)}build(t,o,r){lp(t,o,this.isSVGTag,r.transformTemplate)}renderInstance(t,o,r,n){yL(t,o,r,n)}mount(t){this.isSVGTag=cp(t.tagName),super.mount(t)}};var xL=(e,t)=>cl(e)?new Nl(t):new kl(t,{allowProjection:e!==IW});var vL=UI({...VR,...lL,...QP,...uL},xL);var qe=xI(vL);l();l();l();l();l();function Cc(e){return typeof e=="object"&&!Array.isArray(e)}function Sm(e,t,o,r){return typeof e=="string"&&Cc(t)?im(e,o,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}l();function wL(e,t,o){return e*(t+1)}l();function Dv(e,t,o,r){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?o:r.get(t)??e}l();l();l();var CL=(e,t,o)=>{let r=t-e;return((o-e)%r+r)%r+e};function bm(e,t){return Pp(e)?e[CL(0,e.length,t)]:e}function RW(e,t,o){for(let r=0;r<e.length;r++){let n=e[r];n.at>t&&n.at<o&&(Aa(e,n),r--)}}function SL(e,t,o,r,n,a){RW(e,n,a);for(let s=0;s<t.length;s++)e.push({value:t[s],at:Pe(n,a,r[s]),easing:bm(o,s)})}l();function bL(e,t){for(let o=0;o<e.length;o++)e[o]=e[o]/(t+1)}l();function IL(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var PW="easeInOut",LW=20;function LL(e,{defaultTransition:t={},...o}={},r,n){let a=t.duration||.3,s=new Map,i=new Map,u={},c=new Map,d=0,f=0,p=0;for(let m=0;m<e.length;m++){let y=e[m];if(typeof y=="string"){c.set(y,f);continue}else if(!Array.isArray(y)){c.set(y.name,Dv(f,y.at,d,c));continue}let[g,v,x={}]=y;x.at!==void 0&&(f=Dv(f,x.at,d,c));let w=0,C=(S,b,R,P=0,M=0)=>{let T=MW(S),{delay:_=0,times:F=Rp(T),type:O="keyframes",repeat:N,repeatType:I,repeatDelay:A=0,...L}=b,{ease:D=t.ease||"easeOut",duration:k}=b,E=typeof _=="function"?_(P,M):_,V=T.length,B=bl(O)?O:n?.[O];if(V<=2&&B){let H=100;if(V===2&&DW(T)){let j=T[1]-T[0];H=Math.abs(j)}let q={...L};k!==void 0&&(q.duration=Nt(k));let z=Cp(q,H,B);D=z.ease,k=z.duration}k??(k=a);let U=f+E;F.length===1&&F[0]===0&&(F[1]=1);let $=F.length-T.length;if($>0&&Ip(F,$),T.length===1&&T.unshift(null),N){kt(N<LW,"Repeat count too high, must be less than 20"),k=wL(k,N);let H=[...T],q=[...F];D=Array.isArray(D)?[...D]:[D];let z=[...D];for(let j=0;j<N;j++){T.push(...H);for(let X=0;X<H.length;X++)F.push(q[X]+(j+1)),D.push(X===0?"linear":bm(z,X-1))}bL(F,N)}let G=U+k;SL(R,T,D,F,U,G),w=Math.max(E+k,w),p=Math.max(G,p)};if(ze(g)){let S=RL(g,i);C(v,x,PL("default",S))}else{let S=Sm(g,v,r,u),b=S.length;for(let R=0;R<b;R++){v=v,x=x;let P=S[R],M=RL(P,i);for(let T in v)C(v[T],EW(x,T),PL(T,M),R,b)}}d=f,f+=w}return i.forEach((m,y)=>{for(let g in m){let v=m[g];v.sort(IL);let x=[],w=[],C=[];for(let b=0;b<v.length;b++){let{at:R,value:P,easing:M}=v[b];x.push(P),w.push(en(0,p,R)),C.push(M||"easeOut")}w[0]!==0&&(w.unshift(0),x.unshift(x[0]),C.unshift(PW)),w[w.length-1]!==1&&(w.push(1),x.push(null)),s.has(y)||s.set(y,{keyframes:{},transition:{}});let S=s.get(y);S.keyframes[g]=x,S.transition[g]={...t,duration:p,ease:C,times:w,...o}}}),s}function RL(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function PL(e,t){return t[e]||(t[e]=[]),t[e]}function MW(e){return Array.isArray(e)?e:[e]}function EW(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var TW=e=>typeof e=="number",DW=e=>e.every(TW);l();l();l();function AW(e,t){return e in t}var Im=class extends Al{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,o){if(AW(o,t)){let r=t[o];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,o){delete o.output[t]}measureInstanceViewportBox(){return Qe()}build(t,o){Object.assign(t.output,o)}renderInstance(t,{output:o}){Object.assign(t,o)}sortInstanceNodePosition(){return 0}};function ML(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},o=om(e)?new Nl(t):new kl(t);o.mount(e),qa.set(e,o)}function EL(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},o=new Im(t);o.mount(e),qa.set(e,o)}function OW(e,t){return ze(e)||typeof e=="number"||typeof e=="string"&&!Cc(t)}function Rm(e,t,o,r){let n=[];if(OW(e,t))n.push(tm(e,Cc(t)&&t.default||t,o&&(o.default||o)));else{let a=Sm(e,t,r),s=a.length;kt(!!s,"No valid elements provided.");for(let i=0;i<s;i++){let u=a[i],c=u instanceof Element?ML:EL;qa.has(u)||c(u);let d=qa.get(u),f={...o};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(i,s)),n.push(...Rl(d,{...t,transition:f},{}))}}return n}function TL(e,t,o){let r=[];return LL(e,t,o,{spring:_a}).forEach(({keyframes:a,transition:s},i)=>{r.push(...Rm(i,a,s))}),r}l();l();var Pm=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,o){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=o}attachTimeline(t){let o=this.animations.map(r=>r.attachTimeline(t));return()=>{o.forEach((r,n)=>{r&&r(),this.animations[n].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let o=0;o<this.animations.length;o++)t=Math.max(t,this.animations[o].duration);return t}runAll(t){this.animations.forEach(o=>o[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};var Lm=class extends Pm{then(t,o){return this.finished.finally(t).then(()=>{})}};function kW(e){return Array.isArray(e)&&e.some(Array.isArray)}function DL(e){function t(o,r,n){let a=[];kW(o)?a=TL(o,r,e):a=Rm(o,r,n,e);let s=new Lm(a);return e&&e.animations.push(s),s}return t}var Av=DL();l();import{createContext as W5,useContext as $5,useMemo as wE}from"react";l();l();l();var Mm=Object.create(null),Sc=e=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?Mm:globalThis),Wa=new Proxy(Mm,{get(e,t){return Sc()[t]??Mm[t]},has(e,t){let o=Sc();return t in o||t in Mm},set(e,t,o){let r=Sc(!0);return r[t]=o,!0},deleteProperty(e,t){if(!t)return!1;let o=Sc(!0);return delete o[t],!0},ownKeys(){let e=Sc(!0);return Object.keys(e)}}),NW=typeof process<"u"&&process.env&&"true"||"",_W=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}]];function FW(){if(globalThis.process?.env)for(let e of _W){let t=e[1]||e[0];if(globalThis.process?.env[t])return{name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}var OL=FW(),kL=OL.name;function $s(e){return e?e!=="false":!1}var bc=globalThis.process?.platform||"",Em=$s(Wa.CI)||OL.ci!==!1,NL=$s(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);var ePe=$s(Wa.DEBUG),BW=NW==="test"||$s(Wa.TEST);var tPe=$s(Wa.MINIMAL)||Em||BW||!NL,VW=/^win/i.test(bc),oPe=/^linux/i.test(bc),rPe=/^darwin/i.test(bc),nPe=!$s(Wa.NO_COLOR)&&($s(Wa.FORCE_COLOR)||(NL||VW)&&Wa.TERM!=="dumb"||Em),Ov=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null,aPe=Number(Ov?.split(".")[0])||null,HW=globalThis.process||Object.create(null),AL={versions:{}},_L=new Proxy(HW,{get(e,t){if(t==="env")return Wa;if(t in e)return e[t];if(t in AL)return AL[t]}}),UW=globalThis.process?.release?.name==="node",zW=!!globalThis.Bun||!!globalThis.process?.versions?.bun,qW=!!globalThis.Deno,WW=!!globalThis.fastly,$W=!!globalThis.Netlify,GW=!!globalThis.EdgeRuntime,jW=globalThis.navigator?.userAgent==="Cloudflare-Workers",KW=[[$W,"netlify"],[GW,"edge-light"],[jW,"workerd"],[WW,"fastly"],[qW,"deno"],[zW,"bun"],[UW,"node"]];function YW(){let e=KW.find(t=>t[0]);if(e)return{name:e[1]}}var XW=YW(),sPe=XW?.name||"";l();function FL(e=new Date){return`${QW(e)}T${ZW(e)}${JW(e)}`}function QW(e){return[e.getFullYear(),Gs(e.getMonth()+1),Gs(e.getDate())].join("-")}function ZW(e){return[Gs(e.getHours()),Gs(e.getMinutes()),Gs(e.getSeconds())].join(":")}function JW(e){let t=e.getTimezoneOffset();if(!t)return"Z";let o=Math.abs(t),r=Math.floor(o/60),n=o%60;return`${t>0?"-":"+"}${Gs(r)}:${Gs(n)}`}function Gs(e){return String(e).padStart(2,"0")}var e$="https://checkpoint.prisma.io/v1";var t$="check/:product";async function BL(e){let t=new URL(t$,e.baseURL||e$);t.pathname=t.pathname.replace(":product",e.product);let{additionalData:o}=e;t.search=new URLSearchParams([...Object.entries({arch:e.architecture||_L.arch||"unknown",check_if_update_available:`${e.skipUpdateCheck!==!0}`,ci:`${Em}`,ci_name:kL,cli_install_type:e.cliInstallType||"",cli_path_hash:e.cliPathHash||"",client_event_id:e.eventId||"",command:e.command||"",information:typeof o=="string"?o:o?JSON.stringify(o):"",local_timestamp:FL(e.timestamp),node_version:Ov||"0.0.0",os:e.platform||bc||"unknown",previous_client_event_id:e.previousEventId||"",project_hash:e.projectHash||"",signature:e.signature,version:e.version}),...kv("schema_generators_providers",e.ormGeneratorProviders),...kv("schema_preview_features",e.ormPreviewFeatures),...kv("schema_providers",[e.ormDatasourceProvider])]).toString(),e.debug&&console.debug("Sending request to:",t.toString());let r=await fetch(t,{headers:{Accept:"application/json","User-Agent":"prisma/js-checkpoint"},method:"GET"});if(!r.ok)throw new Error(`checkpoint response error: ${r.status} ${r.statusText}`);return await r.json()}function kv(e,t){return t?.filter(Boolean).map(o=>[e,o])||[]}l();l();l();l();l();var Br=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};l();var or=typeof window>"u"||"Deno"in globalThis;function Po(){}function UL(e,t){return typeof e=="function"?e(t):e}function Ic(e){return typeof e=="number"&&e>=0&&e!==1/0}function Tm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function $a(e,t){return typeof e=="function"?e(t):e}function Sr(e,t){return typeof e=="function"?e(t):e}function Dm(e,t){let{type:o="all",exact:r,fetchStatus:n,predicate:a,queryKey:s,stale:i}=e;if(s){if(r){if(t.queryHash!==Rc(s,t.options))return!1}else if(!Fl(t.queryKey,s))return!1}if(o!=="all"){let u=t.isActive();if(o==="active"&&!u||o==="inactive"&&u)return!1}return!(typeof i=="boolean"&&t.isStale()!==i||n&&n!==t.state.fetchStatus||a&&!a(t))}function Am(e,t){let{exact:o,status:r,predicate:n,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(o){if(Mn(t.options.mutationKey)!==Mn(a))return!1}else if(!Fl(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||n&&!n(t))}function Rc(e,t){return(t?.queryKeyHashFn||Mn)(e)}function Mn(e){return JSON.stringify(e,(t,o)=>Nv(o)?Object.keys(o).sort().reduce((r,n)=>(r[n]=o[n],r),{}):o)}function Fl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(o=>Fl(e[o],t[o])):!1}function _l(e,t){if(e===t)return e;let o=VL(e)&&VL(t);if(o||Nv(e)&&Nv(t)){let r=o?e:Object.keys(e),n=r.length,a=o?t:Object.keys(t),s=a.length,i=o?[]:{},u=0;for(let c=0;c<s;c++){let d=o?c:a[c];(!o&&r.includes(d)||o)&&e[d]===void 0&&t[d]===void 0?(i[d]=void 0,u++):(i[d]=_l(e[d],t[d]),i[d]===e[d]&&e[d]!==void 0&&u++)}return n===s&&u===n?e:i}return t}function Bl(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let o in e)if(e[o]!==t[o])return!1;return!0}function VL(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Nv(e){if(!HL(e))return!1;let t=e.constructor;if(t===void 0)return!0;let o=t.prototype;return!(!HL(o)||!o.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function HL(e){return Object.prototype.toString.call(e)==="[object Object]"}function zL(e){return new Promise(t=>{setTimeout(t,e)})}function Pc(e,t,o){if(typeof o.structuralSharing=="function")return o.structuralSharing(e,t);if(o.structuralSharing!==!1){try{return _l(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${o.queryHash}]: ${r}`),r}return _l(e,t)}return t}function qL(e,t,o=0){let r=[...e,t];return o&&r.length>o?r.slice(1):r}function WL(e,t,o=0){let r=[t,...e];return o&&r.length>o?r.slice(0,-1):r}var js=Symbol();function Om(e,t){return e.queryFn===js&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===js?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var o$=class extends Br{#t;#e;#o;constructor(){super(),this.#o=e=>{if(!or&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#o=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Vl=new o$;l();var r$=class extends Br{#t=!0;#e;#o;constructor(){super(),this.#o=e=>{if(!or&&window.addEventListener){let t=()=>e(!0),o=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",o)}}}}onSubscribe(){this.#e||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#o=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(o=>{o(e)}))}isOnline(){return this.#t}},Hl=new r$;l();function Lc(){let e,t,o=new Promise((n,a)=>{e=n,t=a});o.status="pending",o.catch(()=>{});function r(n){Object.assign(o,n),delete o.resolve,delete o.reject}return o.resolve=n=>{r({status:"fulfilled",value:n}),e(n)},o.reject=n=>{r({status:"rejected",reason:n}),t(n)},o}function n$(e){return Math.min(1e3*2**e,3e4)}function _v(e){return(e??"online")==="online"?Hl.isOnline():!0}var $L=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function km(e){return e instanceof $L}function Nm(e){let t=!1,o=0,r=!1,n,a=Lc(),s=g=>{r||(p(new $L(g)),e.abort?.())},i=()=>{t=!0},u=()=>{t=!1},c=()=>Vl.isFocused()&&(e.networkMode==="always"||Hl.isOnline())&&e.canRun(),d=()=>_v(e.networkMode)&&e.canRun(),f=g=>{r||(r=!0,e.onSuccess?.(g),n?.(),a.resolve(g))},p=g=>{r||(r=!0,e.onError?.(g),n?.(),a.reject(g))},m=()=>new Promise(g=>{n=v=>{(r||c())&&g(v)},e.onPause?.()}).then(()=>{n=void 0,r||e.onContinue?.()}),y=()=>{if(r)return;let g,v=o===0?e.initialPromise:void 0;try{g=v??e.fn()}catch(x){g=Promise.reject(x)}Promise.resolve(g).then(f).catch(x=>{if(r)return;let w=e.retry??(or?0:3),C=e.retryDelay??n$,S=typeof C=="function"?C(o,x):C,b=w===!0||typeof w=="number"&&o<w||typeof w=="function"&&w(o,x);if(t||!b){p(x);return}o++,e.onFail?.(o,x),zL(S).then(()=>c()?void 0:m()).then(()=>{t?p(x):y()})})};return{promise:a,cancel:s,continue:()=>(n?.(),a),cancelRetry:i,continueRetry:u,canStart:d,start:()=>(d()?y():m().then(y),a)}}l();l();l();var GL=e=>setTimeout(e,0);function a$(){let e=[],t=0,o=i=>{i()},r=i=>{i()},n=GL,a=i=>{t?e.push(i):n(()=>{o(i)})},s=()=>{let i=e;e=[],i.length&&n(()=>{r(()=>{i.forEach(u=>{o(u)})})})};return{batch:i=>{let u;t++;try{u=i()}finally{t--,t||s()}return u},batchCalls:i=>(...u)=>{a(()=>{i(...u)})},schedule:a,setNotifyFunction:i=>{o=i},setBatchNotifyFunction:i=>{r=i},setScheduler:i=>{n=i}}}var He=a$();l();var _m=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ic(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(or?1/0:5*60*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}};var jL=class extends _m{#t;#e;#o;#r;#n;#s;#i;constructor(e){super(),this.#i=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#o=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=s$(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#o.remove(this)}setData(e,t){let o=Pc(this.state.data,e,this.options);return this.#a({data:o,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),o}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#n?.promise;return this.#n?.cancel(e),t?t.then(Po).catch(Po):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Sr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===js||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!Tm(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#n&&(this.#i?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#o.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){let i=this.observers.find(u=>u.options.queryFn);i&&this.setOptions(i.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");let o=new AbortController,r=i=>{Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(this.#i=!0,o.signal)})},n=()=>{let i=Om(this.options,t),u={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(u),this.#i=!1,this.options.persister?this.options.persister(i,u,this):i(u)},a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:n};r(a),this.options.behavior?.onFetch(a,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#a({type:"fetch",meta:a.fetchOptions?.meta});let s=i=>{km(i)&&i.silent||this.#a({type:"error",error:i}),km(i)||(this.#o.config.onError?.(i,this),this.#o.config.onSettled?.(this.state.data,i,this)),this.scheduleGc()};return this.#n=Nm({initialPromise:t?.initialPromise,fn:a.fetchFn,abort:o.abort.bind(o),onSuccess:i=>{if(i===void 0){console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(i)}catch(u){s(u);return}this.#o.config.onSuccess?.(i,this),this.#o.config.onSettled?.(i,this.state.error,this),this.scheduleGc()},onError:s,onFail:(i,u)=>{this.#a({type:"failed",failureCount:i,error:u})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),this.#n.start()}#a(e){let t=o=>{switch(e.type){case"failed":return{...o,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...Fv(o.data,this.options),fetchMeta:e.meta??null};case"success":return{...o,data:e.data,dataUpdateCount:o.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let r=e.error;return km(r)&&r.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...o,error:r,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...e.state}}};this.state=t(this.state),He.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:e})})}};function Fv(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_v(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function s$(e){let t=typeof e.initialData=="function"?e.initialData():e.initialData,o=t!==void 0,r=o?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:o?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:o?"success":"pending",fetchStatus:"idle"}}var KL=class extends Br{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,o){let r=t.queryKey,n=t.queryHash??Rc(r,t),a=this.get(n);return a||(a=new jL({client:e,queryKey:r,queryHash:n,options:e.defaultQueryOptions(t),state:o,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){He.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(o=>Dm(t,o))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(o=>Dm(e,o)):t}notify(e){He.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){He.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){He.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}};l();l();l();var YL=class extends _m{#t;#e;#o;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||Bv(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){this.#o=Nm({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(r,n)=>{this.#r({type:"failed",failureCount:r,error:n})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});let t=this.state.status==="pending",o=!this.#o.canStart();try{if(!t){this.#r({type:"pending",variables:e,isPaused:o}),await this.#e.config.onMutate?.(e,this);let n=await this.options.onMutate?.(e);n!==this.state.context&&this.#r({type:"pending",context:n,variables:e,isPaused:o})}let r=await this.#o.start();return await this.#e.config.onSuccess?.(r,e,this.state.context,this),await this.options.onSuccess?.(r,e,this.state.context),await this.#e.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,e,this.state.context),this.#r({type:"success",data:r}),r}catch(r){try{throw await this.#e.config.onError?.(r,e,this.state.context,this),await this.options.onError?.(r,e,this.state.context),await this.#e.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,r,e,this.state.context),r}finally{this.#r({type:"error",error:r})}}finally{this.#e.runNext(this)}}#r(e){let t=o=>{switch(e.type){case"failed":return{...o,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"pending":return{...o,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...o,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:e.error,failureCount:o.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),He.batch(()=>{this.#t.forEach(o=>{o.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function Bv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var XL=class extends Br{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#o=0}#t;#e;#o;build(e,t,o){let r=new YL({mutationCache:this,mutationId:++this.#o,options:e.defaultMutationOptions(t),state:o});return this.add(r),r}add(e){this.#t.add(e);let t=Fm(e);if(typeof t=="string"){let o=this.#e.get(t);o?o.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){let t=Fm(e);if(typeof t=="string"){let o=this.#e.get(t);if(o)if(o.length>1){let r=o.indexOf(e);r!==-1&&o.splice(r,1)}else o[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=Fm(e);if(typeof t=="string"){let r=this.#e.get(t)?.find(n=>n.state.status==="pending");return!r||r===e}else return!0}runNext(e){let t=Fm(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){He.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){let t={exact:!0,...e};return this.getAll().find(o=>Am(t,o))}findAll(e={}){return this.getAll().filter(t=>Am(e,t))}notify(e){He.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(t=>t.state.isPaused);return He.batch(()=>Promise.all(e.map(t=>t.continue().catch(Po))))}};function Fm(e){return e.options.scope?.id}l();function Vv(e){return{onFetch:(t,o)=>{let r=t.options,n=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],s=t.state.data?.pageParams||[],i={pages:[],pageParams:[]},u=0,c=async()=>{let d=!1,f=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?d=!0:t.signal.addEventListener("abort",()=>{d=!0}),t.signal)})},p=Om(t.options,t.fetchOptions),m=async(y,g,v)=>{if(d)return Promise.reject();if(g==null&&y.pages.length)return Promise.resolve(y);let x={client:t.client,queryKey:t.queryKey,pageParam:g,direction:v?"backward":"forward",meta:t.options.meta};f(x);let w=await p(x),{maxPages:C}=t.options,S=v?WL:qL;return{pages:S(y.pages,w,C),pageParams:S(y.pageParams,g,C)}};if(n&&a.length){let y=n==="backward",g=y?i$:QL,v={pages:a,pageParams:s},x=g(r,v);i=await m(v,x,y)}else{let y=e??a.length;do{let g=u===0?s[0]??r.initialPageParam:QL(r,i);if(u>0&&g==null)break;i=await m(i,g),u++}while(u<y)}return i};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},o):t.fetchFn=c}}}function QL(e,{pages:t,pageParams:o}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,o[r],o):void 0}function i$(e,{pages:t,pageParams:o}){return t.length>0?e.getPreviousPageParam?.(t[0],t,o[0],o):void 0}var Hv=class{#t;#e;#o;#r;#n;#s;#i;#a;constructor(e={}){this.#t=e.queryCache||new KL,this.#e=e.mutationCache||new XL,this.#o=e.defaultOptions||{},this.#r=new Map,this.#n=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#i=Vl.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#a=Hl.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#i?.(),this.#i=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),o=this.#t.build(this,t),r=o.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&o.isStaleByTime($a(t.staleTime,o))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:o})=>{let r=o.data;return[t,r]})}setQueryData(e,t,o){let r=this.defaultQueryOptions({queryKey:e}),a=this.#t.get(r.queryHash)?.state.data,s=UL(t,a);if(s!==void 0)return this.#t.build(this,r).setData(s,{...o,manual:!0})}setQueriesData(e,t,o){return He.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,o)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){let t=this.#t;He.batch(()=>{t.findAll(e).forEach(o=>{t.remove(o)})})}resetQueries(e,t){let o=this.#t;return He.batch(()=>(o.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let o={revert:!0,...t},r=He.batch(()=>this.#t.findAll(e).map(n=>n.cancel(o)));return Promise.all(r).then(Po).catch(Po)}invalidateQueries(e,t={}){return He.batch(()=>(this.#t.findAll(e).forEach(o=>{o.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){let o={...t,cancelRefetch:t.cancelRefetch??!0},r=He.batch(()=>this.#t.findAll(e).filter(n=>!n.isDisabled()).map(n=>{let a=n.fetch(void 0,o);return o.throwOnError||(a=a.catch(Po)),n.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Po)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let o=this.#t.build(this,t);return o.isStaleByTime($a(t.staleTime,o))?o.fetch(t):Promise.resolve(o.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Po).catch(Po)}fetchInfiniteQuery(e){return e.behavior=Vv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Po).catch(Po)}ensureInfiniteQueryData(e){return e.behavior=Vv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Hl.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#o}setDefaultOptions(e){this.#o=e}setQueryDefaults(e,t){this.#r.set(Mn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],o={};return t.forEach(r=>{Fl(e,r.queryKey)&&Object.assign(o,r.defaultOptions)}),o}setMutationDefaults(e,t){this.#n.set(Mn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#n.values()],o={};return t.forEach(r=>{Fl(e,r.mutationKey)&&Object.assign(o,r.defaultOptions)}),o}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#o.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Rc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===js&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#o.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}};l();var zv=class extends Br{constructor(e,t){super(),this.options=t,this.#t=e,this.#a=null,this.#i=Lc(),this.options.experimental_prefetchInRender||this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#o=void 0;#r=void 0;#n;#s;#i;#a;#h;#f;#p;#u;#c;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),ZL(this.#e,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Uv(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Uv(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#C(),this.#e.removeObserver(this)}setOptions(e){let t=this.options,o=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Sr(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),t._defaulted&&!Bl(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});let r=this.hasListeners();r&&JL(this.#e,o,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#e!==o||Sr(this.options.enabled,this.#e)!==Sr(t.enabled,this.#e)||$a(this.options.staleTime,this.#e)!==$a(t.staleTime,this.#e))&&this.#g();let n=this.#y();r&&(this.#e!==o||Sr(this.options.enabled,this.#e)!==Sr(t.enabled,this.#e)||n!==this.#l)&&this.#x(n)}getOptimisticResult(e){let t=this.#t.getQueryCache().build(this.#t,e),o=this.createResult(t,e);return u$(this,o)&&(this.#r=o,this.#s=this.options,this.#n=this.#e.state),o}getCurrentResult(){return this.#r}trackResult(e,t){let o={};return Object.keys(e).forEach(r=>{Object.defineProperty(o,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),t?.(r),e[r])})}),o}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#t.defaultQueryOptions(e),o=this.#t.getQueryCache().build(this.#t,t);return o.fetch().then(()=>this.createResult(o,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#S();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Po)),t}#g(){this.#w();let e=$a(this.options.staleTime,this.#e);if(or||this.#r.isStale||!Ic(e))return;let o=Tm(this.#r.dataUpdatedAt,e)+1;this.#u=setTimeout(()=>{this.#r.isStale||this.updateResult()},o)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#x(e){this.#C(),this.#l=e,!(or||Sr(this.options.enabled,this.#e)===!1||!Ic(this.#l)||this.#l===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||Vl.isFocused())&&this.#d()},this.#l))}#v(){this.#g(),this.#x(this.#y())}#w(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#C(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(e,t){let o=this.#e,r=this.options,n=this.#r,a=this.#n,s=this.#s,u=e!==o?e.state:this.#o,{state:c}=e,d={...c},f=!1,p;if(t._optimisticResults){let P=this.hasListeners(),M=!P&&ZL(e,t),T=P&&JL(e,o,t,r);(M||T)&&(d={...d,...Fv(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:y,status:g}=d;if(t.select&&d.data!==void 0)if(n&&d.data===a?.data&&t.select===this.#h)p=this.#f;else try{this.#h=t.select,p=t.select(d.data),p=Pc(n?.data,p,t),this.#f=p,this.#a=null}catch(P){this.#a=P}else p=d.data;if(t.placeholderData!==void 0&&p===void 0&&g==="pending"){let P;if(n?.isPlaceholderData&&t.placeholderData===s?.placeholderData)P=n.data;else if(P=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,t.select&&P!==void 0)try{P=t.select(P),this.#a=null}catch(M){this.#a=M}P!==void 0&&(g="success",p=Pc(n?.data,P,t),f=!0)}this.#a&&(m=this.#a,p=this.#f,y=Date.now(),g="error");let v=d.fetchStatus==="fetching",x=g==="pending",w=g==="error",C=x&&v,S=p!==void 0,R={status:g,fetchStatus:d.fetchStatus,isPending:x,isSuccess:g==="success",isError:w,isInitialLoading:C,isLoading:C,data:p,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:y,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&!x,isLoadingError:w&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:w&&S,isStale:qv(e,t),refetch:this.refetch,promise:this.#i};if(this.options.experimental_prefetchInRender){let P=_=>{R.status==="error"?_.reject(R.error):R.data!==void 0&&_.resolve(R.data)},M=()=>{let _=this.#i=R.promise=Lc();P(_)},T=this.#i;switch(T.status){case"pending":e.queryHash===o.queryHash&&P(T);break;case"fulfilled":(R.status==="error"||R.data!==T.value)&&M();break;case"rejected":(R.status!=="error"||R.error!==T.reason)&&M();break}}return R}updateResult(){let e=this.#r,t=this.createResult(this.#e,this.options);if(this.#n=this.#e.state,this.#s=this.options,this.#n.data!==void 0&&(this.#p=this.#e),Bl(t,e))return;this.#r=t;let o=()=>{if(!e)return!0;let{notifyOnChangeProps:r}=this.options,n=typeof r=="function"?r():r;if(n==="all"||!n&&!this.#m.size)return!0;let a=new Set(n??this.#m);return this.options.throwOnError&&a.add("error"),Object.keys(this.#r).some(s=>{let i=s;return this.#r[i]!==e[i]&&a.has(i)})};this.#b({listeners:o()})}#S(){let e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;let t=this.#e;this.#e=e,this.#o=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#b(e){He.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function l$(e,t){return Sr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ZL(e,t){return l$(e,t)||e.state.data!==void 0&&Uv(e,t,t.refetchOnMount)}function Uv(e,t,o){if(Sr(t.enabled,e)!==!1){let r=typeof o=="function"?o(e):o;return r==="always"||r!==!1&&qv(e,t)}return!1}function JL(e,t,o,r){return(e!==t||Sr(r.enabled,e)===!1)&&(!o.suspense||e.state.status!=="error")&&qv(e,o)}function qv(e,t){return Sr(t.enabled,e)!==!1&&e.isStaleByTime($a(t.staleTime,e))}function u$(e,t){return!Bl(e.getCurrentResult(),t)}l();var Wv=class extends Br{#t;#e=void 0;#o;#r;constructor(e,t){super(),this.#t=e,this.setOptions(t),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#t.defaultMutationOptions(e),Bl(this.options,t)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#o,observer:this}),t?.mutationKey&&this.options.mutationKey&&Mn(t.mutationKey)!==Mn(this.options.mutationKey)?this.reset():this.#o?.state.status==="pending"&&this.#o.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#o?.removeObserver(this)}onMutationUpdate(e){this.#n(),this.#s(e)}getCurrentResult(){return this.#e}reset(){this.#o?.removeObserver(this),this.#o=void 0,this.#n(),this.#s()}mutate(e,t){return this.#r=t,this.#o?.removeObserver(this),this.#o=this.#t.getMutationCache().build(this.#t,this.options),this.#o.addObserver(this),this.#o.execute(e)}#n(){let e=this.#o?.state??Bv();this.#e={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#s(e){He.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#e.variables,o=this.#e.context;e?.type==="success"?(this.#r.onSuccess?.(e.data,t,o),this.#r.onSettled?.(e.data,null,t,o)):e?.type==="error"&&(this.#r.onError?.(e.error,t,o),this.#r.onSettled?.(void 0,e.error,t,o))}this.listeners.forEach(t=>{t(this.#e)})})}};l();import*as Ul from"react";import{jsx as c$}from"react/jsx-runtime";var $v=Ul.createContext(void 0),rr=e=>{let t=Ul.useContext($v);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Gv=({client:e,children:t})=>(Ul.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c$($v.Provider,{value:e,children:t}));l();import*as Bm from"react";var eM=Bm.createContext(!1),tM=()=>Bm.useContext(eM),aMe=eM.Provider;l();import*as Mc from"react";import{jsx as uMe}from"react/jsx-runtime";function d$(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var f$=Mc.createContext(d$()),oM=()=>Mc.useContext(f$);l();import*as rM from"react";l();function Vm(e,t){return typeof e=="function"?e(...t):!!e}function Ec(){}var nM=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},aM=e=>{rM.useEffect(()=>{e.clearReset()},[e])},sM=({result:e,errorResetBoundary:t,throwOnError:o,query:r,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(n&&e.data===void 0||Vm(o,[e.error,r]));l();var iM=e=>{let t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...o)=>Math.max(t(...o),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},lM=(e,t)=>e.isLoading&&e.isFetching&&!t,uM=(e,t)=>e?.suspense&&t.isPending,jv=(e,t,o)=>t.fetchOptimistic(e).catch(()=>{o.clearReset()});l();l();import*as Ga from"react";function cM(e,t,o){if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');let r=rr(o),n=tM(),a=oM(),s=r.defaultQueryOptions(e);r.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s.queryFn||console.error(`[${s.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),s._optimisticResults=n?"isRestoring":"optimistic",iM(s),nM(s,a),aM(a);let i=!r.getQueryCache().get(s.queryHash),[u]=Ga.useState(()=>new t(r,s)),c=u.getOptimisticResult(s),d=!n&&e.subscribed!==!1;if(Ga.useSyncExternalStore(Ga.useCallback(f=>{let p=d?u.subscribe(He.batchCalls(f)):Ec;return u.updateResult(),p},[u,d]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),Ga.useEffect(()=>{u.setOptions(s)},[s,u]),uM(s,c))throw jv(s,u,a);if(sM({result:c,errorResetBoundary:a,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;return r.getDefaultOptions().queries?._experimental_afterQuery?.(s,c),s.experimental_prefetchInRender&&!or&&lM(c,n)&&(i?jv(s,u,a):r.getQueryCache().get(s.queryHash)?.promise)?.catch(Ec).finally(()=>{u.updateResult()}),s.notifyOnChangeProps?c:u.trackResult(c)}function Tc(e,t){return cM(e,zv,t)}l();import*as aa from"react";function Dc(e,t){let o=rr(t);return fM({filters:{...e,status:"pending"}},o).length}function dM(e,t){return e.findAll(t.filters).map(o=>t.select?t.select(o):o.state)}function fM(e={},t){let o=rr(t).getMutationCache(),r=aa.useRef(e),n=aa.useRef(null);return n.current||(n.current=dM(o,e)),aa.useEffect(()=>{r.current=e}),aa.useSyncExternalStore(aa.useCallback(a=>o.subscribe(()=>{let s=_l(n.current,dM(o,r.current));n.current!==s&&(n.current=s,He.schedule(a))}),[o]),()=>n.current,()=>n.current)}l();import*as sa from"react";function Ks(e,t){let o=rr(t),[r]=sa.useState(()=>new Wv(o,e));sa.useEffect(()=>{r.setOptions(e)},[r,e]);let n=sa.useSyncExternalStore(sa.useCallback(s=>r.subscribe(He.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=sa.useCallback((s,i)=>{r.mutate(s,i).catch(Ec)},[r]);if(n.error&&Vm(r.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:a,mutateAsync:n.mutate}}var fw=Cn(_c(),1);import{createContext as M5,useContext as E5,useEffect as dw,useState as Hc}from"react";l();import Q from"react";import P3 from"react-dom";function R3(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}var L3=e=>{switch(e){case"success":return T3;case"info":return A3;case"warning":return D3;case"error":return O3;default:return null}},M3=Array(12).fill(0),E3=({visible:e,className:t})=>Q.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},Q.createElement("div",{className:"sonner-spinner"},M3.map((o,r)=>Q.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),T3=Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Q.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),D3=Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Q.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),A3=Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Q.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),O3=Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Q.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),k3=Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Q.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Q.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),N3=()=>{let[e,t]=Q.useState(document.hidden);return Q.useEffect(()=>{let o=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),e},sw=1,iw=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let o=this.subscribers.indexOf(t);this.subscribers.splice(o,1)}),this.publish=t=>{this.subscribers.forEach(o=>o(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var o;let{message:r,...n}=t,a=typeof t?.id=="number"||((o=t.id)==null?void 0:o.length)>0?t.id:sw++,s=this.toasts.find(u=>u.id===a),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),s?this.toasts=this.toasts.map(u=>u.id===a?(this.publish({...u,...t,id:a,title:r}),{...u,...t,id:a,dismissible:i,title:r}):u):this.addToast({title:r,...n,dismissible:i,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(o=>o({id:t,dismiss:!0})))):this.toasts.forEach(o=>{this.subscribers.forEach(r=>r({id:o.id,dismiss:!0}))}),t),this.message=(t,o)=>this.create({...o,message:t}),this.error=(t,o)=>this.create({...o,message:t,type:"error"}),this.success=(t,o)=>this.create({...o,type:"success",message:t}),this.info=(t,o)=>this.create({...o,type:"info",message:t}),this.warning=(t,o)=>this.create({...o,type:"warning",message:t}),this.loading=(t,o)=>this.create({...o,type:"loading",message:t}),this.promise=(t,o)=>{if(!o)return;let r;o.loading!==void 0&&(r=this.create({...o,promise:t,type:"loading",message:o.loading,description:typeof o.description!="function"?o.description:void 0}));let n=Promise.resolve(t instanceof Function?t():t),a=r!==void 0,s,i=n.then(async c=>{if(s=["resolve",c],Q.isValidElement(c))a=!1,this.create({id:r,type:"default",message:c});else if(F3(c)&&!c.ok){a=!1;let f=typeof o.error=="function"?await o.error(`HTTP error! status: ${c.status}`):o.error,p=typeof o.description=="function"?await o.description(`HTTP error! status: ${c.status}`):o.description,y=typeof f=="object"&&!Q.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:p,...y})}else if(c instanceof Error){a=!1;let f=typeof o.error=="function"?await o.error(c):o.error,p=typeof o.description=="function"?await o.description(c):o.description,y=typeof f=="object"&&!Q.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:p,...y})}else if(o.success!==void 0){a=!1;let f=typeof o.success=="function"?await o.success(c):o.success,p=typeof o.description=="function"?await o.description(c):o.description,y=typeof f=="object"&&!Q.isValidElement(f)?f:{message:f};this.create({id:r,type:"success",description:p,...y})}}).catch(async c=>{if(s=["reject",c],o.error!==void 0){a=!1;let d=typeof o.error=="function"?await o.error(c):o.error,f=typeof o.description=="function"?await o.description(c):o.description,m=typeof d=="object"&&!Q.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:f,...m})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),o.finally==null||o.finally.call(o)}),u=()=>new Promise((c,d)=>i.then(()=>s[0]==="reject"?d(s[1]):c(s[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:u}:Object.assign(r,{unwrap:u})},this.custom=(t,o)=>{let r=o?.id||sw++;return this.create({jsx:t(r),id:r,...o}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},nr=new iw,_3=(e,t)=>{let o=t?.id||sw++;return nr.addToast({title:e,...t,id:o}),o},F3=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",B3=_3,V3=()=>nr.toasts,H3=()=>nr.getActiveToasts(),zl=Object.assign(B3,{success:nr.success,info:nr.info,warning:nr.warning,error:nr.error,custom:nr.custom,message:nr.message,promise:nr.promise,dismiss:nr.dismiss,loading:nr.loading},{getHistory:V3,getToasts:H3});R3("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function th(e){return e.label!==void 0}var U3=3,z3="24px",q3="16px",HM=4e3,W3=356,$3=14,G3=45,j3=200;function En(...e){return e.filter(Boolean).join(" ")}function K3(e){let[t,o]=e.split("-"),r=[];return t&&r.push(t),o&&r.push(o),r}var Y3=e=>{var t,o,r,n,a,s,i,u,c;let{invert:d,toast:f,unstyled:p,interacting:m,setHeights:y,visibleToasts:g,heights:v,index:x,toasts:w,expanded:C,removeToast:S,defaultRichColors:b,closeButton:R,style:P,cancelButtonStyle:M,actionButtonStyle:T,className:_="",descriptionClassName:F="",duration:O,position:N,gap:I,expandByDefault:A,classNames:L,icons:D,closeButtonAriaLabel:k="Close toast"}=e,[E,V]=Q.useState(null),[B,U]=Q.useState(null),[$,G]=Q.useState(!1),[H,q]=Q.useState(!1),[z,j]=Q.useState(!1),[X,K]=Q.useState(!1),[re,ne]=Q.useState(!1),[me,Ce]=Q.useState(0),[Me,We]=Q.useState(0),ye=Q.useRef(f.duration||O||HM),oe=Q.useRef(null),Fe=Q.useRef(null),Ct=x===0,Jo=x+1<=g,Xe=f.type,eo=f.dismissible!==!1,bo=f.className||"",Nr=f.descriptionClassName||"",Io=Q.useMemo(()=>v.findIndex(ae=>ae.toastId===f.id)||0,[v,f.id]),to=Q.useMemo(()=>{var ae;return(ae=f.closeButton)!=null?ae:R},[f.closeButton,R]),oo=Q.useMemo(()=>f.duration||O||HM,[f.duration,O]),ro=Q.useRef(0),po=Q.useRef(0),Be=Q.useRef(0),St=Q.useRef(null),[de,Ae]=N.split("-"),Se=Q.useMemo(()=>v.reduce((ae,Oe,Te)=>Te>=Io?ae:ae+Oe.height,0),[v,Io]),tt=N3(),dt=f.invert||d,Bo=Xe==="loading";po.current=Q.useMemo(()=>Io*I+Se,[Io,Se]),Q.useEffect(()=>{ye.current=oo},[oo]),Q.useEffect(()=>{G(!0)},[]),Q.useEffect(()=>{let ae=Fe.current;if(ae){let Oe=ae.getBoundingClientRect().height;return We(Oe),y(Te=>[{toastId:f.id,height:Oe,position:f.position},...Te]),()=>y(Te=>Te.filter($e=>$e.toastId!==f.id))}},[y,f.id]),Q.useLayoutEffect(()=>{if(!$)return;let ae=Fe.current,Oe=ae.style.height;ae.style.height="auto";let Te=ae.getBoundingClientRect().height;ae.style.height=Oe,We(Te),y($e=>$e.find(et=>et.toastId===f.id)?$e.map(et=>et.toastId===f.id?{...et,height:Te}:et):[{toastId:f.id,height:Te,position:f.position},...$e])},[$,f.title,f.description,y,f.id]);let Ve=Q.useCallback(()=>{q(!0),Ce(po.current),y(ae=>ae.filter(Oe=>Oe.toastId!==f.id)),setTimeout(()=>{S(f)},j3)},[f,S,y,po]);Q.useEffect(()=>{if(f.promise&&Xe==="loading"||f.duration===1/0||f.type==="loading")return;let ae;return C||m||tt?(()=>{if(Be.current<ro.current){let $e=new Date().getTime()-ro.current;ye.current=ye.current-$e}Be.current=new Date().getTime()})():(()=>{ye.current!==1/0&&(ro.current=new Date().getTime(),ae=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),Ve()},ye.current))})(),()=>clearTimeout(ae)},[C,m,f,Xe,tt,Ve]),Q.useEffect(()=>{f.delete&&Ve()},[Ve,f.delete]);function Ot(){var ae;if(D?.loading){var Oe;return Q.createElement("div",{className:En(L?.loader,f==null||(Oe=f.classNames)==null?void 0:Oe.loader,"sonner-loader"),"data-visible":Xe==="loading"},D.loading)}return Q.createElement(E3,{className:En(L?.loader,f==null||(ae=f.classNames)==null?void 0:ae.loader),visible:Xe==="loading"})}let Re=f.icon||D?.[Xe]||L3(Xe);var st,Je;return Q.createElement("li",{tabIndex:0,ref:Fe,className:En(_,bo,L?.toast,f==null||(t=f.classNames)==null?void 0:t.toast,L?.default,L?.[Xe],f==null||(o=f.classNames)==null?void 0:o[Xe]),"data-sonner-toast":"","data-rich-colors":(st=f.richColors)!=null?st:b,"data-styled":!(f.jsx||f.unstyled||p),"data-mounted":$,"data-promise":!!f.promise,"data-swiped":re,"data-removed":H,"data-visible":Jo,"data-y-position":de,"data-x-position":Ae,"data-index":x,"data-front":Ct,"data-swiping":z,"data-dismissible":eo,"data-type":Xe,"data-invert":dt,"data-swipe-out":X,"data-swipe-direction":B,"data-expanded":!!(C||A&&$),style:{"--index":x,"--toasts-before":x,"--z-index":w.length-x,"--offset":`${H?me:po.current}px`,"--initial-height":A?"auto":`${Me}px`,...P,...f.style},onDragEnd:()=>{j(!1),V(null),St.current=null},onPointerDown:ae=>{Bo||!eo||(oe.current=new Date,Ce(po.current),ae.target.setPointerCapture(ae.pointerId),ae.target.tagName!=="BUTTON"&&(j(!0),St.current={x:ae.clientX,y:ae.clientY}))},onPointerUp:()=>{var ae,Oe,Te;if(X||!eo)return;St.current=null;let $e=Number(((ae=Fe.current)==null?void 0:ae.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),mo=Number(((Oe=Fe.current)==null?void 0:Oe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),et=new Date().getTime()-((Te=oe.current)==null?void 0:Te.getTime()),Ne=E==="x"?$e:mo,Vo=Math.abs(Ne)/et;if(Math.abs(Ne)>=G3||Vo>.11){Ce(po.current),f.onDismiss==null||f.onDismiss.call(f,f),U(E==="x"?$e>0?"right":"left":mo>0?"down":"up"),Ve(),K(!0);return}else{var it,ft;(it=Fe.current)==null||it.style.setProperty("--swipe-amount-x","0px"),(ft=Fe.current)==null||ft.style.setProperty("--swipe-amount-y","0px")}ne(!1),j(!1),V(null)},onPointerMove:ae=>{var Oe,Te,$e;if(!St.current||!eo||((Oe=window.getSelection())==null?void 0:Oe.toString().length)>0)return;let et=ae.clientY-St.current.y,Ne=ae.clientX-St.current.x;var Vo;let it=(Vo=e.swipeDirections)!=null?Vo:K3(N);!E&&(Math.abs(Ne)>1||Math.abs(et)>1)&&V(Math.abs(Ne)>Math.abs(et)?"x":"y");let ft={x:0,y:0},wn=Ho=>1/(1.5+Math.abs(Ho)/20);if(E==="y"){if(it.includes("top")||it.includes("bottom"))if(it.includes("top")&&et<0||it.includes("bottom")&&et>0)ft.y=et;else{let Ho=et*wn(et);ft.y=Math.abs(Ho)<Math.abs(et)?Ho:et}}else if(E==="x"&&(it.includes("left")||it.includes("right")))if(it.includes("left")&&Ne<0||it.includes("right")&&Ne>0)ft.x=Ne;else{let Ho=Ne*wn(Ne);ft.x=Math.abs(Ho)<Math.abs(Ne)?Ho:Ne}(Math.abs(ft.x)>0||Math.abs(ft.y)>0)&&ne(!0),(Te=Fe.current)==null||Te.style.setProperty("--swipe-amount-x",`${ft.x}px`),($e=Fe.current)==null||$e.style.setProperty("--swipe-amount-y",`${ft.y}px`)}},to&&!f.jsx&&Xe!=="loading"?Q.createElement("button",{"aria-label":k,"data-disabled":Bo,"data-close-button":!0,onClick:Bo||!eo?()=>{}:()=>{Ve(),f.onDismiss==null||f.onDismiss.call(f,f)},className:En(L?.closeButton,f==null||(r=f.classNames)==null?void 0:r.closeButton)},(Je=D?.close)!=null?Je:k3):null,(Xe||f.icon||f.promise)&&f.icon!==null&&(D?.[Xe]!==null||f.icon)?Q.createElement("div",{"data-icon":"",className:En(L?.icon,f==null||(n=f.classNames)==null?void 0:n.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Ot():null,f.type!=="loading"?Re:null):null,Q.createElement("div",{"data-content":"",className:En(L?.content,f==null||(a=f.classNames)==null?void 0:a.content)},Q.createElement("div",{"data-title":"",className:En(L?.title,f==null||(s=f.classNames)==null?void 0:s.title)},f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title),f.description?Q.createElement("div",{"data-description":"",className:En(F,Nr,L?.description,f==null||(i=f.classNames)==null?void 0:i.description)},typeof f.description=="function"?f.description():f.description):null),Q.isValidElement(f.cancel)?f.cancel:f.cancel&&th(f.cancel)?Q.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||M,onClick:ae=>{th(f.cancel)&&eo&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,ae),Ve())},className:En(L?.cancelButton,f==null||(u=f.classNames)==null?void 0:u.cancelButton)},f.cancel.label):null,Q.isValidElement(f.action)?f.action:f.action&&th(f.action)?Q.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||T,onClick:ae=>{th(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,ae),!ae.defaultPrevented&&Ve())},className:En(L?.actionButton,f==null||(c=f.classNames)==null?void 0:c.actionButton)},f.action.label):null)};function UM(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function X3(e,t){let o={};return[e,t].forEach((r,n)=>{let a=n===1,s=a?"--mobile-offset":"--offset",i=a?q3:z3;function u(c){["top","right","bottom","left"].forEach(d=>{o[`${s}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?u(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?o[`${s}-${c}`]=i:o[`${s}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):u(i)}),o}var zM=Q.forwardRef(function(t,o){let{invert:r,position:n="bottom-right",hotkey:a=["altKey","KeyT"],expand:s,closeButton:i,className:u,offset:c,mobileOffset:d,theme:f="light",richColors:p,duration:m,style:y,visibleToasts:g=U3,toastOptions:v,dir:x=UM(),gap:w=$3,icons:C,containerAriaLabel:S="Notifications"}=t,[b,R]=Q.useState([]),P=Q.useMemo(()=>Array.from(new Set([n].concat(b.filter(B=>B.position).map(B=>B.position)))),[b,n]),[M,T]=Q.useState([]),[_,F]=Q.useState(!1),[O,N]=Q.useState(!1),[I,A]=Q.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),L=Q.useRef(null),D=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),k=Q.useRef(null),E=Q.useRef(!1),V=Q.useCallback(B=>{R(U=>{var $;return($=U.find(G=>G.id===B.id))!=null&&$.delete||nr.dismiss(B.id),U.filter(({id:G})=>G!==B.id)})},[]);return Q.useEffect(()=>nr.subscribe(B=>{if(B.dismiss){requestAnimationFrame(()=>{R(U=>U.map($=>$.id===B.id?{...$,delete:!0}:$))});return}setTimeout(()=>{P3.flushSync(()=>{R(U=>{let $=U.findIndex(G=>G.id===B.id);return $!==-1?[...U.slice(0,$),{...U[$],...B},...U.slice($+1)]:[B,...U]})})})}),[b]),Q.useEffect(()=>{if(f!=="system"){A(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?A("dark"):A("light")),typeof window>"u")return;let B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:U})=>{A(U?"dark":"light")})}catch{B.addListener(({matches:$})=>{try{A($?"dark":"light")}catch(G){console.error(G)}})}},[f]),Q.useEffect(()=>{b.length<=1&&F(!1)},[b]),Q.useEffect(()=>{let B=U=>{var $;if(a.every(q=>U[q]||U.code===q)){var H;F(!0),(H=L.current)==null||H.focus()}U.code==="Escape"&&(document.activeElement===L.current||($=L.current)!=null&&$.contains(document.activeElement))&&F(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[a]),Q.useEffect(()=>{if(L.current)return()=>{k.current&&(k.current.focus({preventScroll:!0}),k.current=null,E.current=!1)}},[L.current]),Q.createElement("section",{ref:o,"aria-label":`${S} ${D}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((B,U)=>{var $;let[G,H]=B.split("-");return b.length?Q.createElement("ol",{key:B,dir:x==="auto"?UM():x,tabIndex:-1,ref:L,className:u,"data-sonner-toaster":!0,"data-sonner-theme":I,"data-y-position":G,"data-lifted":_&&b.length>1&&!s,"data-x-position":H,style:{"--front-toast-height":`${(($=M[0])==null?void 0:$.height)||0}px`,"--width":`${W3}px`,"--gap":`${w}px`,...y,...X3(c,d)},onBlur:q=>{E.current&&!q.currentTarget.contains(q.relatedTarget)&&(E.current=!1,k.current&&(k.current.focus({preventScroll:!0}),k.current=null))},onFocus:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||E.current||(E.current=!0,k.current=q.relatedTarget)},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{O||F(!1)},onDragEnd:()=>F(!1),onPointerDown:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||N(!0)},onPointerUp:()=>N(!1)},b.filter(q=>!q.position&&U===0||q.position===B).map((q,z)=>{var j,X;return Q.createElement(Y3,{key:q.id,icons:C,index:z,toast:q,defaultRichColors:p,duration:(j=v?.duration)!=null?j:m,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:r,visibleToasts:g,closeButton:(X=v?.closeButton)!=null?X:i,interacting:O,position:B,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:V,toasts:b.filter(K=>K.position==q.position),heights:M.filter(K=>K.position==q.position),setHeights:T,expandByDefault:s,gap:w,expanded:_,swipeDirections:t.swipeDirections})})):null}))});l();var oh=Object.create(null),Fc=e=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?oh:globalThis),Ka=new Proxy(oh,{get(e,t){return Fc()[t]??oh[t]},has(e,t){let o=Fc();return t in o||t in oh},set(e,t,o){let r=Fc(!0);return r[t]=o,!0},deleteProperty(e,t){if(!t)return!1;let o=Fc(!0);return delete o[t],!0},ownKeys(){let e=Fc(!0);return Object.keys(e)}}),Q3=typeof process<"u"&&process.env&&"true"||"",Z3=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}]];function J3(){if(globalThis.process?.env)for(let e of Z3){let t=e[1]||e[0];if(globalThis.process?.env[t])return{name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}var WM=J3(),FEe=WM.name;function Xs(e){return e?e!=="false":!1}var lw=globalThis.process?.platform||"",rh=Xs(Ka.CI)||WM.ci!==!1,$M=Xs(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY),nh=typeof window<"u",BEe=Xs(Ka.DEBUG),e5=Q3==="test"||Xs(Ka.TEST);var VEe=Xs(Ka.MINIMAL)||rh||e5||!$M,t5=/^win/i.test(lw),HEe=/^linux/i.test(lw),UEe=/^darwin/i.test(lw),zEe=!Xs(Ka.NO_COLOR)&&(Xs(Ka.FORCE_COLOR)||($M||t5)&&Ka.TERM!=="dumb"||rh),o5=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null,qEe=Number(o5?.split(".")[0])||null,r5=globalThis.process||Object.create(null),qM={versions:{}},WEe=new Proxy(r5,{get(e,t){if(t==="env")return Ka;if(t in e)return e[t];if(t in qM)return qM[t]}}),n5=globalThis.process?.release?.name==="node",a5=!!globalThis.Bun||!!globalThis.process?.versions?.bun,s5=!!globalThis.Deno,i5=!!globalThis.fastly,l5=!!globalThis.Netlify,u5=!!globalThis.EdgeRuntime,c5=globalThis.navigator?.userAgent==="Cloudflare-Workers",d5=[[l5,"netlify"],[u5,"edge-light"],[c5,"workerd"],[i5,"fastly"],[s5,"deno"],[a5,"bun"],[n5,"node"]];function f5(){let e=d5.find(t=>t[0]);if(e)return{name:e[1]}}var p5=f5(),$Ee=p5?.name||"";l();import{jsx as m5}from"react/jsx-runtime";var GM=({...e})=>m5(zM,{className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e});l();import{useEffect as jM,useMemo as KM}from"react";function XM(e){try{let t={light:{},dark:{}},o=e.replace(/@layer\s+base\s*\{|\}$/g,"").trim(),r=o.match(/:root\s*\{([^}]+)\}/),n=o.match(/\.dark\s*\{([^}]+)\}/);return r&&r[1]&&(t.light=YM(r[1])),n&&n[1]&&(t.dark=YM(n[1])),Object.keys(t.light).length===0&&Object.keys(t.dark).length===0?null:t}catch{return null}}function YM(e){let t={},o=/--([\w-]+):\s*([^;]+);?/g,r;for(;(r=o.exec(e))!==null;){let[,n,a]=r;n&&a&&(t[`--${n}`]=a.trim())}return t}function h5(e){let t=document.documentElement;Object.entries(e).forEach(([o,r])=>{t.style.setProperty(o,r)})}function g5(e){let t=document.querySelector(".ps");t&&(e?t.classList.add("dark"):t.classList.remove("dark"))}function QM(e,t){let o=KM(()=>e?typeof e=="string"?XM(e):e:null,[e]),r=KM(()=>o?o[t?"dark":"light"]||{}:null,[o,t]);return jM(()=>{r&&h5(r)},[r]),jM(()=>{g5(t??!1)},[t]),{parsedTheme:o,currentThemeVariables:r,hasCustomTheme:!!o}}l();l();l();import{createContext as y5,createElement as x5,useContext as v5}from"react";var w5={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function Vc(e){return`[nuqs] ${w5[e]}
18
- See https://err.47ng.com/NUQS-${e}`}var uw=S5();function on(e,...t){if(!uw)return;let o=C5(e,...t);performance.mark(o);try{console.log(e,...t)}catch{console.log(o)}}function ZM(e,...t){uw&&console.warn(e,...t)}function C5(e,...t){return e.replace(/%[sfdO]/g,o=>{let r=t.shift();return o==="%O"&&r?JSON.stringify(r).replace(/"([^"]+)":/g,"$1:"):String(r)})}function S5(){try{if(typeof localStorage>"u")return!1;let t="nuqs-localStorage-test";localStorage.setItem(t,t);let o=localStorage.getItem(t)===t;if(localStorage.removeItem(t),!o)return!1}catch(t){return console.error("[nuqs]: debug mode is disabled (localStorage unavailable).",t),!1}return(localStorage.getItem("debug")??"").includes("nuqs")}var Bc=y5({useAdapter(){throw new Error(Vc(404))}});Bc.displayName="NuqsAdapterContext";uw&&typeof window<"u"&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==Bc&&console.error(Vc(303)),window.__NuqsAdapterContext=Bc);function cw(e){return({children:t,...o})=>x5(Bc.Provider,{...o,value:{useAdapter:e}},t)}function JM(){let e=v5(Bc);if(!("useAdapter"in e))throw new Error(Vc(404));return e.useAdapter()}import{useEffect as I5,useState as R5}from"react";function P5(e,t){let o;return(...r)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...r),t)}}function L5(){let e=typeof window<"u"?window.location.hash.slice(1):"",[t,o]=R5(new URLSearchParams(e));function r(a,{history:s}){let{pathname:i,search:u}=window.location,c=a.toString(),d=`${i}${u}#${c}`;s==="push"?window.history.pushState(null,"",d):window.history.replaceState(null,"",d),o(a)}function n(){if(typeof window>"u")return new URLSearchParams;let a=window.location.hash.slice(1);return new URLSearchParams(a)}return I5(()=>{let a=P5(()=>{let s=window.location.hash.slice(1);o(new URLSearchParams(s))},50);return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[]),{searchParams:t,updateUrl:r,getSearchParamsSnapshot:n}}var eE=cw(L5);import{jsx as ah,jsxs as O5}from"react/jsx-runtime";var tE=new Hv,oE=M5(void 0);function rE(e){let{children:t,onEvent:o,adapter:r,theme:n}=e,[a,s]=Hc(!1),[i,u]=Hc(!0),[c,d]=Hc([]),[f,p]=Hc(()=>typeof document<"u"?document.documentElement.classList.contains("dark"):!1);dw(()=>{p(document.documentElement.classList.contains("dark"))},[]);let[m]=Hc(fw.default.generate()),{hasCustomTheme:y}=QM(n,f);dw(()=>{tE.resetQueries({exact:!1,queryKey:[]})},[r]),dw(()=>{let w=new MutationObserver(C=>{C.forEach(S=>{if(S.type==="attributes"&&S.attributeName==="class"){let b=document.documentElement.classList.contains("dark");p(b)}})});return w.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>w.disconnect()},[]);let g=w=>{let{name:C,payload:S}=w;if(C==="studio_operation_error"){if(S.error.name==="AbortError")return;zl.error(`"${S.operation}" operation failed`,{action:{label:"Console",onClick:()=>{window.location.hash=pw({viewParam:"console"})}}})}let b=fw.default.generate(),R=new Date().toISOString(),P={...w,eventId:b,timestamp:R};(P.name==="studio_operation_success"||P.name==="studio_operation_error")&&d(M=>{let T=[...M,P];return T.length>100?T.slice(0,100):T}),o?.(P),C==="studio_launched"&&nh&&!rh&&!T5()&&!A5()&&BL({additionalData:{eventPayload:S,variant:"licensed"},command:C,eventId:b,product:"prisma-studio-embedded",signature:m,skipUpdateCheck:!0,timestamp:new Date(R),version:"0.5.2"}).catch(M=>{console.error(M)})},v=()=>s(w=>!w),x=()=>u(w=>!w);return O5(Gv,{client:tE,children:[ah(GM,{}),ah(eE,{children:ah(oE.Provider,{value:{adapter:r,isFullscreen:a,onEvent:g,operationEvents:c,toggleFullscreen:v,isNavigationOpen:i,toggleNavigation:x,isDarkMode:f,hasCustomTheme:y},children:ah(nE,{children:t})})})]})}function ao(){let e=E5(oE);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}function T5(){return D5()&&"__PVCE__"in window&&window.__PVCE__===!0}function D5(){return nh&&"acquireVsCodeApi"in window&&typeof window.acquireVsCodeApi=="function"}function A5(){if(!nh)return!1;let{hostname:e}=window.location;return"__PDPCP__"in window&&window.__PDPCP__===!0||e.includes("console.prisma.io")||e.includes("datacdn.workers.dev")}l();l();l();function sh(e,t,o){try{return e(t)}catch(r){return ZM("[nuqs] Error while parsing value `%s`: %O"+(o?" (for key `%s`)":""),t,r,o),null}}function k5(){if(typeof window>"u"||!!!window.GestureEvent)return 50;try{let t=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(t[1])>=17?120:320}catch{return 320}}var ql=k5(),zc=new Map,br={history:"replace",scroll:!1,shallow:!0,throttleMs:ql},mw=new Set,aE=0,Uc=null;function sE(e){return zc.get(e)}function N5(){zc.clear(),mw.clear(),br.history="replace",br.scroll=!1,br.shallow=!0,br.throttleMs=ql}function iE(e,t,o,r){let n=t===null?null:o(t);return on("[nuqs queue] Enqueueing %s=%s %O",e,n,r),zc.set(e,n),r.history==="push"&&(br.history="push"),r.scroll&&(br.scroll=!0),r.shallow===!1&&(br.shallow=!1),r.startTransition&&mw.add(r.startTransition),br.throttleMs=Math.max(r.throttleMs??ql,Number.isFinite(br.throttleMs)?br.throttleMs:0),n}function _5(){return new URLSearchParams(location.search)}function lE({getSearchParamsSnapshot:e=_5,updateUrl:t,rateLimitFactor:o=1}){return Uc===null&&(Uc=new Promise((r,n)=>{if(!Number.isFinite(br.throttleMs)){on("[nuqs queue] Skipping flush due to throttleMs=Infinity"),r(e()),setTimeout(()=>{Uc=null},0);return}function a(){aE=performance.now();let[i,u]=F5({updateUrl:t,getSearchParamsSnapshot:e});u===null?r(i):n(i),Uc=null}function s(){let u=performance.now()-aE,c=br.throttleMs,d=o*Math.max(0,Math.min(c,c-u));on("[nuqs queue] Scheduling flush in %f ms. Throttled at %f ms",d,c),d===0?a():setTimeout(a,d)}setTimeout(s,0)})),Uc}function F5({updateUrl:e,getSearchParamsSnapshot:t}){let o=t();if(zc.size===0)return[o,null];let r=Array.from(zc.entries()),n={...br},a=Array.from(mw);N5(),on("[nuqs queue] Flushing queue %O with options %O",r,n);for(let[s,i]of r)i===null?o.delete(s):o.set(s,i);try{return B5(a,()=>{e(o,{history:n.history,scroll:n.scroll,shallow:n.shallow})}),[o,null]}catch(s){return console.error(Vc(429),r.map(([i])=>i).join(),s),[o,s]}}function B5(e,t){let o=r=>{if(r===e.length)return t();let n=e[r];if(!n)throw new Error("Invalid transition function");n(()=>o(r+1))};o(0)}import{useRef as cE,useState as V5,useEffect as dE,useCallback as H5,useMemo as kTe}from"react";l();function uE(e){return{all:e=e||new Map,on:function(t,o){var r=e.get(t);r?r.push(o):e.set(t,[o])},off:function(t,o){var r=e.get(t);r&&(o?r.splice(r.indexOf(o)>>>0,1):e.set(t,[]))},emit:function(t,o){var r=e.get(t);r&&r.slice().map(function(n){n(o)}),(r=e.get("*"))&&r.slice().map(function(n){n(t,o)})}}}function la(e){function t(o){if(typeof o>"u")return null;let r="";if(Array.isArray(o)){if(o[0]===void 0)return null;r=o[0]}return typeof o=="string"&&(r=o),sh(e.parse,r)}return{eq:(o,r)=>o===r,...e,parseServerSide:t,withDefault(o){return{...this,defaultValue:o,parseServerSide(r){return t(r)??o}}},withOptions(o){return{...this,...o}}}}var _Te=la({parse:e=>e,serialize:e=>`${e}`}),fE=la({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:t},serialize:e=>Math.round(e).toFixed()}),FTe=la({parse:e=>{let t=fE.parse(e);return t===null?null:t-1},serialize:e=>fE.serialize(e+1)}),BTe=la({parse:e=>{let t=parseInt(e,16);return Number.isNaN(t)?null:t},serialize:e=>{let t=Math.round(e).toString(16);return t.padStart(t.length+t.length%2,"0")}}),VTe=la({parse:e=>{let t=parseFloat(e);return Number.isNaN(t)?null:t},serialize:e=>e.toString()}),HTe=la({parse:e=>e==="true",serialize:e=>e?"true":"false"});function gw(e,t){return e.valueOf()===t.valueOf()}var UTe=la({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:new Date(t)},serialize:e=>e.valueOf().toString(),eq:gw}),zTe=la({parse:e=>{let t=new Date(e);return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString(),eq:gw}),qTe=la({parse:e=>{let t=new Date(e.slice(0,10));return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString().slice(0,10),eq:gw});var hw=uE();function pE(e,{history:t="replace",shallow:o=!0,scroll:r=!1,throttleMs:n=ql,parse:a=f=>f,serialize:s=String,eq:i=(f,p)=>f===p,defaultValue:u=void 0,clearOnDefault:c=!0,startTransition:d}={history:"replace",scroll:!1,shallow:!0,throttleMs:ql,parse:f=>f,serialize:String,eq:(f,p)=>f===p,clearOnDefault:!0,defaultValue:void 0}){let f=JM(),p=f.searchParams,m=cE(p?.get(e)??null),[y,g]=V5(()=>{let w=sE(e),C=w===void 0?p?.get(e)??null:w;return C===null?null:sh(a,C,e)}),v=cE(y);on("[nuqs `%s`] render - state: %O, iSP: %s",e,y,p?.get(e)??null),dE(()=>{let w=p?.get(e)??null;if(w===m.current)return;let C=w===null?null:sh(a,w,e);on("[nuqs `%s`] syncFromUseSearchParams %O",e,C),v.current=C,m.current=w,g(C)},[p?.get(e),e]),dE(()=>{function w({state:C,query:S}){on("[nuqs `%s`] updateInternalState %O",e,C),v.current=C,m.current=S,g(C)}return on("[nuqs `%s`] subscribing to sync",e),hw.on(e,w),()=>{on("[nuqs `%s`] unsubscribing from sync",e),hw.off(e,w)}},[e]);let x=H5((w,C={})=>{let S=U5(w)?w(v.current??u??null):w;(C.clearOnDefault??c)&&S!==null&&u!==void 0&&i(S,u)&&(S=null);let b=iE(e,S,s,{history:C.history??t,shallow:C.shallow??o,scroll:C.scroll??r,throttleMs:C.throttleMs??n,startTransition:C.startTransition??d});return hw.emit(e,{state:S,query:b}),lE(f)},[e,t,o,r,n,d,f.updateUrl,f.getSearchParamsSnapshot,f.rateLimitFactor]);return[y??u??null,x]}function U5(e){return typeof e=="function"}var KTe=Symbol("BRAND_SYMBOL");function Ya(e,t){return pE(e,t)}l();var hE=Cn(_c(),1);import{useEffect as z5,useMemo as mE,useState as q5}from"react";var gE={kind:"FilterGroup",filters:[],after:"and",id:hE.default.generate()},yE=e=>{let t=0;for(let o of e.filters)o.kind==="ColumnFilter"?o.column.trim()&&t++:o.kind==="FilterGroup"&&(t+=yE(o));return t};function xE(){let{filterParam:e,setFilterParam:t}=Ge(),o=mE(()=>JSON.parse(e),[e]),r=i=>void t(JSON.stringify(i)),[n,a]=q5(o);z5(()=>{a(o)},[o]);let s=mE(()=>yE(n),[n]);return{appliedFilter:o,setAppliedFilter:r,editingFilter:n,setEditingFilter:a,totalEditingFilters:s}}l();var vE=-1;function Tn(){let{adapter:e,onEvent:t}=ao();return Tc({initialData:{schemas:{[e.defaultSchema||"db"]:{name:e.defaultSchema||"db",tables:{}}},timezone:"UTC",filterOperators:[],query:{parameters:[],sql:""}},initialDataUpdatedAt:vE,queryFn:async({signal:o})=>{let[r,n]=await e.introspect({abortSignal:o});if(r)throw t({name:"studio_operation_error",payload:{operation:"introspect",query:r.query,error:r}}),r;t({name:"studio_operation_success",payload:{operation:"introspect",query:n.query,error:void 0}});let a=Object.values(n.schemas).reduce((s,i)=>s+Object.keys(i.tables).length,0);return t({name:"studio_launched",payload:{tableCount:a}}),n},queryKey:["introspection"],staleTime:o=>o.state.dataUpdatedAt===vE?0:1/0})}import{jsx as K5}from"react/jsx-runtime";function pw(e){return`#${Object.entries(e).map(([o,r])=>{let n=o.endsWith("Param")?o.slice(0,-5):o;return`${encodeURIComponent(n)}=${encodeURIComponent(r)}`}).join("&")}`}function G5(e){let{adapter:t,introspection:o}=e,{schemas:r}=o,{defaultSchema:n}=t,a=n??Object.keys(r)[0]??"public",s=Object.keys(r[a]?.tables??{})[0]??"",i=JSON.stringify(gE);return{schema:a,table:s,filter:i,pageIndex:"0",pageSize:"25",view:"table"}}function j5(){let{adapter:e}=ao(),{data:t,isFetching:o}=Tn(),{schemas:r}=t,n=wE(()=>G5({adapter:e,introspection:t}),[e,t]),[a,s]=Ya("filter",{defaultValue:n.filter}),[i,u]=Ya("pageIndex",{defaultValue:n.pageIndex}),[c,d]=Ya("pageSize",{defaultValue:n.pageSize}),[f,p]=Ya("schema",{defaultValue:n.schema}),[m,y]=Ya("sort"),[g,v]=Ya("table",{defaultValue:n.table}),[x,w]=Ya("view",{defaultValue:n.view}),C=f?r[f]:void 0,S=C?C.tables:void 0,b=S&&g?S[g]:void 0;return{metadata:wE(()=>({activeSchema:C,activeTables:S,activeTable:b,isFetching:o}),[C,S,b,o]),createUrl:pw,filterParam:a,pageIndexParam:i,pageSizeParam:c,schemaParam:f,sortParam:m,tableParam:g,viewParam:x,setFilterParam:s,setPageIndexParam:u,setPageSizeParam:d,setSchemaParam:p,setSortParam:y,setTableParam:v,setViewParam:w}}var CE=W5(void 0);function nE({children:e}){let t=j5();return K5(CE.Provider,{value:t,children:e})}function Ge(){let e=$5(CE);if(e===void 0)throw new Error("useNavigationContext must be used within a NavigationContextProvider");return e}l();l();function SE(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=SE(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function bE(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=SE(e))&&(r&&(r+=" "),r+=t);return r}l();var vw="-",Y5=e=>{let t=Q5(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let i=s.split(vw);return i[0]===""&&i.length!==1&&i.shift(),ME(i,t)||X5(s)},getConflictingClassGroupIds:(s,i)=>{let u=o[s]||[];return i&&r[s]?[...u,...r[s]]:u}}},ME=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?ME(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(vw);return t.validators.find(({validator:s})=>s(a))?.classGroupId},IE=/^\[(.+)\]$/,X5=e=>{if(IE.test(e)){let t=IE.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Q5=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return J5(Object.entries(e.classGroups),o).forEach(([a,s])=>{xw(s,r,a,t)}),r},xw=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:RE(t,n);a.classGroupId=o;return}if(typeof n=="function"){if(Z5(n)){xw(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([a,s])=>{xw(s,RE(t,a),o,r)})})},RE=(e,t)=>{let o=e;return t.split(vw).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Z5=e=>e.isThemeGetter,J5=(e,t)=>t?e.map(([o,r])=>{let n=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,i])=>[t+s,i])):a);return[o,n]}):e,eG=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(a,s)=>{o.set(a,s),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let s=o.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return n(a,s),s},set(a,s){o.has(a)?o.set(a,s):n(a,s)}}},EE="!",tG=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],a=t.length,s=i=>{let u=[],c=0,d=0,f;for(let v=0;v<i.length;v++){let x=i[v];if(c===0){if(x===n&&(r||i.slice(v,v+a)===t)){u.push(i.slice(d,v)),d=v+a;continue}if(x==="/"){f=v;continue}}x==="["?c++:x==="]"&&c--}let p=u.length===0?i:i.substring(d),m=p.startsWith(EE),y=m?p.substring(1):p,g=f&&f>d?f-d:void 0;return{modifiers:u,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:g}};return o?i=>o({className:i,parseClassName:s}):s},oG=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},rG=e=>({cache:eG(e.cacheSize),parseClassName:tG(e),...Y5(e)}),nG=/\s+/,aG=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,a=[],s=e.trim().split(nG),i="";for(let u=s.length-1;u>=0;u-=1){let c=s[u],{modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=o(c),y=!!m,g=r(y?p.substring(0,m):p);if(!g){if(!y){i=c+(i.length>0?" "+i:i);continue}if(g=r(p),!g){i=c+(i.length>0?" "+i:i);continue}y=!1}let v=oG(d).join(":"),x=f?v+EE:v,w=x+g;if(a.includes(w))continue;a.push(w);let C=n(g,y);for(let S=0;S<C.length;++S){let b=C[S];a.push(x+b)}i=c+(i.length>0?" "+i:i)}return i};function sG(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=TE(t))&&(r&&(r+=" "),r+=o);return r}var TE=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=TE(e[r]))&&(o&&(o+=" "),o+=t);return o};function PE(e,...t){let o,r,n,a=s;function s(u){let c=t.reduce((d,f)=>f(d),e());return o=rG(c),r=o.cache.get,n=o.cache.set,a=i,i(u)}function i(u){let c=r(u);if(c)return c;let d=aG(u,o);return n(u,d),d}return function(){return a(sG.apply(null,arguments))}}var nt=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},DE=/^\[(?:([a-z-]+):)?(.+)\]$/i,iG=/^\d+\/\d+$/,lG=new Set(["px","full","screen"]),uG=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cG=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,dG=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,fG=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pG=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ua=e=>Wl(e)||lG.has(e)||iG.test(e),Xa=e=>$l(e,"length",CG),Wl=e=>!!e&&!Number.isNaN(Number(e)),yw=e=>$l(e,"number",Wl),qc=e=>!!e&&Number.isInteger(Number(e)),mG=e=>e.endsWith("%")&&Wl(e.slice(0,-1)),we=e=>DE.test(e),Qa=e=>uG.test(e),hG=new Set(["length","size","percentage"]),gG=e=>$l(e,hG,AE),yG=e=>$l(e,"position",AE),xG=new Set(["image","url"]),vG=e=>$l(e,xG,bG),wG=e=>$l(e,"",SG),Wc=()=>!0,$l=(e,t,o)=>{let r=DE.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},CG=e=>cG.test(e)&&!dG.test(e),AE=()=>!1,SG=e=>fG.test(e),bG=e=>pG.test(e);var LE=()=>{let e=nt("colors"),t=nt("spacing"),o=nt("blur"),r=nt("brightness"),n=nt("borderColor"),a=nt("borderRadius"),s=nt("borderSpacing"),i=nt("borderWidth"),u=nt("contrast"),c=nt("grayscale"),d=nt("hueRotate"),f=nt("invert"),p=nt("gap"),m=nt("gradientColorStops"),y=nt("gradientColorStopPositions"),g=nt("inset"),v=nt("margin"),x=nt("opacity"),w=nt("padding"),C=nt("saturate"),S=nt("scale"),b=nt("sepia"),R=nt("skew"),P=nt("space"),M=nt("translate"),T=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",we,t],O=()=>[we,t],N=()=>["",ua,Xa],I=()=>["auto",Wl,we],A=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],E=()=>["","0",we],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[Wl,we];return{cacheSize:500,separator:":",theme:{colors:[Wc],spacing:[ua,Xa],blur:["none","",Qa,we],brightness:B(),borderColor:[e],borderRadius:["none","","full",Qa,we],borderSpacing:O(),borderWidth:N(),contrast:B(),grayscale:E(),hueRotate:B(),invert:E(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[mG,Xa],inset:F(),margin:F(),opacity:B(),padding:O(),saturate:B(),scale:B(),sepia:E(),skew:B(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",we]}],container:["container"],columns:[{columns:[Qa]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...A(),we]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",qc,we]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",we]}],grow:[{grow:E()}],shrink:[{shrink:E()}],order:[{order:["first","last","none",qc,we]}],"grid-cols":[{"grid-cols":[Wc]}],"col-start-end":[{col:["auto",{span:["full",qc,we]},we]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Wc]}],"row-start-end":[{row:["auto",{span:[qc,we]},we]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",we]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",we]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",we,t]}],"min-w":[{"min-w":[we,t,"min","max","fit"]}],"max-w":[{"max-w":[we,t,"none","full","min","max","fit","prose",{screen:[Qa]},Qa]}],h:[{h:[we,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[we,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[we,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[we,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Qa,Xa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yw]}],"font-family":[{font:[Wc]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",we]}],"line-clamp":[{"line-clamp":["none",Wl,yw]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ua,we]}],"list-image":[{"list-image":["none",we]}],"list-style-type":[{list:["none","disc","decimal",we]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ua,Xa]}],"underline-offset":[{"underline-offset":["auto",ua,we]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...A(),yG]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gG]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vG]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:L()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[ua,we]}],"outline-w":[{outline:[ua,Xa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[ua,Xa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Qa,wG]}],"shadow-color":[{shadow:[Wc]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...D(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Qa,we]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[C]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",we]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",we]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",we]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[qc,we]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",we]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ua,Xa,yw]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},IG=(e,{cacheSize:t,prefix:o,separator:r,experimentalParseClassName:n,extend:a={},override:s={}})=>{$c(e,"cacheSize",t),$c(e,"prefix",o),$c(e,"separator",r),$c(e,"experimentalParseClassName",n);for(let i in s)RG(e[i],s[i]);for(let i in a)PG(e[i],a[i]);return e},$c=(e,t,o)=>{o!==void 0&&(e[t]=o)},RG=(e,t)=>{if(t)for(let o in t)$c(e,o,t[o])},PG=(e,t)=>{if(t)for(let o in t){let r=t[o];r!==void 0&&(e[o]=(e[o]||[]).concat(r))}},OE=(e,...t)=>typeof e=="function"?PE(LE,e,...t):PE(()=>IG(LE(),e),...t);var LG=OE({});function W(...e){return LG(bE(e))}l();l();import*as Wt from"react";l();import*as NE from"react";function kE(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qs(...e){return t=>{let o=!1,r=e.map(n=>{let a=kE(n,t);return!o&&typeof a=="function"&&(o=!0),a});if(o)return()=>{for(let n=0;n<r.length;n++){let a=r[n];typeof a=="function"?a():kE(e[n],null)}}}}function Le(...e){return NE.useCallback(Qs(...e),e)}import{Fragment as MG,jsx as ww}from"react/jsx-runtime";var Do=Wt.forwardRef((e,t)=>{let{children:o,...r}=e,n=Wt.Children.toArray(o),a=n.find(TG);if(a){let s=a.props.children,i=n.map(u=>u===a?Wt.Children.count(s)>1?Wt.Children.only(null):Wt.isValidElement(s)?s.props.children:null:u);return ww(Cw,{...r,ref:t,children:Wt.isValidElement(s)?Wt.cloneElement(s,void 0,i):null})}return ww(Cw,{...r,ref:t,children:o})});Do.displayName="Slot";var Cw=Wt.forwardRef((e,t)=>{let{children:o,...r}=e;if(Wt.isValidElement(o)){let n=AG(o),a=DG(r,o.props);return o.type!==Wt.Fragment&&(a.ref=t?Qs(t,n):n),Wt.cloneElement(o,a)}return Wt.Children.count(o)>1?Wt.Children.only(null):null});Cw.displayName="SlotClone";var EG=({children:e})=>ww(MG,{children:e});function TG(e){return Wt.isValidElement(e)&&e.type===EG}function DG(e,t){let o={...t};for(let r in t){let n=e[r],a=t[r];/^on[A-Z]/.test(r)?n&&a?o[r]=(...i)=>{a(...i),n(...i)}:n&&(o[r]=n):r==="style"?o[r]={...n,...a}:r==="className"&&(o[r]=[n,a].filter(Boolean).join(" "))}return{...e,...o}}function AG(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}l();l();import{forwardRef as kG,createElement as NG}from"react";l();var _E=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ih=(...e)=>e.filter((t,o,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===o).join(" ").trim();l();import{forwardRef as OG,createElement as BE}from"react";l();var FE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var VE=OG(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:n="",children:a,iconNode:s,...i},u)=>BE("svg",{ref:u,...FE,width:t,height:t,stroke:e,strokeWidth:r?Number(o)*24/Number(t):o,className:ih("lucide",n),...i},[...s.map(([c,d])=>BE(c,d)),...Array.isArray(a)?a:[a]]));var te=(e,t)=>{let o=kG(({className:r,...n},a)=>NG(VE,{ref:a,iconNode:t,className:ih(`lucide-${_E(e)}`,r),...n}));return o.displayName=`${e}`,o};l();var Za=te("ArrowDownWideNarrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]);l();var Gc=te("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);l();var jc=te("ArrowUpWideNarrow",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]]);l();var rn=te("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);l();var Vr=te("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);l();var Kc=te("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);l();var Ir=te("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);l();var Yc=te("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);l();var Xc=te("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);l();var Qc=te("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);l();var Dn=te("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);l();var Ja=te("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);l();var es=te("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);l();var Zs=te("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);l();var Js=te("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);l();var Zc=te("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]);l();var Jc=te("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);l();var ed=te("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);l();var td=te("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);l();var ca=te("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);l();var od=te("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);l();var rd=te("Minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);l();var nd=te("MoveDown",[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);l();var ad=te("MoveUp",[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);l();var ts=te("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);l();var os=te("PanelLeftOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);l();var sd=te("PinOff",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]);l();var id=te("Pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);l();var ld=te("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);l();var rs=te("SquareArrowRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}]]);l();var ud=te("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);l();var cd=te("Table2",[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]]);l();var ns=te("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);l();var as=te("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);l();l();import*as J from"react";import*as nC from"react-dom";l();function Sw(e,[t,o]){return Math.min(o,Math.max(t,e))}l();function ee(e,t,{checkForDefaultPrevented:o=!0}={}){return function(n){if(e?.(n),o===!1||!n.defaultPrevented)return t?.(n)}}l();import ei from"react";l();import*as da from"react";import{jsx as _G}from"react/jsx-runtime";function so(e,t=[]){let o=[];function r(a,s){let i=da.createContext(s),u=o.length;o=[...o,s];let c=f=>{let{scope:p,children:m,...y}=f,g=p?.[e]?.[u]||i,v=da.useMemo(()=>y,Object.values(y));return _G(g.Provider,{value:v,children:m})};c.displayName=a+"Provider";function d(f,p){let m=p?.[e]?.[u]||i,y=da.useContext(m);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[c,d]}let n=()=>{let a=o.map(s=>da.createContext(s));return function(i){let u=i?.[e]||a;return da.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return n.scopeName=e,[r,FG(n,...t)]}function FG(...e){let t=e[0];if(e.length===1)return t;let o=()=>{let r=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(a){let s=r.reduce((i,{useScope:u,scopeName:c})=>{let f=u(a)[`__scope${c}`];return{...i,...f}},{});return da.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return o.scopeName=t.scopeName,o}import{jsx as bw}from"react/jsx-runtime";function Gl(e){let t=e+"CollectionProvider",[o,r]=so(t),[n,a]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{let{scope:y,children:g}=m,v=ei.useRef(null),x=ei.useRef(new Map).current;return bw(n,{scope:y,itemMap:x,collectionRef:v,children:g})};s.displayName=t;let i=e+"CollectionSlot",u=ei.forwardRef((m,y)=>{let{scope:g,children:v}=m,x=a(i,g),w=Le(y,x.collectionRef);return bw(Do,{ref:w,children:v})});u.displayName=i;let c=e+"CollectionItemSlot",d="data-radix-collection-item",f=ei.forwardRef((m,y)=>{let{scope:g,children:v,...x}=m,w=ei.useRef(null),C=Le(y,w),S=a(c,g);return ei.useEffect(()=>(S.itemMap.set(w,{ref:w,...x}),()=>void S.itemMap.delete(w))),bw(Do,{[d]:"",ref:C,children:v})});f.displayName=c;function p(m){let y=a(e+"CollectionConsumer",m);return ei.useCallback(()=>{let v=y.collectionRef.current;if(!v)return[];let x=Array.from(v.querySelectorAll(`[${d}]`));return Array.from(y.itemMap.values()).sort((S,b)=>x.indexOf(S.ref.current)-x.indexOf(b.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:u,ItemSlot:f},p,r]}l();import*as lh from"react";import{jsx as kOe}from"react/jsx-runtime";var BG=lh.createContext(void 0);function jl(e){let t=lh.useContext(BG);return e||t||"ltr"}l();import*as mt from"react";l();import*as HE from"react";import*as UE from"react-dom";import{jsx as VG}from"react/jsx-runtime";var HG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],he=HG.reduce((e,t)=>{let o=HE.forwardRef((r,n)=>{let{asChild:a,...s}=r,i=a?Do:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),VG(i,{...s,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function uh(e,t){e&&UE.flushSync(()=>e.dispatchEvent(t))}l();import*as Kl from"react";function pt(e){let t=Kl.useRef(e);return Kl.useEffect(()=>{t.current=e}),Kl.useMemo(()=>(...o)=>t.current?.(...o),[])}l();import*as zE from"react";function qE(e,t=globalThis?.document){let o=pt(e);zE.useEffect(()=>{let r=n=>{n.key==="Escape"&&o(n)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[o,t])}import{jsx as GE}from"react/jsx-runtime";var UG="DismissableLayer",Iw="dismissableLayer.update",zG="dismissableLayer.pointerDownOutside",qG="dismissableLayer.focusOutside",WE,jE=mt.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ti=mt.forwardRef((e,t)=>{let{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:n,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...u}=e,c=mt.useContext(jE),[d,f]=mt.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=mt.useState({}),y=Le(t,P=>f(P)),g=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(v),w=d?g.indexOf(d):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,S=w>=x,b=GG(P=>{let M=P.target,T=[...c.branches].some(_=>_.contains(M));!S||T||(n?.(P),s?.(P),P.defaultPrevented||i?.())},p),R=jG(P=>{let M=P.target;[...c.branches].some(_=>_.contains(M))||(a?.(P),s?.(P),P.defaultPrevented||i?.())},p);return qE(P=>{w===c.layers.size-1&&(r?.(P),!P.defaultPrevented&&i&&(P.preventDefault(),i()))},p),mt.useEffect(()=>{if(d)return o&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(WE=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),$E(),()=>{o&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=WE)}},[d,p,o,c]),mt.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),$E())},[d,c]),mt.useEffect(()=>{let P=()=>m({});return document.addEventListener(Iw,P),()=>document.removeEventListener(Iw,P)},[]),GE(he.div,{...u,ref:y,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:ee(e.onFocusCapture,R.onFocusCapture),onBlurCapture:ee(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:ee(e.onPointerDownCapture,b.onPointerDownCapture)})});ti.displayName=UG;var WG="DismissableLayerBranch",$G=mt.forwardRef((e,t)=>{let o=mt.useContext(jE),r=mt.useRef(null),n=Le(t,r);return mt.useEffect(()=>{let a=r.current;if(a)return o.branches.add(a),()=>{o.branches.delete(a)}},[o.branches]),GE(he.div,{...e,ref:n})});$G.displayName=WG;function GG(e,t=globalThis?.document){let o=pt(e),r=mt.useRef(!1),n=mt.useRef(()=>{});return mt.useEffect(()=>{let a=i=>{if(i.target&&!r.current){let c=function(){KE(zG,o,d,{discrete:!0})};var u=c;let d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",n.current),n.current=c,t.addEventListener("click",n.current,{once:!0})):c()}else t.removeEventListener("click",n.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",n.current)}},[t,o]),{onPointerDownCapture:()=>r.current=!0}}function jG(e,t=globalThis?.document){let o=pt(e),r=mt.useRef(!1);return mt.useEffect(()=>{let n=a=>{a.target&&!r.current&&KE(qG,o,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",n),()=>t.removeEventListener("focusin",n)},[t,o]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function $E(){let e=new CustomEvent(Iw);document.dispatchEvent(e)}function KE(e,t,o,{discrete:r}){let n=o.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:o});t&&n.addEventListener(e,t,{once:!0}),r?uh(n,a):n.dispatchEvent(a)}l();import*as XE from"react";var Rw=0;function Yl(){XE.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??YE()),document.body.insertAdjacentElement("beforeend",e[1]??YE()),Rw++,()=>{Rw===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Rw--}},[])}function YE(){let 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}l();import*as Hr from"react";import{jsx as KG}from"react/jsx-runtime";var Pw="focusScope.autoFocusOnMount",Lw="focusScope.autoFocusOnUnmount",QE={bubbles:!1,cancelable:!0},YG="FocusScope",oi=Hr.forwardRef((e,t)=>{let{loop:o=!1,trapped:r=!1,onMountAutoFocus:n,onUnmountAutoFocus:a,...s}=e,[i,u]=Hr.useState(null),c=pt(n),d=pt(a),f=Hr.useRef(null),p=Le(t,g=>u(g)),m=Hr.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Hr.useEffect(()=>{if(r){let w=function(R){if(m.paused||!i)return;let P=R.target;i.contains(P)?f.current=P:ss(f.current,{select:!0})},C=function(R){if(m.paused||!i)return;let P=R.relatedTarget;P!==null&&(i.contains(P)||ss(f.current,{select:!0}))},S=function(R){if(document.activeElement===document.body)for(let M of R)M.removedNodes.length>0&&ss(i)};var g=w,v=C,x=S;document.addEventListener("focusin",w),document.addEventListener("focusout",C);let b=new MutationObserver(S);return i&&b.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",C),b.disconnect()}}},[r,i,m.paused]),Hr.useEffect(()=>{if(i){JE.add(m);let g=document.activeElement;if(!i.contains(g)){let x=new CustomEvent(Pw,QE);i.addEventListener(Pw,c),i.dispatchEvent(x),x.defaultPrevented||(XG(t4(tT(i)),{select:!0}),document.activeElement===g&&ss(i))}return()=>{i.removeEventListener(Pw,c),setTimeout(()=>{let x=new CustomEvent(Lw,QE);i.addEventListener(Lw,d),i.dispatchEvent(x),x.defaultPrevented||ss(g??document.body,{select:!0}),i.removeEventListener(Lw,d),JE.remove(m)},0)}}},[i,c,d,m]);let y=Hr.useCallback(g=>{if(!o&&!r||m.paused)return;let v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,x=document.activeElement;if(v&&x){let w=g.currentTarget,[C,S]=QG(w);C&&S?!g.shiftKey&&x===S?(g.preventDefault(),o&&ss(C,{select:!0})):g.shiftKey&&x===C&&(g.preventDefault(),o&&ss(S,{select:!0})):x===w&&g.preventDefault()}},[o,r,m.paused]);return KG(he.div,{tabIndex:-1,...s,ref:p,onKeyDown:y})});oi.displayName=YG;function XG(e,{select:t=!1}={}){let o=document.activeElement;for(let r of e)if(ss(r,{select:t}),document.activeElement!==o)return}function QG(e){let t=tT(e),o=ZE(t,e),r=ZE(t.reverse(),e);return[o,r]}function tT(e){let t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{let n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t}function ZE(e,t){for(let o of e)if(!ZG(o,{upTo:t}))return o}function ZG(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 JG(e){return e instanceof HTMLInputElement&&"select"in e}function ss(e,{select:t=!1}={}){if(e&&e.focus){let o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&JG(e)&&t&&e.select()}}var JE=e4();function e4(){let e=[];return{add(t){let o=e[0];t!==o&&o?.pause(),e=eT(e,t),e.unshift(t)},remove(t){e=eT(e,t),e[0]?.resume()}}}function eT(e,t){let o=[...e],r=o.indexOf(t);return r!==-1&&o.splice(r,1),o}function t4(e){return e.filter(t=>t.tagName!=="A")}l();import*as ch from"react";l();import*as oT from"react";var Dt=globalThis?.document?oT.useLayoutEffect:()=>{};var o4=ch.useId||(()=>{}),r4=0;function ar(e){let[t,o]=ch.useState(o4());return Dt(()=>{e||o(r=>r??String(r4++))},[e]),e||(t?`radix-${t}`:"")}l();import*as Rr from"react";l();l();l();l();var rT=["top","right","bottom","left"];var An=Math.min,Wo=Math.max,fd=Math.round,pd=Math.floor,nn=e=>({x:e,y:e}),n4={left:"right",right:"left",bottom:"top",top:"bottom"},a4={start:"end",end:"start"};function fh(e,t,o){return Wo(e,An(t,o))}function On(e,t){return typeof e=="function"?e(t):e}function kn(e){return e.split("-")[0]}function ri(e){return e.split("-")[1]}function ph(e){return e==="x"?"y":"x"}function mh(e){return e==="y"?"height":"width"}function fa(e){return["top","bottom"].includes(kn(e))?"y":"x"}function hh(e){return ph(fa(e))}function nT(e,t,o){o===void 0&&(o=!1);let r=ri(e),n=hh(e),a=mh(n),s=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=dd(s)),[s,dd(s)]}function aT(e){let t=dd(e);return[dh(e),t,dh(t)]}function dh(e){return e.replace(/start|end/g,t=>a4[t])}function s4(e,t,o){let r=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return o?t?n:r:t?r:n;case"left":case"right":return t?a:s;default:return[]}}function sT(e,t,o,r){let n=ri(e),a=s4(kn(e),o==="start",r);return n&&(a=a.map(s=>s+"-"+n),t&&(a=a.concat(a.map(dh)))),a}function dd(e){return e.replace(/left|right|bottom|top/g,t=>n4[t])}function i4(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mw(e){return typeof e!="number"?i4(e):{top:e,right:e,bottom:e,left:e}}function ni(e){let{x:t,y:o,width:r,height:n}=e;return{width:r,height:n,top:o,left:t,right:t+r,bottom:o+n,x:t,y:o}}function iT(e,t,o){let{reference:r,floating:n}=e,a=fa(t),s=hh(t),i=mh(s),u=kn(t),c=a==="y",d=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,p=r[i]/2-n[i]/2,m;switch(u){case"top":m={x:d,y:r.y-n.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-n.width,y:f};break;default:m={x:r.x,y:r.y}}switch(ri(t)){case"start":m[s]-=p*(o&&c?-1:1);break;case"end":m[s]+=p*(o&&c?-1:1);break}return m}var cT=async(e,t,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:a=[],platform:s}=o,i=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:f}=iT(c,r,u),p=r,m={},y=0;for(let g=0;g<i.length;g++){let{name:v,fn:x}=i[g],{x:w,y:C,data:S,reset:b}=await x({x:d,y:f,initialPlacement:r,placement:p,strategy:n,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});d=w??d,f=C??f,m={...m,[v]:{...m[v],...S}},b&&y<=50&&(y++,typeof b=="object"&&(b.placement&&(p=b.placement),b.rects&&(c=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):b.rects),{x:d,y:f}=iT(c,p,u)),g=-1)}return{x:d,y:f,placement:p,strategy:n,middlewareData:m}};async function Xl(e,t){var o;t===void 0&&(t={});let{x:r,y:n,platform:a,rects:s,elements:i,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=On(t,e),y=Mw(m),v=i[p?f==="floating"?"reference":"floating":f],x=ni(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(v)))==null||o?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:u})),w=f==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),S=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},b=ni(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:C,strategy:u}):w);return{top:(x.top-b.top+y.top)/S.y,bottom:(b.bottom-x.bottom+y.bottom)/S.y,left:(x.left-b.left+y.left)/S.x,right:(b.right-x.right+y.right)/S.x}}var dT=e=>({name:"arrow",options:e,async fn(t){let{x:o,y:r,placement:n,rects:a,platform:s,elements:i,middlewareData:u}=t,{element:c,padding:d=0}=On(e,t)||{};if(c==null)return{};let f=Mw(d),p={x:o,y:r},m=hh(n),y=mh(m),g=await s.getDimensions(c),v=m==="y",x=v?"top":"left",w=v?"bottom":"right",C=v?"clientHeight":"clientWidth",S=a.reference[y]+a.reference[m]-p[m]-a.floating[y],b=p[m]-a.reference[m],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c)),P=R?R[C]:0;(!P||!await(s.isElement==null?void 0:s.isElement(R)))&&(P=i.floating[C]||a.floating[y]);let M=S/2-b/2,T=P/2-g[y]/2-1,_=An(f[x],T),F=An(f[w],T),O=_,N=P-g[y]-F,I=P/2-g[y]/2+M,A=fh(O,I,N),L=!u.arrow&&ri(n)!=null&&I!==A&&a.reference[y]/2-(I<O?_:F)-g[y]/2<0,D=L?I<O?I-O:I-N:0;return{[m]:p[m]+D,data:{[m]:A,centerOffset:I-A-D,...L&&{alignmentOffset:D}},reset:L}}});var fT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;let{placement:n,middlewareData:a,rects:s,initialPlacement:i,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...v}=On(e,t);if((o=a.arrow)!=null&&o.alignmentOffset)return{};let x=kn(n),w=fa(i),C=kn(i)===i,S=await(u.isRTL==null?void 0:u.isRTL(c.floating)),b=p||(C||!g?[dd(i)]:aT(i)),R=y!=="none";!p&&R&&b.push(...sT(i,g,y,S));let P=[i,...b],M=await Xl(t,v),T=[],_=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&T.push(M[x]),f){let I=nT(n,s,S);T.push(M[I[0]],M[I[1]])}if(_=[..._,{placement:n,overflows:T}],!T.every(I=>I<=0)){var F,O;let I=(((F=a.flip)==null?void 0:F.index)||0)+1,A=P[I];if(A)return{data:{index:I,overflows:_},reset:{placement:A}};let L=(O=_.filter(D=>D.overflows[0]<=0).sort((D,k)=>D.overflows[1]-k.overflows[1])[0])==null?void 0:O.placement;if(!L)switch(m){case"bestFit":{var N;let D=(N=_.filter(k=>{if(R){let E=fa(k.placement);return E===w||E==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(E=>E>0).reduce((E,V)=>E+V,0)]).sort((k,E)=>k[1]-E[1])[0])==null?void 0:N[0];D&&(L=D);break}case"initialPlacement":L=i;break}if(n!==L)return{reset:{placement:L}}}return{}}}};function lT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function uT(e){return rT.some(t=>e[t]>=0)}var pT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:o}=t,{strategy:r="referenceHidden",...n}=On(e,t);switch(r){case"referenceHidden":{let a=await Xl(t,{...n,elementContext:"reference"}),s=lT(a,o.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:uT(s)}}}case"escaped":{let a=await Xl(t,{...n,altBoundary:!0}),s=lT(a,o.floating);return{data:{escapedOffsets:s,escaped:uT(s)}}}default:return{}}}}};async function l4(e,t){let{placement:o,platform:r,elements:n}=e,a=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=kn(o),i=ri(o),u=fa(o)==="y",c=["left","top"].includes(s)?-1:1,d=a&&u?-1:1,f=On(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof y=="number"&&(m=i==="end"?y*-1:y),u?{x:m*d,y:p*c}:{x:p*c,y:m*d}}var mT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;let{x:n,y:a,placement:s,middlewareData:i}=t,u=await l4(t,e);return s===((o=i.offset)==null?void 0:o.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:n+u.x,y:a+u.y,data:{...u,placement:s}}}}},hT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:r,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:v=>{let{x,y:w}=v;return{x,y:w}}},...u}=On(e,t),c={x:o,y:r},d=await Xl(t,u),f=fa(kn(n)),p=ph(f),m=c[p],y=c[f];if(a){let v=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=m+d[v],C=m-d[x];m=fh(w,m,C)}if(s){let v=f==="y"?"top":"left",x=f==="y"?"bottom":"right",w=y+d[v],C=y-d[x];y=fh(w,y,C)}let g=i.fn({...t,[p]:m,[f]:y});return{...g,data:{x:g.x-o,y:g.y-r,enabled:{[p]:a,[f]:s}}}}}},gT=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:o,y:r,placement:n,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:u=!0,crossAxis:c=!0}=On(e,t),d={x:o,y:r},f=fa(n),p=ph(f),m=d[p],y=d[f],g=On(i,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){let C=p==="y"?"height":"width",S=a.reference[p]-a.floating[C]+v.mainAxis,b=a.reference[p]+a.reference[C]-v.mainAxis;m<S?m=S:m>b&&(m=b)}if(c){var x,w;let C=p==="y"?"width":"height",S=["top","left"].includes(kn(n)),b=a.reference[f]-a.floating[C]+(S&&((x=s.offset)==null?void 0:x[f])||0)+(S?0:v.crossAxis),R=a.reference[f]+a.reference[C]+(S?0:((w=s.offset)==null?void 0:w[f])||0)-(S?v.crossAxis:0);y<b?y=b:y>R&&(y=R)}return{[p]:m,[f]:y}}}},yT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,r;let{placement:n,rects:a,platform:s,elements:i}=t,{apply:u=()=>{},...c}=On(e,t),d=await Xl(t,c),f=kn(n),p=ri(n),m=fa(n)==="y",{width:y,height:g}=a.floating,v,x;f==="top"||f==="bottom"?(v=f,x=p===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(x=f,v=p==="end"?"top":"bottom");let w=g-d.top-d.bottom,C=y-d.left-d.right,S=An(g-d[v],w),b=An(y-d[x],C),R=!t.middlewareData.shift,P=S,M=b;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(M=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=w),R&&!p){let _=Wo(d.left,0),F=Wo(d.right,0),O=Wo(d.top,0),N=Wo(d.bottom,0);m?M=y-2*(_!==0||F!==0?_+F:Wo(d.left,d.right)):P=g-2*(O!==0||N!==0?O+N:Wo(d.top,d.bottom))}await u({...t,availableWidth:M,availableHeight:P});let T=await s.getDimensions(i.floating);return y!==T.width||g!==T.height?{reset:{rects:!0}}:{}}}};l();function gh(){return typeof window<"u"}function si(e){return vT(e)?(e.nodeName||"").toLowerCase():"#document"}function sr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function an(e){var t;return(t=(vT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vT(e){return gh()?e instanceof Node||e instanceof sr(e).Node:!1}function Ur(e){return gh()?e instanceof Element||e instanceof sr(e).Element:!1}function sn(e){return gh()?e instanceof HTMLElement||e instanceof sr(e).HTMLElement:!1}function xT(e){return!gh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof sr(e).ShadowRoot}function Ql(e){let{overflow:t,overflowX:o,overflowY:r,display:n}=zr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!["inline","contents"].includes(n)}function wT(e){return["table","td","th"].includes(si(e))}function md(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function yh(e){let t=xh(),o=Ur(e)?zr(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>o[r]?o[r]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(o.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(o.contain||"").includes(r))}function CT(e){let t=pa(e);for(;sn(t)&&!ii(t);){if(yh(t))return t;if(md(t))return null;t=pa(t)}return null}function xh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ii(e){return["html","body","#document"].includes(si(e))}function zr(e){return sr(e).getComputedStyle(e)}function hd(e){return Ur(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pa(e){if(si(e)==="html")return e;let t=e.assignedSlot||e.parentNode||xT(e)&&e.host||an(e);return xT(t)?t.host:t}function ST(e){let t=pa(e);return ii(t)?e.ownerDocument?e.ownerDocument.body:e.body:sn(t)&&Ql(t)?t:ST(t)}function ai(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=ST(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),s=sr(n);if(a){let i=vh(s);return t.concat(s,s.visualViewport||[],Ql(n)?n:[],i&&o?ai(i):[])}return t.concat(n,ai(n,[],o))}function vh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function RT(e){let t=zr(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=sn(e),a=n?e.offsetWidth:o,s=n?e.offsetHeight:r,i=fd(o)!==a||fd(r)!==s;return i&&(o=a,r=s),{width:o,height:r,$:i}}function Tw(e){return Ur(e)?e:e.contextElement}function Zl(e){let t=Tw(e);if(!sn(t))return nn(1);let o=t.getBoundingClientRect(),{width:r,height:n,$:a}=RT(t),s=(a?fd(o.width):o.width)/r,i=(a?fd(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}var u4=nn(0);function PT(e){let t=sr(e);return!xh()||!t.visualViewport?u4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function c4(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==sr(e)?!1:t}function li(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),a=Tw(e),s=nn(1);t&&(r?Ur(r)&&(s=Zl(r)):s=Zl(e));let i=c4(a,o,r)?PT(a):nn(0),u=(n.left+i.x)/s.x,c=(n.top+i.y)/s.y,d=n.width/s.x,f=n.height/s.y;if(a){let p=sr(a),m=r&&Ur(r)?sr(r):r,y=p,g=vh(y);for(;g&&r&&m!==y;){let v=Zl(g),x=g.getBoundingClientRect(),w=zr(g),C=x.left+(g.clientLeft+parseFloat(w.paddingLeft))*v.x,S=x.top+(g.clientTop+parseFloat(w.paddingTop))*v.y;u*=v.x,c*=v.y,d*=v.x,f*=v.y,u+=C,c+=S,y=sr(g),g=vh(y)}}return ni({width:d,height:f,x:u,y:c})}function Dw(e,t){let o=hd(e).scrollLeft;return t?t.left+o:li(an(e)).left+o}function LT(e,t,o){o===void 0&&(o=!1);let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-(o?0:Dw(e,r)),a=r.top+t.scrollTop;return{x:n,y:a}}function d4(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e,a=n==="fixed",s=an(r),i=t?md(t.floating):!1;if(r===s||i&&a)return o;let u={scrollLeft:0,scrollTop:0},c=nn(1),d=nn(0),f=sn(r);if((f||!f&&!a)&&((si(r)!=="body"||Ql(s))&&(u=hd(r)),sn(r))){let m=li(r);c=Zl(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}let p=s&&!f&&!a?LT(s,u,!0):nn(0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-u.scrollLeft*c.x+d.x+p.x,y:o.y*c.y-u.scrollTop*c.y+d.y+p.y}}function f4(e){return Array.from(e.getClientRects())}function p4(e){let t=an(e),o=hd(e),r=e.ownerDocument.body,n=Wo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Wo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-o.scrollLeft+Dw(e),i=-o.scrollTop;return zr(r).direction==="rtl"&&(s+=Wo(t.clientWidth,r.clientWidth)-n),{width:n,height:a,x:s,y:i}}function m4(e,t){let o=sr(e),r=an(e),n=o.visualViewport,a=r.clientWidth,s=r.clientHeight,i=0,u=0;if(n){a=n.width,s=n.height;let c=xh();(!c||c&&t==="fixed")&&(i=n.offsetLeft,u=n.offsetTop)}return{width:a,height:s,x:i,y:u}}function h4(e,t){let o=li(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,a=sn(e)?Zl(e):nn(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,u=n*a.x,c=r*a.y;return{width:s,height:i,x:u,y:c}}function bT(e,t,o){let r;if(t==="viewport")r=m4(e,o);else if(t==="document")r=p4(an(e));else if(Ur(t))r=h4(t,o);else{let n=PT(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ni(r)}function MT(e,t){let o=pa(e);return o===t||!Ur(o)||ii(o)?!1:zr(o).position==="fixed"||MT(o,t)}function g4(e,t){let o=t.get(e);if(o)return o;let r=ai(e,[],!1).filter(i=>Ur(i)&&si(i)!=="body"),n=null,a=zr(e).position==="fixed",s=a?pa(e):e;for(;Ur(s)&&!ii(s);){let i=zr(s),u=yh(s);!u&&i.position==="fixed"&&(n=null),(a?!u&&!n:!u&&i.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Ql(s)&&!u&&MT(e,s))?r=r.filter(d=>d!==s):n=i,s=pa(s)}return t.set(e,r),r}function y4(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e,s=[...o==="clippingAncestors"?md(t)?[]:g4(t,this._c):[].concat(o),r],i=s[0],u=s.reduce((c,d)=>{let f=bT(t,d,n);return c.top=Wo(f.top,c.top),c.right=An(f.right,c.right),c.bottom=An(f.bottom,c.bottom),c.left=Wo(f.left,c.left),c},bT(t,i,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function x4(e){let{width:t,height:o}=RT(e);return{width:t,height:o}}function v4(e,t,o){let r=sn(t),n=an(t),a=o==="fixed",s=li(e,!0,a,t),i={scrollLeft:0,scrollTop:0},u=nn(0);if(r||!r&&!a)if((si(t)!=="body"||Ql(n))&&(i=hd(t)),r){let p=li(t,!0,a,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else n&&(u.x=Dw(n));let c=n&&!r&&!a?LT(n,i):nn(0),d=s.left+i.scrollLeft-u.x-c.x,f=s.top+i.scrollTop-u.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function Ew(e){return zr(e).position==="static"}function IT(e,t){if(!sn(e)||zr(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return an(e)===o&&(o=o.ownerDocument.body),o}function ET(e,t){let o=sr(e);if(md(e))return o;if(!sn(e)){let n=pa(e);for(;n&&!ii(n);){if(Ur(n)&&!Ew(n))return n;n=pa(n)}return o}let r=IT(e,t);for(;r&&wT(r)&&Ew(r);)r=IT(r,t);return r&&ii(r)&&Ew(r)&&!yh(r)?o:r||CT(e)||o}var w4=async function(e){let t=this.getOffsetParent||ET,o=this.getDimensions,r=await o(e.floating);return{reference:v4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function C4(e){return zr(e).direction==="rtl"}var TT={convertOffsetParentRelativeRectToViewportRelativeRect:d4,getDocumentElement:an,getClippingRect:y4,getOffsetParent:ET,getElementRects:w4,getClientRects:f4,getDimensions:x4,getScale:Zl,isElement:Ur,isRTL:C4};function DT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function S4(e,t){let o=null,r,n=an(e);function a(){var i;clearTimeout(r),(i=o)==null||i.disconnect(),o=null}function s(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),a();let c=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=c;if(i||t(),!p||!m)return;let y=pd(f),g=pd(n.clientWidth-(d+p)),v=pd(n.clientHeight-(f+m)),x=pd(d),C={rootMargin:-y+"px "+-g+"px "+-v+"px "+-x+"px",threshold:Wo(0,An(1,u))||1},S=!0;function b(R){let P=R[0].intersectionRatio;if(P!==u){if(!S)return s();P?s(!1,P):r=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!DT(c,e.getBoundingClientRect())&&s(),S=!1}try{o=new IntersectionObserver(b,{...C,root:n.ownerDocument})}catch{o=new IntersectionObserver(b,C)}o.observe(e)}return s(!0),a}function gd(e,t,o,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=Tw(e),d=n||a?[...c?ai(c):[],...ai(t)]:[];d.forEach(x=>{n&&x.addEventListener("scroll",o,{passive:!0}),a&&x.addEventListener("resize",o)});let f=c&&i?S4(c,o):null,p=-1,m=null;s&&(m=new ResizeObserver(x=>{let[w]=x;w&&w.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),o()}),c&&!u&&m.observe(c),m.observe(t));let y,g=u?li(e):null;u&&v();function v(){let x=li(e);g&&!DT(g,x)&&o(),g=x,y=requestAnimationFrame(v)}return o(),()=>{var x;d.forEach(w=>{n&&w.removeEventListener("scroll",o),a&&w.removeEventListener("resize",o)}),f?.(),(x=m)==null||x.disconnect(),m=null,u&&cancelAnimationFrame(y)}}var AT=mT;var OT=hT,kT=fT,NT=yT,_T=pT,Aw=dT;var FT=gT,Ow=(e,t,o)=>{let r=new Map,n={platform:TT,...o},a={...n.platform,_c:r};return cT(e,t,{...n,platform:a})};import*as Ft from"react";import{useLayoutEffect as b4,useEffect as I4}from"react";import*as VT from"react-dom";var wh=typeof document<"u"?b4:I4;function Ch(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let o,r,n;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(r=o;r--!==0;)if(!Ch(e[r],t[r]))return!1;return!0}if(n=Object.keys(e),o=n.length,o!==Object.keys(t).length)return!1;for(r=o;r--!==0;)if(!{}.hasOwnProperty.call(t,n[r]))return!1;for(r=o;r--!==0;){let a=n[r];if(!(a==="_owner"&&e.$$typeof)&&!Ch(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function HT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function BT(e,t){let o=HT(e);return Math.round(t*o)/o}function kw(e){let t=Ft.useRef(e);return wh(()=>{t.current=e}),t}function Sh(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:r=[],platform:n,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:u,open:c}=e,[d,f]=Ft.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=Ft.useState(r);Ch(p,r)||m(r);let[y,g]=Ft.useState(null),[v,x]=Ft.useState(null),w=Ft.useCallback(k=>{k!==R.current&&(R.current=k,g(k))},[]),C=Ft.useCallback(k=>{k!==P.current&&(P.current=k,x(k))},[]),S=a||y,b=s||v,R=Ft.useRef(null),P=Ft.useRef(null),M=Ft.useRef(d),T=u!=null,_=kw(u),F=kw(n),O=kw(c),N=Ft.useCallback(()=>{if(!R.current||!P.current)return;let k={placement:t,strategy:o,middleware:p};F.current&&(k.platform=F.current),Ow(R.current,P.current,k).then(E=>{let V={...E,isPositioned:O.current!==!1};I.current&&!Ch(M.current,V)&&(M.current=V,VT.flushSync(()=>{f(V)}))})},[p,t,o,F,O]);wh(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,f(k=>({...k,isPositioned:!1})))},[c]);let I=Ft.useRef(!1);wh(()=>(I.current=!0,()=>{I.current=!1}),[]),wh(()=>{if(S&&(R.current=S),b&&(P.current=b),S&&b){if(_.current)return _.current(S,b,N);N()}},[S,b,N,_,T]);let A=Ft.useMemo(()=>({reference:R,floating:P,setReference:w,setFloating:C}),[w,C]),L=Ft.useMemo(()=>({reference:S,floating:b}),[S,b]),D=Ft.useMemo(()=>{let k={position:o,left:0,top:0};if(!L.floating)return k;let E=BT(L.floating,d.x),V=BT(L.floating,d.y);return i?{...k,transform:"translate("+E+"px, "+V+"px)",...HT(L.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:E,top:V}},[o,i,L.floating,d.x,d.y]);return Ft.useMemo(()=>({...d,update:N,refs:A,elements:L,floatingStyles:D}),[d,N,A,L,D])}var R4=e=>{function t(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){let{element:r,padding:n}=typeof e=="function"?e(o):e;return r&&t(r)?r.current!=null?Aw({element:r.current,padding:n}).fn(o):{}:r?Aw({element:r,padding:n}).fn(o):{}}}},bh=(e,t)=>({...AT(e),options:[e,t]}),Ih=(e,t)=>({...OT(e),options:[e,t]}),Rh=(e,t)=>({...FT(e),options:[e,t]}),Ph=(e,t)=>({...kT(e),options:[e,t]}),Lh=(e,t)=>({...NT(e),options:[e,t]});var Mh=(e,t)=>({..._T(e),options:[e,t]});var Eh=(e,t)=>({...R4(e),options:[e,t]});l();import*as zT from"react";import{jsx as UT}from"react/jsx-runtime";var P4="Arrow",qT=zT.forwardRef((e,t)=>{let{children:o,width:r=10,height:n=5,...a}=e;return UT(he.svg,{...a,ref:t,width:r,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?o:UT("polygon",{points:"0,0 30,0 15,10"})})});qT.displayName=P4;var WT=qT;l();import*as $T from"react";function Th(e){let[t,o]=$T.useState(void 0);return Dt(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});let r=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;let a=n[0],s,i;if("borderBoxSize"in a){let u=a.borderBoxSize,c=Array.isArray(u)?u[0]:u;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;o({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else o(void 0)},[e]),t}import{jsx as ui}from"react/jsx-runtime";var Nw="Popper",[GT,ma]=so(Nw),[M4,jT]=GT(Nw),KT=e=>{let{__scopePopper:t,children:o}=e,[r,n]=Rr.useState(null);return ui(M4,{scope:t,anchor:r,onAnchorChange:n,children:o})};KT.displayName=Nw;var YT="PopperAnchor",XT=Rr.forwardRef((e,t)=>{let{__scopePopper:o,virtualRef:r,...n}=e,a=jT(YT,o),s=Rr.useRef(null),i=Le(t,s);return Rr.useEffect(()=>{a.onAnchorChange(r?.current||s.current)}),r?null:ui(he.div,{...n,ref:i})});XT.displayName=YT;var _w="PopperContent",[E4,T4]=GT(_w),QT=Rr.forwardRef((e,t)=>{let{__scopePopper:o,side:r="bottom",sideOffset:n=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:y,...g}=e,v=jT(_w,o),[x,w]=Rr.useState(null),C=Le(t,z=>w(z)),[S,b]=Rr.useState(null),R=Th(S),P=R?.width??0,M=R?.height??0,T=r+(a!=="center"?"-"+a:""),_=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},F=Array.isArray(c)?c:[c],O=F.length>0,N={padding:_,boundary:F.filter(A4),altBoundary:O},{refs:I,floatingStyles:A,placement:L,isPositioned:D,middlewareData:k}=Sh({strategy:"fixed",placement:T,whileElementsMounted:(...z)=>gd(...z,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[bh({mainAxis:n+M,alignmentAxis:s}),u&&Ih({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Rh():void 0,...N}),u&&Ph({...N}),Lh({...N,apply:({elements:z,rects:j,availableWidth:X,availableHeight:K})=>{let{width:re,height:ne}=j.reference,me=z.floating.style;me.setProperty("--radix-popper-available-width",`${X}px`),me.setProperty("--radix-popper-available-height",`${K}px`),me.setProperty("--radix-popper-anchor-width",`${re}px`),me.setProperty("--radix-popper-anchor-height",`${ne}px`)}}),S&&Eh({element:S,padding:i}),O4({arrowWidth:P,arrowHeight:M}),p&&Mh({strategy:"referenceHidden",...N})]}),[E,V]=eD(L),B=pt(y);Dt(()=>{D&&B?.()},[D,B]);let U=k.arrow?.x,$=k.arrow?.y,G=k.arrow?.centerOffset!==0,[H,q]=Rr.useState();return Dt(()=>{x&&q(window.getComputedStyle(x).zIndex)},[x]),ui("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...A,transform:D?A.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:H,"--radix-popper-transform-origin":[k.transformOrigin?.x,k.transformOrigin?.y].join(" "),...k.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:ui(E4,{scope:o,placedSide:E,onArrowChange:b,arrowX:U,arrowY:$,shouldHideArrow:G,children:ui(he.div,{"data-side":E,"data-align":V,...g,ref:C,style:{...g.style,animation:D?void 0:"none"}})})})});QT.displayName=_w;var ZT="PopperArrow",D4={top:"bottom",right:"left",bottom:"top",left:"right"},JT=Rr.forwardRef(function(t,o){let{__scopePopper:r,...n}=t,a=T4(ZT,r),s=D4[a.placedSide];return ui("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:ui(WT,{...n,ref:o,style:{...n.style,display:"block"}})})});JT.displayName=ZT;function A4(e){return e!==null}var O4=e=>({name:"transformOrigin",options:e,fn(t){let{placement:o,rects:r,middlewareData:n}=t,s=n.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[c,d]=eD(o),f={start:"0%",center:"50%",end:"100%"}[d],p=(n.arrow?.x??0)+i/2,m=(n.arrow?.y??0)+u/2,y="",g="";return c==="bottom"?(y=s?f:`${p}px`,g=`${-u}px`):c==="top"?(y=s?f:`${p}px`,g=`${r.floating.height+u}px`):c==="right"?(y=`${-u}px`,g=s?f:`${m}px`):c==="left"&&(y=`${r.floating.width+u}px`,g=s?f:`${m}px`),{data:{x:y,y:g}}}});function eD(e){let[t,o="center"]=e.split("-");return[t,o]}var ci=KT,di=XT,Jl=QT,eu=JT;l();import*as Dh from"react";import k4 from"react-dom";import{jsx as N4}from"react/jsx-runtime";var _4="Portal",fi=Dh.forwardRef((e,t)=>{let{container:o,...r}=e,[n,a]=Dh.useState(!1);Dt(()=>a(!0),[]);let s=o||n&&globalThis?.document?.body;return s?k4.createPortal(N4(he.div,{...r,ref:t}),s):null});fi.displayName=_4;l();import*as is from"react";function Pr({prop:e,defaultProp:t,onChange:o=()=>{}}){let[r,n]=F4({defaultProp:t,onChange:o}),a=e!==void 0,s=a?e:r,i=pt(o),u=is.useCallback(c=>{if(a){let f=typeof c=="function"?c(e):c;f!==e&&i(f)}else n(c)},[a,e,n,i]);return[s,u]}function F4({defaultProp:e,onChange:t}){let o=is.useState(e),[r]=o,n=is.useRef(r),a=pt(t);return is.useEffect(()=>{n.current!==r&&(a(r),n.current=r)},[r,n,a]),o}l();import*as Ah from"react";function Oh(e){let t=Ah.useRef({value:e,previous:e});return Ah.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}l();import*as tD from"react";import{jsx as B4}from"react/jsx-runtime";var V4="VisuallyHidden",Bw=tD.forwardRef((e,t)=>B4(he.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Bw.displayName=V4;l();var H4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},tu=new WeakMap,kh=new WeakMap,Nh={},Vw=0,oD=function(e){return e&&(e.host||oD(e.parentNode))},U4=function(e,t){return t.map(function(o){if(e.contains(o))return o;var r=oD(o);return r&&e.contains(r)?r:(console.error("aria-hidden",o,"in not contained inside",e,". Doing nothing"),null)}).filter(function(o){return!!o})},z4=function(e,t,o,r){var n=U4(t,Array.isArray(e)?e:[e]);Nh[o]||(Nh[o]=new WeakMap);var a=Nh[o],s=[],i=new Set,u=new Set(n),c=function(f){!f||i.has(f)||(i.add(f),c(f.parentNode))};n.forEach(c);var d=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(p){if(i.has(p))d(p);else try{var m=p.getAttribute(r),y=m!==null&&m!=="false",g=(tu.get(p)||0)+1,v=(a.get(p)||0)+1;tu.set(p,g),a.set(p,v),s.push(p),g===1&&y&&kh.set(p,!0),v===1&&p.setAttribute(o,"true"),y||p.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",p,x)}})};return d(t),i.clear(),Vw++,function(){s.forEach(function(f){var p=tu.get(f)-1,m=a.get(f)-1;tu.set(f,p),a.set(f,m),p||(kh.has(f)||f.removeAttribute(r),kh.delete(f)),m||f.removeAttribute(o)}),Vw--,Vw||(tu=new WeakMap,tu=new WeakMap,kh=new WeakMap,Nh={})}},ou=function(e,t,o){o===void 0&&(o="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),n=t||H4(e);return n?(r.push.apply(r,Array.from(n.querySelectorAll("[aria-live]"))),z4(r,n,o,"aria-hidden")):function(){return null}};l();l();l();var ir=function(){return ir=Object.assign||function(t){for(var o,r=1,n=arguments.length;r<n;r++){o=arguments[r];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(t[a]=o[a])}return t},ir.apply(this,arguments)};function _h(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]]);return o}function rD(e,t,o){if(o||arguments.length===2)for(var r=0,n=t.length,a;r<n;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}import*as Uh from"react";l();import*as Ao from"react";l();var pi="right-scroll-bar-position",mi="width-before-scroll-bar",Hw="with-scroll-bars-hidden",Uw="--removed-body-scroll-bar-size";l();l();function Fh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}l();import{useState as q4}from"react";function nD(e,t){var o=q4(function(){return{value:e,callback:t,facade:{get current(){return o.value},set current(r){var n=o.value;n!==r&&(o.value=r,o.callback(r,n))}}}})[0];return o.callback=t,o.facade}l();import*as Bh from"react";var W4=typeof window<"u"?Bh.useLayoutEffect:Bh.useEffect,aD=new WeakMap;function zw(e,t){var o=nD(t||null,function(r){return e.forEach(function(n){return Fh(n,r)})});return W4(function(){var r=aD.get(o);if(r){var n=new Set(r),a=new Set(e),s=o.current;n.forEach(function(i){a.has(i)||Fh(i,null)}),a.forEach(function(i){n.has(i)||Fh(i,s)})}aD.set(o,e)},[e]),o}l();l();l();function $4(e){return e}function G4(e,t){t===void 0&&(t=$4);var o=[],r=!1,n={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:e},useMedium:function(a){var s=t(a,r);return o.push(s),function(){o=o.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;o.length;){var s=o;o=[],s.forEach(a)}o={push:function(i){return a(i)},filter:function(){return o}}},assignMedium:function(a){r=!0;var s=[];if(o.length){var i=o;o=[],i.forEach(a),s=o}var u=function(){var d=s;s=[],d.forEach(a)},c=function(){return Promise.resolve().then(u)};c(),o={push:function(d){s.push(d),c()},filter:function(d){return s=s.filter(d),o}}}};return n}function qw(e){e===void 0&&(e={});var t=G4(null);return t.options=ir({async:!0,ssr:!1},e),t}l();import*as sD from"react";var iD=function(e){var t=e.sideCar,o=_h(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return sD.createElement(r,ir({},o))};iD.isSideCarExport=!0;function Ww(e,t){return e.useMedium(t),iD}var Vh=qw();var $w=function(){},yd=Ao.forwardRef(function(e,t){var o=Ao.useRef(null),r=Ao.useState({onScrollCapture:$w,onWheelCapture:$w,onTouchMoveCapture:$w}),n=r[0],a=r[1],s=e.forwardProps,i=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,y=e.inert,g=e.allowPinchZoom,v=e.as,x=v===void 0?"div":v,w=e.gapMode,C=_h(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,b=zw([o,t]),R=ir(ir({},C),n);return Ao.createElement(Ao.Fragment,null,d&&Ao.createElement(S,{sideCar:Vh,removeScrollBar:c,shards:f,noIsolation:m,inert:y,setCallbacks:a,allowPinchZoom:!!g,lockRef:o,gapMode:w}),s?Ao.cloneElement(Ao.Children.only(i),ir(ir({},R),{ref:b})):Ao.createElement(x,ir({},R,{className:u,ref:b}),i))});yd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};yd.classNames={fullWidth:mi,zeroRight:pi};l();l();import*as at from"react";l();l();import*as nu from"react";l();l();l();import*as cD from"react";l();l();var lD;var uD=function(){if(lD)return lD;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function j4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=uD();return t&&e.setAttribute("nonce",t),e}function K4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Y4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Gw=function(){var e=0,t=null;return{add:function(o){e==0&&(t=j4())&&(K4(t,o),Y4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var jw=function(){var e=Gw();return function(t,o){cD.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&o])}};var xd=function(){var e=jw(),t=function(o){var r=o.styles,n=o.dynamic;return e(r,n),null};return t};l();var X4={left:0,top:0,right:0,gap:0},Kw=function(e){return parseInt(e||"",10)||0},Q4=function(e){var t=window.getComputedStyle(document.body),o=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],n=t[e==="padding"?"paddingRight":"marginRight"];return[Kw(o),Kw(r),Kw(n)]},Yw=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return X4;var t=Q4(e),o=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-o+t[2]-t[0])}};var Z4=xd(),ru="data-scroll-locked",J4=function(e,t,o,r){var n=e.left,a=e.top,s=e.right,i=e.gap;return o===void 0&&(o="margin"),`
18
+ See https://err.47ng.com/NUQS-${e}`}var uw=S5();function on(e,...t){if(!uw)return;let o=C5(e,...t);performance.mark(o);try{console.log(e,...t)}catch{console.log(o)}}function ZM(e,...t){uw&&console.warn(e,...t)}function C5(e,...t){return e.replace(/%[sfdO]/g,o=>{let r=t.shift();return o==="%O"&&r?JSON.stringify(r).replace(/"([^"]+)":/g,"$1:"):String(r)})}function S5(){try{if(typeof localStorage>"u")return!1;let t="nuqs-localStorage-test";localStorage.setItem(t,t);let o=localStorage.getItem(t)===t;if(localStorage.removeItem(t),!o)return!1}catch(t){return console.error("[nuqs]: debug mode is disabled (localStorage unavailable).",t),!1}return(localStorage.getItem("debug")??"").includes("nuqs")}var Bc=y5({useAdapter(){throw new Error(Vc(404))}});Bc.displayName="NuqsAdapterContext";uw&&typeof window<"u"&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==Bc&&console.error(Vc(303)),window.__NuqsAdapterContext=Bc);function cw(e){return({children:t,...o})=>x5(Bc.Provider,{...o,value:{useAdapter:e}},t)}function JM(){let e=v5(Bc);if(!("useAdapter"in e))throw new Error(Vc(404));return e.useAdapter()}import{useEffect as I5,useState as R5}from"react";function P5(e,t){let o;return(...r)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...r),t)}}function L5(){let e=typeof window<"u"?window.location.hash.slice(1):"",[t,o]=R5(new URLSearchParams(e));function r(a,{history:s}){let{pathname:i,search:u}=window.location,c=a.toString(),d=`${i}${u}#${c}`;s==="push"?window.history.pushState(null,"",d):window.history.replaceState(null,"",d),o(a)}function n(){if(typeof window>"u")return new URLSearchParams;let a=window.location.hash.slice(1);return new URLSearchParams(a)}return I5(()=>{let a=P5(()=>{let s=window.location.hash.slice(1);o(new URLSearchParams(s))},50);return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[]),{searchParams:t,updateUrl:r,getSearchParamsSnapshot:n}}var eE=cw(L5);import{jsx as ah,jsxs as O5}from"react/jsx-runtime";var tE=new Hv,oE=M5(void 0);function rE(e){let{children:t,onEvent:o,adapter:r,theme:n}=e,[a,s]=Hc(!1),[i,u]=Hc(!0),[c,d]=Hc([]),[f,p]=Hc(()=>typeof document<"u"?document.documentElement.classList.contains("dark"):!1);dw(()=>{p(document.documentElement.classList.contains("dark"))},[]);let[m]=Hc(fw.default.generate()),{hasCustomTheme:y}=QM(n,f);dw(()=>{tE.resetQueries({exact:!1,queryKey:[]})},[r]),dw(()=>{let w=new MutationObserver(C=>{C.forEach(S=>{if(S.type==="attributes"&&S.attributeName==="class"){let b=document.documentElement.classList.contains("dark");p(b)}})});return w.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>w.disconnect()},[]);let g=w=>{let{name:C,payload:S}=w;if(C==="studio_operation_error"){if(S.error.name==="AbortError")return;zl.error(`"${S.operation}" operation failed`,{action:{label:"Console",onClick:()=>{window.location.hash=pw({viewParam:"console"})}}})}let b=fw.default.generate(),R=new Date().toISOString(),P={...w,eventId:b,timestamp:R};(P.name==="studio_operation_success"||P.name==="studio_operation_error")&&d(M=>{let T=[...M,P];return T.length>100?T.slice(0,100):T}),o?.(P),C==="studio_launched"&&nh&&!rh&&!T5()&&!A5()&&BL({additionalData:{eventPayload:S,variant:"licensed"},command:C,eventId:b,product:"prisma-studio-embedded",signature:m,skipUpdateCheck:!0,timestamp:new Date(R),version:"0.6.0"}).catch(M=>{console.error(M)})},v=()=>s(w=>!w),x=()=>u(w=>!w);return O5(Gv,{client:tE,children:[ah(GM,{}),ah(eE,{children:ah(oE.Provider,{value:{adapter:r,isFullscreen:a,onEvent:g,operationEvents:c,toggleFullscreen:v,isNavigationOpen:i,toggleNavigation:x,isDarkMode:f,hasCustomTheme:y},children:ah(nE,{children:t})})})]})}function ao(){let e=E5(oE);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}function T5(){return D5()&&"__PVCE__"in window&&window.__PVCE__===!0}function D5(){return nh&&"acquireVsCodeApi"in window&&typeof window.acquireVsCodeApi=="function"}function A5(){if(!nh)return!1;let{hostname:e}=window.location;return"__PDPCP__"in window&&window.__PDPCP__===!0||e.includes("console.prisma.io")||e.includes("datacdn.workers.dev")}l();l();l();function sh(e,t,o){try{return e(t)}catch(r){return ZM("[nuqs] Error while parsing value `%s`: %O"+(o?" (for key `%s`)":""),t,r,o),null}}function k5(){if(typeof window>"u"||!!!window.GestureEvent)return 50;try{let t=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(t[1])>=17?120:320}catch{return 320}}var ql=k5(),zc=new Map,br={history:"replace",scroll:!1,shallow:!0,throttleMs:ql},mw=new Set,aE=0,Uc=null;function sE(e){return zc.get(e)}function N5(){zc.clear(),mw.clear(),br.history="replace",br.scroll=!1,br.shallow=!0,br.throttleMs=ql}function iE(e,t,o,r){let n=t===null?null:o(t);return on("[nuqs queue] Enqueueing %s=%s %O",e,n,r),zc.set(e,n),r.history==="push"&&(br.history="push"),r.scroll&&(br.scroll=!0),r.shallow===!1&&(br.shallow=!1),r.startTransition&&mw.add(r.startTransition),br.throttleMs=Math.max(r.throttleMs??ql,Number.isFinite(br.throttleMs)?br.throttleMs:0),n}function _5(){return new URLSearchParams(location.search)}function lE({getSearchParamsSnapshot:e=_5,updateUrl:t,rateLimitFactor:o=1}){return Uc===null&&(Uc=new Promise((r,n)=>{if(!Number.isFinite(br.throttleMs)){on("[nuqs queue] Skipping flush due to throttleMs=Infinity"),r(e()),setTimeout(()=>{Uc=null},0);return}function a(){aE=performance.now();let[i,u]=F5({updateUrl:t,getSearchParamsSnapshot:e});u===null?r(i):n(i),Uc=null}function s(){let u=performance.now()-aE,c=br.throttleMs,d=o*Math.max(0,Math.min(c,c-u));on("[nuqs queue] Scheduling flush in %f ms. Throttled at %f ms",d,c),d===0?a():setTimeout(a,d)}setTimeout(s,0)})),Uc}function F5({updateUrl:e,getSearchParamsSnapshot:t}){let o=t();if(zc.size===0)return[o,null];let r=Array.from(zc.entries()),n={...br},a=Array.from(mw);N5(),on("[nuqs queue] Flushing queue %O with options %O",r,n);for(let[s,i]of r)i===null?o.delete(s):o.set(s,i);try{return B5(a,()=>{e(o,{history:n.history,scroll:n.scroll,shallow:n.shallow})}),[o,null]}catch(s){return console.error(Vc(429),r.map(([i])=>i).join(),s),[o,s]}}function B5(e,t){let o=r=>{if(r===e.length)return t();let n=e[r];if(!n)throw new Error("Invalid transition function");n(()=>o(r+1))};o(0)}import{useRef as cE,useState as V5,useEffect as dE,useCallback as H5,useMemo as kTe}from"react";l();function uE(e){return{all:e=e||new Map,on:function(t,o){var r=e.get(t);r?r.push(o):e.set(t,[o])},off:function(t,o){var r=e.get(t);r&&(o?r.splice(r.indexOf(o)>>>0,1):e.set(t,[]))},emit:function(t,o){var r=e.get(t);r&&r.slice().map(function(n){n(o)}),(r=e.get("*"))&&r.slice().map(function(n){n(t,o)})}}}function la(e){function t(o){if(typeof o>"u")return null;let r="";if(Array.isArray(o)){if(o[0]===void 0)return null;r=o[0]}return typeof o=="string"&&(r=o),sh(e.parse,r)}return{eq:(o,r)=>o===r,...e,parseServerSide:t,withDefault(o){return{...this,defaultValue:o,parseServerSide(r){return t(r)??o}}},withOptions(o){return{...this,...o}}}}var _Te=la({parse:e=>e,serialize:e=>`${e}`}),fE=la({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:t},serialize:e=>Math.round(e).toFixed()}),FTe=la({parse:e=>{let t=fE.parse(e);return t===null?null:t-1},serialize:e=>fE.serialize(e+1)}),BTe=la({parse:e=>{let t=parseInt(e,16);return Number.isNaN(t)?null:t},serialize:e=>{let t=Math.round(e).toString(16);return t.padStart(t.length+t.length%2,"0")}}),VTe=la({parse:e=>{let t=parseFloat(e);return Number.isNaN(t)?null:t},serialize:e=>e.toString()}),HTe=la({parse:e=>e==="true",serialize:e=>e?"true":"false"});function gw(e,t){return e.valueOf()===t.valueOf()}var UTe=la({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:new Date(t)},serialize:e=>e.valueOf().toString(),eq:gw}),zTe=la({parse:e=>{let t=new Date(e);return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString(),eq:gw}),qTe=la({parse:e=>{let t=new Date(e.slice(0,10));return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString().slice(0,10),eq:gw});var hw=uE();function pE(e,{history:t="replace",shallow:o=!0,scroll:r=!1,throttleMs:n=ql,parse:a=f=>f,serialize:s=String,eq:i=(f,p)=>f===p,defaultValue:u=void 0,clearOnDefault:c=!0,startTransition:d}={history:"replace",scroll:!1,shallow:!0,throttleMs:ql,parse:f=>f,serialize:String,eq:(f,p)=>f===p,clearOnDefault:!0,defaultValue:void 0}){let f=JM(),p=f.searchParams,m=cE(p?.get(e)??null),[y,g]=V5(()=>{let w=sE(e),C=w===void 0?p?.get(e)??null:w;return C===null?null:sh(a,C,e)}),v=cE(y);on("[nuqs `%s`] render - state: %O, iSP: %s",e,y,p?.get(e)??null),dE(()=>{let w=p?.get(e)??null;if(w===m.current)return;let C=w===null?null:sh(a,w,e);on("[nuqs `%s`] syncFromUseSearchParams %O",e,C),v.current=C,m.current=w,g(C)},[p?.get(e),e]),dE(()=>{function w({state:C,query:S}){on("[nuqs `%s`] updateInternalState %O",e,C),v.current=C,m.current=S,g(C)}return on("[nuqs `%s`] subscribing to sync",e),hw.on(e,w),()=>{on("[nuqs `%s`] unsubscribing from sync",e),hw.off(e,w)}},[e]);let x=H5((w,C={})=>{let S=U5(w)?w(v.current??u??null):w;(C.clearOnDefault??c)&&S!==null&&u!==void 0&&i(S,u)&&(S=null);let b=iE(e,S,s,{history:C.history??t,shallow:C.shallow??o,scroll:C.scroll??r,throttleMs:C.throttleMs??n,startTransition:C.startTransition??d});return hw.emit(e,{state:S,query:b}),lE(f)},[e,t,o,r,n,d,f.updateUrl,f.getSearchParamsSnapshot,f.rateLimitFactor]);return[y??u??null,x]}function U5(e){return typeof e=="function"}var KTe=Symbol("BRAND_SYMBOL");function Ya(e,t){return pE(e,t)}l();var hE=Cn(_c(),1);import{useEffect as z5,useMemo as mE,useState as q5}from"react";var gE={kind:"FilterGroup",filters:[],after:"and",id:hE.default.generate()},yE=e=>{let t=0;for(let o of e.filters)o.kind==="ColumnFilter"?o.column.trim()&&t++:o.kind==="FilterGroup"&&(t+=yE(o));return t};function xE(){let{filterParam:e,setFilterParam:t}=Ge(),o=mE(()=>JSON.parse(e),[e]),r=i=>void t(JSON.stringify(i)),[n,a]=q5(o);z5(()=>{a(o)},[o]);let s=mE(()=>yE(n),[n]);return{appliedFilter:o,setAppliedFilter:r,editingFilter:n,setEditingFilter:a,totalEditingFilters:s}}l();var vE=-1;function Tn(){let{adapter:e,onEvent:t}=ao();return Tc({initialData:{schemas:{[e.defaultSchema||"db"]:{name:e.defaultSchema||"db",tables:{}}},timezone:"UTC",filterOperators:[],query:{parameters:[],sql:""}},initialDataUpdatedAt:vE,queryFn:async({signal:o})=>{let[r,n]=await e.introspect({abortSignal:o});if(r)throw t({name:"studio_operation_error",payload:{operation:"introspect",query:r.query,error:r}}),r;t({name:"studio_operation_success",payload:{operation:"introspect",query:n.query,error:void 0}});let a=Object.values(n.schemas).reduce((s,i)=>s+Object.keys(i.tables).length,0);return t({name:"studio_launched",payload:{tableCount:a}}),n},queryKey:["introspection"],staleTime:o=>o.state.dataUpdatedAt===vE?0:1/0})}import{jsx as K5}from"react/jsx-runtime";function pw(e){return`#${Object.entries(e).map(([o,r])=>{let n=o.endsWith("Param")?o.slice(0,-5):o;return`${encodeURIComponent(n)}=${encodeURIComponent(r)}`}).join("&")}`}function G5(e){let{adapter:t,introspection:o}=e,{schemas:r}=o,{defaultSchema:n}=t,a=n??Object.keys(r)[0]??"public",s=Object.keys(r[a]?.tables??{})[0]??"",i=JSON.stringify(gE);return{schema:a,table:s,filter:i,pageIndex:"0",pageSize:"25",view:"table"}}function j5(){let{adapter:e}=ao(),{data:t,isFetching:o}=Tn(),{schemas:r}=t,n=wE(()=>G5({adapter:e,introspection:t}),[e,t]),[a,s]=Ya("filter",{defaultValue:n.filter}),[i,u]=Ya("pageIndex",{defaultValue:n.pageIndex}),[c,d]=Ya("pageSize",{defaultValue:n.pageSize}),[f,p]=Ya("schema",{defaultValue:n.schema}),[m,y]=Ya("sort"),[g,v]=Ya("table",{defaultValue:n.table}),[x,w]=Ya("view",{defaultValue:n.view}),C=f?r[f]:void 0,S=C?C.tables:void 0,b=S&&g?S[g]:void 0;return{metadata:wE(()=>({activeSchema:C,activeTables:S,activeTable:b,isFetching:o}),[C,S,b,o]),createUrl:pw,filterParam:a,pageIndexParam:i,pageSizeParam:c,schemaParam:f,sortParam:m,tableParam:g,viewParam:x,setFilterParam:s,setPageIndexParam:u,setPageSizeParam:d,setSchemaParam:p,setSortParam:y,setTableParam:v,setViewParam:w}}var CE=W5(void 0);function nE({children:e}){let t=j5();return K5(CE.Provider,{value:t,children:e})}function Ge(){let e=$5(CE);if(e===void 0)throw new Error("useNavigationContext must be used within a NavigationContextProvider");return e}l();l();function SE(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=SE(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function bE(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=SE(e))&&(r&&(r+=" "),r+=t);return r}l();var vw="-",Y5=e=>{let t=Q5(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let i=s.split(vw);return i[0]===""&&i.length!==1&&i.shift(),ME(i,t)||X5(s)},getConflictingClassGroupIds:(s,i)=>{let u=o[s]||[];return i&&r[s]?[...u,...r[s]]:u}}},ME=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?ME(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(vw);return t.validators.find(({validator:s})=>s(a))?.classGroupId},IE=/^\[(.+)\]$/,X5=e=>{if(IE.test(e)){let t=IE.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Q5=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return J5(Object.entries(e.classGroups),o).forEach(([a,s])=>{xw(s,r,a,t)}),r},xw=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:RE(t,n);a.classGroupId=o;return}if(typeof n=="function"){if(Z5(n)){xw(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([a,s])=>{xw(s,RE(t,a),o,r)})})},RE=(e,t)=>{let o=e;return t.split(vw).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Z5=e=>e.isThemeGetter,J5=(e,t)=>t?e.map(([o,r])=>{let n=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,i])=>[t+s,i])):a);return[o,n]}):e,eG=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(a,s)=>{o.set(a,s),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let s=o.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return n(a,s),s},set(a,s){o.has(a)?o.set(a,s):n(a,s)}}},EE="!",tG=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],a=t.length,s=i=>{let u=[],c=0,d=0,f;for(let v=0;v<i.length;v++){let x=i[v];if(c===0){if(x===n&&(r||i.slice(v,v+a)===t)){u.push(i.slice(d,v)),d=v+a;continue}if(x==="/"){f=v;continue}}x==="["?c++:x==="]"&&c--}let p=u.length===0?i:i.substring(d),m=p.startsWith(EE),y=m?p.substring(1):p,g=f&&f>d?f-d:void 0;return{modifiers:u,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:g}};return o?i=>o({className:i,parseClassName:s}):s},oG=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},rG=e=>({cache:eG(e.cacheSize),parseClassName:tG(e),...Y5(e)}),nG=/\s+/,aG=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,a=[],s=e.trim().split(nG),i="";for(let u=s.length-1;u>=0;u-=1){let c=s[u],{modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=o(c),y=!!m,g=r(y?p.substring(0,m):p);if(!g){if(!y){i=c+(i.length>0?" "+i:i);continue}if(g=r(p),!g){i=c+(i.length>0?" "+i:i);continue}y=!1}let v=oG(d).join(":"),x=f?v+EE:v,w=x+g;if(a.includes(w))continue;a.push(w);let C=n(g,y);for(let S=0;S<C.length;++S){let b=C[S];a.push(x+b)}i=c+(i.length>0?" "+i:i)}return i};function sG(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=TE(t))&&(r&&(r+=" "),r+=o);return r}var TE=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=TE(e[r]))&&(o&&(o+=" "),o+=t);return o};function PE(e,...t){let o,r,n,a=s;function s(u){let c=t.reduce((d,f)=>f(d),e());return o=rG(c),r=o.cache.get,n=o.cache.set,a=i,i(u)}function i(u){let c=r(u);if(c)return c;let d=aG(u,o);return n(u,d),d}return function(){return a(sG.apply(null,arguments))}}var nt=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},DE=/^\[(?:([a-z-]+):)?(.+)\]$/i,iG=/^\d+\/\d+$/,lG=new Set(["px","full","screen"]),uG=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cG=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,dG=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,fG=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pG=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ua=e=>Wl(e)||lG.has(e)||iG.test(e),Xa=e=>$l(e,"length",CG),Wl=e=>!!e&&!Number.isNaN(Number(e)),yw=e=>$l(e,"number",Wl),qc=e=>!!e&&Number.isInteger(Number(e)),mG=e=>e.endsWith("%")&&Wl(e.slice(0,-1)),we=e=>DE.test(e),Qa=e=>uG.test(e),hG=new Set(["length","size","percentage"]),gG=e=>$l(e,hG,AE),yG=e=>$l(e,"position",AE),xG=new Set(["image","url"]),vG=e=>$l(e,xG,bG),wG=e=>$l(e,"",SG),Wc=()=>!0,$l=(e,t,o)=>{let r=DE.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},CG=e=>cG.test(e)&&!dG.test(e),AE=()=>!1,SG=e=>fG.test(e),bG=e=>pG.test(e);var LE=()=>{let e=nt("colors"),t=nt("spacing"),o=nt("blur"),r=nt("brightness"),n=nt("borderColor"),a=nt("borderRadius"),s=nt("borderSpacing"),i=nt("borderWidth"),u=nt("contrast"),c=nt("grayscale"),d=nt("hueRotate"),f=nt("invert"),p=nt("gap"),m=nt("gradientColorStops"),y=nt("gradientColorStopPositions"),g=nt("inset"),v=nt("margin"),x=nt("opacity"),w=nt("padding"),C=nt("saturate"),S=nt("scale"),b=nt("sepia"),R=nt("skew"),P=nt("space"),M=nt("translate"),T=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",we,t],O=()=>[we,t],N=()=>["",ua,Xa],I=()=>["auto",Wl,we],A=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],E=()=>["","0",we],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[Wl,we];return{cacheSize:500,separator:":",theme:{colors:[Wc],spacing:[ua,Xa],blur:["none","",Qa,we],brightness:B(),borderColor:[e],borderRadius:["none","","full",Qa,we],borderSpacing:O(),borderWidth:N(),contrast:B(),grayscale:E(),hueRotate:B(),invert:E(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[mG,Xa],inset:F(),margin:F(),opacity:B(),padding:O(),saturate:B(),scale:B(),sepia:E(),skew:B(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",we]}],container:["container"],columns:[{columns:[Qa]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...A(),we]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",qc,we]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",we]}],grow:[{grow:E()}],shrink:[{shrink:E()}],order:[{order:["first","last","none",qc,we]}],"grid-cols":[{"grid-cols":[Wc]}],"col-start-end":[{col:["auto",{span:["full",qc,we]},we]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Wc]}],"row-start-end":[{row:["auto",{span:[qc,we]},we]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",we]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",we]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",we,t]}],"min-w":[{"min-w":[we,t,"min","max","fit"]}],"max-w":[{"max-w":[we,t,"none","full","min","max","fit","prose",{screen:[Qa]},Qa]}],h:[{h:[we,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[we,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[we,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[we,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Qa,Xa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yw]}],"font-family":[{font:[Wc]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",we]}],"line-clamp":[{"line-clamp":["none",Wl,yw]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ua,we]}],"list-image":[{"list-image":["none",we]}],"list-style-type":[{list:["none","disc","decimal",we]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ua,Xa]}],"underline-offset":[{"underline-offset":["auto",ua,we]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...A(),yG]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gG]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vG]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:L()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[ua,we]}],"outline-w":[{outline:[ua,Xa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[ua,Xa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Qa,wG]}],"shadow-color":[{shadow:[Wc]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...D(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Qa,we]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[C]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",we]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",we]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",we]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[qc,we]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",we]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ua,Xa,yw]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},IG=(e,{cacheSize:t,prefix:o,separator:r,experimentalParseClassName:n,extend:a={},override:s={}})=>{$c(e,"cacheSize",t),$c(e,"prefix",o),$c(e,"separator",r),$c(e,"experimentalParseClassName",n);for(let i in s)RG(e[i],s[i]);for(let i in a)PG(e[i],a[i]);return e},$c=(e,t,o)=>{o!==void 0&&(e[t]=o)},RG=(e,t)=>{if(t)for(let o in t)$c(e,o,t[o])},PG=(e,t)=>{if(t)for(let o in t){let r=t[o];r!==void 0&&(e[o]=(e[o]||[]).concat(r))}},OE=(e,...t)=>typeof e=="function"?PE(LE,e,...t):PE(()=>IG(LE(),e),...t);var LG=OE({});function W(...e){return LG(bE(e))}l();l();import*as Wt from"react";l();import*as NE from"react";function kE(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qs(...e){return t=>{let o=!1,r=e.map(n=>{let a=kE(n,t);return!o&&typeof a=="function"&&(o=!0),a});if(o)return()=>{for(let n=0;n<r.length;n++){let a=r[n];typeof a=="function"?a():kE(e[n],null)}}}}function Le(...e){return NE.useCallback(Qs(...e),e)}import{Fragment as MG,jsx as ww}from"react/jsx-runtime";var Do=Wt.forwardRef((e,t)=>{let{children:o,...r}=e,n=Wt.Children.toArray(o),a=n.find(TG);if(a){let s=a.props.children,i=n.map(u=>u===a?Wt.Children.count(s)>1?Wt.Children.only(null):Wt.isValidElement(s)?s.props.children:null:u);return ww(Cw,{...r,ref:t,children:Wt.isValidElement(s)?Wt.cloneElement(s,void 0,i):null})}return ww(Cw,{...r,ref:t,children:o})});Do.displayName="Slot";var Cw=Wt.forwardRef((e,t)=>{let{children:o,...r}=e;if(Wt.isValidElement(o)){let n=AG(o),a=DG(r,o.props);return o.type!==Wt.Fragment&&(a.ref=t?Qs(t,n):n),Wt.cloneElement(o,a)}return Wt.Children.count(o)>1?Wt.Children.only(null):null});Cw.displayName="SlotClone";var EG=({children:e})=>ww(MG,{children:e});function TG(e){return Wt.isValidElement(e)&&e.type===EG}function DG(e,t){let o={...t};for(let r in t){let n=e[r],a=t[r];/^on[A-Z]/.test(r)?n&&a?o[r]=(...i)=>{a(...i),n(...i)}:n&&(o[r]=n):r==="style"?o[r]={...n,...a}:r==="className"&&(o[r]=[n,a].filter(Boolean).join(" "))}return{...e,...o}}function AG(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}l();l();import{forwardRef as kG,createElement as NG}from"react";l();var _E=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ih=(...e)=>e.filter((t,o,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===o).join(" ").trim();l();import{forwardRef as OG,createElement as BE}from"react";l();var FE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var VE=OG(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:n="",children:a,iconNode:s,...i},u)=>BE("svg",{ref:u,...FE,width:t,height:t,stroke:e,strokeWidth:r?Number(o)*24/Number(t):o,className:ih("lucide",n),...i},[...s.map(([c,d])=>BE(c,d)),...Array.isArray(a)?a:[a]]));var te=(e,t)=>{let o=kG(({className:r,...n},a)=>NG(VE,{ref:a,iconNode:t,className:ih(`lucide-${_E(e)}`,r),...n}));return o.displayName=`${e}`,o};l();var Za=te("ArrowDownWideNarrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]);l();var Gc=te("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);l();var jc=te("ArrowUpWideNarrow",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]]);l();var rn=te("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);l();var Vr=te("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);l();var Kc=te("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);l();var Ir=te("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);l();var Yc=te("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);l();var Xc=te("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);l();var Qc=te("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);l();var Dn=te("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);l();var Ja=te("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);l();var es=te("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);l();var Zs=te("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);l();var Js=te("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);l();var Zc=te("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]);l();var Jc=te("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);l();var ed=te("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);l();var td=te("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);l();var ca=te("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);l();var od=te("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);l();var rd=te("Minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);l();var nd=te("MoveDown",[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);l();var ad=te("MoveUp",[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);l();var ts=te("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);l();var os=te("PanelLeftOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);l();var sd=te("PinOff",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]);l();var id=te("Pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);l();var ld=te("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);l();var rs=te("SquareArrowRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}]]);l();var ud=te("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);l();var cd=te("Table2",[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]]);l();var ns=te("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);l();var as=te("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);l();l();import*as J from"react";import*as nC from"react-dom";l();function Sw(e,[t,o]){return Math.min(o,Math.max(t,e))}l();function ee(e,t,{checkForDefaultPrevented:o=!0}={}){return function(n){if(e?.(n),o===!1||!n.defaultPrevented)return t?.(n)}}l();import ei from"react";l();import*as da from"react";import{jsx as _G}from"react/jsx-runtime";function so(e,t=[]){let o=[];function r(a,s){let i=da.createContext(s),u=o.length;o=[...o,s];let c=f=>{let{scope:p,children:m,...y}=f,g=p?.[e]?.[u]||i,v=da.useMemo(()=>y,Object.values(y));return _G(g.Provider,{value:v,children:m})};c.displayName=a+"Provider";function d(f,p){let m=p?.[e]?.[u]||i,y=da.useContext(m);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[c,d]}let n=()=>{let a=o.map(s=>da.createContext(s));return function(i){let u=i?.[e]||a;return da.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return n.scopeName=e,[r,FG(n,...t)]}function FG(...e){let t=e[0];if(e.length===1)return t;let o=()=>{let r=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(a){let s=r.reduce((i,{useScope:u,scopeName:c})=>{let f=u(a)[`__scope${c}`];return{...i,...f}},{});return da.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return o.scopeName=t.scopeName,o}import{jsx as bw}from"react/jsx-runtime";function Gl(e){let t=e+"CollectionProvider",[o,r]=so(t),[n,a]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{let{scope:y,children:g}=m,v=ei.useRef(null),x=ei.useRef(new Map).current;return bw(n,{scope:y,itemMap:x,collectionRef:v,children:g})};s.displayName=t;let i=e+"CollectionSlot",u=ei.forwardRef((m,y)=>{let{scope:g,children:v}=m,x=a(i,g),w=Le(y,x.collectionRef);return bw(Do,{ref:w,children:v})});u.displayName=i;let c=e+"CollectionItemSlot",d="data-radix-collection-item",f=ei.forwardRef((m,y)=>{let{scope:g,children:v,...x}=m,w=ei.useRef(null),C=Le(y,w),S=a(c,g);return ei.useEffect(()=>(S.itemMap.set(w,{ref:w,...x}),()=>void S.itemMap.delete(w))),bw(Do,{[d]:"",ref:C,children:v})});f.displayName=c;function p(m){let y=a(e+"CollectionConsumer",m);return ei.useCallback(()=>{let v=y.collectionRef.current;if(!v)return[];let x=Array.from(v.querySelectorAll(`[${d}]`));return Array.from(y.itemMap.values()).sort((S,b)=>x.indexOf(S.ref.current)-x.indexOf(b.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:u,ItemSlot:f},p,r]}l();import*as lh from"react";import{jsx as kOe}from"react/jsx-runtime";var BG=lh.createContext(void 0);function jl(e){let t=lh.useContext(BG);return e||t||"ltr"}l();import*as mt from"react";l();import*as HE from"react";import*as UE from"react-dom";import{jsx as VG}from"react/jsx-runtime";var HG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],he=HG.reduce((e,t)=>{let o=HE.forwardRef((r,n)=>{let{asChild:a,...s}=r,i=a?Do:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),VG(i,{...s,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function uh(e,t){e&&UE.flushSync(()=>e.dispatchEvent(t))}l();import*as Kl from"react";function pt(e){let t=Kl.useRef(e);return Kl.useEffect(()=>{t.current=e}),Kl.useMemo(()=>(...o)=>t.current?.(...o),[])}l();import*as zE from"react";function qE(e,t=globalThis?.document){let o=pt(e);zE.useEffect(()=>{let r=n=>{n.key==="Escape"&&o(n)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[o,t])}import{jsx as GE}from"react/jsx-runtime";var UG="DismissableLayer",Iw="dismissableLayer.update",zG="dismissableLayer.pointerDownOutside",qG="dismissableLayer.focusOutside",WE,jE=mt.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ti=mt.forwardRef((e,t)=>{let{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:n,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...u}=e,c=mt.useContext(jE),[d,f]=mt.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=mt.useState({}),y=Le(t,P=>f(P)),g=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(v),w=d?g.indexOf(d):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,S=w>=x,b=GG(P=>{let M=P.target,T=[...c.branches].some(_=>_.contains(M));!S||T||(n?.(P),s?.(P),P.defaultPrevented||i?.())},p),R=jG(P=>{let M=P.target;[...c.branches].some(_=>_.contains(M))||(a?.(P),s?.(P),P.defaultPrevented||i?.())},p);return qE(P=>{w===c.layers.size-1&&(r?.(P),!P.defaultPrevented&&i&&(P.preventDefault(),i()))},p),mt.useEffect(()=>{if(d)return o&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(WE=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),$E(),()=>{o&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=WE)}},[d,p,o,c]),mt.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),$E())},[d,c]),mt.useEffect(()=>{let P=()=>m({});return document.addEventListener(Iw,P),()=>document.removeEventListener(Iw,P)},[]),GE(he.div,{...u,ref:y,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:ee(e.onFocusCapture,R.onFocusCapture),onBlurCapture:ee(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:ee(e.onPointerDownCapture,b.onPointerDownCapture)})});ti.displayName=UG;var WG="DismissableLayerBranch",$G=mt.forwardRef((e,t)=>{let o=mt.useContext(jE),r=mt.useRef(null),n=Le(t,r);return mt.useEffect(()=>{let a=r.current;if(a)return o.branches.add(a),()=>{o.branches.delete(a)}},[o.branches]),GE(he.div,{...e,ref:n})});$G.displayName=WG;function GG(e,t=globalThis?.document){let o=pt(e),r=mt.useRef(!1),n=mt.useRef(()=>{});return mt.useEffect(()=>{let a=i=>{if(i.target&&!r.current){let c=function(){KE(zG,o,d,{discrete:!0})};var u=c;let d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",n.current),n.current=c,t.addEventListener("click",n.current,{once:!0})):c()}else t.removeEventListener("click",n.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",n.current)}},[t,o]),{onPointerDownCapture:()=>r.current=!0}}function jG(e,t=globalThis?.document){let o=pt(e),r=mt.useRef(!1);return mt.useEffect(()=>{let n=a=>{a.target&&!r.current&&KE(qG,o,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",n),()=>t.removeEventListener("focusin",n)},[t,o]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function $E(){let e=new CustomEvent(Iw);document.dispatchEvent(e)}function KE(e,t,o,{discrete:r}){let n=o.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:o});t&&n.addEventListener(e,t,{once:!0}),r?uh(n,a):n.dispatchEvent(a)}l();import*as XE from"react";var Rw=0;function Yl(){XE.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??YE()),document.body.insertAdjacentElement("beforeend",e[1]??YE()),Rw++,()=>{Rw===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Rw--}},[])}function YE(){let 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}l();import*as Hr from"react";import{jsx as KG}from"react/jsx-runtime";var Pw="focusScope.autoFocusOnMount",Lw="focusScope.autoFocusOnUnmount",QE={bubbles:!1,cancelable:!0},YG="FocusScope",oi=Hr.forwardRef((e,t)=>{let{loop:o=!1,trapped:r=!1,onMountAutoFocus:n,onUnmountAutoFocus:a,...s}=e,[i,u]=Hr.useState(null),c=pt(n),d=pt(a),f=Hr.useRef(null),p=Le(t,g=>u(g)),m=Hr.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Hr.useEffect(()=>{if(r){let w=function(R){if(m.paused||!i)return;let P=R.target;i.contains(P)?f.current=P:ss(f.current,{select:!0})},C=function(R){if(m.paused||!i)return;let P=R.relatedTarget;P!==null&&(i.contains(P)||ss(f.current,{select:!0}))},S=function(R){if(document.activeElement===document.body)for(let M of R)M.removedNodes.length>0&&ss(i)};var g=w,v=C,x=S;document.addEventListener("focusin",w),document.addEventListener("focusout",C);let b=new MutationObserver(S);return i&&b.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",C),b.disconnect()}}},[r,i,m.paused]),Hr.useEffect(()=>{if(i){JE.add(m);let g=document.activeElement;if(!i.contains(g)){let x=new CustomEvent(Pw,QE);i.addEventListener(Pw,c),i.dispatchEvent(x),x.defaultPrevented||(XG(t4(tT(i)),{select:!0}),document.activeElement===g&&ss(i))}return()=>{i.removeEventListener(Pw,c),setTimeout(()=>{let x=new CustomEvent(Lw,QE);i.addEventListener(Lw,d),i.dispatchEvent(x),x.defaultPrevented||ss(g??document.body,{select:!0}),i.removeEventListener(Lw,d),JE.remove(m)},0)}}},[i,c,d,m]);let y=Hr.useCallback(g=>{if(!o&&!r||m.paused)return;let v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,x=document.activeElement;if(v&&x){let w=g.currentTarget,[C,S]=QG(w);C&&S?!g.shiftKey&&x===S?(g.preventDefault(),o&&ss(C,{select:!0})):g.shiftKey&&x===C&&(g.preventDefault(),o&&ss(S,{select:!0})):x===w&&g.preventDefault()}},[o,r,m.paused]);return KG(he.div,{tabIndex:-1,...s,ref:p,onKeyDown:y})});oi.displayName=YG;function XG(e,{select:t=!1}={}){let o=document.activeElement;for(let r of e)if(ss(r,{select:t}),document.activeElement!==o)return}function QG(e){let t=tT(e),o=ZE(t,e),r=ZE(t.reverse(),e);return[o,r]}function tT(e){let t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{let n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t}function ZE(e,t){for(let o of e)if(!ZG(o,{upTo:t}))return o}function ZG(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 JG(e){return e instanceof HTMLInputElement&&"select"in e}function ss(e,{select:t=!1}={}){if(e&&e.focus){let o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&JG(e)&&t&&e.select()}}var JE=e4();function e4(){let e=[];return{add(t){let o=e[0];t!==o&&o?.pause(),e=eT(e,t),e.unshift(t)},remove(t){e=eT(e,t),e[0]?.resume()}}}function eT(e,t){let o=[...e],r=o.indexOf(t);return r!==-1&&o.splice(r,1),o}function t4(e){return e.filter(t=>t.tagName!=="A")}l();import*as ch from"react";l();import*as oT from"react";var Dt=globalThis?.document?oT.useLayoutEffect:()=>{};var o4=ch.useId||(()=>{}),r4=0;function ar(e){let[t,o]=ch.useState(o4());return Dt(()=>{e||o(r=>r??String(r4++))},[e]),e||(t?`radix-${t}`:"")}l();import*as Rr from"react";l();l();l();l();var rT=["top","right","bottom","left"];var An=Math.min,Wo=Math.max,fd=Math.round,pd=Math.floor,nn=e=>({x:e,y:e}),n4={left:"right",right:"left",bottom:"top",top:"bottom"},a4={start:"end",end:"start"};function fh(e,t,o){return Wo(e,An(t,o))}function On(e,t){return typeof e=="function"?e(t):e}function kn(e){return e.split("-")[0]}function ri(e){return e.split("-")[1]}function ph(e){return e==="x"?"y":"x"}function mh(e){return e==="y"?"height":"width"}function fa(e){return["top","bottom"].includes(kn(e))?"y":"x"}function hh(e){return ph(fa(e))}function nT(e,t,o){o===void 0&&(o=!1);let r=ri(e),n=hh(e),a=mh(n),s=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=dd(s)),[s,dd(s)]}function aT(e){let t=dd(e);return[dh(e),t,dh(t)]}function dh(e){return e.replace(/start|end/g,t=>a4[t])}function s4(e,t,o){let r=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return o?t?n:r:t?r:n;case"left":case"right":return t?a:s;default:return[]}}function sT(e,t,o,r){let n=ri(e),a=s4(kn(e),o==="start",r);return n&&(a=a.map(s=>s+"-"+n),t&&(a=a.concat(a.map(dh)))),a}function dd(e){return e.replace(/left|right|bottom|top/g,t=>n4[t])}function i4(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mw(e){return typeof e!="number"?i4(e):{top:e,right:e,bottom:e,left:e}}function ni(e){let{x:t,y:o,width:r,height:n}=e;return{width:r,height:n,top:o,left:t,right:t+r,bottom:o+n,x:t,y:o}}function iT(e,t,o){let{reference:r,floating:n}=e,a=fa(t),s=hh(t),i=mh(s),u=kn(t),c=a==="y",d=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,p=r[i]/2-n[i]/2,m;switch(u){case"top":m={x:d,y:r.y-n.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-n.width,y:f};break;default:m={x:r.x,y:r.y}}switch(ri(t)){case"start":m[s]-=p*(o&&c?-1:1);break;case"end":m[s]+=p*(o&&c?-1:1);break}return m}var cT=async(e,t,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:a=[],platform:s}=o,i=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:f}=iT(c,r,u),p=r,m={},y=0;for(let g=0;g<i.length;g++){let{name:v,fn:x}=i[g],{x:w,y:C,data:S,reset:b}=await x({x:d,y:f,initialPlacement:r,placement:p,strategy:n,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});d=w??d,f=C??f,m={...m,[v]:{...m[v],...S}},b&&y<=50&&(y++,typeof b=="object"&&(b.placement&&(p=b.placement),b.rects&&(c=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):b.rects),{x:d,y:f}=iT(c,p,u)),g=-1)}return{x:d,y:f,placement:p,strategy:n,middlewareData:m}};async function Xl(e,t){var o;t===void 0&&(t={});let{x:r,y:n,platform:a,rects:s,elements:i,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=On(t,e),y=Mw(m),v=i[p?f==="floating"?"reference":"floating":f],x=ni(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(v)))==null||o?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:u})),w=f==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),S=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},b=ni(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:C,strategy:u}):w);return{top:(x.top-b.top+y.top)/S.y,bottom:(b.bottom-x.bottom+y.bottom)/S.y,left:(x.left-b.left+y.left)/S.x,right:(b.right-x.right+y.right)/S.x}}var dT=e=>({name:"arrow",options:e,async fn(t){let{x:o,y:r,placement:n,rects:a,platform:s,elements:i,middlewareData:u}=t,{element:c,padding:d=0}=On(e,t)||{};if(c==null)return{};let f=Mw(d),p={x:o,y:r},m=hh(n),y=mh(m),g=await s.getDimensions(c),v=m==="y",x=v?"top":"left",w=v?"bottom":"right",C=v?"clientHeight":"clientWidth",S=a.reference[y]+a.reference[m]-p[m]-a.floating[y],b=p[m]-a.reference[m],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c)),P=R?R[C]:0;(!P||!await(s.isElement==null?void 0:s.isElement(R)))&&(P=i.floating[C]||a.floating[y]);let M=S/2-b/2,T=P/2-g[y]/2-1,_=An(f[x],T),F=An(f[w],T),O=_,N=P-g[y]-F,I=P/2-g[y]/2+M,A=fh(O,I,N),L=!u.arrow&&ri(n)!=null&&I!==A&&a.reference[y]/2-(I<O?_:F)-g[y]/2<0,D=L?I<O?I-O:I-N:0;return{[m]:p[m]+D,data:{[m]:A,centerOffset:I-A-D,...L&&{alignmentOffset:D}},reset:L}}});var fT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;let{placement:n,middlewareData:a,rects:s,initialPlacement:i,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...v}=On(e,t);if((o=a.arrow)!=null&&o.alignmentOffset)return{};let x=kn(n),w=fa(i),C=kn(i)===i,S=await(u.isRTL==null?void 0:u.isRTL(c.floating)),b=p||(C||!g?[dd(i)]:aT(i)),R=y!=="none";!p&&R&&b.push(...sT(i,g,y,S));let P=[i,...b],M=await Xl(t,v),T=[],_=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&T.push(M[x]),f){let I=nT(n,s,S);T.push(M[I[0]],M[I[1]])}if(_=[..._,{placement:n,overflows:T}],!T.every(I=>I<=0)){var F,O;let I=(((F=a.flip)==null?void 0:F.index)||0)+1,A=P[I];if(A)return{data:{index:I,overflows:_},reset:{placement:A}};let L=(O=_.filter(D=>D.overflows[0]<=0).sort((D,k)=>D.overflows[1]-k.overflows[1])[0])==null?void 0:O.placement;if(!L)switch(m){case"bestFit":{var N;let D=(N=_.filter(k=>{if(R){let E=fa(k.placement);return E===w||E==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(E=>E>0).reduce((E,V)=>E+V,0)]).sort((k,E)=>k[1]-E[1])[0])==null?void 0:N[0];D&&(L=D);break}case"initialPlacement":L=i;break}if(n!==L)return{reset:{placement:L}}}return{}}}};function lT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function uT(e){return rT.some(t=>e[t]>=0)}var pT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:o}=t,{strategy:r="referenceHidden",...n}=On(e,t);switch(r){case"referenceHidden":{let a=await Xl(t,{...n,elementContext:"reference"}),s=lT(a,o.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:uT(s)}}}case"escaped":{let a=await Xl(t,{...n,altBoundary:!0}),s=lT(a,o.floating);return{data:{escapedOffsets:s,escaped:uT(s)}}}default:return{}}}}};async function l4(e,t){let{placement:o,platform:r,elements:n}=e,a=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=kn(o),i=ri(o),u=fa(o)==="y",c=["left","top"].includes(s)?-1:1,d=a&&u?-1:1,f=On(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof y=="number"&&(m=i==="end"?y*-1:y),u?{x:m*d,y:p*c}:{x:p*c,y:m*d}}var mT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;let{x:n,y:a,placement:s,middlewareData:i}=t,u=await l4(t,e);return s===((o=i.offset)==null?void 0:o.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:n+u.x,y:a+u.y,data:{...u,placement:s}}}}},hT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:r,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:v=>{let{x,y:w}=v;return{x,y:w}}},...u}=On(e,t),c={x:o,y:r},d=await Xl(t,u),f=fa(kn(n)),p=ph(f),m=c[p],y=c[f];if(a){let v=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=m+d[v],C=m-d[x];m=fh(w,m,C)}if(s){let v=f==="y"?"top":"left",x=f==="y"?"bottom":"right",w=y+d[v],C=y-d[x];y=fh(w,y,C)}let g=i.fn({...t,[p]:m,[f]:y});return{...g,data:{x:g.x-o,y:g.y-r,enabled:{[p]:a,[f]:s}}}}}},gT=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:o,y:r,placement:n,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:u=!0,crossAxis:c=!0}=On(e,t),d={x:o,y:r},f=fa(n),p=ph(f),m=d[p],y=d[f],g=On(i,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){let C=p==="y"?"height":"width",S=a.reference[p]-a.floating[C]+v.mainAxis,b=a.reference[p]+a.reference[C]-v.mainAxis;m<S?m=S:m>b&&(m=b)}if(c){var x,w;let C=p==="y"?"width":"height",S=["top","left"].includes(kn(n)),b=a.reference[f]-a.floating[C]+(S&&((x=s.offset)==null?void 0:x[f])||0)+(S?0:v.crossAxis),R=a.reference[f]+a.reference[C]+(S?0:((w=s.offset)==null?void 0:w[f])||0)-(S?v.crossAxis:0);y<b?y=b:y>R&&(y=R)}return{[p]:m,[f]:y}}}},yT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,r;let{placement:n,rects:a,platform:s,elements:i}=t,{apply:u=()=>{},...c}=On(e,t),d=await Xl(t,c),f=kn(n),p=ri(n),m=fa(n)==="y",{width:y,height:g}=a.floating,v,x;f==="top"||f==="bottom"?(v=f,x=p===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(x=f,v=p==="end"?"top":"bottom");let w=g-d.top-d.bottom,C=y-d.left-d.right,S=An(g-d[v],w),b=An(y-d[x],C),R=!t.middlewareData.shift,P=S,M=b;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(M=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=w),R&&!p){let _=Wo(d.left,0),F=Wo(d.right,0),O=Wo(d.top,0),N=Wo(d.bottom,0);m?M=y-2*(_!==0||F!==0?_+F:Wo(d.left,d.right)):P=g-2*(O!==0||N!==0?O+N:Wo(d.top,d.bottom))}await u({...t,availableWidth:M,availableHeight:P});let T=await s.getDimensions(i.floating);return y!==T.width||g!==T.height?{reset:{rects:!0}}:{}}}};l();function gh(){return typeof window<"u"}function si(e){return vT(e)?(e.nodeName||"").toLowerCase():"#document"}function sr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function an(e){var t;return(t=(vT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vT(e){return gh()?e instanceof Node||e instanceof sr(e).Node:!1}function Ur(e){return gh()?e instanceof Element||e instanceof sr(e).Element:!1}function sn(e){return gh()?e instanceof HTMLElement||e instanceof sr(e).HTMLElement:!1}function xT(e){return!gh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof sr(e).ShadowRoot}function Ql(e){let{overflow:t,overflowX:o,overflowY:r,display:n}=zr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!["inline","contents"].includes(n)}function wT(e){return["table","td","th"].includes(si(e))}function md(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function yh(e){let t=xh(),o=Ur(e)?zr(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>o[r]?o[r]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(o.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(o.contain||"").includes(r))}function CT(e){let t=pa(e);for(;sn(t)&&!ii(t);){if(yh(t))return t;if(md(t))return null;t=pa(t)}return null}function xh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ii(e){return["html","body","#document"].includes(si(e))}function zr(e){return sr(e).getComputedStyle(e)}function hd(e){return Ur(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pa(e){if(si(e)==="html")return e;let t=e.assignedSlot||e.parentNode||xT(e)&&e.host||an(e);return xT(t)?t.host:t}function ST(e){let t=pa(e);return ii(t)?e.ownerDocument?e.ownerDocument.body:e.body:sn(t)&&Ql(t)?t:ST(t)}function ai(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=ST(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),s=sr(n);if(a){let i=vh(s);return t.concat(s,s.visualViewport||[],Ql(n)?n:[],i&&o?ai(i):[])}return t.concat(n,ai(n,[],o))}function vh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function RT(e){let t=zr(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=sn(e),a=n?e.offsetWidth:o,s=n?e.offsetHeight:r,i=fd(o)!==a||fd(r)!==s;return i&&(o=a,r=s),{width:o,height:r,$:i}}function Tw(e){return Ur(e)?e:e.contextElement}function Zl(e){let t=Tw(e);if(!sn(t))return nn(1);let o=t.getBoundingClientRect(),{width:r,height:n,$:a}=RT(t),s=(a?fd(o.width):o.width)/r,i=(a?fd(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}var u4=nn(0);function PT(e){let t=sr(e);return!xh()||!t.visualViewport?u4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function c4(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==sr(e)?!1:t}function li(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),a=Tw(e),s=nn(1);t&&(r?Ur(r)&&(s=Zl(r)):s=Zl(e));let i=c4(a,o,r)?PT(a):nn(0),u=(n.left+i.x)/s.x,c=(n.top+i.y)/s.y,d=n.width/s.x,f=n.height/s.y;if(a){let p=sr(a),m=r&&Ur(r)?sr(r):r,y=p,g=vh(y);for(;g&&r&&m!==y;){let v=Zl(g),x=g.getBoundingClientRect(),w=zr(g),C=x.left+(g.clientLeft+parseFloat(w.paddingLeft))*v.x,S=x.top+(g.clientTop+parseFloat(w.paddingTop))*v.y;u*=v.x,c*=v.y,d*=v.x,f*=v.y,u+=C,c+=S,y=sr(g),g=vh(y)}}return ni({width:d,height:f,x:u,y:c})}function Dw(e,t){let o=hd(e).scrollLeft;return t?t.left+o:li(an(e)).left+o}function LT(e,t,o){o===void 0&&(o=!1);let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-(o?0:Dw(e,r)),a=r.top+t.scrollTop;return{x:n,y:a}}function d4(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e,a=n==="fixed",s=an(r),i=t?md(t.floating):!1;if(r===s||i&&a)return o;let u={scrollLeft:0,scrollTop:0},c=nn(1),d=nn(0),f=sn(r);if((f||!f&&!a)&&((si(r)!=="body"||Ql(s))&&(u=hd(r)),sn(r))){let m=li(r);c=Zl(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}let p=s&&!f&&!a?LT(s,u,!0):nn(0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-u.scrollLeft*c.x+d.x+p.x,y:o.y*c.y-u.scrollTop*c.y+d.y+p.y}}function f4(e){return Array.from(e.getClientRects())}function p4(e){let t=an(e),o=hd(e),r=e.ownerDocument.body,n=Wo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Wo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-o.scrollLeft+Dw(e),i=-o.scrollTop;return zr(r).direction==="rtl"&&(s+=Wo(t.clientWidth,r.clientWidth)-n),{width:n,height:a,x:s,y:i}}function m4(e,t){let o=sr(e),r=an(e),n=o.visualViewport,a=r.clientWidth,s=r.clientHeight,i=0,u=0;if(n){a=n.width,s=n.height;let c=xh();(!c||c&&t==="fixed")&&(i=n.offsetLeft,u=n.offsetTop)}return{width:a,height:s,x:i,y:u}}function h4(e,t){let o=li(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,a=sn(e)?Zl(e):nn(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,u=n*a.x,c=r*a.y;return{width:s,height:i,x:u,y:c}}function bT(e,t,o){let r;if(t==="viewport")r=m4(e,o);else if(t==="document")r=p4(an(e));else if(Ur(t))r=h4(t,o);else{let n=PT(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ni(r)}function MT(e,t){let o=pa(e);return o===t||!Ur(o)||ii(o)?!1:zr(o).position==="fixed"||MT(o,t)}function g4(e,t){let o=t.get(e);if(o)return o;let r=ai(e,[],!1).filter(i=>Ur(i)&&si(i)!=="body"),n=null,a=zr(e).position==="fixed",s=a?pa(e):e;for(;Ur(s)&&!ii(s);){let i=zr(s),u=yh(s);!u&&i.position==="fixed"&&(n=null),(a?!u&&!n:!u&&i.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Ql(s)&&!u&&MT(e,s))?r=r.filter(d=>d!==s):n=i,s=pa(s)}return t.set(e,r),r}function y4(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e,s=[...o==="clippingAncestors"?md(t)?[]:g4(t,this._c):[].concat(o),r],i=s[0],u=s.reduce((c,d)=>{let f=bT(t,d,n);return c.top=Wo(f.top,c.top),c.right=An(f.right,c.right),c.bottom=An(f.bottom,c.bottom),c.left=Wo(f.left,c.left),c},bT(t,i,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function x4(e){let{width:t,height:o}=RT(e);return{width:t,height:o}}function v4(e,t,o){let r=sn(t),n=an(t),a=o==="fixed",s=li(e,!0,a,t),i={scrollLeft:0,scrollTop:0},u=nn(0);if(r||!r&&!a)if((si(t)!=="body"||Ql(n))&&(i=hd(t)),r){let p=li(t,!0,a,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else n&&(u.x=Dw(n));let c=n&&!r&&!a?LT(n,i):nn(0),d=s.left+i.scrollLeft-u.x-c.x,f=s.top+i.scrollTop-u.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function Ew(e){return zr(e).position==="static"}function IT(e,t){if(!sn(e)||zr(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return an(e)===o&&(o=o.ownerDocument.body),o}function ET(e,t){let o=sr(e);if(md(e))return o;if(!sn(e)){let n=pa(e);for(;n&&!ii(n);){if(Ur(n)&&!Ew(n))return n;n=pa(n)}return o}let r=IT(e,t);for(;r&&wT(r)&&Ew(r);)r=IT(r,t);return r&&ii(r)&&Ew(r)&&!yh(r)?o:r||CT(e)||o}var w4=async function(e){let t=this.getOffsetParent||ET,o=this.getDimensions,r=await o(e.floating);return{reference:v4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function C4(e){return zr(e).direction==="rtl"}var TT={convertOffsetParentRelativeRectToViewportRelativeRect:d4,getDocumentElement:an,getClippingRect:y4,getOffsetParent:ET,getElementRects:w4,getClientRects:f4,getDimensions:x4,getScale:Zl,isElement:Ur,isRTL:C4};function DT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function S4(e,t){let o=null,r,n=an(e);function a(){var i;clearTimeout(r),(i=o)==null||i.disconnect(),o=null}function s(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),a();let c=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=c;if(i||t(),!p||!m)return;let y=pd(f),g=pd(n.clientWidth-(d+p)),v=pd(n.clientHeight-(f+m)),x=pd(d),C={rootMargin:-y+"px "+-g+"px "+-v+"px "+-x+"px",threshold:Wo(0,An(1,u))||1},S=!0;function b(R){let P=R[0].intersectionRatio;if(P!==u){if(!S)return s();P?s(!1,P):r=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!DT(c,e.getBoundingClientRect())&&s(),S=!1}try{o=new IntersectionObserver(b,{...C,root:n.ownerDocument})}catch{o=new IntersectionObserver(b,C)}o.observe(e)}return s(!0),a}function gd(e,t,o,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=Tw(e),d=n||a?[...c?ai(c):[],...ai(t)]:[];d.forEach(x=>{n&&x.addEventListener("scroll",o,{passive:!0}),a&&x.addEventListener("resize",o)});let f=c&&i?S4(c,o):null,p=-1,m=null;s&&(m=new ResizeObserver(x=>{let[w]=x;w&&w.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),o()}),c&&!u&&m.observe(c),m.observe(t));let y,g=u?li(e):null;u&&v();function v(){let x=li(e);g&&!DT(g,x)&&o(),g=x,y=requestAnimationFrame(v)}return o(),()=>{var x;d.forEach(w=>{n&&w.removeEventListener("scroll",o),a&&w.removeEventListener("resize",o)}),f?.(),(x=m)==null||x.disconnect(),m=null,u&&cancelAnimationFrame(y)}}var AT=mT;var OT=hT,kT=fT,NT=yT,_T=pT,Aw=dT;var FT=gT,Ow=(e,t,o)=>{let r=new Map,n={platform:TT,...o},a={...n.platform,_c:r};return cT(e,t,{...n,platform:a})};import*as Ft from"react";import{useLayoutEffect as b4,useEffect as I4}from"react";import*as VT from"react-dom";var wh=typeof document<"u"?b4:I4;function Ch(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let o,r,n;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(r=o;r--!==0;)if(!Ch(e[r],t[r]))return!1;return!0}if(n=Object.keys(e),o=n.length,o!==Object.keys(t).length)return!1;for(r=o;r--!==0;)if(!{}.hasOwnProperty.call(t,n[r]))return!1;for(r=o;r--!==0;){let a=n[r];if(!(a==="_owner"&&e.$$typeof)&&!Ch(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function HT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function BT(e,t){let o=HT(e);return Math.round(t*o)/o}function kw(e){let t=Ft.useRef(e);return wh(()=>{t.current=e}),t}function Sh(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:r=[],platform:n,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:u,open:c}=e,[d,f]=Ft.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=Ft.useState(r);Ch(p,r)||m(r);let[y,g]=Ft.useState(null),[v,x]=Ft.useState(null),w=Ft.useCallback(k=>{k!==R.current&&(R.current=k,g(k))},[]),C=Ft.useCallback(k=>{k!==P.current&&(P.current=k,x(k))},[]),S=a||y,b=s||v,R=Ft.useRef(null),P=Ft.useRef(null),M=Ft.useRef(d),T=u!=null,_=kw(u),F=kw(n),O=kw(c),N=Ft.useCallback(()=>{if(!R.current||!P.current)return;let k={placement:t,strategy:o,middleware:p};F.current&&(k.platform=F.current),Ow(R.current,P.current,k).then(E=>{let V={...E,isPositioned:O.current!==!1};I.current&&!Ch(M.current,V)&&(M.current=V,VT.flushSync(()=>{f(V)}))})},[p,t,o,F,O]);wh(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,f(k=>({...k,isPositioned:!1})))},[c]);let I=Ft.useRef(!1);wh(()=>(I.current=!0,()=>{I.current=!1}),[]),wh(()=>{if(S&&(R.current=S),b&&(P.current=b),S&&b){if(_.current)return _.current(S,b,N);N()}},[S,b,N,_,T]);let A=Ft.useMemo(()=>({reference:R,floating:P,setReference:w,setFloating:C}),[w,C]),L=Ft.useMemo(()=>({reference:S,floating:b}),[S,b]),D=Ft.useMemo(()=>{let k={position:o,left:0,top:0};if(!L.floating)return k;let E=BT(L.floating,d.x),V=BT(L.floating,d.y);return i?{...k,transform:"translate("+E+"px, "+V+"px)",...HT(L.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:E,top:V}},[o,i,L.floating,d.x,d.y]);return Ft.useMemo(()=>({...d,update:N,refs:A,elements:L,floatingStyles:D}),[d,N,A,L,D])}var R4=e=>{function t(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){let{element:r,padding:n}=typeof e=="function"?e(o):e;return r&&t(r)?r.current!=null?Aw({element:r.current,padding:n}).fn(o):{}:r?Aw({element:r,padding:n}).fn(o):{}}}},bh=(e,t)=>({...AT(e),options:[e,t]}),Ih=(e,t)=>({...OT(e),options:[e,t]}),Rh=(e,t)=>({...FT(e),options:[e,t]}),Ph=(e,t)=>({...kT(e),options:[e,t]}),Lh=(e,t)=>({...NT(e),options:[e,t]});var Mh=(e,t)=>({..._T(e),options:[e,t]});var Eh=(e,t)=>({...R4(e),options:[e,t]});l();import*as zT from"react";import{jsx as UT}from"react/jsx-runtime";var P4="Arrow",qT=zT.forwardRef((e,t)=>{let{children:o,width:r=10,height:n=5,...a}=e;return UT(he.svg,{...a,ref:t,width:r,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?o:UT("polygon",{points:"0,0 30,0 15,10"})})});qT.displayName=P4;var WT=qT;l();import*as $T from"react";function Th(e){let[t,o]=$T.useState(void 0);return Dt(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});let r=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;let a=n[0],s,i;if("borderBoxSize"in a){let u=a.borderBoxSize,c=Array.isArray(u)?u[0]:u;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;o({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else o(void 0)},[e]),t}import{jsx as ui}from"react/jsx-runtime";var Nw="Popper",[GT,ma]=so(Nw),[M4,jT]=GT(Nw),KT=e=>{let{__scopePopper:t,children:o}=e,[r,n]=Rr.useState(null);return ui(M4,{scope:t,anchor:r,onAnchorChange:n,children:o})};KT.displayName=Nw;var YT="PopperAnchor",XT=Rr.forwardRef((e,t)=>{let{__scopePopper:o,virtualRef:r,...n}=e,a=jT(YT,o),s=Rr.useRef(null),i=Le(t,s);return Rr.useEffect(()=>{a.onAnchorChange(r?.current||s.current)}),r?null:ui(he.div,{...n,ref:i})});XT.displayName=YT;var _w="PopperContent",[E4,T4]=GT(_w),QT=Rr.forwardRef((e,t)=>{let{__scopePopper:o,side:r="bottom",sideOffset:n=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:y,...g}=e,v=jT(_w,o),[x,w]=Rr.useState(null),C=Le(t,z=>w(z)),[S,b]=Rr.useState(null),R=Th(S),P=R?.width??0,M=R?.height??0,T=r+(a!=="center"?"-"+a:""),_=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},F=Array.isArray(c)?c:[c],O=F.length>0,N={padding:_,boundary:F.filter(A4),altBoundary:O},{refs:I,floatingStyles:A,placement:L,isPositioned:D,middlewareData:k}=Sh({strategy:"fixed",placement:T,whileElementsMounted:(...z)=>gd(...z,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[bh({mainAxis:n+M,alignmentAxis:s}),u&&Ih({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Rh():void 0,...N}),u&&Ph({...N}),Lh({...N,apply:({elements:z,rects:j,availableWidth:X,availableHeight:K})=>{let{width:re,height:ne}=j.reference,me=z.floating.style;me.setProperty("--radix-popper-available-width",`${X}px`),me.setProperty("--radix-popper-available-height",`${K}px`),me.setProperty("--radix-popper-anchor-width",`${re}px`),me.setProperty("--radix-popper-anchor-height",`${ne}px`)}}),S&&Eh({element:S,padding:i}),O4({arrowWidth:P,arrowHeight:M}),p&&Mh({strategy:"referenceHidden",...N})]}),[E,V]=eD(L),B=pt(y);Dt(()=>{D&&B?.()},[D,B]);let U=k.arrow?.x,$=k.arrow?.y,G=k.arrow?.centerOffset!==0,[H,q]=Rr.useState();return Dt(()=>{x&&q(window.getComputedStyle(x).zIndex)},[x]),ui("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...A,transform:D?A.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:H,"--radix-popper-transform-origin":[k.transformOrigin?.x,k.transformOrigin?.y].join(" "),...k.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:ui(E4,{scope:o,placedSide:E,onArrowChange:b,arrowX:U,arrowY:$,shouldHideArrow:G,children:ui(he.div,{"data-side":E,"data-align":V,...g,ref:C,style:{...g.style,animation:D?void 0:"none"}})})})});QT.displayName=_w;var ZT="PopperArrow",D4={top:"bottom",right:"left",bottom:"top",left:"right"},JT=Rr.forwardRef(function(t,o){let{__scopePopper:r,...n}=t,a=T4(ZT,r),s=D4[a.placedSide];return ui("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:ui(WT,{...n,ref:o,style:{...n.style,display:"block"}})})});JT.displayName=ZT;function A4(e){return e!==null}var O4=e=>({name:"transformOrigin",options:e,fn(t){let{placement:o,rects:r,middlewareData:n}=t,s=n.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[c,d]=eD(o),f={start:"0%",center:"50%",end:"100%"}[d],p=(n.arrow?.x??0)+i/2,m=(n.arrow?.y??0)+u/2,y="",g="";return c==="bottom"?(y=s?f:`${p}px`,g=`${-u}px`):c==="top"?(y=s?f:`${p}px`,g=`${r.floating.height+u}px`):c==="right"?(y=`${-u}px`,g=s?f:`${m}px`):c==="left"&&(y=`${r.floating.width+u}px`,g=s?f:`${m}px`),{data:{x:y,y:g}}}});function eD(e){let[t,o="center"]=e.split("-");return[t,o]}var ci=KT,di=XT,Jl=QT,eu=JT;l();import*as Dh from"react";import k4 from"react-dom";import{jsx as N4}from"react/jsx-runtime";var _4="Portal",fi=Dh.forwardRef((e,t)=>{let{container:o,...r}=e,[n,a]=Dh.useState(!1);Dt(()=>a(!0),[]);let s=o||n&&globalThis?.document?.body;return s?k4.createPortal(N4(he.div,{...r,ref:t}),s):null});fi.displayName=_4;l();import*as is from"react";function Pr({prop:e,defaultProp:t,onChange:o=()=>{}}){let[r,n]=F4({defaultProp:t,onChange:o}),a=e!==void 0,s=a?e:r,i=pt(o),u=is.useCallback(c=>{if(a){let f=typeof c=="function"?c(e):c;f!==e&&i(f)}else n(c)},[a,e,n,i]);return[s,u]}function F4({defaultProp:e,onChange:t}){let o=is.useState(e),[r]=o,n=is.useRef(r),a=pt(t);return is.useEffect(()=>{n.current!==r&&(a(r),n.current=r)},[r,n,a]),o}l();import*as Ah from"react";function Oh(e){let t=Ah.useRef({value:e,previous:e});return Ah.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}l();import*as tD from"react";import{jsx as B4}from"react/jsx-runtime";var V4="VisuallyHidden",Bw=tD.forwardRef((e,t)=>B4(he.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Bw.displayName=V4;l();var H4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},tu=new WeakMap,kh=new WeakMap,Nh={},Vw=0,oD=function(e){return e&&(e.host||oD(e.parentNode))},U4=function(e,t){return t.map(function(o){if(e.contains(o))return o;var r=oD(o);return r&&e.contains(r)?r:(console.error("aria-hidden",o,"in not contained inside",e,". Doing nothing"),null)}).filter(function(o){return!!o})},z4=function(e,t,o,r){var n=U4(t,Array.isArray(e)?e:[e]);Nh[o]||(Nh[o]=new WeakMap);var a=Nh[o],s=[],i=new Set,u=new Set(n),c=function(f){!f||i.has(f)||(i.add(f),c(f.parentNode))};n.forEach(c);var d=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(p){if(i.has(p))d(p);else try{var m=p.getAttribute(r),y=m!==null&&m!=="false",g=(tu.get(p)||0)+1,v=(a.get(p)||0)+1;tu.set(p,g),a.set(p,v),s.push(p),g===1&&y&&kh.set(p,!0),v===1&&p.setAttribute(o,"true"),y||p.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",p,x)}})};return d(t),i.clear(),Vw++,function(){s.forEach(function(f){var p=tu.get(f)-1,m=a.get(f)-1;tu.set(f,p),a.set(f,m),p||(kh.has(f)||f.removeAttribute(r),kh.delete(f)),m||f.removeAttribute(o)}),Vw--,Vw||(tu=new WeakMap,tu=new WeakMap,kh=new WeakMap,Nh={})}},ou=function(e,t,o){o===void 0&&(o="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),n=t||H4(e);return n?(r.push.apply(r,Array.from(n.querySelectorAll("[aria-live]"))),z4(r,n,o,"aria-hidden")):function(){return null}};l();l();l();var ir=function(){return ir=Object.assign||function(t){for(var o,r=1,n=arguments.length;r<n;r++){o=arguments[r];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(t[a]=o[a])}return t},ir.apply(this,arguments)};function _h(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]]);return o}function rD(e,t,o){if(o||arguments.length===2)for(var r=0,n=t.length,a;r<n;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}import*as Uh from"react";l();import*as Ao from"react";l();var pi="right-scroll-bar-position",mi="width-before-scroll-bar",Hw="with-scroll-bars-hidden",Uw="--removed-body-scroll-bar-size";l();l();function Fh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}l();import{useState as q4}from"react";function nD(e,t){var o=q4(function(){return{value:e,callback:t,facade:{get current(){return o.value},set current(r){var n=o.value;n!==r&&(o.value=r,o.callback(r,n))}}}})[0];return o.callback=t,o.facade}l();import*as Bh from"react";var W4=typeof window<"u"?Bh.useLayoutEffect:Bh.useEffect,aD=new WeakMap;function zw(e,t){var o=nD(t||null,function(r){return e.forEach(function(n){return Fh(n,r)})});return W4(function(){var r=aD.get(o);if(r){var n=new Set(r),a=new Set(e),s=o.current;n.forEach(function(i){a.has(i)||Fh(i,null)}),a.forEach(function(i){n.has(i)||Fh(i,s)})}aD.set(o,e)},[e]),o}l();l();l();function $4(e){return e}function G4(e,t){t===void 0&&(t=$4);var o=[],r=!1,n={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:e},useMedium:function(a){var s=t(a,r);return o.push(s),function(){o=o.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;o.length;){var s=o;o=[],s.forEach(a)}o={push:function(i){return a(i)},filter:function(){return o}}},assignMedium:function(a){r=!0;var s=[];if(o.length){var i=o;o=[],i.forEach(a),s=o}var u=function(){var d=s;s=[],d.forEach(a)},c=function(){return Promise.resolve().then(u)};c(),o={push:function(d){s.push(d),c()},filter:function(d){return s=s.filter(d),o}}}};return n}function qw(e){e===void 0&&(e={});var t=G4(null);return t.options=ir({async:!0,ssr:!1},e),t}l();import*as sD from"react";var iD=function(e){var t=e.sideCar,o=_h(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return sD.createElement(r,ir({},o))};iD.isSideCarExport=!0;function Ww(e,t){return e.useMedium(t),iD}var Vh=qw();var $w=function(){},yd=Ao.forwardRef(function(e,t){var o=Ao.useRef(null),r=Ao.useState({onScrollCapture:$w,onWheelCapture:$w,onTouchMoveCapture:$w}),n=r[0],a=r[1],s=e.forwardProps,i=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,y=e.inert,g=e.allowPinchZoom,v=e.as,x=v===void 0?"div":v,w=e.gapMode,C=_h(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,b=zw([o,t]),R=ir(ir({},C),n);return Ao.createElement(Ao.Fragment,null,d&&Ao.createElement(S,{sideCar:Vh,removeScrollBar:c,shards:f,noIsolation:m,inert:y,setCallbacks:a,allowPinchZoom:!!g,lockRef:o,gapMode:w}),s?Ao.cloneElement(Ao.Children.only(i),ir(ir({},R),{ref:b})):Ao.createElement(x,ir({},R,{className:u,ref:b}),i))});yd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};yd.classNames={fullWidth:mi,zeroRight:pi};l();l();import*as at from"react";l();l();import*as nu from"react";l();l();l();import*as cD from"react";l();l();var lD;var uD=function(){if(lD)return lD;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function j4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=uD();return t&&e.setAttribute("nonce",t),e}function K4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Y4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Gw=function(){var e=0,t=null;return{add:function(o){e==0&&(t=j4())&&(K4(t,o),Y4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var jw=function(){var e=Gw();return function(t,o){cD.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&o])}};var xd=function(){var e=jw(),t=function(o){var r=o.styles,n=o.dynamic;return e(r,n),null};return t};l();var X4={left:0,top:0,right:0,gap:0},Kw=function(e){return parseInt(e||"",10)||0},Q4=function(e){var t=window.getComputedStyle(document.body),o=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],n=t[e==="padding"?"paddingRight":"marginRight"];return[Kw(o),Kw(r),Kw(n)]},Yw=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return X4;var t=Q4(e),o=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-o+t[2]-t[0])}};var Z4=xd(),ru="data-scroll-locked",J4=function(e,t,o,r){var n=e.left,a=e.top,s=e.right,i=e.gap;return o===void 0&&(o="margin"),`
19
19
  .`.concat(Hw,` {
20
20
  overflow: hidden `).concat(r,`;
21
21
  padding-right: `).concat(i,"px ").concat(r,`;