@qearlyao/familiar 0.4.2 → 0.4.5

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.
@@ -0,0 +1,51 @@
1
+ import{r as e}from"./rolldown-runtime-S-ySWqyJ.js";import{i as t,r as n,t as r}from"./react-Bi_azaFt.js";var i=e(t(),1),a=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),o=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),s=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),c=e=>{let t=s(e);return t.charAt(0).toUpperCase()+t.slice(1)},l={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`},u=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},d=(0,i.createContext)({}),f=()=>(0,i.useContext)(d),p=(0,i.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:o=``,children:s,iconNode:c,...d},p)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,color:_=`currentColor`,className:v=``}=f()??{},y=r??g?Number(n??h)*24/Number(t??m):n??h;return(0,i.createElement)(`svg`,{ref:p,...l,width:t??m??l.width,height:t??m??l.height,stroke:e??_,strokeWidth:y,className:a(`lucide`,v,o),...!s&&!u(d)&&{"aria-hidden":`true`},...d},[...c.map(([e,t])=>(0,i.createElement)(e,t)),...Array.isArray(s)?s:[s]])}),m=(e,t)=>{let n=(0,i.forwardRef)(({className:n,...r},s)=>(0,i.createElement)(p,{ref:s,iconNode:t,className:a(`lucide-${o(c(e))}`,`lucide-${e}`,n),...r}));return n.displayName=c(e),n},h=m(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),g=m(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),_=m(`brain`,[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]),v=m(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),y=m(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),b=m(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),x=m(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),S=m(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),C=m(`compass`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z`,key:`9ktpf1`}]]),w=m(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),T=m(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),E=m(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),D=m(`file-heart`,[[`path`,{d:`M13 22h5a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v7`,key:`oagw2b`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M3.62 18.8A2.25 2.25 0 1 1 7 15.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a1 1 0 0 1-1.507 0z`,key:`rg3psg`}]]),O=m(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),ee=m(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),k=m(`heart-pulse`,[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}],[`path`,{d:`M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27`,key:`auskq0`}]]),A=m(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),j=m(`images`,[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]),M=m(`log-in`,[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]),te=m(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),N=m(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),P=m(`monitor-smartphone`,[[`path`,{d:`M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8`,key:`10dyio`}],[`path`,{d:`M10 19v-3.96 3.15`,key:`1irgej`}],[`path`,{d:`M7 19h5`,key:`qswx4l`}],[`rect`,{width:`6`,height:`10`,x:`16`,y:`12`,rx:`2`,key:`1egngj`}]]),ne=m(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),re=m(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),ie=m(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),ae=m(`panel-left-open`,[[`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`}]]),F=m(`paperclip`,[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]),I=m(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),oe=m(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),se=m(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),L=m(`refresh-cw`,[[`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`}]]),ce=m(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),le=m(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),ue=m(`send-horizontal`,[[`path`,{d:`M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z`,key:`117uat`}],[`path`,{d:`M6 12h16`,key:`s4cdu5`}]]),de=m(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),fe=m(`smile`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 14s1.5 2 4 2 4-2 4-2`,key:`1y1vjs`}],[`line`,{x1:`9`,x2:`9.01`,y1:`9`,y2:`9`,key:`yxxnd0`}],[`line`,{x1:`15`,x2:`15.01`,y1:`9`,y2:`9`,key:`1p4y9e`}]]),pe=m(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),me=m(`square-pen`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]]),he=m(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),ge=m(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),_e=m(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),ve=m(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),ye=m(`volume-2`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`,key:`ijwkga`}]]),be=m(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),xe=m(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function Se(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Se(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Ce(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Se(e))&&(r&&(r+=` `),r+=t);return r}var we=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Te=Ce,Ee=(e,t)=>n=>{if(t?.variants==null)return Te(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=we(t)||we(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Te(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)};function De(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Oe(...e){return t=>{let n=!1,r=e.map(e=>{let r=De(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():De(e[t],null)}}}}function R(...e){return i.useCallback(Oe(...e),e)}var ke=e(n(),1),z=r();function Ae(e){let t=Me(e),n=i.forwardRef((e,n)=>{let{children:r,...a}=e,o=i.Children.toArray(r),s=o.find(Fe);if(s){let e=s.props.children,r=o.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,z.jsx)(t,{...a,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,z.jsx)(t,{...a,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var je=Ae(`Slot`);function Me(e){let t=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){let e=Le(n),a=Ie(r,n.props);return n.type!==i.Fragment&&(a.ref=t?Oe(t,e):e),i.cloneElement(n,a)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ne=Symbol(`radix.slottable`);function Pe(e){let t=({children:e})=>(0,z.jsx)(z.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=Ne,t}function Fe(e){return i.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Ne}function Ie(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Le(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var B=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Ae(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,z.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Re(e,t){e&&ke.flushSync(()=>e.dispatchEvent(t))}function ze(e,t){let n=i.createContext(t),r=e=>{let{children:t,...r}=e,a=i.useMemo(()=>r,Object.values(r));return(0,z.jsx)(n.Provider,{value:a,children:t})};r.displayName=e+`Provider`;function a(r){let a=i.useContext(n);if(a)return a;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,a]}function V(e,t=[]){let n=[];function r(t,r){let a=i.createContext(r),o=n.length;n=[...n,r];let s=t=>{let{scope:n,children:r,...s}=t,c=n?.[e]?.[o]||a,l=i.useMemo(()=>s,Object.values(s));return(0,z.jsx)(c.Provider,{value:l,children:r})};s.displayName=t+`Provider`;function c(n,s){let c=s?.[e]?.[o]||a,l=i.useContext(c);if(l)return l;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[s,c]}let a=()=>{let t=n.map(e=>i.createContext(e));return function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return a.scopeName=e,[r,Be(a,...t)]}function Be(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function Ve(e){let t=e+`CollectionProvider`,[n,r]=V(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:n}=e,r=i.useRef(null),o=i.useRef(new Map).current;return(0,z.jsx)(a,{scope:t,itemMap:o,collectionRef:r,children:n})};s.displayName=t;let c=e+`CollectionSlot`,l=Ae(c),u=i.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,z.jsx)(l,{ref:R(t,o(c,n).collectionRef),children:r})});u.displayName=c;let d=e+`CollectionItemSlot`,f=`data-radix-collection-item`,p=Ae(d),m=i.forwardRef((e,t)=>{let{scope:n,children:r,...a}=e,s=i.useRef(null),c=R(t,s),l=o(d,n);return i.useEffect(()=>(l.itemMap.set(s,{ref:s,...a}),()=>void l.itemMap.delete(s))),(0,z.jsx)(p,{[f]:``,ref:c,children:r})});m.displayName=d;function h(t){let n=o(e+`CollectionConsumer`,t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:s,Slot:u,ItemSlot:m},h,r]}typeof window<`u`&&window.document&&window.document.createElement;function H(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var He=globalThis?.document?i.useLayoutEffect:()=>{},Ue=i.useInsertionEffect||He;function We({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[a,o,s]=Ge({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:a;{let t=i.useRef(e!==void 0);i.useEffect(()=>{let e=t.current;e!==c&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${c?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=c},[c,r])}return[l,i.useCallback(t=>{if(c){let n=Ke(t)?t(e):t;n!==e&&s.current?.(n)}else o(t)},[c,e,o,s])]}function Ge({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),a=i.useRef(n),o=i.useRef(t);return Ue(()=>{o.current=t},[t]),i.useEffect(()=>{a.current!==n&&(o.current?.(n),a.current=n)},[n,a]),[n,r,o]}function Ke(e){return typeof e==`function`}function qe(e,t){return i.useReducer((e,n)=>t[e][n]??e,e)}var U=e=>{let{present:t,children:n}=e,r=Je(t),a=typeof n==`function`?n({present:r.isPresent}):i.Children.only(n),o=R(r.ref,Xe(a));return typeof n==`function`||r.isPresent?i.cloneElement(a,{ref:o}):null};U.displayName=`Presence`;function Je(e){let[t,n]=i.useState(),r=i.useRef(null),a=i.useRef(e),o=i.useRef(`none`),[s,c]=qe(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return i.useEffect(()=>{let e=Ye(r.current);o.current=s===`mounted`?e:`none`},[s]),He(()=>{let t=r.current,n=a.current;if(n!==e){let r=o.current,i=Ye(t);e?c(`MOUNT`):i===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==i?`ANIMATION_OUT`:`UNMOUNT`),a.current=e}},[e,c]),He(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,i=i=>{let o=Ye(r.current).includes(CSS.escape(i.animationName));if(i.target===t&&o&&(c(`ANIMATION_END`),!a.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},s=e=>{e.target===t&&(o.current=Ye(r.current))};return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,i),t.addEventListener(`animationend`,i),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,i),t.removeEventListener(`animationend`,i)}}else c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:i.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function Ye(e){return e?.animationName||`none`}function Xe(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ze=i.useId||(()=>void 0),Qe=0;function $e(e){let[t,n]=i.useState(Ze());return He(()=>{e||n(e=>e??String(Qe++))},[e]),e||(t?`radix-${t}`:``)}var et=`Collapsible`,[tt,nt]=V(et),[rt,it]=tt(et),at=i.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:a,disabled:o,onOpenChange:s,...c}=e,[l,u]=We({prop:r,defaultProp:a??!1,onChange:s,caller:et});return(0,z.jsx)(rt,{scope:n,disabled:o,contentId:$e(),open:l,onOpenToggle:i.useCallback(()=>u(e=>!e),[u]),children:(0,z.jsx)(B.div,{"data-state":dt(l),"data-disabled":o?``:void 0,...c,ref:t})})});at.displayName=et;var ot=`CollapsibleTrigger`,st=i.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=it(ot,n);return(0,z.jsx)(B.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":dt(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:H(e.onClick,i.onOpenToggle)})});st.displayName=ot;var ct=`CollapsibleContent`,lt=i.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=it(ct,e.__scopeCollapsible);return(0,z.jsx)(U,{present:n||i.open,children:({present:e})=>(0,z.jsx)(ut,{...r,ref:t,present:e})})});lt.displayName=ct;var ut=i.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:a,...o}=e,s=it(ct,n),[c,l]=i.useState(r),u=i.useRef(null),d=R(t,u),f=i.useRef(0),p=f.current,m=i.useRef(0),h=m.current,g=s.open||c,_=i.useRef(g),v=i.useRef(void 0);return i.useEffect(()=>{let e=requestAnimationFrame(()=>_.current=!1);return()=>cancelAnimationFrame(e)},[]),He(()=>{let e=u.current;if(e){v.current=v.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();f.current=t.height,m.current=t.width,_.current||(e.style.transitionDuration=v.current.transitionDuration,e.style.animationName=v.current.animationName),l(r)}},[s.open,r]),(0,z.jsx)(B.div,{"data-state":dt(s.open),"data-disabled":s.disabled?``:void 0,id:s.contentId,hidden:!g,...o,ref:d,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:g&&a})});function dt(e){return e?`open`:`closed`}var ft=at,pt=i.createContext(void 0);function mt(e){let t=i.useContext(pt);return e||t||`ltr`}function W(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}function ht(e,t=globalThis?.document){let n=W(e);i.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var gt=`DismissableLayer`,_t=`dismissableLayer.update`,vt=`dismissableLayer.pointerDownOutside`,yt=`dismissableLayer.focusOutside`,bt,xt=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),St=i.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=i.useContext(xt),[d,f]=i.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=i.useState({}),h=R(t,e=>f(e)),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(_),y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=Tt(e=>{let t=e.target,n=[...u.branches].some(e=>e.contains(t));!x||n||(a?.(e),s?.(e),e.defaultPrevented||c?.())},p),C=Et(e=>{let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p);return ht(e=>{y===u.layers.size-1&&(r?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},p),i.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(bt=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Dt(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=bt)}},[d,p,n,u]),i.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Dt())},[d,u]),i.useEffect(()=>{let e=()=>m({});return document.addEventListener(_t,e),()=>document.removeEventListener(_t,e)},[]),(0,z.jsx)(B.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:H(e.onFocusCapture,C.onFocusCapture),onBlurCapture:H(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:H(e.onPointerDownCapture,S.onPointerDownCapture)})});St.displayName=gt;var Ct=`DismissableLayerBranch`,wt=i.forwardRef((e,t)=>{let n=i.useContext(xt),r=i.useRef(null),a=R(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,z.jsx)(B.div,{...e,ref:a})});wt.displayName=Ct;function Tt(e,t=globalThis?.document){let n=W(e),r=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){Ot(vt,n,i,{discrete:!0})},i={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,a.current),a.current=r,t.addEventListener(`click`,a.current,{once:!0})):r()}else t.removeEventListener(`click`,a.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(i),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Et(e,t=globalThis?.document){let n=W(e),r=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!r.current&&Ot(yt,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Dt(){let e=new CustomEvent(_t);document.dispatchEvent(e)}function Ot(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Re(i,a):i.dispatchEvent(a)}var kt=`focusScope.autoFocusOnMount`,At=`focusScope.autoFocusOnUnmount`,jt={bubbles:!1,cancelable:!0},Mt=`FocusScope`,Nt=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=i.useState(null),u=W(a),d=W(o),f=i.useRef(null),p=R(t,e=>l(e)),m=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(m.paused||!c)return;let t=e.target;c.contains(t)?f.current=t:Bt(f.current,{select:!0})},t=function(e){if(m.paused||!c)return;let t=e.relatedTarget;t!==null&&(c.contains(t)||Bt(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Bt(c)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,c,m.paused]),i.useEffect(()=>{if(c){Vt.add(m);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(kt,jt);c.addEventListener(kt,u),c.dispatchEvent(t),t.defaultPrevented||(Pt(Wt(It(c)),{select:!0}),document.activeElement===e&&Bt(c))}return()=>{c.removeEventListener(kt,u),setTimeout(()=>{let t=new CustomEvent(At,jt);c.addEventListener(At,d),c.dispatchEvent(t),t.defaultPrevented||Bt(e??document.body,{select:!0}),c.removeEventListener(At,d),Vt.remove(m)},0)}}},[c,u,d,m]);let h=i.useCallback(e=>{if(!n&&!r||m.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Ft(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Bt(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Bt(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,m.paused]);return(0,z.jsx)(B.div,{tabIndex:-1,...s,ref:p,onKeyDown:h})});Nt.displayName=Mt;function Pt(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Bt(r,{select:t}),document.activeElement!==n)return}function Ft(e){let t=It(e);return[Lt(t,e),Lt(t.reverse(),e)]}function It(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Lt(e,t){for(let n of e)if(!Rt(n,{upTo:t}))return n}function Rt(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 zt(e){return e instanceof HTMLInputElement&&`select`in e}function Bt(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&zt(e)&&t&&e.select()}}var Vt=Ht();function Ht(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Ut(e,t),e.unshift(t)},remove(t){e=Ut(e,t),e[0]?.resume()}}}function Ut(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Wt(e){return e.filter(e=>e.tagName!==`A`)}var Gt=`Portal`,Kt=i.forwardRef((e,t)=>{let{container:n,...r}=e,[a,o]=i.useState(!1);He(()=>o(!0),[]);let s=n||a&&globalThis?.document?.body;return s?ke.createPortal((0,z.jsx)(B.div,{...r,ref:t}),s):null});Kt.displayName=Gt;var qt=0;function Jt(){i.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??Yt()),document.body.insertAdjacentElement(`beforeend`,e[1]??Yt()),qt++,()=>{qt===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),qt--}},[])}function Yt(){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}var Xt=function(){return Xt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Xt.apply(this,arguments)};function Zt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Qt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var $t=`right-scroll-bar-position`,en=`width-before-scroll-bar`,tn=`with-scroll-bars-hidden`,nn=`--removed-body-scroll-bar-size`;function rn(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function an(e,t){var n=(0,i.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var on=typeof window<`u`?i.useLayoutEffect:i.useEffect,sn=new WeakMap;function cn(e,t){var n=an(t||null,function(t){return e.forEach(function(e){return rn(e,t)})});return on(function(){var t=sn.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||rn(e,null)}),i.forEach(function(e){r.has(e)||rn(e,a)})}sn.set(n,e)},[e]),n}function ln(e){return e}function un(e,t){t===void 0&&(t=ln);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function dn(e){e===void 0&&(e={});var t=un(null);return t.options=Xt({async:!0,ssr:!1},e),t}var fn=function(e){var t=e.sideCar,n=Zt(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return i.createElement(r,Xt({},n))};fn.isSideCarExport=!0;function pn(e,t){return e.useMedium(t),fn}var mn=dn(),hn=function(){},gn=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:hn,onWheelCapture:hn,onTouchMoveCapture:hn}),a=r[0],o=r[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=Zt(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=p,C=cn([n,t]),w=Xt(Xt({},x),a);return i.createElement(i.Fragment,null,d&&i.createElement(S,{sideCar:mn,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:o,allowPinchZoom:!!_,lockRef:n,gapMode:b}),s?i.cloneElement(i.Children.only(c),Xt(Xt({},w),{ref:C})):i.createElement(y,Xt({},w,{className:l,ref:C}),c))});gn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},gn.classNames={fullWidth:en,zeroRight:$t};var _n,vn=function(){if(_n)return _n;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function yn(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=vn();return t&&e.setAttribute(`nonce`,t),e}function bn(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function xn(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Sn=function(){var e=0,t=null;return{add:function(n){e==0&&(t=yn())&&(bn(t,n),xn(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Cn=function(){var e=Sn();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},wn=function(){var e=Cn();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Tn={left:0,top:0,right:0,gap:0},En=function(e){return parseInt(e||``,10)||0},Dn=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[En(n),En(r),En(i)]},On=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Tn;var t=Dn(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},kn=wn(),An=`data-scroll-locked`,jn=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
2
+ .${tn} {
3
+ overflow: hidden ${r};
4
+ padding-right: ${s}px ${r};
5
+ }
6
+ body[${An}] {
7
+ overflow: hidden ${r};
8
+ overscroll-behavior: contain;
9
+ ${[t&&`position: relative ${r};`,n===`margin`&&`
10
+ padding-left: ${i}px;
11
+ padding-top: ${a}px;
12
+ padding-right: ${o}px;
13
+ margin-left:0;
14
+ margin-top:0;
15
+ margin-right: ${s}px ${r};
16
+ `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
17
+ }
18
+
19
+ .${$t} {
20
+ right: ${s}px ${r};
21
+ }
22
+
23
+ .${en} {
24
+ margin-right: ${s}px ${r};
25
+ }
26
+
27
+ .${$t} .${$t} {
28
+ right: 0 ${r};
29
+ }
30
+
31
+ .${en} .${en} {
32
+ margin-right: 0 ${r};
33
+ }
34
+
35
+ body[${An}] {
36
+ ${nn}: ${s}px;
37
+ }
38
+ `},Mn=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Nn=function(){i.useEffect(function(){return document.body.setAttribute(An,(Mn()+1).toString()),function(){var e=Mn()-1;e<=0?document.body.removeAttribute(An):document.body.setAttribute(An,e.toString())}},[])},Pn=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?`margin`:r;Nn();var o=i.useMemo(function(){return On(a)},[a]);return i.createElement(kn,{styles:jn(o,!t,a,n?``:`!important`)})},Fn=!1;if(typeof window<`u`)try{var In=Object.defineProperty({},`passive`,{get:function(){return Fn=!0,!0}});window.addEventListener(`test`,In,In),window.removeEventListener(`test`,In,In)}catch{Fn=!1}var Ln=Fn?{passive:!1}:!1,Rn=function(e){return e.tagName===`TEXTAREA`},zn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Rn(e)&&n[t]===`visible`)},Bn=function(e){return zn(e,`overflowY`)},Vn=function(e){return zn(e,`overflowX`)},Hn=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Gn(e,r)){var i=Kn(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Un=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Wn=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Gn=function(e,t){return e===`v`?Bn(t):Vn(t)},Kn=function(e,t){return e===`v`?Un(t):Wn(t)},qn=function(e,t){return e===`h`&&t===`rtl`?-1:1},Jn=function(e,t,n,r,i){var a=qn(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Kn(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Gn(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Yn=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Xn=function(e){return[e.deltaX,e.deltaY]},Zn=function(e){return e&&`current`in e?e.current:e},Qn=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$n=function(e){return`
39
+ .block-interactivity-${e} {pointer-events: none;}
40
+ .allow-interactivity-${e} {pointer-events: all;}
41
+ `},er=0,tr=[];function nr(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),a=i.useState(er++)[0],o=i.useState(wn)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${a}`);var t=Qt([e.lockRef.current],(e.shards||[]).map(Zn),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${a}`)}),function(){document.body.classList.remove(`block-interactivity-${a}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${a}`)})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!s.current.allowPinchZoom;var i=Yn(e),a=n.current,o=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(o)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Hn(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Hn(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(o||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Jn(h,t,e,h===`h`?o:c,!0)},[]),l=i.useCallback(function(e){var n=e;if(!(!tr.length||tr[tr.length-1]!==o)){var r=`deltaY`in n?Xn(n):Yn(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Qn(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var a=(s.current.shards||[]).map(Zn).filter(Boolean).filter(function(e){return e.contains(n.target)});(a.length>0?c(n,a[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=i.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:rr(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=i.useCallback(function(e){n.current=Yn(e),r.current=void 0},[]),f=i.useCallback(function(t){u(t.type,Xn(t),t.target,c(t,e.lockRef.current))},[]),p=i.useCallback(function(t){u(t.type,Yn(t),t.target,c(t,e.lockRef.current))},[]);i.useEffect(function(){return tr.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,Ln),document.addEventListener(`touchmove`,l,Ln),document.addEventListener(`touchstart`,d,Ln),function(){tr=tr.filter(function(e){return e!==o}),document.removeEventListener(`wheel`,l,Ln),document.removeEventListener(`touchmove`,l,Ln),document.removeEventListener(`touchstart`,d,Ln)}},[]);var m=e.removeScrollBar,h=e.inert;return i.createElement(i.Fragment,null,h?i.createElement(o,{styles:$n(a)}):null,m?i.createElement(Pn,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function rr(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var ir=pn(mn,nr),ar=i.forwardRef(function(e,t){return i.createElement(gn,Xt({},e,{ref:t,sideCar:ir}))});ar.classNames=gn.classNames;var or=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},sr=new WeakMap,cr=new WeakMap,lr={},ur=0,dr=function(e){return e&&(e.host||dr(e.parentNode))},fr=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=dr(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},pr=function(e,t,n,r){var i=fr(t,Array.isArray(e)?e:[e]);lr[n]||(lr[n]=new WeakMap);var a=lr[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(sr.get(e)||0)+1,l=(a.get(e)||0)+1;sr.set(e,c),a.set(e,l),o.push(e),c===1&&i&&cr.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),ur++,function(){o.forEach(function(e){var t=sr.get(e)-1,i=a.get(e)-1;sr.set(e,t),a.set(e,i),t||(cr.has(e)||e.removeAttribute(r),cr.delete(e)),i||e.removeAttribute(n)}),ur--,ur||(sr=new WeakMap,sr=new WeakMap,cr=new WeakMap,lr={})}},mr=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||or(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),pr(r,i,n,`aria-hidden`)):function(){return null}},hr=`Dialog`,[gr,_r]=V(hr),[vr,yr]=gr(hr),br=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=i.useRef(null),l=i.useRef(null),[u,d]=We({prop:r,defaultProp:a??!1,onChange:o,caller:hr});return(0,z.jsx)(vr,{scope:t,triggerRef:c,contentRef:l,contentId:$e(),titleId:$e(),descriptionId:$e(),open:u,onOpenChange:d,onOpenToggle:i.useCallback(()=>d(e=>!e),[d]),modal:s,children:n})};br.displayName=hr;var xr=`DialogTrigger`,Sr=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=yr(xr,n),a=R(t,i.triggerRef);return(0,z.jsx)(B.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Hr(i.open),...r,ref:a,onClick:H(e.onClick,i.onOpenToggle)})});Sr.displayName=xr;var Cr=`DialogPortal`,[wr,Tr]=gr(Cr,{forceMount:void 0}),Er=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=yr(Cr,t);return(0,z.jsx)(wr,{scope:t,forceMount:n,children:i.Children.map(r,e=>(0,z.jsx)(U,{present:n||o.open,children:(0,z.jsx)(Kt,{asChild:!0,container:a,children:e})}))})};Er.displayName=Cr;var Dr=`DialogOverlay`,Or=i.forwardRef((e,t)=>{let n=Tr(Dr,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=yr(Dr,e.__scopeDialog);return a.modal?(0,z.jsx)(U,{present:r||a.open,children:(0,z.jsx)(Ar,{...i,ref:t})}):null});Or.displayName=Dr;var kr=Ae(`DialogOverlay.RemoveScroll`),Ar=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=yr(Dr,n);return(0,z.jsx)(ar,{as:kr,allowPinchZoom:!0,shards:[i.contentRef],children:(0,z.jsx)(B.div,{"data-state":Hr(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),jr=`DialogContent`,Mr=i.forwardRef((e,t)=>{let n=Tr(jr,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=yr(jr,e.__scopeDialog);return(0,z.jsx)(U,{present:r||a.open,children:a.modal?(0,z.jsx)(Nr,{...i,ref:t}):(0,z.jsx)(Pr,{...i,ref:t})})});Mr.displayName=jr;var Nr=i.forwardRef((e,t)=>{let n=yr(jr,e.__scopeDialog),r=i.useRef(null),a=R(t,n.contentRef,r);return i.useEffect(()=>{let e=r.current;if(e)return mr(e)},[]),(0,z.jsx)(Fr,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:H(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:H(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:H(e.onFocusOutside,e=>e.preventDefault())})}),Pr=i.forwardRef((e,t)=>{let n=yr(jr,e.__scopeDialog),r=i.useRef(!1),a=i.useRef(!1);return(0,z.jsx)(Fr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(a.current=!0));let i=t.target;n.triggerRef.current?.contains(i)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&a.current&&t.preventDefault()}})}),Fr=i.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...s}=e,c=yr(jr,n),l=i.useRef(null),u=R(t,l);return Jt(),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Nt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,z.jsx)(St,{role:`dialog`,id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Hr(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Kr,{titleId:c.titleId}),(0,z.jsx)(Jr,{contentRef:l,descriptionId:c.descriptionId})]})]})}),Ir=`DialogTitle`,Lr=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=yr(Ir,n);return(0,z.jsx)(B.h2,{id:i.titleId,...r,ref:t})});Lr.displayName=Ir;var Rr=`DialogDescription`,zr=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=yr(Rr,n);return(0,z.jsx)(B.p,{id:i.descriptionId,...r,ref:t})});zr.displayName=Rr;var Br=`DialogClose`,Vr=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=yr(Br,n);return(0,z.jsx)(B.button,{type:`button`,...r,ref:t,onClick:H(e.onClick,()=>i.onOpenChange(!1))})});Vr.displayName=Br;function Hr(e){return e?`open`:`closed`}var Ur=`DialogTitleWarning`,[Wr,Gr]=ze(Ur,{contentName:jr,titleName:Ir,docsSlug:`dialog`}),Kr=({titleId:e})=>{let t=Gr(Ur),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
+
43
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
+
45
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},qr=`DialogDescriptionWarning`,Jr=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Gr(qr).contentName}}.`;return i.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Yr=br,Xr=Sr,Zr=Er,Qr=Or,$r=Mr,ei=Lr,ti=zr,ni=Vr,ri=`AlertDialog`,[ii,ai]=V(ri,[_r]),oi=_r(),si=e=>{let{__scopeAlertDialog:t,...n}=e,r=oi(t);return(0,z.jsx)(Yr,{...r,...n,modal:!0})};si.displayName=ri;var ci=`AlertDialogTrigger`,li=i.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=oi(n);return(0,z.jsx)(Xr,{...i,...r,ref:t})});li.displayName=ci;var ui=`AlertDialogPortal`,di=e=>{let{__scopeAlertDialog:t,...n}=e,r=oi(t);return(0,z.jsx)(Zr,{...r,...n})};di.displayName=ui;var fi=`AlertDialogOverlay`,pi=i.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=oi(n);return(0,z.jsx)(Qr,{...i,...r,ref:t})});pi.displayName=fi;var mi=`AlertDialogContent`,[hi,gi]=ii(mi),_i=Pe(`AlertDialogContent`),vi=i.forwardRef((e,t)=>{let{__scopeAlertDialog:n,children:r,...a}=e,o=oi(n),s=i.useRef(null),c=R(t,s),l=i.useRef(null);return(0,z.jsx)(Wr,{contentName:mi,titleName:yi,docsSlug:`alert-dialog`,children:(0,z.jsx)(hi,{scope:n,cancelRef:l,children:(0,z.jsxs)($r,{role:`alertdialog`,...o,...a,ref:c,onOpenAutoFocus:H(a.onOpenAutoFocus,e=>{e.preventDefault(),l.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,z.jsx)(_i,{children:r}),(0,z.jsx)(Di,{contentRef:s})]})})})});vi.displayName=mi;var yi=`AlertDialogTitle`,bi=i.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=oi(n);return(0,z.jsx)(ei,{...i,...r,ref:t})});bi.displayName=yi;var xi=`AlertDialogDescription`,Si=i.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=oi(n);return(0,z.jsx)(ti,{...i,...r,ref:t})});Si.displayName=xi;var Ci=`AlertDialogAction`,wi=i.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=oi(n);return(0,z.jsx)(ni,{...i,...r,ref:t})});wi.displayName=Ci;var Ti=`AlertDialogCancel`,Ei=i.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=gi(Ti,n),a=oi(n),o=R(t,i);return(0,z.jsx)(ni,{...a,...r,ref:o})});Ei.displayName=Ti;var Di=({contentRef:e})=>{let t=`\`${mi}\` requires a description for the component to be accessible for screen reader users.
46
+
47
+ You can add a description to the \`${mi}\` by passing a \`${xi}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
48
+
49
+ Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${mi}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
50
+
51
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return i.useEffect(()=>{document.getElementById(e.current?.getAttribute(`aria-describedby`))||console.warn(t)},[t,e]),null},Oi=si,ki=di,Ai=pi,ji=vi,Mi=wi,Ni=Ei,Pi=bi,Fi=Si;function Ii(e){let t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Li(e){let[t,n]=i.useState(void 0);return He(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var Ri=[`top`,`right`,`bottom`,`left`],zi=Math.min,G=Math.max,Bi=Math.round,Vi=Math.floor,Hi=e=>({x:e,y:e}),Ui={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Wi(e,t,n){return G(e,zi(t,n))}function Gi(e,t){return typeof e==`function`?e(t):e}function Ki(e){return e.split(`-`)[0]}function qi(e){return e.split(`-`)[1]}function Ji(e){return e===`x`?`y`:`x`}function Yi(e){return e===`y`?`height`:`width`}function Xi(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Zi(e){return Ji(Xi(e))}function Qi(e,t,n){n===void 0&&(n=!1);let r=qi(e),i=Zi(e),a=Yi(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=sa(o)),[o,sa(o)]}function $i(e){let t=sa(e);return[ea(e),t,ea(t)]}function ea(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ta=[`left`,`right`],na=[`right`,`left`],ra=[`top`,`bottom`],ia=[`bottom`,`top`];function aa(e,t,n){switch(e){case`top`:case`bottom`:return n?t?na:ta:t?ta:na;case`left`:case`right`:return t?ra:ia;default:return[]}}function oa(e,t,n,r){let i=qi(e),a=aa(Ki(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ea)))),a}function sa(e){let t=Ki(e);return Ui[t]+e.slice(t.length)}function ca(e){return{top:0,right:0,bottom:0,left:0,...e}}function la(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ca(e)}function ua(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function da(e,t,n){let{reference:r,floating:i}=e,a=Xi(t),o=Zi(t),s=Yi(o),c=Ki(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(qi(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function fa(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Gi(t,e),p=la(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ua(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=ua(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var pa=50,ma=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:fa},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=da(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<pa&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=da(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},ha=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Gi(e,t)||{};if(l==null)return{};let d=la(u),f={x:n,y:r},p=Zi(i),m=Yi(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=zi(d[_],T),D=zi(d[v],T),O=E,ee=C-h[m]-D,k=C/2-h[m]/2+w,A=Wi(O,k,ee),j=!c.arrow&&qi(i)!=null&&k!==A&&a.reference[m]/2-(k<O?E:D)-h[m]/2<0,M=j?k<O?k-O:k-ee:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),ga=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Gi(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Ki(r),_=Xi(o),v=Ki(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[sa(o)]:$i(o)),x=p!==`none`;!d&&x&&b.push(...oa(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Qi(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Xi(t))||T.every(e=>Xi(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Xi(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function _a(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function va(e){return Ri.some(t=>e[t]>=0)}var ya=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Gi(e,t);switch(i){case`referenceHidden`:{let e=_a(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:va(e)}}}case`escaped`:{let e=_a(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:va(e)}}}default:return{}}}}},ba=new Set([`left`,`top`]);async function xa(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ki(n),s=qi(n),c=Xi(n)===`y`,l=ba.has(o)?-1:1,u=a&&c?-1:1,d=Gi(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Sa=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await xa(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Ca=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Gi(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Xi(Ki(i)),p=Ji(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Wi(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Wi(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},wa=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Gi(e,t),u={x:n,y:r},d=Xi(i),f=Ji(d),p=u[f],m=u[d],h=Gi(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ba.has(Ki(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Ta=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Gi(e,t),u=await o.detectOverflow(t,l),d=Ki(i),f=qi(i),p=Xi(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=zi(h-u[g],v),x=zi(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=G(u.left,0),t=G(u.right,0),n=G(u.top,0),r=G(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:G(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:G(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Ea(){return typeof window<`u`}function Da(e){return ka(e)?(e.nodeName||``).toLowerCase():`#document`}function K(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Oa(e){return((ka(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function ka(e){return Ea()?e instanceof Node||e instanceof K(e).Node:!1}function Aa(e){return Ea()?e instanceof Element||e instanceof K(e).Element:!1}function ja(e){return Ea()?e instanceof HTMLElement||e instanceof K(e).HTMLElement:!1}function Ma(e){return!Ea()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof K(e).ShadowRoot}function Na(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Wa(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Pa(e){return/^(table|td|th)$/.test(Da(e))}function Fa(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ia=/transform|translate|scale|rotate|perspective|filter/,La=/paint|layout|strict|content/,Ra=e=>!!e&&e!==`none`,za;function Ba(e){let t=Aa(e)?Wa(e):e;return Ra(t.transform)||Ra(t.translate)||Ra(t.scale)||Ra(t.rotate)||Ra(t.perspective)||!Ha()&&(Ra(t.backdropFilter)||Ra(t.filter))||Ia.test(t.willChange||``)||La.test(t.contain||``)}function Va(e){let t=Ka(e);for(;ja(t)&&!Ua(t);){if(Ba(t))return t;if(Fa(t))return null;t=Ka(t)}return null}function Ha(){return za??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),za}function Ua(e){return/^(html|body|#document)$/.test(Da(e))}function Wa(e){return K(e).getComputedStyle(e)}function Ga(e){return Aa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ka(e){if(Da(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Ma(e)&&e.host||Oa(e);return Ma(t)?t.host:t}function qa(e){let t=Ka(e);return Ua(t)?e.ownerDocument?e.ownerDocument.body:e.body:ja(t)&&Na(t)?t:qa(t)}function Ja(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=qa(e),i=r===e.ownerDocument?.body,a=K(r);if(i){let e=Ya(a);return t.concat(a,a.visualViewport||[],Na(r)?r:[],e&&n?Ja(e):[])}else return t.concat(r,Ja(r,[],n))}function Ya(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xa(e){let t=Wa(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ja(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Bi(n)!==a||Bi(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Za(e){return Aa(e)?e:e.contextElement}function Qa(e){let t=Za(e);if(!ja(t))return Hi(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Xa(t),o=(a?Bi(n.width):n.width)/r,s=(a?Bi(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var $a=Hi(0);function eo(e){let t=K(e);return!Ha()||!t.visualViewport?$a:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function to(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==K(e)?!1:t}function no(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Za(e),o=Hi(1);t&&(r?Aa(r)&&(o=Qa(r)):o=Qa(e));let s=to(a,n,r)?eo(a):Hi(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=K(a),t=r&&Aa(r)?K(r):r,n=e,i=Ya(n);for(;i&&r&&t!==n;){let e=Qa(i),t=i.getBoundingClientRect(),r=Wa(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=K(i),i=Ya(n)}}return ua({width:u,height:d,x:c,y:l})}function ro(e,t){let n=Ga(e).scrollLeft;return t?t.left+n:no(Oa(e)).left+n}function io(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ro(e,n),y:n.top+t.scrollTop}}function ao(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Oa(r),s=t?Fa(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Hi(1),u=Hi(0),d=ja(r);if((d||!d&&!a)&&((Da(r)!==`body`||Na(o))&&(c=Ga(r)),d)){let e=no(r);l=Qa(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?io(o,c):Hi(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function oo(e){return Array.from(e.getClientRects())}function so(e){let t=Oa(e),n=Ga(e),r=e.ownerDocument.body,i=G(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=G(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+ro(e),s=-n.scrollTop;return Wa(r).direction===`rtl`&&(o+=G(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var co=25;function lo(e,t){let n=K(e),r=Oa(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Ha();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=ro(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=co&&(a-=o)}else l<=co&&(a+=l);return{width:a,height:o,x:s,y:c}}function uo(e,t){let n=no(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ja(e)?Qa(e):Hi(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function fo(e,t,n){let r;if(t===`viewport`)r=lo(e,n);else if(t===`document`)r=so(Oa(e));else if(Aa(t))r=uo(t,n);else{let n=eo(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ua(r)}function po(e,t){let n=Ka(e);return n===t||!Aa(n)||Ua(n)?!1:Wa(n).position===`fixed`||po(n,t)}function mo(e,t){let n=t.get(e);if(n)return n;let r=Ja(e,[],!1).filter(e=>Aa(e)&&Da(e)!==`body`),i=null,a=Wa(e).position===`fixed`,o=a?Ka(e):e;for(;Aa(o)&&!Ua(o);){let t=Wa(o),n=Ba(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Na(o)&&!n&&po(e,o))?r=r.filter(e=>e!==o):i=t,o=Ka(o)}return t.set(e,r),r}function ho(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Fa(t)?[]:mo(t,this._c):[].concat(n),r],o=fo(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=fo(t,a[e],i);s=G(n.top,s),c=zi(n.right,c),l=zi(n.bottom,l),u=G(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function go(e){let{width:t,height:n}=Xa(e);return{width:t,height:n}}function _o(e,t,n){let r=ja(t),i=Oa(t),a=n===`fixed`,o=no(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Hi(0);function l(){c.x=ro(i)}if(r||!r&&!a)if((Da(t)!==`body`||Na(i))&&(s=Ga(t)),r){let e=no(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?io(i,s):Hi(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function vo(e){return Wa(e).position===`static`}function yo(e,t){if(!ja(e)||Wa(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Oa(e)===n&&(n=n.ownerDocument.body),n}function bo(e,t){let n=K(e);if(Fa(e))return n;if(!ja(e)){let t=Ka(e);for(;t&&!Ua(t);){if(Aa(t)&&!vo(t))return t;t=Ka(t)}return n}let r=yo(e,t);for(;r&&Pa(r)&&vo(r);)r=yo(r,t);return r&&Ua(r)&&vo(r)&&!Ba(r)?n:r||Va(e)||n}var xo=async function(e){let t=this.getOffsetParent||bo,n=this.getDimensions,r=await n(e.floating);return{reference:_o(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function So(e){return Wa(e).direction===`rtl`}var Co={convertOffsetParentRelativeRectToViewportRelativeRect:ao,getDocumentElement:Oa,getClippingRect:ho,getOffsetParent:bo,getElementRects:xo,getClientRects:oo,getDimensions:go,getScale:Qa,isElement:Aa,isRTL:So};function wo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function To(e,t){let n=null,r,i=Oa(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Vi(d),h=Vi(i.clientWidth-(u+f)),g=Vi(i.clientHeight-(d+p)),_=Vi(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:G(0,zi(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!wo(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Eo(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Za(e),u=i||a?[...l?Ja(l):[],...t?Ja(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?To(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?no(e):null;c&&g();function g(){let t=no(e);h&&!wo(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Do=Sa,Oo=Ca,ko=ga,Ao=Ta,jo=ya,Mo=ha,No=wa,Po=(e,t,n)=>{let r=new Map,i={platform:Co,...n},a={...i.platform,_c:r};return ma(e,t,{...i,platform:a})},Fo=typeof document<`u`?i.useLayoutEffect:function(){};function Io(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 n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Io(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Io(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Lo(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ro(e,t){let n=Lo(e);return Math.round(t*n)/n}function zo(e){let t=i.useRef(e);return Fo(()=>{t.current=e}),t}function Bo(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:a,elements:{reference:o,floating:s}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[d,f]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=i.useState(r);Io(p,r)||m(r);let[h,g]=i.useState(null),[_,v]=i.useState(null),y=i.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),b=i.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=o||h,S=s||_,C=i.useRef(null),w=i.useRef(null),T=i.useRef(d),E=l!=null,D=zo(l),O=zo(a),ee=zo(u),k=i.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:p};O.current&&(e.platform=O.current),Po(C.current,w.current,e).then(e=>{let t={...e,isPositioned:ee.current!==!1};A.current&&!Io(T.current,t)&&(T.current=t,ke.flushSync(()=>{f(t)}))})},[p,t,n,O,ee]);Fo(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let A=i.useRef(!1);Fo(()=>(A.current=!0,()=>{A.current=!1}),[]),Fo(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,k);k()}},[x,S,k,D,E]);let j=i.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),M=i.useMemo(()=>({reference:x,floating:S}),[x,S]),te=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Ro(M.floating,d.x),r=Ro(M.floating,d.y);return c?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Lo(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,c,M.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:k,refs:j,elements:M,floatingStyles:te}),[d,k,j,M,te])}var Vo=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Mo({element:r.current,padding:i}).fn(n):r?Mo({element:r,padding:i}).fn(n):{}}}},Ho=(e,t)=>{let n=Do(e);return{name:n.name,fn:n.fn,options:[e,t]}},Uo=(e,t)=>{let n=Oo(e);return{name:n.name,fn:n.fn,options:[e,t]}},Wo=(e,t)=>({fn:No(e).fn,options:[e,t]}),Go=(e,t)=>{let n=ko(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ko=(e,t)=>{let n=Ao(e);return{name:n.name,fn:n.fn,options:[e,t]}},qo=(e,t)=>{let n=jo(e);return{name:n.name,fn:n.fn,options:[e,t]}},Jo=(e,t)=>{let n=Vo(e);return{name:n.name,fn:n.fn,options:[e,t]}},Yo=`Arrow`,Xo=i.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,z.jsx)(B.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,z.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Xo.displayName=Yo;var Zo=Xo,Qo=`Popper`,[$o,es]=V(Qo),[ts,ns]=$o(Qo),rs=e=>{let{__scopePopper:t,children:n}=e,[r,a]=i.useState(null);return(0,z.jsx)(ts,{scope:t,anchor:r,onAnchorChange:a,children:n})};rs.displayName=Qo;var is=`PopperAnchor`,as=i.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...a}=e,o=ns(is,n),s=i.useRef(null),c=R(t,s),l=i.useRef(null);return i.useEffect(()=>{let e=l.current;l.current=r?.current||s.current,e!==l.current&&o.onAnchorChange(l.current)}),r?null:(0,z.jsx)(B.div,{...a,ref:c})});as.displayName=is;var os=`PopperContent`,[ss,cs]=$o(os),ls=i.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f=`partial`,hideWhenDetached:p=!1,updatePositionStrategy:m=`optimized`,onPlaced:h,...g}=e,_=ns(os,n),[v,y]=i.useState(null),b=R(t,e=>y(e)),[x,S]=i.useState(null),C=Li(x),w=C?.width??0,T=C?.height??0,E=r+(o===`center`?``:`-`+o),D=typeof d==`number`?d:{top:0,right:0,bottom:0,left:0,...d},O=Array.isArray(u)?u:[u],ee=O.length>0,k={padding:D,boundary:O.filter(ps),altBoundary:ee},{refs:A,floatingStyles:j,placement:M,isPositioned:te,middlewareData:N}=Bo({strategy:`fixed`,placement:E,whileElementsMounted:(...e)=>Eo(...e,{animationFrame:m===`always`}),elements:{reference:_.anchor},middleware:[Ho({mainAxis:a+T,alignmentAxis:s}),l&&Uo({mainAxis:!0,crossAxis:!1,limiter:f===`partial`?Wo():void 0,...k}),l&&Go({...k}),Ko({...k,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),x&&Jo({element:x,padding:c}),ms({arrowWidth:w,arrowHeight:T}),p&&qo({strategy:`referenceHidden`,...k})]}),[P,ne]=hs(M),re=W(h);He(()=>{te&&re?.()},[te,re]);let ie=N.arrow?.x,ae=N.arrow?.y,F=N.arrow?.centerOffset!==0,[I,oe]=i.useState();return He(()=>{v&&oe(window.getComputedStyle(v).zIndex)},[v]),(0,z.jsx)(`div`,{ref:A.setFloating,"data-radix-popper-content-wrapper":``,style:{...j,transform:te?j.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:I,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(` `),...N.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,z.jsx)(ss,{scope:n,placedSide:P,onArrowChange:S,arrowX:ie,arrowY:ae,shouldHideArrow:F,children:(0,z.jsx)(B.div,{"data-side":P,"data-align":ne,...g,ref:b,style:{...g.style,animation:te?void 0:`none`}})})})});ls.displayName=os;var us=`PopperArrow`,ds={top:`bottom`,right:`left`,bottom:`top`,left:`right`},fs=i.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=cs(us,n),a=ds[i.placedSide];return(0,z.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,z.jsx)(Zo,{...r,ref:t,style:{...r.style,display:`block`}})})});fs.displayName=us;function ps(e){return e!==null}var ms=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=hs(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function hs(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var gs=rs,_s=as,vs=ls,ys=fs,bs=`rovingFocusGroup.onEntryFocus`,xs={bubbles:!1,cancelable:!0},Ss=`RovingFocusGroup`,[Cs,ws,Ts]=Ve(Ss),[Es,Ds]=V(Ss,[Ts]),[Os,ks]=Es(Ss),As=i.forwardRef((e,t)=>(0,z.jsx)(Cs.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,z.jsx)(Cs.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,z.jsx)(js,{...e,ref:t})})}));As.displayName=Ss;var js=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,p=i.useRef(null),m=R(t,p),h=mt(o),[g,_]=We({prop:s,defaultProp:c??null,onChange:l,caller:Ss}),[v,y]=i.useState(!1),b=W(u),x=ws(n),S=i.useRef(!1),[C,w]=i.useState(0);return i.useEffect(()=>{let e=p.current;if(e)return e.addEventListener(bs,b),()=>e.removeEventListener(bs,b)},[b]),(0,z.jsx)(Os,{scope:n,orientation:r,dir:h,loop:a,currentTabStopId:g,onItemFocus:i.useCallback(e=>_(e),[_]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>w(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>w(e=>e-1),[]),children:(0,z.jsx)(B.div,{tabIndex:v||C===0?-1:0,"data-orientation":r,...f,ref:m,style:{outline:`none`,...e.style},onMouseDown:H(e.onMouseDown,()=>{S.current=!0}),onFocus:H(e.onFocus,e=>{let t=!S.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(bs,xs);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=x().filter(e=>e.focusable);Ls([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),d)}}S.current=!1}),onBlur:H(e.onBlur,()=>y(!1))})})}),Ms=`RovingFocusGroupItem`,Ns=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:o,children:s,...c}=e,l=$e(),u=o||l,d=ks(Ms,n),f=d.currentTabStopId===u,p=ws(n),{onFocusableItemAdd:m,onFocusableItemRemove:h,currentTabStopId:g}=d;return i.useEffect(()=>{if(r)return m(),()=>h()},[r,m,h]),(0,z.jsx)(Cs.ItemSlot,{scope:n,id:u,focusable:r,active:a,children:(0,z.jsx)(B.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...c,ref:t,onMouseDown:H(e.onMouseDown,e=>{r?d.onItemFocus(u):e.preventDefault()}),onFocus:H(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:H(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){d.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Is(e,d.orientation,d.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=p().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=d.loop?Rs(n,r+1):n.slice(r+1)}setTimeout(()=>Ls(n))}}),children:typeof s==`function`?s({isCurrentTabStop:f,hasTabStop:g!=null}):s})})});Ns.displayName=Ms;var Ps={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Fs(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Is(e,t,n){let r=Fs(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Ps[r]}function Ls(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Rs(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var zs=As,Bs=Ns,Vs=[`Enter`,` `],Hs=[`ArrowDown`,`PageUp`,`Home`],Us=[`ArrowUp`,`PageDown`,`End`],Ws=[...Hs,...Us],Gs={ltr:[...Vs,`ArrowRight`],rtl:[...Vs,`ArrowLeft`]},Ks={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},qs=`Menu`,[Js,Ys,Xs]=Ve(qs),[Zs,Qs]=V(qs,[Xs,es,Ds]),$s=es(),ec=Ds(),[tc,nc]=Zs(qs),[rc,ic]=Zs(qs),ac=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:a,onOpenChange:o,modal:s=!0}=e,c=$s(t),[l,u]=i.useState(null),d=i.useRef(!1),f=W(o),p=mt(a);return i.useEffect(()=>{let e=()=>{d.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),(0,z.jsx)(gs,{...c,children:(0,z.jsx)(tc,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:u,children:(0,z.jsx)(rc,{scope:t,onClose:i.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:s,children:r})})})};ac.displayName=qs;var oc=`MenuAnchor`,sc=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=$s(n);return(0,z.jsx)(_s,{...i,...r,ref:t})});sc.displayName=oc;var cc=`MenuPortal`,[lc,uc]=Zs(cc,{forceMount:void 0}),dc=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=nc(cc,t);return(0,z.jsx)(lc,{scope:t,forceMount:n,children:(0,z.jsx)(U,{present:n||a.open,children:(0,z.jsx)(Kt,{asChild:!0,container:i,children:r})})})};dc.displayName=cc;var q=`MenuContent`,[fc,pc]=Zs(q),mc=i.forwardRef((e,t)=>{let n=uc(q,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=nc(q,e.__scopeMenu),o=ic(q,e.__scopeMenu);return(0,z.jsx)(Js.Provider,{scope:e.__scopeMenu,children:(0,z.jsx)(U,{present:r||a.open,children:(0,z.jsx)(Js.Slot,{scope:e.__scopeMenu,children:o.modal?(0,z.jsx)(hc,{...i,ref:t}):(0,z.jsx)(gc,{...i,ref:t})})})})}),hc=i.forwardRef((e,t)=>{let n=nc(q,e.__scopeMenu),r=i.useRef(null),a=R(t,r);return i.useEffect(()=>{let e=r.current;if(e)return mr(e)},[]),(0,z.jsx)(vc,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:H(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),gc=i.forwardRef((e,t)=>{let n=nc(q,e.__scopeMenu);return(0,z.jsx)(vc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),_c=Ae(`MenuContent.ScrollLock`),vc=i.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:m,disableOutsideScroll:h,...g}=e,_=nc(q,n),v=ic(q,n),y=$s(n),b=ec(n),x=Ys(n),[S,C]=i.useState(null),w=i.useRef(null),T=R(t,w,_.onContentChange),E=i.useRef(0),D=i.useRef(``),O=i.useRef(0),ee=i.useRef(null),k=i.useRef(`right`),A=i.useRef(0),j=h?ar:i.Fragment,M=h?{as:_c,allowPinchZoom:!0}:void 0,te=e=>{let t=D.current+e,n=x().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=nl(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){D.current=t,window.clearTimeout(E.current),t!==``&&(E.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};i.useEffect(()=>()=>window.clearTimeout(E.current),[]),Jt();let N=i.useCallback(e=>k.current===ee.current?.side&&il(e,ee.current?.area),[]);return(0,z.jsx)(fc,{scope:n,searchRef:D,onItemEnter:i.useCallback(e=>{N(e)&&e.preventDefault()},[N]),onItemLeave:i.useCallback(e=>{N(e)||(w.current?.focus(),C(null))},[N]),onTriggerLeave:i.useCallback(e=>{N(e)&&e.preventDefault()},[N]),pointerGraceTimerRef:O,onPointerGraceIntentChange:i.useCallback(e=>{ee.current=e},[]),children:(0,z.jsx)(j,{...M,children:(0,z.jsx)(Nt,{asChild:!0,trapped:a,onMountAutoFocus:H(o,e=>{e.preventDefault(),w.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,z.jsx)(St,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:m,children:(0,z.jsx)(zs,{asChild:!0,...b,dir:v.dir,orientation:`vertical`,loop:r,currentTabStopId:S,onCurrentTabStopIdChange:C,onEntryFocus:H(l,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,z.jsx)(vs,{role:`menu`,"aria-orientation":`vertical`,"data-state":Zc(_.open),"data-radix-menu-content":``,dir:v.dir,...y,...g,ref:T,style:{outline:`none`,...g.style},onKeyDown:H(g.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&te(e.key));let i=w.current;if(e.target!==i||!Ws.includes(e.key))return;e.preventDefault();let a=x().filter(e=>!e.disabled).map(e=>e.ref.current);Us.includes(e.key)&&a.reverse(),el(a)}),onBlur:H(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),D.current=``)}),onPointerMove:H(e.onPointerMove,al(e=>{let t=e.target,n=A.current!==e.clientX;e.currentTarget.contains(t)&&n&&(k.current=e.clientX>A.current?`right`:`left`,A.current=e.clientX)}))})})})})})})});mc.displayName=q;var yc=`MenuGroup`,bc=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,z.jsx)(B.div,{role:`group`,...r,ref:t})});bc.displayName=yc;var xc=`MenuLabel`,Sc=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,z.jsx)(B.div,{...r,ref:t})});Sc.displayName=xc;var Cc=`MenuItem`,wc=`menu.itemSelect`,Tc=i.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...a}=e,o=i.useRef(null),s=ic(Cc,e.__scopeMenu),c=pc(Cc,e.__scopeMenu),l=R(t,o),u=i.useRef(!1),d=()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(wc,{bubbles:!0,cancelable:!0});e.addEventListener(wc,e=>r?.(e),{once:!0}),Re(e,t),t.defaultPrevented?u.current=!1:s.onClose()}};return(0,z.jsx)(Ec,{...a,ref:l,disabled:n,onClick:H(e.onClick,d),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:H(e.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:H(e.onKeyDown,e=>{let t=c.searchRef.current!==``;n||t&&e.key===` `||Vs.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});Tc.displayName=Cc;var Ec=i.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:a,...o}=e,s=pc(Cc,n),c=ec(n),l=i.useRef(null),u=R(t,l),[d,f]=i.useState(!1),[p,m]=i.useState(``);return i.useEffect(()=>{let e=l.current;e&&m((e.textContent??``).trim())},[o.children]),(0,z.jsx)(Js.ItemSlot,{scope:n,disabled:r,textValue:a??p,children:(0,z.jsx)(Bs,{asChild:!0,...c,focusable:!r,children:(0,z.jsx)(B.div,{role:`menuitem`,"data-highlighted":d?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...o,ref:u,onPointerMove:H(e.onPointerMove,al(e=>{r?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:H(e.onPointerLeave,al(e=>s.onItemLeave(e))),onFocus:H(e.onFocus,()=>f(!0)),onBlur:H(e.onBlur,()=>f(!1))})})})}),Dc=`MenuCheckboxItem`,Oc=i.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,z.jsx)(Ic,{scope:e.__scopeMenu,checked:n,children:(0,z.jsx)(Tc,{role:`menuitemcheckbox`,"aria-checked":Qc(n)?`mixed`:n,...i,ref:t,"data-state":$c(n),onSelect:H(i.onSelect,()=>r?.(Qc(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Oc.displayName=Dc;var kc=`MenuRadioGroup`,[Ac,jc]=Zs(kc,{value:void 0,onValueChange:()=>{}}),Mc=i.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=W(r);return(0,z.jsx)(Ac,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,z.jsx)(bc,{...i,ref:t})})});Mc.displayName=kc;var Nc=`MenuRadioItem`,Pc=i.forwardRef((e,t)=>{let{value:n,...r}=e,i=jc(Nc,e.__scopeMenu),a=n===i.value;return(0,z.jsx)(Ic,{scope:e.__scopeMenu,checked:a,children:(0,z.jsx)(Tc,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":$c(a),onSelect:H(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Pc.displayName=Nc;var Fc=`MenuItemIndicator`,[Ic,Lc]=Zs(Fc,{checked:!1}),Rc=i.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=Lc(Fc,n);return(0,z.jsx)(U,{present:r||Qc(a.checked)||a.checked===!0,children:(0,z.jsx)(B.span,{...i,ref:t,"data-state":$c(a.checked)})})});Rc.displayName=Fc;var zc=`MenuSeparator`,Bc=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,z.jsx)(B.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});Bc.displayName=zc;var Vc=`MenuArrow`,Hc=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=$s(n);return(0,z.jsx)(ys,{...i,...r,ref:t})});Hc.displayName=Vc;var Uc=`MenuSub`,[Wc,Gc]=Zs(Uc),Kc=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:a}=e,o=nc(Uc,t),s=$s(t),[c,l]=i.useState(null),[u,d]=i.useState(null),f=W(a);return i.useEffect(()=>(o.open===!1&&f(!1),()=>f(!1)),[o.open,f]),(0,z.jsx)(gs,{...s,children:(0,z.jsx)(tc,{scope:t,open:r,onOpenChange:f,content:u,onContentChange:d,children:(0,z.jsx)(Wc,{scope:t,contentId:$e(),triggerId:$e(),trigger:c,onTriggerChange:l,children:n})})})};Kc.displayName=Uc;var qc=`MenuSubTrigger`,Jc=i.forwardRef((e,t)=>{let n=nc(qc,e.__scopeMenu),r=ic(qc,e.__scopeMenu),a=Gc(qc,e.__scopeMenu),o=pc(qc,e.__scopeMenu),s=i.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},d=i.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return i.useEffect(()=>d,[d]),i.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),l(null)}},[c,l]),(0,z.jsx)(sc,{asChild:!0,...u,children:(0,z.jsx)(Ec,{id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":a.contentId,"data-state":Zc(n.open),...e,ref:Oe(t,a.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:H(e.onPointerMove,al(t=>{o.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(o.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:H(e.onPointerLeave,al(e=>{d();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,a=i?-5:5,s=t[i?`left`:`right`],l=t[i?`right`:`left`];o.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:s,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:s,y:t.bottom}],side:r}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:H(e.onKeyDown,t=>{let i=o.searchRef.current!==``;e.disabled||i&&t.key===` `||Gs[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});Jc.displayName=qc;var Yc=`MenuSubContent`,Xc=i.forwardRef((e,t)=>{let n=uc(q,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,o=nc(q,e.__scopeMenu),s=ic(q,e.__scopeMenu),c=Gc(Yc,e.__scopeMenu),l=i.useRef(null),u=R(t,l);return(0,z.jsx)(Js.Provider,{scope:e.__scopeMenu,children:(0,z.jsx)(U,{present:r||o.open,children:(0,z.jsx)(Js.Slot,{scope:e.__scopeMenu,children:(0,z.jsx)(vc,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:u,align:`start`,side:s.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:H(e.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:H(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:H(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Ks[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});Xc.displayName=Yc;function Zc(e){return e?`open`:`closed`}function Qc(e){return e===`indeterminate`}function $c(e){return Qc(e)?`indeterminate`:e?`checked`:`unchecked`}function el(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function tl(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function nl(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=tl(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function rl(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function il(e,t){return t?rl({x:e.clientX,y:e.clientY},t):!1}function al(e){return t=>t.pointerType===`mouse`?e(t):void 0}var ol=ac,sl=sc,cl=dc,ll=mc,ul=bc,dl=Sc,fl=Tc,pl=Oc,ml=Mc,hl=Pc,gl=Rc,_l=Bc,vl=Hc,yl=Jc,bl=Xc,xl=`DropdownMenu`,[Sl,Cl]=V(xl,[Qs]),J=Qs(),[wl,Tl]=Sl(xl),El=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:a,defaultOpen:o,onOpenChange:s,modal:c=!0}=e,l=J(t),u=i.useRef(null),[d,f]=We({prop:a,defaultProp:o??!1,onChange:s,caller:xl});return(0,z.jsx)(wl,{scope:t,triggerId:$e(),triggerRef:u,contentId:$e(),open:d,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(e=>!e),[f]),modal:c,children:(0,z.jsx)(ol,{...l,open:d,onOpenChange:f,dir:r,modal:c,children:n})})};El.displayName=xl;var Dl=`DropdownMenuTrigger`,Ol=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=Tl(Dl,n),o=J(n);return(0,z.jsx)(sl,{asChild:!0,...o,children:(0,z.jsx)(B.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:Oe(t,a.triggerRef),onPointerDown:H(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:H(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});Ol.displayName=Dl;var kl=`DropdownMenuPortal`,Al=e=>{let{__scopeDropdownMenu:t,...n}=e,r=J(t);return(0,z.jsx)(cl,{...r,...n})};Al.displayName=kl;var jl=`DropdownMenuContent`,Ml=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,a=Tl(jl,n),o=J(n),s=i.useRef(!1);return(0,z.jsx)(ll,{id:a.contentId,"aria-labelledby":a.triggerId,...o,...r,ref:t,onCloseAutoFocus:H(e.onCloseAutoFocus,e=>{s.current||a.triggerRef.current?.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:H(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!a.modal||r)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Ml.displayName=jl;var Nl=`DropdownMenuGroup`,Pl=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,z.jsx)(ul,{...i,...r,ref:t})});Pl.displayName=Nl;var Fl=`DropdownMenuLabel`,Il=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,z.jsx)(dl,{...i,...r,ref:t})});Il.displayName=Fl;var Ll=`DropdownMenuItem`,Rl=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,z.jsx)(fl,{...i,...r,ref:t})});Rl.displayName=Ll;var zl=`DropdownMenuCheckboxItem`,Bl=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,z.jsx)(pl,{...i,...r,ref:t})});Bl.displayName=zl;var Vl=`DropdownMenuRadioGroup`,Hl=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,z.jsx)(ml,{...i,...r,ref:t})});Hl.displayName=Vl;var Ul=`DropdownMenuRadioItem`,Wl=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,z.jsx)(hl,{...i,...r,ref:t})});Wl.displayName=Ul;var Gl=`DropdownMenuItemIndicator`,Kl=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,z.jsx)(gl,{...i,...r,ref:t})});Kl.displayName=Gl;var ql=`DropdownMenuSeparator`,Jl=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,z.jsx)(_l,{...i,...r,ref:t})});Jl.displayName=ql;var Yl=`DropdownMenuArrow`,Xl=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,z.jsx)(vl,{...i,...r,ref:t})});Xl.displayName=Yl;var Zl=`DropdownMenuSubTrigger`,Ql=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,z.jsx)(yl,{...i,...r,ref:t})});Ql.displayName=Zl;var $l=`DropdownMenuSubContent`,eu=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,z.jsx)(bl,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});eu.displayName=$l;var tu=El,nu=Ol,ru=Al,iu=Ml,au=Rl,ou=`Label`,su=i.forwardRef((e,t)=>(0,z.jsx)(B.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));su.displayName=ou;var cu=su;function lu(e,[t,n]){return Math.min(n,Math.max(t,e))}var uu=`Popover`,[du,fu]=V(uu,[es]),pu=es(),[mu,hu]=du(uu),gu=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:s=!1}=e,c=pu(t),l=i.useRef(null),[u,d]=i.useState(!1),[f,p]=We({prop:r,defaultProp:a??!1,onChange:o,caller:uu});return(0,z.jsx)(gs,{...c,children:(0,z.jsx)(mu,{scope:t,contentId:$e(),triggerRef:l,open:f,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>d(!0),[]),onCustomAnchorRemove:i.useCallback(()=>d(!1),[]),modal:s,children:n})})};gu.displayName=uu;var _u=`PopoverAnchor`,vu=i.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,a=hu(_u,n),o=pu(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=a;return i.useEffect(()=>(s(),()=>c()),[s,c]),(0,z.jsx)(_s,{...o,...r,ref:t})});vu.displayName=_u;var yu=`PopoverTrigger`,bu=i.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=hu(yu,n),a=pu(n),o=R(t,i.triggerRef),s=(0,z.jsx)(B.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Fu(i.open),...r,ref:o,onClick:H(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,z.jsx)(_s,{asChild:!0,...a,children:s})});bu.displayName=yu;var xu=`PopoverPortal`,[Su,Cu]=du(xu,{forceMount:void 0}),wu=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=hu(xu,t);return(0,z.jsx)(Su,{scope:t,forceMount:n,children:(0,z.jsx)(U,{present:n||a.open,children:(0,z.jsx)(Kt,{asChild:!0,container:i,children:r})})})};wu.displayName=xu;var Tu=`PopoverContent`,Eu=i.forwardRef((e,t)=>{let n=Cu(Tu,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=hu(Tu,e.__scopePopover);return(0,z.jsx)(U,{present:r||a.open,children:a.modal?(0,z.jsx)(Ou,{...i,ref:t}):(0,z.jsx)(ku,{...i,ref:t})})});Eu.displayName=Tu;var Du=Ae(`PopoverContent.RemoveScroll`),Ou=i.forwardRef((e,t)=>{let n=hu(Tu,e.__scopePopover),r=i.useRef(null),a=R(t,r),o=i.useRef(!1);return i.useEffect(()=>{let e=r.current;if(e)return mr(e)},[]),(0,z.jsx)(ar,{as:Du,allowPinchZoom:!0,children:(0,z.jsx)(Au,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:H(e.onCloseAutoFocus,e=>{e.preventDefault(),o.current||n.triggerRef.current?.focus()}),onPointerDownOutside:H(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;o.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:H(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),ku=i.forwardRef((e,t)=>{let n=hu(Tu,e.__scopePopover),r=i.useRef(!1),a=i.useRef(!1);return(0,z.jsx)(Au,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(a.current=!0));let i=t.target;n.triggerRef.current?.contains(i)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&a.current&&t.preventDefault()}})}),Au=i.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=hu(Tu,n),p=pu(n);return Jt(),(0,z.jsx)(Nt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,z.jsx)(St,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:(0,z.jsx)(vs,{"data-state":Fu(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),ju=`PopoverClose`,Mu=i.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=hu(ju,n);return(0,z.jsx)(B.button,{type:`button`,...r,ref:t,onClick:H(e.onClick,()=>i.onOpenChange(!1))})});Mu.displayName=ju;var Nu=`PopoverArrow`,Pu=i.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=pu(n);return(0,z.jsx)(ys,{...i,...r,ref:t})});Pu.displayName=Nu;function Fu(e){return e?`open`:`closed`}var Iu=gu,Lu=bu,Ru=wu,zu=Eu,Bu=`Radio`,[Vu,Hu]=V(Bu),[Uu,Wu]=Vu(Bu),Gu=i.forwardRef((e,t)=>{let{__scopeRadio:n,name:r,checked:a=!1,required:o,disabled:s,value:c=`on`,onCheck:l,form:u,...d}=e,[f,p]=i.useState(null),m=R(t,e=>p(e)),h=i.useRef(!1),g=f?u||!!f.closest(`form`):!0;return(0,z.jsxs)(Uu,{scope:n,checked:a,disabled:s,children:[(0,z.jsx)(B.button,{type:`button`,role:`radio`,"aria-checked":a,"data-state":Xu(a),"data-disabled":s?``:void 0,disabled:s,value:c,...d,ref:m,onClick:H(e.onClick,e=>{a||l?.(),g&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())})}),g&&(0,z.jsx)(Yu,{control:f,bubbles:!h.current,name:r,value:c,checked:a,required:o,disabled:s,form:u,style:{transform:`translateX(-100%)`}})]})});Gu.displayName=Bu;var Ku=`RadioIndicator`,qu=i.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,a=Wu(Ku,n);return(0,z.jsx)(U,{present:r||a.checked,children:(0,z.jsx)(B.span,{"data-state":Xu(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t})})});qu.displayName=Ku;var Ju=`RadioBubbleInput`,Yu=i.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...a},o)=>{let s=i.useRef(null),c=R(s,o),l=Ii(n),u=Li(t);return i.useEffect(()=>{let e=s.current;if(!e)return;let t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(l!==n&&i){let t=new Event(`click`,{bubbles:r});i.call(e,n),e.dispatchEvent(t)}},[l,n,r]),(0,z.jsx)(B.input,{type:`radio`,"aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:c,style:{...a.style,...u,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});Yu.displayName=Ju;function Xu(e){return e?`checked`:`unchecked`}var Zu=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],Qu=`RadioGroup`,[$u,ed]=V(Qu,[Ds,Hu]),td=Ds(),nd=Hu(),[rd,id]=$u(Qu),ad=i.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:r,defaultValue:i,value:a,required:o=!1,disabled:s=!1,orientation:c,dir:l,loop:u=!0,onValueChange:d,...f}=e,p=td(n),m=mt(l),[h,g]=We({prop:a,defaultProp:i??null,onChange:d,caller:Qu});return(0,z.jsx)(rd,{scope:n,name:r,required:o,disabled:s,value:h,onValueChange:g,children:(0,z.jsx)(zs,{asChild:!0,...p,orientation:c,dir:m,loop:u,children:(0,z.jsx)(B.div,{role:`radiogroup`,"aria-required":o,"aria-orientation":c,"data-disabled":s?``:void 0,dir:m,...f,ref:t})})})});ad.displayName=Qu;var od=`RadioGroupItem`,sd=i.forwardRef((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...a}=e,o=id(od,n),s=o.disabled||r,c=td(n),l=nd(n),u=i.useRef(null),d=R(t,u),f=o.value===a.value,p=i.useRef(!1);return i.useEffect(()=>{let e=e=>{Zu.includes(e.key)&&(p.current=!0)},t=()=>p.current=!1;return document.addEventListener(`keydown`,e),document.addEventListener(`keyup`,t),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`keyup`,t)}},[]),(0,z.jsx)(Bs,{asChild:!0,...c,focusable:!s,active:f,children:(0,z.jsx)(Gu,{disabled:s,required:o.required,checked:f,...l,...a,name:o.name,ref:d,onCheck:()=>o.onValueChange(a.value),onKeyDown:H(e=>{e.key===`Enter`&&e.preventDefault()}),onFocus:H(a.onFocus,()=>{p.current&&u.current?.click()})})})});sd.displayName=od;var cd=`RadioGroupIndicator`,ld=i.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e;return(0,z.jsx)(qu,{...nd(n),...r,ref:t})});ld.displayName=cd;var ud=ad,dd=sd,fd=ld;function pd(e,t){return i.useReducer((e,n)=>t[e][n]??e,e)}var md=`ScrollArea`,[hd,gd]=V(md),[_d,Y]=hd(md),vd=i.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:r=`hover`,dir:a,scrollHideDelay:o=600,...s}=e,[c,l]=i.useState(null),[u,d]=i.useState(null),[f,p]=i.useState(null),[m,h]=i.useState(null),[g,_]=i.useState(null),[v,y]=i.useState(0),[b,x]=i.useState(0),[S,C]=i.useState(!1),[w,T]=i.useState(!1),E=R(t,e=>l(e)),D=mt(a);return(0,z.jsx)(_d,{scope:n,type:r,dir:D,scrollHideDelay:o,scrollArea:c,viewport:u,onViewportChange:d,content:f,onContentChange:p,scrollbarX:m,onScrollbarXChange:h,scrollbarXEnabled:S,onScrollbarXEnabledChange:C,scrollbarY:g,onScrollbarYChange:_,scrollbarYEnabled:w,onScrollbarYEnabledChange:T,onCornerWidthChange:y,onCornerHeightChange:x,children:(0,z.jsx)(B.div,{dir:D,...s,ref:E,style:{position:`relative`,"--radix-scroll-area-corner-width":v+`px`,"--radix-scroll-area-corner-height":b+`px`,...e.style}})})});vd.displayName=md;var yd=`ScrollAreaViewport`,bd=i.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:r,nonce:a,...o}=e,s=Y(yd,n),c=R(t,i.useRef(null),s.onViewportChange);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}`},nonce:a}),(0,z.jsx)(B.div,{"data-radix-scroll-area-viewport":``,...o,ref:c,style:{overflowX:s.scrollbarXEnabled?`scroll`:`hidden`,overflowY:s.scrollbarYEnabled?`scroll`:`hidden`,...e.style},children:(0,z.jsx)(`div`,{ref:s.onContentChange,style:{minWidth:`100%`,display:`table`},children:r})})]})});bd.displayName=yd;var xd=`ScrollAreaScrollbar`,Sd=i.forwardRef((e,t)=>{let{forceMount:n,...r}=e,a=Y(xd,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:s}=a,c=e.orientation===`horizontal`;return i.useEffect(()=>(c?o(!0):s(!0),()=>{c?o(!1):s(!1)}),[c,o,s]),a.type===`hover`?(0,z.jsx)(Cd,{...r,ref:t,forceMount:n}):a.type===`scroll`?(0,z.jsx)(wd,{...r,ref:t,forceMount:n}):a.type===`auto`?(0,z.jsx)(Td,{...r,ref:t,forceMount:n}):a.type===`always`?(0,z.jsx)(Ed,{...r,ref:t}):null});Sd.displayName=xd;var Cd=i.forwardRef((e,t)=>{let{forceMount:n,...r}=e,a=Y(xd,e.__scopeScrollArea),[o,s]=i.useState(!1);return i.useEffect(()=>{let e=a.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),s(!0)},r=()=>{t=window.setTimeout(()=>s(!1),a.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,r),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,r)}}},[a.scrollArea,a.scrollHideDelay]),(0,z.jsx)(U,{present:n||o,children:(0,z.jsx)(Td,{"data-state":o?`visible`:`hidden`,...r,ref:t})})}),wd=i.forwardRef((e,t)=>{let{forceMount:n,...r}=e,a=Y(xd,e.__scopeScrollArea),o=e.orientation===`horizontal`,s=Kd(()=>l(`SCROLL_END`),100),[c,l]=pd(`hidden`,{hidden:{SCROLL:`scrolling`},scrolling:{SCROLL_END:`idle`,POINTER_ENTER:`interacting`},interacting:{SCROLL:`interacting`,POINTER_LEAVE:`idle`},idle:{HIDE:`hidden`,SCROLL:`scrolling`,POINTER_ENTER:`interacting`}});return i.useEffect(()=>{if(c===`idle`){let e=window.setTimeout(()=>l(`HIDE`),a.scrollHideDelay);return()=>window.clearTimeout(e)}},[c,a.scrollHideDelay,l]),i.useEffect(()=>{let e=a.viewport,t=o?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(l(`SCROLL`),s()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[a.viewport,o,l,s]),(0,z.jsx)(U,{present:n||c!==`hidden`,children:(0,z.jsx)(Ed,{"data-state":c===`hidden`?`hidden`:`visible`,...r,ref:t,onPointerEnter:H(e.onPointerEnter,()=>l(`POINTER_ENTER`)),onPointerLeave:H(e.onPointerLeave,()=>l(`POINTER_LEAVE`))})})}),Td=i.forwardRef((e,t)=>{let n=Y(xd,e.__scopeScrollArea),{forceMount:r,...a}=e,[o,s]=i.useState(!1),c=e.orientation===`horizontal`,l=Kd(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;s(c?e:t)}},10);return qd(n.viewport,l),qd(n.content,l),(0,z.jsx)(U,{present:r||o,children:(0,z.jsx)(Ed,{"data-state":o?`visible`:`hidden`,...a,ref:t})})}),Ed=i.forwardRef((e,t)=>{let{orientation:n=`vertical`,...r}=e,a=Y(xd,e.__scopeScrollArea),o=i.useRef(null),s=i.useRef(0),[c,l]=i.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=zd(c.viewport,c.content),d={...r,sizes:c,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:e=>o.current=e,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:e=>s.current=e};function f(e,t){return Vd(e,s.current,c,t)}return n===`horizontal`?(0,z.jsx)(Dd,{...d,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){let e=a.viewport.scrollLeft,t=Hd(e,c,a.dir);o.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=f(e,a.dir))}}):n===`vertical`?(0,z.jsx)(Od,{...d,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){let e=a.viewport.scrollTop,t=Hd(e,c);o.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=f(e))}}):null}),Dd=i.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...a}=e,o=Y(xd,e.__scopeScrollArea),[s,c]=i.useState(),l=i.useRef(null),u=R(t,l,o.onScrollbarXChange);return i.useEffect(()=>{l.current&&c(getComputedStyle(l.current))},[l]),(0,z.jsx)(jd,{"data-orientation":`horizontal`,...a,ref:u,sizes:n,style:{bottom:0,left:o.dir===`rtl`?`var(--radix-scroll-area-corner-width)`:0,right:o.dir===`ltr`?`var(--radix-scroll-area-corner-width)`:0,"--radix-scroll-area-thumb-width":Bd(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),Wd(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Rd(s.paddingLeft),paddingEnd:Rd(s.paddingRight)}})}})}),Od=i.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...a}=e,o=Y(xd,e.__scopeScrollArea),[s,c]=i.useState(),l=i.useRef(null),u=R(t,l,o.onScrollbarYChange);return i.useEffect(()=>{l.current&&c(getComputedStyle(l.current))},[l]),(0,z.jsx)(jd,{"data-orientation":`vertical`,...a,ref:u,sizes:n,style:{top:0,right:o.dir===`ltr`?0:void 0,left:o.dir===`rtl`?0:void 0,bottom:`var(--radix-scroll-area-corner-height)`,"--radix-scroll-area-thumb-height":Bd(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),Wd(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Rd(s.paddingTop),paddingEnd:Rd(s.paddingBottom)}})}})}),[kd,Ad]=hd(xd),jd=i.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:a,onThumbChange:o,onThumbPointerUp:s,onThumbPointerDown:c,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:d,onResize:f,...p}=e,m=Y(xd,n),[h,g]=i.useState(null),_=R(t,e=>g(e)),v=i.useRef(null),y=i.useRef(``),b=m.viewport,x=r.content-r.viewport,S=W(d),C=W(l),w=Kd(f,10);function T(e){v.current&&u({x:e.clientX-v.current.left,y:e.clientY-v.current.top})}return i.useEffect(()=>{let e=e=>{let t=e.target;h?.contains(t)&&S(e,x)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[b,h,x,S]),i.useEffect(C,[r,C]),qd(h,w),qd(m.content,w),(0,z.jsx)(kd,{scope:n,scrollbar:h,hasThumb:a,onThumbChange:W(o),onThumbPointerUp:W(s),onThumbPositionChange:C,onThumbPointerDown:W(c),children:(0,z.jsx)(B.div,{...p,ref:_,style:{position:`absolute`,...p.style},onPointerDown:H(e.onPointerDown,e=>{e.button===0&&(e.target.setPointerCapture(e.pointerId),v.current=h.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,m.viewport&&(m.viewport.style.scrollBehavior=`auto`),T(e))}),onPointerMove:H(e.onPointerMove,T),onPointerUp:H(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,m.viewport&&(m.viewport.style.scrollBehavior=``),v.current=null})})})}),Md=`ScrollAreaThumb`,Nd=i.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Ad(Md,e.__scopeScrollArea);return(0,z.jsx)(U,{present:n||i.hasThumb,children:(0,z.jsx)(Pd,{ref:t,...r})})}),Pd=i.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:r,...a}=e,o=Y(Md,n),s=Ad(Md,n),{onThumbPositionChange:c}=s,l=R(t,e=>s.onThumbChange(e)),u=i.useRef(void 0),d=Kd(()=>{u.current&&=(u.current(),void 0)},100);return i.useEffect(()=>{let e=o.viewport;if(e){let t=()=>{d(),u.current||(u.current=Gd(e,c),c())};return c(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[o.viewport,d,c]),(0,z.jsx)(B.div,{"data-state":s.hasThumb?`visible`:`hidden`,...a,ref:l,style:{width:`var(--radix-scroll-area-thumb-width)`,height:`var(--radix-scroll-area-thumb-height)`,...r},onPointerDownCapture:H(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;s.onThumbPointerDown({x:n,y:r})}),onPointerUp:H(e.onPointerUp,s.onThumbPointerUp)})});Nd.displayName=Md;var Fd=`ScrollAreaCorner`,Id=i.forwardRef((e,t)=>{let n=Y(Fd,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!==`scroll`&&r?(0,z.jsx)(Ld,{...e,ref:t}):null});Id.displayName=Fd;var Ld=i.forwardRef((e,t)=>{let{__scopeScrollArea:n,...r}=e,a=Y(Fd,n),[o,s]=i.useState(0),[c,l]=i.useState(0),u=!!(o&&c);return qd(a.scrollbarX,()=>{let e=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(e),l(e)}),qd(a.scrollbarY,()=>{let e=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(e),s(e)}),u?(0,z.jsx)(B.div,{...r,ref:t,style:{width:o,height:c,position:`absolute`,right:a.dir===`ltr`?0:void 0,left:a.dir===`rtl`?0:void 0,bottom:0,...e.style}}):null});function Rd(e){return e?parseInt(e,10):0}function zd(e,t){let n=e/t;return isNaN(n)?0:n}function Bd(e){let t=zd(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Vd(e,t,n,r=`ltr`){let i=Bd(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return Ud([c,l],d)(e)}function Hd(e,t,n=`ltr`){let r=Bd(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=lu(e,n===`ltr`?[0,o]:[o*-1,0]);return Ud([0,o],[0,s])(c)}function Ud(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Wd(e,t){return e>0&&e<t}var Gd=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)};function Kd(e,t){let n=W(e),r=i.useRef(0);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),i.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function qd(e,t){let n=W(t);He(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var Jd=vd,Yd=bd,Xd=Id,Zd=`Toggle`,Qd=i.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r,onPressedChange:i,...a}=e,[o,s]=We({prop:n,onChange:i,defaultProp:r??!1,caller:Zd});return(0,z.jsx)(B.button,{type:`button`,"aria-pressed":o,"data-state":o?`on`:`off`,"data-disabled":e.disabled?``:void 0,...a,ref:t,onClick:H(e.onClick,()=>{e.disabled||s(!o)})})});Qd.displayName=Zd;var $d=`ToggleGroup`,[ef,tf]=V($d,[Ds]),nf=Ds(),rf=i.forwardRef((e,t)=>{let{type:n,...r}=e;if(n===`single`)return(0,z.jsx)(sf,{...r,ref:t});if(n===`multiple`)return(0,z.jsx)(cf,{...r,ref:t});throw Error(`Missing prop \`type\` expected on \`${$d}\``)});rf.displayName=$d;var[af,of]=ef($d),sf=i.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:a=()=>{},...o}=e,[s,c]=We({prop:n,defaultProp:r??``,onChange:a,caller:$d});return(0,z.jsx)(af,{scope:e.__scopeToggleGroup,type:`single`,value:i.useMemo(()=>s?[s]:[],[s]),onItemActivate:c,onItemDeactivate:i.useCallback(()=>c(``),[c]),children:(0,z.jsx)(df,{...o,ref:t})})}),cf=i.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:a=()=>{},...o}=e,[s,c]=We({prop:n,defaultProp:r??[],onChange:a,caller:$d}),l=i.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=i.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,z.jsx)(af,{scope:e.__scopeToggleGroup,type:`multiple`,value:s,onItemActivate:l,onItemDeactivate:u,children:(0,z.jsx)(df,{...o,ref:t})})});rf.displayName=$d;var[lf,uf]=ef($d),df=i.forwardRef((e,t)=>{let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:a,dir:o,loop:s=!0,...c}=e,l=nf(n),u=mt(o),d={role:`group`,dir:u,...c};return(0,z.jsx)(lf,{scope:n,rovingFocus:i,disabled:r,children:i?(0,z.jsx)(zs,{asChild:!0,...l,orientation:a,dir:u,loop:s,children:(0,z.jsx)(B.div,{...d,ref:t})}):(0,z.jsx)(B.div,{...d,ref:t})})}),ff=`ToggleGroupItem`,pf=i.forwardRef((e,t)=>{let n=of(ff,e.__scopeToggleGroup),r=uf(ff,e.__scopeToggleGroup),a=nf(e.__scopeToggleGroup),o=n.value.includes(e.value),s=r.disabled||e.disabled,c={...e,pressed:o,disabled:s},l=i.useRef(null);return r.rovingFocus?(0,z.jsx)(Bs,{asChild:!0,...a,focusable:!s,active:o,ref:l,children:(0,z.jsx)(mf,{...c,ref:t})}):(0,z.jsx)(mf,{...c,ref:t})});pf.displayName=ff;var mf=i.forwardRef((e,t)=>{let{__scopeToggleGroup:n,value:r,...i}=e,a=of(ff,n),o={role:`radio`,"aria-checked":e.pressed,"aria-pressed":void 0};return(0,z.jsx)(Qd,{...a.type===`single`?o:void 0,...i,ref:t,onPressedChange:e=>{e?a.onItemActivate(r):a.onItemDeactivate(r)}})}),hf=rf,gf=pf,_f=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},vf=(e,t)=>({classGroupId:e,validator:t}),yf=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),bf=`-`,xf=[],Sf=`arbitrary..`,Cf=e=>{let t=Ef(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Tf(e);let n=e.split(bf);return wf(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?_f(i,t):t:i||xf}return n[e]||xf}}},wf=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=wf(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(bf):e.slice(t).join(bf),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Tf=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Sf+r:void 0})(),Ef=e=>{let{theme:t,classGroups:n}=e;return Df(n,t)},Df=(e,t)=>{let n=yf();for(let r in e){let i=e[r];Of(i,n,r,t)}return n},Of=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];kf(i,t,n,r)}},kf=(e,t,n,r)=>{if(typeof e==`string`){Af(e,t,n);return}if(typeof e==`function`){jf(e,t,n,r);return}Mf(e,t,n,r)},Af=(e,t,n)=>{let r=e===``?t:Nf(t,e);r.classGroupId=n},jf=(e,t,n,r)=>{if(Pf(e)){Of(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(vf(n,e))},Mf=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Of(o,Nf(t,a),n,r)}},Nf=(e,t)=>{let n=e,r=t.split(bf),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=yf(),n.nextPart.set(t,i)),n=i}return n},Pf=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Ff=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},If=`!`,Lf=`:`,Rf=[],zf=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Bf=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Lf){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(If)?(c=s.slice(0,-1),l=!0):s.startsWith(If)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return zf(t,l,c,u)};if(t){let e=t+Lf,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):zf(Rf,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Vf=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Hf=e=>({cache:Ff(e.cacheSize),parseClassName:Bf(e),sortModifiers:Vf(e),postfixLookupClassGroupIds:Uf(e),...Cf(e)}),Uf=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Wf=/\s+/,Gf=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Wf),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+If:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Kf=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=qf(n))&&(i&&(i+=` `),i+=r);return i},qf=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=qf(e[r]))&&(n&&(n+=` `),n+=t);return n},Jf=(e,...t)=>{let n,r,i,a,o=o=>(n=Hf(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Gf(e,n);return i(e,a),a};return a=o,(...e)=>a(Kf(...e))},Yf=[],X=e=>{let t=t=>t[e]||Yf;return t.isThemeGetter=!0,t},Xf=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Zf=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Qf=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,$f=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ep=/\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$/,tp=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,np=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rp=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ip=e=>Qf.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),ap=e=>!!e&&Number.isInteger(Number(e)),op=e=>e.endsWith(`%`)&&Z(e.slice(0,-1)),sp=e=>$f.test(e),cp=()=>!0,lp=e=>ep.test(e)&&!tp.test(e),up=()=>!1,dp=e=>np.test(e),fp=e=>rp.test(e),pp=e=>!Q(e)&&!$(e),mp=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),hp=e=>Ap(e,Pp,up),Q=e=>Xf.test(e),gp=e=>Ap(e,Fp,lp),_p=e=>Ap(e,Ip,Z),vp=e=>Ap(e,Rp,cp),yp=e=>Ap(e,Lp,up),bp=e=>Ap(e,Mp,up),xp=e=>Ap(e,Np,fp),Sp=e=>Ap(e,zp,dp),$=e=>Zf.test(e),Cp=e=>jp(e,Fp),wp=e=>jp(e,Lp),Tp=e=>jp(e,Mp),Ep=e=>jp(e,Pp),Dp=e=>jp(e,Np),Op=e=>jp(e,zp,!0),kp=e=>jp(e,Rp,!0),Ap=(e,t,n)=>{let r=Xf.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},jp=(e,t,n=!1)=>{let r=Zf.exec(e);return r?r[1]?t(r[1]):n:!1},Mp=e=>e===`position`||e===`percentage`,Np=e=>e===`image`||e===`url`,Pp=e=>e===`length`||e===`size`||e===`bg-size`,Fp=e=>e===`length`,Ip=e=>e===`number`,Lp=e=>e===`family-name`,Rp=e=>e===`number`||e===`weight`,zp=e=>e===`shadow`,Bp=Jf(()=>{let e=X(`color`),t=X(`font`),n=X(`text`),r=X(`font-weight`),i=X(`tracking`),a=X(`leading`),o=X(`breakpoint`),s=X(`container`),c=X(`spacing`),l=X(`radius`),u=X(`shadow`),d=X(`inset-shadow`),f=X(`text-shadow`),p=X(`drop-shadow`),m=X(`blur`),h=X(`perspective`),g=X(`aspect`),_=X(`ease`),v=X(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],T=()=>[ip,`full`,`auto`,...w()],E=()=>[ap,`none`,`subgrid`,$,Q],D=()=>[`auto`,{span:[`full`,ap,$,Q]},ap,$,Q],O=()=>[ap,`auto`,$,Q],ee=()=>[`auto`,`min`,`max`,`fr`,$,Q],k=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],A=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],j=()=>[`auto`,...w()],M=()=>[ip,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],te=()=>[ip,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],N=()=>[ip,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[e,$,Q],ne=()=>[...b(),Tp,bp,{position:[$,Q]}],re=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ie=()=>[`auto`,`cover`,`contain`,Ep,hp,{size:[$,Q]}],ae=()=>[op,Cp,gp],F=()=>[``,`none`,`full`,l,$,Q],I=()=>[``,Z,Cp,gp],oe=()=>[`solid`,`dashed`,`dotted`,`double`],se=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],L=()=>[Z,op,Tp,bp],ce=()=>[``,`none`,m,$,Q],le=()=>[`none`,Z,$,Q],ue=()=>[`none`,Z,$,Q],de=()=>[Z,$,Q],fe=()=>[ip,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[sp],breakpoint:[sp],color:[cp],container:[sp],"drop-shadow":[sp],ease:[`in`,`out`,`in-out`],font:[pp],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[sp],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[sp],shadow:[sp],spacing:[`px`,Z],text:[sp],"text-shadow":[sp],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,ip,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[mp],columns:[{columns:[Z,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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`],sr:[`sr-only`,`not-sr-only`],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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[ap,`auto`,$,Q]}],basis:[{basis:[ip,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Z,ip,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Z,$,Q]}],shrink:[{shrink:[``,Z,$,Q]}],order:[{order:[ap,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...k(),`normal`]}],"justify-items":[{"justify-items":[...A(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...A()]}],"align-content":[{content:[`normal`,...k()]}],"align-items":[{items:[...A(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...A(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...A(),`baseline`]}],"place-self":[{"place-self":[`auto`,...A()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:M()}],"inline-size":[{inline:[`auto`,...te()]}],"min-inline-size":[{"min-inline":[`auto`,...te()]}],"max-inline-size":[{"max-inline":[`none`,...te()]}],"block-size":[{block:[`auto`,...N()]}],"min-block-size":[{"min-block":[`auto`,...N()]}],"max-block-size":[{"max-block":[`none`,...N()]}],w:[{w:[s,`screen`,...M()]}],"min-w":[{"min-w":[s,`screen`,`none`,...M()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...M()]}],h:[{h:[`screen`,`lh`,...M()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...M()]}],"max-h":[{"max-h":[`screen`,`lh`,...M()]}],"font-size":[{text:[`base`,n,Cp,gp]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,kp,vp]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,op,Q]}],"font-family":[{font:[wp,yp,t]}],"font-features":[{"font-features":[Q]}],"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-fractions`],tracking:[{tracking:[i,$,Q]}],"line-clamp":[{"line-clamp":[Z,`none`,$,_p]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...oe(),`wavy`]}],"text-decoration-thickness":[{decoration:[Z,`from-font`,`auto`,$,gp]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Z,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[ap,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:ie()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},ap,$,Q],radial:[``,$,Q],conic:[ap,$,Q]},Dp,xp]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:ae()}],"gradient-via-pos":[{via:ae()}],"gradient-to-pos":[{to:ae()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"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-bs":[{"border-bs":I()}],"border-w-be":[{"border-be":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()}],"divide-x":[{"divide-x":I()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":I()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...oe(),`hidden`,`none`]}],"divide-style":[{divide:[...oe(),`hidden`,`none`]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...oe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Z,$,Q]}],"outline-w":[{outline:[``,Z,Cp,gp]}],"outline-color":[{outline:P()}],shadow:[{shadow:[``,`none`,u,Op,Sp]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":[`none`,d,Op,Sp]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:I()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Z,gp]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":I()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":[`none`,f,Op,Sp]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Z,$,Q]}],"mix-blend":[{"mix-blend":[...se(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:ie()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:ce()}],brightness:[{brightness:[Z,$,Q]}],contrast:[{contrast:[Z,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Op,Sp]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:[``,Z,$,Q]}],"hue-rotate":[{"hue-rotate":[Z,$,Q]}],invert:[{invert:[``,Z,$,Q]}],saturate:[{saturate:[Z,$,Q]}],sepia:[{sepia:[``,Z,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[Z,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Z,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Z,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Z,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Z,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Z,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Z,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Z,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Z,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":[`scale-3d`],skew:[{skew:de()}],"skew-x":[{"skew-x":de()}],"skew-y":[{"skew-y":de()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":[`translate-none`],zoom:[{zoom:[ap,$,Q]}],accent:[{accent:P()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],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`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,$,Q]}],fill:[{fill:[`none`,...P()]}],"stroke-w":[{stroke:[Z,Cp,gp,_p]}],stroke:[{stroke:[`none`,...P()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`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`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`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-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`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-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`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`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`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-pbs`,`scroll-pbe`,`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`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});export{de as $,ni as A,v as At,je as B,Ni as C,T as Ct,ki as D,x as Dt,Ai as E,S as Et,ei as F,ye as G,Ce as H,Xr as I,ge as J,ve as K,lt as L,Qr as M,g as Mt,Zr as N,h as Nt,Oi as O,b as Ot,Yr as P,fe as Q,st as R,Mi as S,E as St,Fi as T,C as Tt,xe as U,Ee as V,be as W,me as X,he as Y,pe as Z,iu as _,A as _t,Jd as a,oe as at,tu as b,O as bt,Yd as c,ae as ct,ud as d,ne as dt,ue as et,zu as f,P as ft,cu as g,j as gt,Lu as h,M as ht,Xd as i,se as it,$r as j,_ as jt,Pi as k,y as kt,fd as l,ie as lt,Iu as m,te as mt,gf as n,ce as nt,Sd as o,I as ot,Ru as p,N as pt,_e as q,hf as r,L as rt,Nd as s,F as st,Bp as t,le as tt,dd as u,re as ut,au as v,k as vt,ji as w,w as wt,nu as x,D as xt,ru as y,ee as yt,ft as z};
@@ -11,18 +11,15 @@
11
11
  href="https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400..700;1,400..700&family=IBM+Plex+Mono:wght@400;500&display=swap"
