Files
jiang13-forum/embed_static/static/spa/assets/ui-vendor-BtpOfToU.js
freefire b451703642 完善论坛配置与发帖体验:TipTap 富文本、图片上传、修订历史、Feed 排序与后台参数管理。
同步更新 README 与 ROADMAP,反映最新功能与开发状态。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 04:11:38 +08:00

327 lines
86 KiB
JavaScript

import{r as c,j as d,R as at,a as Ht,u as to,o as no,s as ro,f as oo,b as ao,c as co,h as so,d as io,l as uo}from"./react-vendor-CFzzFOsg.js";/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vt=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lo=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fo=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kt=e=>{const t=fo(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Ve={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"};/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const po=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},ho=c.createContext({}),vo=()=>c.useContext(ho),mo=c.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},p)=>{const{size:l=24,strokeWidth:f=2,absoluteStrokeWidth:u=!1,color:h="currentColor",className:y=""}=vo()??{},g=r??u?Number(n??f)*24/Number(t??l):n??f;return c.createElement("svg",{ref:p,...Ve,width:t??l??Ve.width,height:t??l??Ve.height,stroke:e??h,strokeWidth:g,className:Vt("lucide",y,o),...!a&&!po(s)&&{"aria-hidden":"true"},...s},[...i.map(([v,m])=>c.createElement(v,m)),...Array.isArray(a)?a:[a]])});/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const E=(e,t)=>{const n=c.forwardRef(({className:r,...o},a)=>c.createElement(mo,{ref:a,iconNode:t,className:Vt(`lucide-${lo(kt(e))}`,`lucide-${e}`,r),...o}));return n.displayName=kt(e),n};/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const go=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Ki=E("arrow-left",go);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yo=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Hi=E("arrow-right",yo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wo=[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]],Vi=E("bold",wo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xo=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],qi=E("check",xo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Co=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Yi=E("chevron-right",Co);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bo=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Xi=E("circle",bo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Eo=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Zi=E("clock",Eo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Mo=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Qi=E("code",Mo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _o=[["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"}]],Ji=E("database",_o);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const So=[["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"}]],eu=E("file-text",So);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ro=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],tu=E("flame",Ro);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Po=[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]],nu=E("folder-kanban",Po);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ko=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]],ru=E("git-compare",ko);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ao=[["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"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],ou=E("history",Ao);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const No=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],au=E("house",No);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Do=[["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"}]],cu=E("image",Do);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Io=[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]],su=E("italic",Io);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const To=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],iu=E("layout-dashboard",To);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Oo=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],uu=E("link",Oo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jo=[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]],lu=E("list-ordered",jo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Lo=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],du=E("list",Lo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fo=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],fu=E("loader-circle",Fo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $o=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],pu=E("lock-keyhole",$o);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Wo=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],hu=E("lock-open",Wo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Bo=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],vu=E("lock",Bo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Uo=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],mu=E("maximize-2",Uo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Go=[["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"}]],gu=E("message-circle",Go);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zo=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],yu=E("message-square",zo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ko=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],wu=E("minimize-2",Ko);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ho=[["path",{d:"M5 12h14",key:"1ays0h"}]],xu=E("minus",Ho);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vo=[["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"}]],Cu=E("moon",Vo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qo=[["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"}]],bu=E("pencil",qo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yo=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],Eu=E("pin",Yo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Xo=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Mu=E("plus",Xo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zo=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],_u=E("quote",Zo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qo=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Su=E("search",Qo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jo=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Ru=E("send",Jo);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ea=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],Pu=E("server",ea);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ta=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ku=E("settings",ta);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const na=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Au=E("shield",na);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ra=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],Nu=E("sliders-horizontal",ra);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oa=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Du=E("star",oa);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const aa=[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]],Iu=E("strikethrough",aa);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ca=[["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"}]],Tu=E("sun",ca);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sa=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],Ou=E("tag",sa);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ia=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],ju=E("thumbs-up",ia);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ua=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Lu=E("users",ua);/**
* @license lucide-react v1.18.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const la=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Fu=E("x",la);function S(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function At(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ct(...e){return t=>{let n=!1;const r=e.map(o=>{const a=At(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():At(e[o],null)}}}}function N(...e){return c.useCallback(ct(...e),e)}function da(e,t){const n=c.createContext(t);n.displayName=e+"Context";const r=a=>{const{children:i,...s}=a,p=c.useMemo(()=>s,Object.values(s));return d.jsx(n.Provider,{value:p,children:i})};r.displayName=e+"Provider";function o(a){const i=c.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function J(e,t=[]){let n=[];function r(a,i){const s=c.createContext(i);s.displayName=a+"Context";const p=n.length;n=[...n,i];const l=u=>{var w;const{scope:h,children:y,...g}=u,v=((w=h==null?void 0:h[e])==null?void 0:w[p])||s,m=c.useMemo(()=>g,Object.values(g));return d.jsx(v.Provider,{value:m,children:y})};l.displayName=a+"Provider";function f(u,h){var v;const y=((v=h==null?void 0:h[e])==null?void 0:v[p])||s,g=c.useContext(y);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${a}\``)}return[l,f]}const o=()=>{const a=n.map(i=>c.createContext(i));return function(s){const p=(s==null?void 0:s[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...s,[e]:p}}),[s,p])}};return o.scopeName=e,[r,fa(o,...t)]}function fa(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:p,scopeName:l})=>{const u=p(a)[`__scope${l}`];return{...s,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var q=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},pa=at[" useInsertionEffect ".trim().toString()]||q;function We({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=ha({defaultProp:t,onChange:n}),s=e!==void 0,p=s?e:o;{const f=c.useRef(e!==void 0);c.useEffect(()=>{const u=f.current;u!==s&&console.warn(`${r} is changing from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=s},[s,r])}const l=c.useCallback(f=>{var u;if(s){const h=va(f)?f(e):f;h!==e&&((u=i.current)==null||u.call(i,h))}else a(f)},[s,e,a,i]);return[p,l]}function ha({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),a=c.useRef(t);return pa(()=>{a.current=t},[t]),c.useEffect(()=>{var i;o.current!==n&&((i=a.current)==null||i.call(a,n),o.current=n)},[n,o]),[n,r,a]}function va(e){return typeof e=="function"}function he(e){const t=c.forwardRef((n,r)=>{let{children:o,...a}=n,i=null,s=!1;const p=[];Nt(o)&&typeof Pe=="function"&&(o=Pe(o._payload)),c.Children.forEach(o,h=>{var y;if(xa(h)){s=!0;const g=h;let v="child"in g.props?g.props.child:g.props.children;Nt(v)&&typeof Pe=="function"&&(v=Pe(v._payload)),i=ga(g,v),p.push((y=i==null?void 0:i.props)==null?void 0:y.children)}else p.push(h)}),i?i=c.cloneElement(i,void 0,p):!s&&c.Children.count(o)===1&&c.isValidElement(o)&&(i=o);const l=i?wa(i):void 0,f=N(r,l);if(!i){if(o||o===0)throw new Error(s?Ma(e):Ea(e));return o}const u=ya(a,i.props??{});return i.type!==c.Fragment&&(u.ref=r?f:l),c.cloneElement(i,u)});return t.displayName=`${e}.Slot`,t}var $u=he("Slot"),qt=Symbol.for("radix.slottable");function ma(e){const t=n=>"child"in n?n.children(n.child):n.children;return t.displayName=`${e}.Slottable`,t.__radixId=qt,t}var ga=(e,t)=>{if("child"in e.props){const n=e.props.child;return c.isValidElement(n)?c.cloneElement(n,void 0,e.props.children(n.props.children)):null}return c.isValidElement(t)?t:null};function ya(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{const p=a(...s);return o(...s),p}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function wa(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function xa(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qt}var Ca=Symbol.for("react.lazy");function Nt(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ca&&"_payload"in e&&ba(e._payload)}function ba(e){return typeof e=="object"&&e!==null&&"then"in e}var Ea=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Ma=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Pe=at[" use ".trim().toString()],_a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],A=_a.reduce((e,t)=>{const n=he(`Primitive.${t}`),r=c.forwardRef((o,a)=>{const{asChild:i,...s}=o,p=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(p,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Yt(e,t){e&&Ht.flushSync(()=>e.dispatchEvent(t))}function Xt(e){const t=e+"CollectionProvider",[n,r]=J(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:m,children:w}=v,C=c.useRef(null),x=c.useRef(new Map).current;return d.jsx(o,{scope:m,itemMap:x,collectionRef:C,children:w})};i.displayName=t;const s=e+"CollectionSlot",p=he(s),l=c.forwardRef((v,m)=>{const{scope:w,children:C}=v,x=a(s,w),b=N(m,x.collectionRef);return d.jsx(p,{ref:b,children:C})});l.displayName=s;const f=e+"CollectionItemSlot",u="data-radix-collection-item",h=he(f),y=c.forwardRef((v,m)=>{const{scope:w,children:C,...x}=v,b=c.useRef(null),R=N(m,b),P=a(f,w);return c.useEffect(()=>(P.itemMap.set(b,{ref:b,...x}),()=>void P.itemMap.delete(b))),d.jsx(h,{[u]:"",ref:R,children:C})});y.displayName=f;function g(v){const m=a(e+"CollectionConsumer",v);return c.useCallback(()=>{const C=m.collectionRef.current;if(!C)return[];const x=Array.from(C.querySelectorAll(`[${u}]`));return Array.from(m.itemMap.values()).sort((P,_)=>x.indexOf(P.ref.current)-x.indexOf(_.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:i,Slot:l,ItemSlot:y},g,r]}var Sa=c.createContext(void 0);function Zt(e){const t=c.useContext(Sa);return e||t||"ltr"}function Y(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ra(e,t=globalThis==null?void 0:globalThis.document){const n=Y(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Pa="DismissableLayer",tt="dismissableLayer.update",ka="dismissableLayer.pointerDownOutside",Aa="dismissableLayer.focusOutside",Dt,Qt=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),st=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...p}=e,l=c.useContext(Qt),[f,u]=c.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=c.useState({}),g=N(t,_=>u(_)),v=Array.from(l.layers),[m]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),w=v.indexOf(m),C=f?v.indexOf(f):-1,x=l.layersWithOutsidePointerEventsDisabled.size>0,b=C>=w,R=Ia(_=>{const k=_.target,I=[...l.branches].some(T=>T.contains(k));!b||I||(o==null||o(_),i==null||i(_),_.defaultPrevented||s==null||s())},h),P=Ta(_=>{const k=_.target;[...l.branches].some(T=>T.contains(k))||(a==null||a(_),i==null||i(_),_.defaultPrevented||s==null||s())},h);return Ra(_=>{C===l.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&s&&(_.preventDefault(),s()))},h),c.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Dt=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),It(),()=>{n&&(l.layersWithOutsidePointerEventsDisabled.delete(f),l.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=Dt))}},[f,h,n,l]),c.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),It())},[f,l]),c.useEffect(()=>{const _=()=>y({});return document.addEventListener(tt,_),()=>document.removeEventListener(tt,_)},[]),d.jsx(A.div,{...p,ref:g,style:{pointerEvents:x?b?"auto":"none":void 0,...e.style},onFocusCapture:S(e.onFocusCapture,P.onFocusCapture),onBlurCapture:S(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:S(e.onPointerDownCapture,R.onPointerDownCapture)})});st.displayName=Pa;var Na="DismissableLayerBranch",Da=c.forwardRef((e,t)=>{const n=c.useContext(Qt),r=c.useRef(null),o=N(t,r);return c.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),d.jsx(A.div,{...e,ref:o})});Da.displayName=Na;function Ia(e,t=globalThis==null?void 0:globalThis.document){const n=Y(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let p=function(){Jt(ka,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=p,t.addEventListener("click",o.current,{once:!0})):p()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ta(e,t=globalThis==null?void 0:globalThis.document){const n=Y(e),r=c.useRef(!1);return c.useEffect(()=>{const o=a=>{a.target&&!r.current&&Jt(Aa,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function It(){const e=new CustomEvent(tt);document.dispatchEvent(e)}function Jt(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Yt(o,a):o.dispatchEvent(a)}var ke=0,K=null;function en(){c.useEffect(()=>{K||(K={start:Tt(),end:Tt()});const{start:e,end:t}=K;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),ke++,()=>{ke===1&&(K==null||K.start.remove(),K==null||K.end.remove(),K=null),ke=Math.max(0,ke-1)}},[])}function Tt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var qe="focusScope.autoFocusOnMount",Ye="focusScope.autoFocusOnUnmount",Ot={bubbles:!1,cancelable:!0},Oa="FocusScope",it=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,p]=c.useState(null),l=Y(o),f=Y(a),u=c.useRef(null),h=N(t,v=>p(v)),y=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let v=function(x){if(y.paused||!s)return;const b=x.target;s.contains(b)?u.current=b:Q(u.current,{select:!0})},m=function(x){if(y.paused||!s)return;const b=x.relatedTarget;b!==null&&(s.contains(b)||Q(u.current,{select:!0}))},w=function(x){if(document.activeElement===document.body)for(const R of x)R.removedNodes.length>0&&Q(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",m);const C=new MutationObserver(w);return s&&C.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",m),C.disconnect()}}},[r,s,y.paused]),c.useEffect(()=>{if(s){Lt.add(y);const v=document.activeElement;if(!s.contains(v)){const w=new CustomEvent(qe,Ot);s.addEventListener(qe,l),s.dispatchEvent(w),w.defaultPrevented||(ja(Ba(tn(s)),{select:!0}),document.activeElement===v&&Q(s))}return()=>{s.removeEventListener(qe,l),setTimeout(()=>{const w=new CustomEvent(Ye,Ot);s.addEventListener(Ye,f),s.dispatchEvent(w),w.defaultPrevented||Q(v??document.body,{select:!0}),s.removeEventListener(Ye,f),Lt.remove(y)},0)}}},[s,l,f,y]);const g=c.useCallback(v=>{if(!n&&!r||y.paused)return;const m=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,w=document.activeElement;if(m&&w){const C=v.currentTarget,[x,b]=La(C);x&&b?!v.shiftKey&&w===b?(v.preventDefault(),n&&Q(x,{select:!0})):v.shiftKey&&w===x&&(v.preventDefault(),n&&Q(b,{select:!0})):w===C&&v.preventDefault()}},[n,r,y.paused]);return d.jsx(A.div,{tabIndex:-1,...i,ref:h,onKeyDown:g})});it.displayName=Oa;function ja(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Q(r,{select:t}),document.activeElement!==n)return}function La(e){const t=tn(e),n=jt(t,e),r=jt(t.reverse(),e);return[n,r]}function tn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function jt(e,t){for(const n of e)if(!Fa(n,{upTo:t}))return n}function Fa(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 $a(e){return e instanceof HTMLInputElement&&"select"in e}function Q(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$a(e)&&t&&e.select()}}var Lt=Wa();function Wa(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ft(e,t),e.unshift(t)},remove(t){var n;e=Ft(e,t),(n=e[0])==null||n.resume()}}}function Ft(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ba(e){return e.filter(t=>t.tagName!=="A")}var Ua=at[" useId ".trim().toString()]||(()=>{}),Ga=0;function de(e){const[t,n]=c.useState(Ua());return q(()=>{n(r=>r??String(Ga++))},[e]),t?`radix-${t}`:""}var za="Arrow",nn=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return d.jsx(A.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});nn.displayName=za;var Ka=nn;function rn(e){const[t,n]=c.useState(void 0);return q(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const p=a.borderBoxSize,l=Array.isArray(p)?p[0]:p;i=l.inlineSize,s=l.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ut="Popper",[on,an]=J(ut),[Ha,cn]=on(ut),sn=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null),[a,i]=c.useState(void 0);return d.jsx(Ha,{scope:t,anchor:r,onAnchorChange:o,placementState:a,setPlacementState:i,children:n})};sn.displayName=ut;var un="PopperAnchor",ln=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=cn(un,n),i=c.useRef(null),s=a.onAnchorChange,p=c.useCallback(g=>{i.current=g,g&&s(g)},[s]),l=N(t,p),f=c.useRef(null);c.useEffect(()=>{if(!r)return;const g=f.current;f.current=r.current,g!==f.current&&s(f.current)});const u=a.placementState&&dt(a.placementState),h=u==null?void 0:u[0],y=u==null?void 0:u[1];return r?null:d.jsx(A.div,{"data-radix-popper-side":h,"data-radix-popper-align":y,...o,ref:l})});ln.displayName=un;var lt="PopperContent",[Va,qa]=on(lt),dn=c.forwardRef((e,t)=>{var ge,B,ye,_t,St,Rt;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:p=!0,collisionBoundary:l,collisionPadding:f=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:y="optimized",onPlaced:g,...v}=e,m=cn(lt,n),[w,C]=c.useState(null),x=N(t,we=>C(we)),[b,R]=c.useState(null),P=rn(b),_=(P==null?void 0:P.width)??0,k=(P==null?void 0:P.height)??0,I=r+(a!=="center"?"-"+a:""),T=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},D=l?Array.isArray(l)?l:[l]:void 0,z=D!==void 0&&D.length>0,V={padding:T,boundary:D==null?void 0:D.filter(Xa),altBoundary:z},{refs:ae,floatingStyles:ce,placement:L,isPositioned:se,middlewareData:F}=to({strategy:"fixed",placement:I,whileElementsMounted:(...we)=>io(...we,{animationFrame:y==="always"}),elements:{reference:m.anchor},middleware:[no({mainAxis:o+k,alignmentAxis:i}),p&&ro({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?uo():void 0,...V}),p&&oo({...V}),ao({...V,apply:({elements:we,rects:Pt,availableWidth:Zr,availableHeight:Qr})=>{const{width:Jr,height:eo}=Pt.reference,Re=we.floating.style;Re.setProperty("--radix-popper-available-width",`${Zr}px`),Re.setProperty("--radix-popper-available-height",`${Qr}px`),Re.setProperty("--radix-popper-anchor-width",`${Jr}px`),Re.setProperty("--radix-popper-anchor-height",`${eo}px`)}}),b&&co({element:b,padding:s}),Za({arrowWidth:_,arrowHeight:k}),h&&so({strategy:"referenceHidden",...V})]}),M=m.setPlacementState;q(()=>(M(L),()=>{M(void 0)}),[L,M]);const[O,$]=dt(L),W=Y(g);q(()=>{se&&(W==null||W())},[se,W]);const ve=(ge=F.arrow)==null?void 0:ge.x,me=(B=F.arrow)==null?void 0:B.y,Se=((ye=F.arrow)==null?void 0:ye.centerOffset)!==0,[te,Z]=c.useState();return q(()=>{w&&Z(window.getComputedStyle(w).zIndex)},[w]),d.jsx("div",{ref:ae.setFloating,"data-radix-popper-content-wrapper":"",style:{...ce,transform:se?ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(_t=F.transformOrigin)==null?void 0:_t.x,(St=F.transformOrigin)==null?void 0:St.y].join(" "),...((Rt=F.hide)==null?void 0:Rt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(Va,{scope:n,placedSide:O,placedAlign:$,onArrowChange:R,arrowX:ve,arrowY:me,shouldHideArrow:Se,children:d.jsx(A.div,{"data-side":O,"data-align":$,...v,ref:x,style:{...v.style,animation:se?void 0:"none"}})})})});dn.displayName=lt;var fn="PopperArrow",Ya={top:"bottom",right:"left",bottom:"top",left:"right"},pn=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=qa(fn,r),i=Ya[a.placedSide];return d.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:d.jsx(Ka,{...o,ref:n,style:{...o.style,display:"block"}})})});pn.displayName=fn;function Xa(e){return e!==null}var Za=e=>({name:"transformOrigin",options:e,fn(t){var m,w,C;const{placement:n,rects:r,middlewareData:o}=t,i=((m=o.arrow)==null?void 0:m.centerOffset)!==0,s=i?0:e.arrowWidth,p=i?0:e.arrowHeight,[l,f]=dt(n),u={start:"0%",center:"50%",end:"100%"}[f],h=(((w=o.arrow)==null?void 0:w.x)??0)+s/2,y=(((C=o.arrow)==null?void 0:C.y)??0)+p/2;let g="",v="";return l==="bottom"?(g=i?u:`${h}px`,v=`${-p}px`):l==="top"?(g=i?u:`${h}px`,v=`${r.floating.height+p}px`):l==="right"?(g=`${-p}px`,v=i?u:`${y}px`):l==="left"&&(g=`${r.floating.width+p}px`,v=i?u:`${y}px`),{data:{x:g,y:v}}}});function dt(e){const[t,n="center"]=e.split("-");return[t,n]}var Qa=sn,Ja=ln,ec=dn,tc=pn,nc="Portal",ft=c.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,a]=c.useState(!1);q(()=>a(!0),[]);const i=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?Ht.createPortal(d.jsx(A.div,{...r,ref:t}),i):null});ft.displayName=nc;function rc(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var ee=e=>{const{present:t,children:n}=e,r=oc(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),a=ac(r.ref,cc(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:a}):null};ee.displayName="Presence";function oc(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[s,p]=rc(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const l=Ae(r.current);a.current=s==="mounted"?l:"none"},[s]),q(()=>{const l=r.current,f=o.current;if(f!==e){const h=a.current,y=Ae(l);e?p("MOUNT"):y==="none"||(l==null?void 0:l.display)==="none"?p("UNMOUNT"):p(f&&h!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),q(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,u=y=>{const v=Ae(r.current).includes(CSS.escape(y.animationName));if(y.target===t&&v&&(p("ANIMATION_END"),!o.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},h=y=>{y.target===t&&(a.current=Ae(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:c.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function $t(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ac(...e){const t=c.useRef(e);return t.current=e,c.useCallback(n=>{const r=t.current;let o=!1;const a=r.map(i=>{const s=$t(i,n);return!o&&typeof s=="function"&&(o=!0),s});if(o)return()=>{for(let i=0;i<a.length;i++){const s=a[i];typeof s=="function"?s():$t(r[i],null)}}},[])}function Ae(e){return(e==null?void 0:e.animationName)||"none"}function cc(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Xe="rovingFocusGroup.onEntryFocus",sc={bubbles:!1,cancelable:!0},Ee="RovingFocusGroup",[nt,hn,ic]=Xt(Ee),[uc,vn]=J(Ee,[ic]),[lc,dc]=uc(Ee),mn=c.forwardRef((e,t)=>d.jsx(nt.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(nt.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(fc,{...e,ref:t})})}));mn.displayName=Ee;var fc=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:p,onEntryFocus:l,preventScrollOnEntryFocus:f=!1,...u}=e,h=c.useRef(null),y=N(t,h),g=Zt(a),[v,m]=We({prop:i,defaultProp:s??null,onChange:p,caller:Ee}),[w,C]=c.useState(!1),x=Y(l),b=hn(n),R=c.useRef(!1),[P,_]=c.useState(0);return c.useEffect(()=>{const k=h.current;if(k)return k.addEventListener(Xe,x),()=>k.removeEventListener(Xe,x)},[x]),d.jsx(lc,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:v,onItemFocus:c.useCallback(k=>m(k),[m]),onItemShiftTab:c.useCallback(()=>C(!0),[]),onFocusableItemAdd:c.useCallback(()=>_(k=>k+1),[]),onFocusableItemRemove:c.useCallback(()=>_(k=>k-1),[]),children:d.jsx(A.div,{tabIndex:w||P===0?-1:0,"data-orientation":r,...u,ref:y,style:{outline:"none",...e.style},onMouseDown:S(e.onMouseDown,()=>{R.current=!0}),onFocus:S(e.onFocus,k=>{const I=!R.current;if(k.target===k.currentTarget&&I&&!w){const T=new CustomEvent(Xe,sc);if(k.currentTarget.dispatchEvent(T),!T.defaultPrevented){const D=b().filter(L=>L.focusable),z=D.find(L=>L.active),V=D.find(L=>L.id===v),ce=[z,V,...D].filter(Boolean).map(L=>L.ref.current);wn(ce,f)}}R.current=!1}),onBlur:S(e.onBlur,()=>C(!1))})})}),gn="RovingFocusGroupItem",yn=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:i,...s}=e,p=de(),l=a||p,f=dc(gn,n),u=f.currentTabStopId===l,h=hn(n),{onFocusableItemAdd:y,onFocusableItemRemove:g,currentTabStopId:v}=f;return c.useEffect(()=>{if(r)return y(),()=>g()},[r,y,g]),d.jsx(nt.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:d.jsx(A.span,{tabIndex:u?0:-1,"data-orientation":f.orientation,...s,ref:t,onMouseDown:S(e.onMouseDown,m=>{r?f.onItemFocus(l):m.preventDefault()}),onFocus:S(e.onFocus,()=>f.onItemFocus(l)),onKeyDown:S(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){f.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const w=vc(m,f.orientation,f.dir);if(w!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let x=h().filter(b=>b.focusable).map(b=>b.ref.current);if(w==="last")x.reverse();else if(w==="prev"||w==="next"){w==="prev"&&x.reverse();const b=x.indexOf(m.currentTarget);x=f.loop?mc(x,b+1):x.slice(b+1)}setTimeout(()=>wn(x))}}),children:typeof i=="function"?i({isCurrentTabStop:u,hasTabStop:v!=null}):i})})});yn.displayName=gn;var pc={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function hc(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function vc(e,t,n){const r=hc(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return pc[r]}function wn(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function mc(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var gc=mn,yc=yn,wc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ie=new WeakMap,Ne=new WeakMap,De={},Ze=0,xn=function(e){return e&&(e.host||xn(e.parentNode))},xc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=xn(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Cc=function(e,t,n,r){var o=xc(t,Array.isArray(e)?e:[e]);De[n]||(De[n]=new WeakMap);var a=De[n],i=[],s=new Set,p=new Set(o),l=function(u){!u||s.has(u)||(s.add(u),l(u.parentNode))};o.forEach(l);var f=function(u){!u||p.has(u)||Array.prototype.forEach.call(u.children,function(h){if(s.has(h))f(h);else try{var y=h.getAttribute(r),g=y!==null&&y!=="false",v=(ie.get(h)||0)+1,m=(a.get(h)||0)+1;ie.set(h,v),a.set(h,m),i.push(h),v===1&&g&&Ne.set(h,!0),m===1&&h.setAttribute(n,"true"),g||h.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",h,w)}})};return f(t),s.clear(),Ze++,function(){i.forEach(function(u){var h=ie.get(u)-1,y=a.get(u)-1;ie.set(u,h),a.set(u,y),h||(Ne.has(u)||u.removeAttribute(r),Ne.delete(u)),y||u.removeAttribute(n)}),Ze--,Ze||(ie=new WeakMap,ie=new WeakMap,Ne=new WeakMap,De={})}},Cn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=wc(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Cc(r,o,n,"aria-hidden")):function(){return null}},H=function(){return H=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},H.apply(this,arguments)};function bn(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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function bc(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Oe="right-scroll-bar-position",je="width-before-scroll-bar",Ec="with-scroll-bars-hidden",Mc="--removed-body-scroll-bar-size";function Qe(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function _c(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Sc=typeof window<"u"?c.useLayoutEffect:c.useEffect,Wt=new WeakMap;function Rc(e,t){var n=_c(null,function(r){return e.forEach(function(o){return Qe(o,r)})});return Sc(function(){var r=Wt.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(s){a.has(s)||Qe(s,null)}),a.forEach(function(s){o.has(s)||Qe(s,i)})}Wt.set(n,e)},[e]),n}function Pc(e){return e}function kc(e,t){t===void 0&&(t=Pc);var n=[],r=!1,o={read:function(){if(r)throw new 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(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var p=function(){var f=i;i=[],f.forEach(a)},l=function(){return Promise.resolve().then(p)};l(),n={push:function(f){i.push(f),l()},filter:function(f){return i=i.filter(f),n}}}};return o}function Ac(e){e===void 0&&(e={});var t=kc(null);return t.options=H({async:!0,ssr:!1},e),t}var En=function(e){var t=e.sideCar,n=bn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,H({},n))};En.isSideCarExport=!0;function Nc(e,t){return e.useMedium(t),En}var Mn=Ac(),Je=function(){},Be=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Je,onWheelCapture:Je,onTouchMoveCapture:Je}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,p=e.className,l=e.removeScrollBar,f=e.enabled,u=e.shards,h=e.sideCar,y=e.noRelative,g=e.noIsolation,v=e.inert,m=e.allowPinchZoom,w=e.as,C=w===void 0?"div":w,x=e.gapMode,b=bn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=h,P=Rc([n,t]),_=H(H({},b),o);return c.createElement(c.Fragment,null,f&&c.createElement(R,{sideCar:Mn,removeScrollBar:l,shards:u,noRelative:y,noIsolation:g,inert:v,setCallbacks:a,allowPinchZoom:!!m,lockRef:n,gapMode:x}),i?c.cloneElement(c.Children.only(s),H(H({},_),{ref:P})):c.createElement(C,H({},_,{className:p,ref:P}),s))});Be.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Be.classNames={fullWidth:je,zeroRight:Oe};var Dc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ic(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Dc();return t&&e.setAttribute("nonce",t),e}function Tc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Oc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var jc=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ic())&&(Tc(t,n),Oc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Lc=function(){var e=jc();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},_n=function(){var e=Lc(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Fc={left:0,top:0,right:0,gap:0},et=function(e){return parseInt(e||"",10)||0},$c=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[et(n),et(r),et(o)]},Wc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Fc;var t=$c(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])}},Bc=_n(),fe="data-scroll-locked",Uc=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
.`.concat(Ec,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(s,"px ").concat(r,`;
}
body[`).concat(fe,`] {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(o,`px;
padding-top: `).concat(a,`px;
padding-right: `).concat(i,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(s,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(Oe,` {
right: `).concat(s,"px ").concat(r,`;
}
.`).concat(je,` {
margin-right: `).concat(s,"px ").concat(r,`;
}
.`).concat(Oe," .").concat(Oe,` {
right: 0 `).concat(r,`;
}
.`).concat(je," .").concat(je,` {
margin-right: 0 `).concat(r,`;
}
body[`).concat(fe,`] {
`).concat(Mc,": ").concat(s,`px;
}
`)},Bt=function(){var e=parseInt(document.body.getAttribute(fe)||"0",10);return isFinite(e)?e:0},Gc=function(){c.useEffect(function(){return document.body.setAttribute(fe,(Bt()+1).toString()),function(){var e=Bt()-1;e<=0?document.body.removeAttribute(fe):document.body.setAttribute(fe,e.toString())}},[])},zc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Gc();var a=c.useMemo(function(){return Wc(o)},[o]);return c.createElement(Bc,{styles:Uc(a,!t,o,n?"":"!important")})},rt=!1;if(typeof window<"u")try{var Ie=Object.defineProperty({},"passive",{get:function(){return rt=!0,!0}});window.addEventListener("test",Ie,Ie),window.removeEventListener("test",Ie,Ie)}catch{rt=!1}var ue=rt?{passive:!1}:!1,Kc=function(e){return e.tagName==="TEXTAREA"},Sn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Kc(e)&&n[t]==="visible")},Hc=function(e){return Sn(e,"overflowY")},Vc=function(e){return Sn(e,"overflowX")},Ut=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Rn(e,r);if(o){var a=Pn(e,r),i=a[1],s=a[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},qc=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Yc=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Rn=function(e,t){return e==="v"?Hc(t):Vc(t)},Pn=function(e,t){return e==="v"?qc(t):Yc(t)},Xc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Zc=function(e,t,n,r,o){var a=Xc(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,p=t.contains(s),l=!1,f=i>0,u=0,h=0;do{if(!s)break;var y=Pn(e,s),g=y[0],v=y[1],m=y[2],w=v-m-a*g;(g||w)&&Rn(e,s)&&(u+=w,h+=g);var C=s.parentNode;s=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!p&&s!==document.body||p&&(t.contains(s)||t===s));return(f&&Math.abs(u)<1||!f&&Math.abs(h)<1)&&(l=!0),l},Te=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Gt=function(e){return[e.deltaX,e.deltaY]},zt=function(e){return e&&"current"in e?e.current:e},Qc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Jc=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},es=0,le=[];function ts(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(es++)[0],a=c.useState(_n)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=bc([e.lockRef.current],(e.shards||[]).map(zt),!0).filter(Boolean);return v.forEach(function(m){return m.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(v,m){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!i.current.allowPinchZoom;var w=Te(v),C=n.current,x="deltaX"in v?v.deltaX:C[0]-w[0],b="deltaY"in v?v.deltaY:C[1]-w[1],R,P=v.target,_=Math.abs(x)>Math.abs(b)?"h":"v";if("touches"in v&&_==="h"&&P.type==="range")return!1;var k=window.getSelection(),I=k&&k.anchorNode,T=I?I===P||I.contains(P):!1;if(T)return!1;var D=Ut(_,P);if(!D)return!0;if(D?R=_:(R=_==="v"?"h":"v",D=Ut(_,P)),!D)return!1;if(!r.current&&"changedTouches"in v&&(x||b)&&(r.current=R),!R)return!0;var z=r.current||R;return Zc(z,m,v,z==="h"?x:b)},[]),p=c.useCallback(function(v){var m=v;if(!(!le.length||le[le.length-1]!==a)){var w="deltaY"in m?Gt(m):Te(m),C=t.current.filter(function(R){return R.name===m.type&&(R.target===m.target||m.target===R.shadowParent)&&Qc(R.delta,w)})[0];if(C&&C.should){m.cancelable&&m.preventDefault();return}if(!C){var x=(i.current.shards||[]).map(zt).filter(Boolean).filter(function(R){return R.contains(m.target)}),b=x.length>0?s(m,x[0]):!i.current.noIsolation;b&&m.cancelable&&m.preventDefault()}}},[]),l=c.useCallback(function(v,m,w,C){var x={name:v,delta:m,target:w,should:C,shadowParent:ns(w)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(b){return b!==x})},1)},[]),f=c.useCallback(function(v){n.current=Te(v),r.current=void 0},[]),u=c.useCallback(function(v){l(v.type,Gt(v),v.target,s(v,e.lockRef.current))},[]),h=c.useCallback(function(v){l(v.type,Te(v),v.target,s(v,e.lockRef.current))},[]);c.useEffect(function(){return le.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:h}),document.addEventListener("wheel",p,ue),document.addEventListener("touchmove",p,ue),document.addEventListener("touchstart",f,ue),function(){le=le.filter(function(v){return v!==a}),document.removeEventListener("wheel",p,ue),document.removeEventListener("touchmove",p,ue),document.removeEventListener("touchstart",f,ue)}},[]);var y=e.removeScrollBar,g=e.inert;return c.createElement(c.Fragment,null,g?c.createElement(a,{styles:Jc(o)}):null,y?c.createElement(zc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ns(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const rs=Nc(Mn,ts);var pt=c.forwardRef(function(e,t){return c.createElement(Be,H({},e,{ref:t,sideCar:rs}))});pt.classNames=Be.classNames;var ot=["Enter"," "],os=["ArrowDown","PageUp","Home"],kn=["ArrowUp","PageDown","End"],as=[...os,...kn],cs={ltr:[...ot,"ArrowRight"],rtl:[...ot,"ArrowLeft"]},ss={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Me="Menu",[Ce,is,us]=Xt(Me),[re,An]=J(Me,[us,an,vn]),Ue=an(),Nn=vn(),[ls,oe]=re(Me),[ds,_e]=re(Me),Dn=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=Ue(t),[p,l]=c.useState(null),f=c.useRef(!1),u=Y(a),h=Zt(o);return c.useEffect(()=>{const y=()=>{f.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>f.current=!1;return document.addEventListener("keydown",y,{capture:!0}),()=>{document.removeEventListener("keydown",y,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),d.jsx(Qa,{...s,children:d.jsx(ls,{scope:t,open:n,onOpenChange:u,content:p,onContentChange:l,children:d.jsx(ds,{scope:t,onClose:c.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:f,dir:h,modal:i,children:r})})})};Dn.displayName=Me;var fs="MenuAnchor",ht=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ue(n);return d.jsx(Ja,{...o,...r,ref:t})});ht.displayName=fs;var vt="MenuPortal",[ps,In]=re(vt,{forceMount:void 0}),Tn=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=oe(vt,t);return d.jsx(ps,{scope:t,forceMount:n,children:d.jsx(ee,{present:n||a.open,children:d.jsx(ft,{asChild:!0,container:o,children:r})})})};Tn.displayName=vt;var U="MenuContent",[hs,mt]=re(U),On=c.forwardRef((e,t)=>{const n=In(U,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=oe(U,e.__scopeMenu),i=_e(U,e.__scopeMenu);return d.jsx(Ce.Provider,{scope:e.__scopeMenu,children:d.jsx(ee,{present:r||a.open,children:d.jsx(Ce.Slot,{scope:e.__scopeMenu,children:i.modal?d.jsx(vs,{...o,ref:t}):d.jsx(ms,{...o,ref:t})})})})}),vs=c.forwardRef((e,t)=>{const n=oe(U,e.__scopeMenu),r=c.useRef(null),o=N(t,r);return c.useEffect(()=>{const a=r.current;if(a)return Cn(a)},[]),d.jsx(gt,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:S(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),ms=c.forwardRef((e,t)=>{const n=oe(U,e.__scopeMenu);return d.jsx(gt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),gs=he("MenuContent.ScrollLock"),gt=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:p,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:h,onDismiss:y,disableOutsideScroll:g,...v}=e,m=oe(U,n),w=_e(U,n),C=Ue(n),x=Nn(n),b=is(n),[R,P]=c.useState(null),_=c.useRef(null),k=N(t,_,m.onContentChange),I=c.useRef(0),T=c.useRef(""),D=c.useRef(0),z=c.useRef(null),V=c.useRef("right"),ae=c.useRef(0),ce=g?pt:c.Fragment,L=g?{as:gs,allowPinchZoom:!0}:void 0,se=M=>{var Z,ge;const O=T.current+M,$=b().filter(B=>!B.disabled),W=document.activeElement,ve=(Z=$.find(B=>B.ref.current===W))==null?void 0:Z.textValue,me=$.map(B=>B.textValue),Se=ks(me,O,ve),te=(ge=$.find(B=>B.textValue===Se))==null?void 0:ge.ref.current;(function B(ye){T.current=ye,window.clearTimeout(I.current),ye!==""&&(I.current=window.setTimeout(()=>B(""),1e3))})(O),te&&setTimeout(()=>te.focus())};c.useEffect(()=>()=>window.clearTimeout(I.current),[]),en();const F=c.useCallback(M=>{var $,W;return V.current===(($=z.current)==null?void 0:$.side)&&Ns(M,(W=z.current)==null?void 0:W.area)},[]);return d.jsx(hs,{scope:n,searchRef:T,onItemEnter:c.useCallback(M=>{F(M)&&M.preventDefault()},[F]),onItemLeave:c.useCallback(M=>{var O;F(M)||((O=_.current)==null||O.focus(),P(null))},[F]),onTriggerLeave:c.useCallback(M=>{F(M)&&M.preventDefault()},[F]),pointerGraceTimerRef:D,onPointerGraceIntentChange:c.useCallback(M=>{z.current=M},[]),children:d.jsx(ce,{...L,children:d.jsx(it,{asChild:!0,trapped:o,onMountAutoFocus:S(a,M=>{var O;M.preventDefault(),(O=_.current)==null||O.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:d.jsx(st,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:h,onDismiss:y,children:d.jsx(gc,{asChild:!0,...x,dir:w.dir,orientation:"vertical",loop:r,currentTabStopId:R,onCurrentTabStopIdChange:P,onEntryFocus:S(p,M=>{w.isUsingKeyboardRef.current||M.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(ec,{role:"menu","aria-orientation":"vertical","data-state":Zn(m.open),"data-radix-menu-content":"",dir:w.dir,...C,...v,ref:k,style:{outline:"none",...v.style},onKeyDown:S(v.onKeyDown,M=>{const $=M.target.closest("[data-radix-menu-content]")===M.currentTarget,W=M.ctrlKey||M.altKey||M.metaKey,ve=M.key.length===1;$&&(M.key==="Tab"&&M.preventDefault(),!W&&ve&&se(M.key));const me=_.current;if(M.target!==me||!as.includes(M.key))return;M.preventDefault();const te=b().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);kn.includes(M.key)&&te.reverse(),Rs(te)}),onBlur:S(e.onBlur,M=>{M.currentTarget.contains(M.target)||(window.clearTimeout(I.current),T.current="")}),onPointerMove:S(e.onPointerMove,be(M=>{const O=M.target,$=ae.current!==M.clientX;if(M.currentTarget.contains(O)&&$){const W=M.clientX>ae.current?"right":"left";V.current=W,ae.current=M.clientX}}))})})})})})})});On.displayName=U;var ys="MenuGroup",yt=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(A.div,{role:"group",...r,ref:t})});yt.displayName=ys;var ws="MenuLabel",jn=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(A.div,{...r,ref:t})});jn.displayName=ws;var Le="MenuItem",Kt="menu.itemSelect",Ge=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=c.useRef(null),i=_e(Le,e.__scopeMenu),s=mt(Le,e.__scopeMenu),p=N(t,a),l=c.useRef(!1),f=()=>{const u=a.current;if(!n&&u){const h=new CustomEvent(Kt,{bubbles:!0,cancelable:!0});u.addEventListener(Kt,y=>r==null?void 0:r(y),{once:!0}),Yt(u,h),h.defaultPrevented?l.current=!1:i.onClose()}};return d.jsx(Ln,{...o,ref:p,disabled:n,onClick:S(e.onClick,f),onPointerDown:u=>{var h;(h=e.onPointerDown)==null||h.call(e,u),l.current=!0},onPointerUp:S(e.onPointerUp,u=>{var h;l.current||(h=u.currentTarget)==null||h.click()}),onKeyDown:S(e.onKeyDown,u=>{const h=s.searchRef.current!=="";n||h&&u.key===" "||ot.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});Ge.displayName=Le;var Ln=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=mt(Le,n),s=Nn(n),p=c.useRef(null),l=N(t,p),[f,u]=c.useState(!1),[h,y]=c.useState("");return c.useEffect(()=>{const g=p.current;g&&y((g.textContent??"").trim())},[a.children]),d.jsx(Ce.ItemSlot,{scope:n,disabled:r,textValue:o??h,children:d.jsx(yc,{asChild:!0,...s,focusable:!r,children:d.jsx(A.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:l,onPointerMove:S(e.onPointerMove,be(g=>{r?i.onItemLeave(g):(i.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:S(e.onPointerLeave,be(g=>i.onItemLeave(g))),onFocus:S(e.onFocus,()=>u(!0)),onBlur:S(e.onBlur,()=>u(!1))})})})}),xs="MenuCheckboxItem",Fn=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return d.jsx(Gn,{scope:e.__scopeMenu,checked:n,children:d.jsx(Ge,{role:"menuitemcheckbox","aria-checked":Fe(n)?"mixed":n,...o,ref:t,"data-state":xt(n),onSelect:S(o.onSelect,()=>r==null?void 0:r(Fe(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Fn.displayName=xs;var $n="MenuRadioGroup",[Cs,bs]=re($n,{value:void 0,onValueChange:()=>{}}),Wn=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=Y(r);return d.jsx(Cs,{scope:e.__scopeMenu,value:n,onValueChange:a,children:d.jsx(yt,{...o,ref:t})})});Wn.displayName=$n;var Bn="MenuRadioItem",Un=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=bs(Bn,e.__scopeMenu),a=n===o.value;return d.jsx(Gn,{scope:e.__scopeMenu,checked:a,children:d.jsx(Ge,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":xt(a),onSelect:S(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});Un.displayName=Bn;var wt="MenuItemIndicator",[Gn,Es]=re(wt,{checked:!1}),zn=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Es(wt,n);return d.jsx(ee,{present:r||Fe(a.checked)||a.checked===!0,children:d.jsx(A.span,{...o,ref:t,"data-state":xt(a.checked)})})});zn.displayName=wt;var Ms="MenuSeparator",Kn=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(A.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Kn.displayName=Ms;var _s="MenuArrow",Hn=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ue(n);return d.jsx(tc,{...o,...r,ref:t})});Hn.displayName=_s;var Ss="MenuSub",[Wu,Vn]=re(Ss),xe="MenuSubTrigger",qn=c.forwardRef((e,t)=>{const n=oe(xe,e.__scopeMenu),r=_e(xe,e.__scopeMenu),o=Vn(xe,e.__scopeMenu),a=mt(xe,e.__scopeMenu),i=c.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:p}=a,l={__scopeMenu:e.__scopeMenu},f=c.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return c.useEffect(()=>f,[f]),c.useEffect(()=>{const u=s.current;return()=>{window.clearTimeout(u),p(null)}},[s,p]),d.jsx(ht,{asChild:!0,...l,children:d.jsx(Ln,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?o.contentId:void 0,"data-state":Zn(n.open),...e,ref:ct(t,o.onTriggerChange),onClick:u=>{var h;(h=e.onClick)==null||h.call(e,u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:S(e.onPointerMove,be(u=>{a.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:S(e.onPointerLeave,be(u=>{var y,g;f();const h=(y=n.content)==null?void 0:y.getBoundingClientRect();if(h){const v=(g=n.content)==null?void 0:g.dataset.side,m=v==="right",w=m?-5:5,C=h[m?"left":"right"],x=h[m?"right":"left"];a.onPointerGraceIntentChange({area:[{x:u.clientX+w,y:u.clientY},{x:C,y:h.top},{x,y:h.top},{x,y:h.bottom},{x:C,y:h.bottom}],side:v}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(u),u.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:S(e.onKeyDown,u=>{var y;const h=a.searchRef.current!=="";e.disabled||h&&u.key===" "||cs[r.dir].includes(u.key)&&(n.onOpenChange(!0),(y=n.content)==null||y.focus(),u.preventDefault())})})})});qn.displayName=xe;var Yn="MenuSubContent",Xn=c.forwardRef((e,t)=>{const n=In(U,e.__scopeMenu),{forceMount:r=n.forceMount,align:o="start",...a}=e,i=oe(U,e.__scopeMenu),s=_e(U,e.__scopeMenu),p=Vn(Yn,e.__scopeMenu),l=c.useRef(null),f=N(t,l);return d.jsx(Ce.Provider,{scope:e.__scopeMenu,children:d.jsx(ee,{present:r||i.open,children:d.jsx(Ce.Slot,{scope:e.__scopeMenu,children:d.jsx(gt,{id:p.contentId,"aria-labelledby":p.triggerId,...a,ref:f,align:o,side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var h;s.isUsingKeyboardRef.current&&((h=l.current)==null||h.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:S(e.onFocusOutside,u=>{u.target!==p.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:S(e.onEscapeKeyDown,u=>{s.onClose(),u.preventDefault()}),onKeyDown:S(e.onKeyDown,u=>{var g;const h=u.currentTarget.contains(u.target),y=ss[s.dir].includes(u.key);h&&y&&(i.onOpenChange(!1),(g=p.trigger)==null||g.focus(),u.preventDefault())})})})})})});Xn.displayName=Yn;function Zn(e){return e?"open":"closed"}function Fe(e){return e==="indeterminate"}function xt(e){return Fe(e)?"indeterminate":e?"checked":"unchecked"}function Rs(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Ps(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function ks(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=Ps(e,Math.max(a,0));o.length===1&&(i=i.filter(l=>l!==n));const p=i.find(l=>l.toLowerCase().startsWith(o.toLowerCase()));return p!==n?p:void 0}function As(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a],p=t[i],l=s.x,f=s.y,u=p.x,h=p.y;f>r!=h>r&&n<(u-l)*(r-f)/(h-f)+l&&(o=!o)}return o}function Ns(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return As(n,t)}function be(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Ds=Dn,Is=ht,Ts=Tn,Os=On,js=yt,Ls=jn,Fs=Ge,$s=Fn,Ws=Wn,Bs=Un,Us=zn,Gs=Kn,zs=Hn,Ks=qn,Hs=Xn,ze="DropdownMenu",[Vs]=J(ze,[An]),j=An(),[qs,Qn]=Vs(ze),Jn=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,p=j(t),l=c.useRef(null),[f,u]=We({prop:o,defaultProp:a??!1,onChange:i,caller:ze});return d.jsx(qs,{scope:t,triggerId:de(),triggerRef:l,contentId:de(),open:f,onOpenChange:u,onOpenToggle:c.useCallback(()=>u(h=>!h),[u]),modal:s,children:d.jsx(Ds,{...p,open:f,onOpenChange:u,dir:r,modal:s,children:n})})};Jn.displayName=ze;var er="DropdownMenuTrigger",tr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Qn(er,n),i=j(n);return d.jsx(Is,{asChild:!0,...i,children:d.jsx(A.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,...o,ref:ct(t,a.triggerRef),onPointerDown:S(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:S(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});tr.displayName=er;var Ys="DropdownMenuPortal",nr=e=>{const{__scopeDropdownMenu:t,...n}=e,r=j(t);return d.jsx(Ts,{...r,...n})};nr.displayName=Ys;var rr="DropdownMenuContent",or=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qn(rr,n),a=j(n),i=c.useRef(!1);return d.jsx(Os,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:S(e.onCloseAutoFocus,s=>{var p;i.current||(p=o.triggerRef.current)==null||p.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:S(e.onInteractOutside,s=>{const p=s.detail.originalEvent,l=p.button===0&&p.ctrlKey===!0,f=p.button===2||l;(!o.modal||f)&&(i.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)"}})});or.displayName=rr;var Xs="DropdownMenuGroup",Zs=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(js,{...o,...r,ref:t})});Zs.displayName=Xs;var Qs="DropdownMenuLabel",ar=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Ls,{...o,...r,ref:t})});ar.displayName=Qs;var Js="DropdownMenuItem",cr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Fs,{...o,...r,ref:t})});cr.displayName=Js;var ei="DropdownMenuCheckboxItem",sr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx($s,{...o,...r,ref:t})});sr.displayName=ei;var ti="DropdownMenuRadioGroup",ni=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Ws,{...o,...r,ref:t})});ni.displayName=ti;var ri="DropdownMenuRadioItem",ir=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Bs,{...o,...r,ref:t})});ir.displayName=ri;var oi="DropdownMenuItemIndicator",ur=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Us,{...o,...r,ref:t})});ur.displayName=oi;var ai="DropdownMenuSeparator",lr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Gs,{...o,...r,ref:t})});lr.displayName=ai;var ci="DropdownMenuArrow",si=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(zs,{...o,...r,ref:t})});si.displayName=ci;var ii="DropdownMenuSubTrigger",dr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Ks,{...o,...r,ref:t})});dr.displayName=ii;var ui="DropdownMenuSubContent",fr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Hs,{...o,...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)"}})});fr.displayName=ui;var Bu=Jn,Uu=tr,Gu=nr,zu=or,Ku=ar,Hu=cr,Vu=sr,qu=ir,Yu=ur,Xu=lr,Zu=dr,Qu=fr;function li(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ke="Switch",[di]=J(Ke),[fi,Ct]=di(Ke);function pi(e){const{__scopeSwitch:t,checked:n,children:r,defaultChecked:o,disabled:a,form:i,name:s,onCheckedChange:p,required:l,value:f="on",internal_do_not_use_render:u}=e,[h,y]=We({prop:n,defaultProp:o??!1,onChange:p,caller:Ke}),[g,v]=c.useState(null),[m,w]=c.useState(null),C=c.useRef(!1),x=g?!!i||!!g.closest("form"):!0,b={checked:h,setChecked:y,disabled:a,control:g,setControl:v,name:s,form:i,value:f,hasConsumerStoppedPropagationRef:C,required:l,defaultChecked:o,isFormControl:x,bubbleInput:m,setBubbleInput:w};return d.jsx(fi,{scope:t,...b,children:mi(u)?u(b):r})}var pr="SwitchTrigger",hr=c.forwardRef(({__scopeSwitch:e,onClick:t,...n},r)=>{const{value:o,disabled:a,checked:i,required:s,setControl:p,setChecked:l,hasConsumerStoppedPropagationRef:f,isFormControl:u,bubbleInput:h}=Ct(pr,e),y=N(r,p);return d.jsx(A.button,{type:"button",role:"switch","aria-checked":i,"aria-required":s,"data-state":yr(i),"data-disabled":a?"":void 0,disabled:a,value:o,...n,ref:y,onClick:S(t,g=>{l(v=>!v),h&&u&&(f.current=g.isPropagationStopped(),f.current||g.stopPropagation())})})});hr.displayName=pr;var hi=c.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:p,onCheckedChange:l,form:f,...u}=e;return d.jsx(pi,{__scopeSwitch:n,checked:o,defaultChecked:a,disabled:s,required:i,onCheckedChange:l,name:r,form:f,value:p,internal_do_not_use_render:({isFormControl:h})=>d.jsxs(d.Fragment,{children:[d.jsx(hr,{...u,ref:t,__scopeSwitch:n}),h&&d.jsx(gr,{__scopeSwitch:n})]})})});hi.displayName=Ke;var vr="SwitchThumb",vi=c.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=Ct(vr,n);return d.jsx(A.span,{"data-state":yr(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});vi.displayName=vr;var mr="SwitchBubbleInput",gr=c.forwardRef(({__scopeSwitch:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:i,required:s,disabled:p,name:l,value:f,form:u,bubbleInput:h,setBubbleInput:y}=Ct(mr,e),g=N(n,y),v=li(a),m=rn(r);c.useEffect(()=>{const C=h;if(!C)return;const x=window.HTMLInputElement.prototype,R=Object.getOwnPropertyDescriptor(x,"checked").set,P=!o.current;if(v!==a&&R){const _=new Event("click",{bubbles:P});R.call(C,a),C.dispatchEvent(_)}},[h,v,a,o]);const w=c.useRef(a);return d.jsx(A.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??w.current,required:s,disabled:p,name:l,value:f,form:u,...t,tabIndex:-1,ref:g,style:{...t.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});gr.displayName=mr;function mi(e){return typeof e=="function"}function yr(e){return e?"checked":"unchecked"}var gi="Label",wr=c.forwardRef((e,t)=>d.jsx(A.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));wr.displayName=gi;var Ju=wr,He="Dialog",[xr,Cr]=J(He),[yi,G]=xr(He),br=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=c.useRef(null),p=c.useRef(null),[l,f]=We({prop:r,defaultProp:o??!1,onChange:a,caller:He});return d.jsx(yi,{scope:t,triggerRef:s,contentRef:p,contentId:de(),titleId:de(),descriptionId:de(),open:l,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(u=>!u),[f]),modal:i,children:n})};br.displayName=He;var Er="DialogTrigger",Mr=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=G(Er,n),a=N(t,o.triggerRef);return d.jsx(A.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":Mt(o.open),...r,ref:a,onClick:S(e.onClick,o.onOpenToggle)})});Mr.displayName=Er;var bt="DialogPortal",[wi,_r]=xr(bt,{forceMount:void 0}),Sr=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=G(bt,t);return d.jsx(wi,{scope:t,forceMount:n,children:c.Children.map(r,i=>d.jsx(ee,{present:n||a.open,children:d.jsx(ft,{asChild:!0,container:o,children:i})}))})};Sr.displayName=bt;var $e="DialogOverlay",Rr=c.forwardRef((e,t)=>{const n=_r($e,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=G($e,e.__scopeDialog);return a.modal?d.jsx(ee,{present:r||a.open,children:d.jsx(Ci,{...o,ref:t})}):null});Rr.displayName=$e;var xi=he("DialogOverlay.RemoveScroll"),Ci=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=G($e,n);return d.jsx(pt,{as:xi,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(A.div,{"data-state":Mt(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ne="DialogContent",Pr=c.forwardRef((e,t)=>{const n=_r(ne,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=G(ne,e.__scopeDialog);return d.jsx(ee,{present:r||a.open,children:a.modal?d.jsx(bi,{...o,ref:t}):d.jsx(Ei,{...o,ref:t})})});Pr.displayName=ne;var bi=c.forwardRef((e,t)=>{const n=G(ne,e.__scopeDialog),r=c.useRef(null),o=N(t,n.contentRef,r);return c.useEffect(()=>{const a=r.current;if(a)return Cn(a)},[]),d.jsx(kr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:S(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:S(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:S(e.onFocusOutside,a=>a.preventDefault())})}),Ei=c.forwardRef((e,t)=>{const n=G(ne,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return d.jsx(kr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var p,l;(p=e.onInteractOutside)==null||p.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((l=n.triggerRef.current)==null?void 0:l.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),kr=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=G(ne,n),p=c.useRef(null),l=N(t,p);return en(),d.jsxs(d.Fragment,{children:[d.jsx(it,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(st,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Mt(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(_i,{titleId:s.titleId}),d.jsx(Ri,{contentRef:p,descriptionId:s.descriptionId})]})]})}),Et="DialogTitle",Ar=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=G(Et,n);return d.jsx(A.h2,{id:o.titleId,...r,ref:t})});Ar.displayName=Et;var Nr="DialogDescription",Dr=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=G(Nr,n);return d.jsx(A.p,{id:o.descriptionId,...r,ref:t})});Dr.displayName=Nr;var Ir="DialogClose",Tr=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=G(Ir,n);return d.jsx(A.button,{type:"button",...r,ref:t,onClick:S(e.onClick,()=>o.onOpenChange(!1))})});Tr.displayName=Ir;function Mt(e){return e?"open":"closed"}var Or="DialogTitleWarning",[Mi,jr]=da(Or,{contentName:ne,titleName:Et,docsSlug:"dialog"}),_i=({titleId:e})=>{const t=jr(Or),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Si="DialogDescriptionWarning",Ri=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${jr(Si).contentName}}.`;return c.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Pi=br,ki=Mr,Ai=Sr,Ni=Rr,Di=Pr,Ii=Ar,Ti=Dr,Lr=Tr,Fr="AlertDialog",[Oi]=J(Fr,[Cr]),X=Cr(),$r=e=>{const{__scopeAlertDialog:t,...n}=e,r=X(t);return d.jsx(Pi,{...r,...n,modal:!0})};$r.displayName=Fr;var ji="AlertDialogTrigger",Wr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=X(n);return d.jsx(ki,{...o,...r,ref:t})});Wr.displayName=ji;var Li="AlertDialogPortal",Br=e=>{const{__scopeAlertDialog:t,...n}=e,r=X(t);return d.jsx(Ai,{...r,...n})};Br.displayName=Li;var Fi="AlertDialogOverlay",Ur=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=X(n);return d.jsx(Ni,{...o,...r,ref:t})});Ur.displayName=Fi;var pe="AlertDialogContent",[$i,Wi]=Oi(pe),Bi=ma("AlertDialogContent"),Gr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=X(n),i=c.useRef(null),s=N(t,i),p=c.useRef(null);return d.jsx(Mi,{contentName:pe,titleName:zr,docsSlug:"alert-dialog",children:d.jsx($i,{scope:n,cancelRef:p,children:d.jsxs(Di,{role:"alertdialog",...a,...o,ref:s,onOpenAutoFocus:S(o.onOpenAutoFocus,l=>{var f;l.preventDefault(),(f=p.current)==null||f.focus({preventScroll:!0})}),onPointerDownOutside:l=>l.preventDefault(),onInteractOutside:l=>l.preventDefault(),children:[d.jsx(Bi,{children:r}),d.jsx(Gi,{contentRef:i})]})})})});Gr.displayName=pe;var zr="AlertDialogTitle",Kr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=X(n);return d.jsx(Ii,{...o,...r,ref:t})});Kr.displayName=zr;var Hr="AlertDialogDescription",Vr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=X(n);return d.jsx(Ti,{...o,...r,ref:t})});Vr.displayName=Hr;var Ui="AlertDialogAction",qr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=X(n);return d.jsx(Lr,{...o,...r,ref:t})});qr.displayName=Ui;var Yr="AlertDialogCancel",Xr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=Wi(Yr,n),a=X(n),i=N(t,o);return d.jsx(Lr,{...a,...r,ref:i})});Xr.displayName=Yr;var Gi=({contentRef:e})=>{const t=`\`${pe}\` requires a description for the component to be accessible for screen reader users.
You can add a description to the \`${pe}\` by passing a \`${Hr}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
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 \`${pe}\`. 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.
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return c.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},el=$r,tl=Wr,nl=Br,rl=Ur,ol=Gr,al=qr,cl=Xr,sl=Kr,il=Vr;export{lu as $,Ki as A,wu as B,Yi as C,mu as D,vu as E,tu as F,ru as G,au as H,Hu as I,ju as J,bu as K,Ku as L,gu as M,Eu as N,pu as O,Gu as P,Vi as Q,qu as R,Zu as S,Uu as T,Lu as U,su as V,Iu as W,Fu as X,xu as Y,_u as Z,du as _,Qu as a,Qi as a0,uu as a1,cu as a2,Ou as a3,Pi as a4,Ai as a5,Di as a6,Lr as a7,Ii as a8,Ni as a9,Ti as aa,Ju as ab,hu as ac,el as ad,tl as ae,nl as af,ol as ag,sl as ah,il as ai,cl as aj,al as ak,rl as al,Nu as am,Au as an,Pu as ao,Ji as ap,zu as b,Vu as c,Yu as d,qi as e,Xi as f,Xu as g,Bu as h,Zi as i,Du as j,iu as k,Su as l,Mu as m,Cu as n,Tu as o,fu as p,nu as q,eu as r,yu as s,ku as t,$u as u,hi as v,vi as w,Ru as x,ou as y,Hi as z};