12
12
  rel="stylesheet"
13
13
  />
14
- <script type="module" crossorigin src="/assets/index-BBeSYXbS.js"></script>
14
+ <script type="module" crossorigin src="/assets/index-BRRpS8Nf.js"></script>
15
15
  <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-S-ySWqyJ.js">
16
16
  <link rel="modulepreload" crossorigin href="/assets/react-Bi_azaFt.js">
17
- <link rel="modulepreload" crossorigin href="/assets/ui-C12-nN_X.js">
17
+ <link rel="modulepreload" crossorigin href="/assets/ui-Cl8N5bkD.js">
18
18
  <link rel="modulepreload" crossorigin href="/assets/markdown-kaIeGxdv.js">
19
19
  <link rel="modulepreload" crossorigin href="/assets/vendor-D1QXMhXm.js">
20
- <link rel="stylesheet" crossorigin href="/assets/index-DEa6w1xC.css">
20
+ <link rel="stylesheet" crossorigin href="/assets/index-CTbDswwP.css">
21
21
  </head>
22
22
  <body>
23
23
  <div id="root"></div>
24
- <!-- impeccable-live-start -->
25
- <script src="http://localhost:8400/live.js"></script>
26
- <!-- impeccable-live-end -->
27
- </body>
24
+ </body>
28
25
  </html>