将 Markdown 编辑器替换为 TipTap WYSIWYG,新增帖子修订记录与 diff 展示;首页支持最新/回复排序与本地缓存;后台可配置编辑时限与锁定帖子;侧边栏整合板块导航并优化 Feed 布局。 Co-authored-by: Cursor <cursoragent@cursor.com>
312 lines
85 KiB
JavaScript
312 lines
85 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 At=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(At(e))}`,`lucide-${e}`,r),...o}));return n.displayName=At(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"}]],Ui=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"}]],Gi=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"}]],Ki=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"}]],zi=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"}]],Hi=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"}]],Vi=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"}]],Yi=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"}]],Xi=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"}]],Zi=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"}]],Qi=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"}]],Ji=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 Ao=[["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"}]],eu=E("git-compare",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:"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"}]],tu=E("history",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 ko=[["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"}]],nu=E("house",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 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"}]],ru=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"}]],ou=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"}]],au=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"}]],cu=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"}]],su=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"}]],iu=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"}]],uu=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"}]],lu=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"}]],du=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"}]],fu=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"}]],pu=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"}]],hu=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 Ko=[["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"}]],vu=E("message-square",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 zo=[["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"}]],mu=E("minimize-2",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 Ho=[["path",{d:"M5 12h14",key:"1ays0h"}]],gu=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"}]],yu=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 Yo=[["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"}]],wu=E("pencil",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 qo=[["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"}]],xu=E("pin",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 Xo=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Cu=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"}]],bu=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"}]],Eu=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"}]],Mu=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=[["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"}]],_u=E("settings",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:"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"}]],Su=E("star",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:"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"}]],Ru=E("strikethrough",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=[["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"}]],Pu=E("sun",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:"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"}]],Au=E("tag",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:"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"}]],Nu=E("thumbs-up",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=[["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"}]],ku=E("users",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:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Du=E("x",sa);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 Nt(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=Nt(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():Nt(e[o],null)}}}}function k(...e){return c.useCallback(ct(...e),e)}function ia(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,ua(o,...t)]}function ua(...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 Y=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},la=at[" useInsertionEffect ".trim().toString()]||Y;function We({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=da({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=fa(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 da({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),a=c.useRef(t);return la(()=>{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 fa(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=[];kt(o)&&typeof Pe=="function"&&(o=Pe(o._payload)),c.Children.forEach(o,h=>{var y;if(ga(h)){s=!0;const g=h;let v="child"in g.props?g.props.child:g.props.children;kt(v)&&typeof Pe=="function"&&(v=Pe(v._payload)),i=ha(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?ma(i):void 0,f=k(r,l);if(!i){if(o||o===0)throw new Error(s?Ca(e):xa(e));return o}const u=va(a,i.props??{});return i.type!==c.Fragment&&(u.ref=r?f:l),c.cloneElement(i,u)});return t.displayName=`${e}.Slot`,t}var Iu=he("Slot"),Yt=Symbol.for("radix.slottable");function pa(e){const t=n=>"child"in n?n.children(n.child):n.children;return t.displayName=`${e}.Slottable`,t.__radixId=Yt,t}var ha=(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 va(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 ma(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 ga(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Yt}var ya=Symbol.for("react.lazy");function kt(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ya&&"_payload"in e&&wa(e._payload)}function wa(e){return typeof e=="object"&&e!==null&&"then"in e}var xa=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Ca=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Pe=at[" use ".trim().toString()],ba=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],N=ba.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 qt(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=k(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=k(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 Ea=c.createContext(void 0);function Zt(e){const t=c.useContext(Ea);return e||t||"ltr"}function q(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 Ma(e,t=globalThis==null?void 0:globalThis.document){const n=q(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 _a="DismissableLayer",tt="dismissableLayer.update",Sa="dismissableLayer.pointerDownOutside",Ra="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=k(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=Na(_=>{const A=_.target,I=[...l.branches].some(T=>T.contains(A));!b||I||(o==null||o(_),i==null||i(_),_.defaultPrevented||s==null||s())},h),P=ka(_=>{const A=_.target;[...l.branches].some(T=>T.contains(A))||(a==null||a(_),i==null||i(_),_.defaultPrevented||s==null||s())},h);return Ma(_=>{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(N.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=_a;var Pa="DismissableLayerBranch",Aa=c.forwardRef((e,t)=>{const n=c.useContext(Qt),r=c.useRef(null),o=k(t,r);return c.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),d.jsx(N.div,{...e,ref:o})});Aa.displayName=Pa;function Na(e,t=globalThis==null?void 0:globalThis.document){const n=q(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let p=function(){Jt(Sa,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 ka(e,t=globalThis==null?void 0:globalThis.document){const n=q(e),r=c.useRef(!1);return c.useEffect(()=>{const o=a=>{a.target&&!r.current&&Jt(Ra,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?qt(o,a):o.dispatchEvent(a)}var Ae=0,z=null;function en(){c.useEffect(()=>{z||(z={start:Tt(),end:Tt()});const{start:e,end:t}=z;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Ae++,()=>{Ae===1&&(z==null||z.start.remove(),z==null||z.end.remove(),z=null),Ae=Math.max(0,Ae-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 Ye="focusScope.autoFocusOnMount",qe="focusScope.autoFocusOnUnmount",Ot={bubbles:!1,cancelable:!0},Da="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=q(o),f=q(a),u=c.useRef(null),h=k(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(Ye,Ot);s.addEventListener(Ye,l),s.dispatchEvent(w),w.defaultPrevented||(Ia(Fa(tn(s)),{select:!0}),document.activeElement===v&&Q(s))}return()=>{s.removeEventListener(Ye,l),setTimeout(()=>{const w=new CustomEvent(qe,Ot);s.addEventListener(qe,f),s.dispatchEvent(w),w.defaultPrevented||Q(v??document.body,{select:!0}),s.removeEventListener(qe,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]=Ta(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(N.div,{tabIndex:-1,...i,ref:h,onKeyDown:g})});it.displayName=Da;function Ia(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Q(r,{select:t}),document.activeElement!==n)return}function Ta(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(!Oa(n,{upTo:t}))return n}function Oa(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 ja(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&&ja(e)&&t&&e.select()}}var Lt=La();function La(){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 Fa(e){return e.filter(t=>t.tagName!=="A")}var $a=at[" useId ".trim().toString()]||(()=>{}),Wa=0;function de(e){const[t,n]=c.useState($a());return Y(()=>{n(r=>r??String(Wa++))},[e]),t?`radix-${t}`:""}var Ba="Arrow",nn=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return d.jsx(N.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=Ba;var Ua=nn;function rn(e){const[t,n]=c.useState(void 0);return Y(()=>{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),[Ga,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(Ga,{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=k(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(N.div,{"data-radix-popper-side":h,"data-radix-popper-align":y,...o,ref:l})});ln.displayName=un;var lt="PopperContent",[Ka,za]=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=k(t,we=>C(we)),[b,R]=c.useState(null),P=rn(b),_=(P==null?void 0:P.width)??0,A=(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,K=D!==void 0&&D.length>0,V={padding:T,boundary:D==null?void 0:D.filter(Va),altBoundary:K},{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+A,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}),Ya({arrowWidth:_,arrowHeight:A}),h&&so({strategy:"referenceHidden",...V})]}),M=m.setPlacementState;Y(()=>(M(L),()=>{M(void 0)}),[L,M]);const[O,$]=dt(L),W=q(g);Y(()=>{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 Y(()=>{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(Ka,{scope:n,placedSide:O,placedAlign:$,onArrowChange:R,arrowX:ve,arrowY:me,shouldHideArrow:Se,children:d.jsx(N.div,{"data-side":O,"data-align":$,...v,ref:x,style:{...v.style,animation:se?void 0:"none"}})})})});dn.displayName=lt;var fn="PopperArrow",Ha={top:"bottom",right:"left",bottom:"top",left:"right"},pn=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=za(fn,r),i=Ha[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(Ua,{...o,ref:n,style:{...o.style,display:"block"}})})});pn.displayName=fn;function Va(e){return e!==null}var Ya=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,Xa=ln,Za=dn,Qa=pn,Ja="Portal",ft=c.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,a]=c.useState(!1);Y(()=>a(!0),[]);const i=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?Ht.createPortal(d.jsx(N.div,{...r,ref:t}),i):null});ft.displayName=Ja;function ec(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var ee=e=>{const{present:t,children:n}=e,r=tc(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),a=nc(r.ref,rc(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:a}):null};ee.displayName="Presence";function tc(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[s,p]=ec(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const l=Ne(r.current);a.current=s==="mounted"?l:"none"},[s]),Y(()=>{const l=r.current,f=o.current;if(f!==e){const h=a.current,y=Ne(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]),Y(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,u=y=>{const v=Ne(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=Ne(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 nc(...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 Ne(e){return(e==null?void 0:e.animationName)||"none"}function rc(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",oc={bubbles:!1,cancelable:!0},Ee="RovingFocusGroup",[nt,hn,ac]=Xt(Ee),[cc,vn]=J(Ee,[ac]),[sc,ic]=cc(Ee),mn=c.forwardRef((e,t)=>d.jsx(nt.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(nt.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(uc,{...e,ref:t})})}));mn.displayName=Ee;var uc=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=k(t,h),g=Zt(a),[v,m]=We({prop:i,defaultProp:s??null,onChange:p,caller:Ee}),[w,C]=c.useState(!1),x=q(l),b=hn(n),R=c.useRef(!1),[P,_]=c.useState(0);return c.useEffect(()=>{const A=h.current;if(A)return A.addEventListener(Xe,x),()=>A.removeEventListener(Xe,x)},[x]),d.jsx(sc,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:v,onItemFocus:c.useCallback(A=>m(A),[m]),onItemShiftTab:c.useCallback(()=>C(!0),[]),onFocusableItemAdd:c.useCallback(()=>_(A=>A+1),[]),onFocusableItemRemove:c.useCallback(()=>_(A=>A-1),[]),children:d.jsx(N.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,A=>{const I=!R.current;if(A.target===A.currentTarget&&I&&!w){const T=new CustomEvent(Xe,oc);if(A.currentTarget.dispatchEvent(T),!T.defaultPrevented){const D=b().filter(L=>L.focusable),K=D.find(L=>L.active),V=D.find(L=>L.id===v),ce=[K,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=ic(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(N.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=fc(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?pc(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 lc={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dc(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function fc(e,t,n){const r=dc(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return lc[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 pc(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var hc=mn,vc=yn,mc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ie=new WeakMap,ke=new WeakMap,De={},Ze=0,xn=function(e){return e&&(e.host||xn(e.parentNode))},gc=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})},yc=function(e,t,n,r){var o=gc(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&&ke.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||(ke.has(u)||u.removeAttribute(r),ke.delete(u)),y||u.removeAttribute(n)}),Ze--,Ze||(ie=new WeakMap,ie=new WeakMap,ke=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=mc(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),yc(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 wc(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",xc="with-scroll-bars-hidden",Cc="--removed-body-scroll-bar-size";function Qe(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function bc(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 Ec=typeof window<"u"?c.useLayoutEffect:c.useEffect,Wt=new WeakMap;function Mc(e,t){var n=bc(null,function(r){return e.forEach(function(o){return Qe(o,r)})});return Ec(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 _c(e){return e}function Sc(e,t){t===void 0&&(t=_c);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 Rc(e){e===void 0&&(e={});var t=Sc(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 Pc(e,t){return e.useMedium(t),En}var Mn=Rc(),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=Mc([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 Ac=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Nc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ac();return t&&e.setAttribute("nonce",t),e}function kc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Dc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ic=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Nc())&&(kc(t,n),Dc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Tc=function(){var e=Ic();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},_n=function(){var e=Tc(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Oc={left:0,top:0,right:0,gap:0},et=function(e){return parseInt(e||"",10)||0},jc=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)]},Lc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Oc;var t=jc(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])}},Fc=_n(),fe="data-scroll-locked",$c=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(xc,` {
|
|
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(Cc,": ").concat(s,`px;
|
|
}
|
|
`)},Bt=function(){var e=parseInt(document.body.getAttribute(fe)||"0",10);return isFinite(e)?e:0},Wc=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())}},[])},Bc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Wc();var a=c.useMemo(function(){return Lc(o)},[o]);return c.createElement(Fc,{styles:$c(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,Uc=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&&!Uc(e)&&n[t]==="visible")},Gc=function(e){return Sn(e,"overflowY")},Kc=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},zc=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Hc=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Rn=function(e,t){return e==="v"?Gc(t):Kc(t)},Pn=function(e,t){return e==="v"?zc(t):Hc(t)},Vc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Yc=function(e,t,n,r,o){var a=Vc(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]},Kt=function(e){return e&&"current"in e?e.current:e},qc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Xc=function(e){return`
|
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
`)},Zc=0,le=[];function Qc(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(Zc++)[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=wc([e.lockRef.current],(e.shards||[]).map(Kt),!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 A=window.getSelection(),I=A&&A.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 K=r.current||R;return Yc(K,m,v,K==="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(Kt).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:Jc(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:Xc(o)}):null,y?c.createElement(Bc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Jc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const es=Pc(Mn,Qc);var pt=c.forwardRef(function(e,t){return c.createElement(Be,H({},e,{ref:t,sideCar:es}))});pt.classNames=Be.classNames;var ot=["Enter"," "],ts=["ArrowDown","PageUp","Home"],An=["ArrowUp","PageDown","End"],ns=[...ts,...An],rs={ltr:[...ot,"ArrowRight"],rtl:[...ot,"ArrowLeft"]},os={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Me="Menu",[Ce,as,cs]=Xt(Me),[re,Nn]=J(Me,[cs,an,vn]),Ue=an(),kn=vn(),[ss,oe]=re(Me),[is,_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=q(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(ss,{scope:t,open:n,onOpenChange:u,content:p,onContentChange:l,children:d.jsx(is,{scope:t,onClose:c.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:f,dir:h,modal:i,children:r})})})};Dn.displayName=Me;var us="MenuAnchor",ht=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ue(n);return d.jsx(Xa,{...o,...r,ref:t})});ht.displayName=us;var vt="MenuPortal",[ls,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(ls,{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",[ds,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(fs,{...o,ref:t}):d.jsx(ps,{...o,ref:t})})})})}),fs=c.forwardRef((e,t)=>{const n=oe(U,e.__scopeMenu),r=c.useRef(null),o=k(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)})}),ps=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)})}),hs=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=kn(n),b=as(n),[R,P]=c.useState(null),_=c.useRef(null),A=k(t,_,m.onContentChange),I=c.useRef(0),T=c.useRef(""),D=c.useRef(0),K=c.useRef(null),V=c.useRef("right"),ae=c.useRef(0),ce=g?pt:c.Fragment,L=g?{as:hs,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=Ss(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===(($=K.current)==null?void 0:$.side)&&Ps(M,(W=K.current)==null?void 0:W.area)},[]);return d.jsx(ds,{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=>{K.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(hc,{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(Za,{role:"menu","aria-orientation":"vertical","data-state":Zn(m.open),"data-radix-menu-content":"",dir:w.dir,...C,...v,ref:A,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||!ns.includes(M.key))return;M.preventDefault();const te=b().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);An.includes(M.key)&&te.reverse(),Ms(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 vs="MenuGroup",yt=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(N.div,{role:"group",...r,ref:t})});yt.displayName=vs;var ms="MenuLabel",jn=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(N.div,{...r,ref:t})});jn.displayName=ms;var Le="MenuItem",zt="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=k(t,a),l=c.useRef(!1),f=()=>{const u=a.current;if(!n&&u){const h=new CustomEvent(zt,{bubbles:!0,cancelable:!0});u.addEventListener(zt,y=>r==null?void 0:r(y),{once:!0}),qt(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=kn(n),p=c.useRef(null),l=k(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(vc,{asChild:!0,...s,focusable:!r,children:d.jsx(N.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))})})})}),gs="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=gs;var $n="MenuRadioGroup",[ys,ws]=re($n,{value:void 0,onValueChange:()=>{}}),Wn=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=q(r);return d.jsx(ys,{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=ws(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,xs]=re(wt,{checked:!1}),Kn=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=xs(wt,n);return d.jsx(ee,{present:r||Fe(a.checked)||a.checked===!0,children:d.jsx(N.span,{...o,ref:t,"data-state":xt(a.checked)})})});Kn.displayName=wt;var Cs="MenuSeparator",zn=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(N.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});zn.displayName=Cs;var bs="MenuArrow",Hn=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ue(n);return d.jsx(Qa,{...o,...r,ref:t})});Hn.displayName=bs;var Es="MenuSub",[Tu,Vn]=re(Es),xe="MenuSubTrigger",Yn=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===" "||rs[r.dir].includes(u.key)&&(n.onOpenChange(!0),(y=n.content)==null||y.focus(),u.preventDefault())})})})});Yn.displayName=xe;var qn="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(qn,e.__scopeMenu),l=c.useRef(null),f=k(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=os[s.dir].includes(u.key);h&&y&&(i.onOpenChange(!1),(g=p.trigger)==null||g.focus(),u.preventDefault())})})})})})});Xn.displayName=qn;function Zn(e){return e?"open":"closed"}function Fe(e){return e==="indeterminate"}function xt(e){return Fe(e)?"indeterminate":e?"checked":"unchecked"}function Ms(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function _s(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Ss(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=_s(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 Rs(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 Ps(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Rs(n,t)}function be(e){return t=>t.pointerType==="mouse"?e(t):void 0}var As=Dn,Ns=ht,ks=Tn,Ds=On,Is=yt,Ts=jn,Os=Ge,js=Fn,Ls=Wn,Fs=Un,$s=Kn,Ws=zn,Bs=Hn,Us=Yn,Gs=Xn,Ke="DropdownMenu",[Ks]=J(Ke,[Nn]),j=Nn(),[zs,Qn]=Ks(Ke),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:Ke});return d.jsx(zs,{scope:t,triggerId:de(),triggerRef:l,contentId:de(),open:f,onOpenChange:u,onOpenToggle:c.useCallback(()=>u(h=>!h),[u]),modal:s,children:d.jsx(As,{...p,open:f,onOpenChange:u,dir:r,modal:s,children:n})})};Jn.displayName=Ke;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(Ns,{asChild:!0,...i,children:d.jsx(N.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 Hs="DropdownMenuPortal",nr=e=>{const{__scopeDropdownMenu:t,...n}=e,r=j(t);return d.jsx(ks,{...r,...n})};nr.displayName=Hs;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(Ds,{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 Vs="DropdownMenuGroup",Ys=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Is,{...o,...r,ref:t})});Ys.displayName=Vs;var qs="DropdownMenuLabel",ar=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Ts,{...o,...r,ref:t})});ar.displayName=qs;var Xs="DropdownMenuItem",cr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Os,{...o,...r,ref:t})});cr.displayName=Xs;var Zs="DropdownMenuCheckboxItem",sr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(js,{...o,...r,ref:t})});sr.displayName=Zs;var Qs="DropdownMenuRadioGroup",Js=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Ls,{...o,...r,ref:t})});Js.displayName=Qs;var ei="DropdownMenuRadioItem",ir=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Fs,{...o,...r,ref:t})});ir.displayName=ei;var ti="DropdownMenuItemIndicator",ur=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx($s,{...o,...r,ref:t})});ur.displayName=ti;var ni="DropdownMenuSeparator",lr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Ws,{...o,...r,ref:t})});lr.displayName=ni;var ri="DropdownMenuArrow",oi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Bs,{...o,...r,ref:t})});oi.displayName=ri;var ai="DropdownMenuSubTrigger",dr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Us,{...o,...r,ref:t})});dr.displayName=ai;var ci="DropdownMenuSubContent",fr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Gs,{...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=ci;var Ou=Jn,ju=tr,Lu=nr,Fu=or,$u=ar,Wu=cr,Bu=sr,Uu=ir,Gu=ur,Ku=lr,zu=dr,Hu=fr;function si(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 ze="Switch",[ii]=J(ze),[ui,Ct]=ii(ze);function li(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:ze}),[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(ui,{scope:t,...b,children:pi(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=k(r,p);return d.jsx(N.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 di=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(li,{__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})]})})});di.displayName=ze;var vr="SwitchThumb",fi=c.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=Ct(vr,n);return d.jsx(N.span,{"data-state":yr(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});fi.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=k(n,y),v=si(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(N.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 pi(e){return typeof e=="function"}function yr(e){return e?"checked":"unchecked"}var hi="Label",wr=c.forwardRef((e,t)=>d.jsx(N.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=hi;var Vu=wr,He="Dialog",[xr,Cr]=J(He),[vi,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(vi,{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=k(t,o.triggerRef);return d.jsx(N.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",[mi,_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(mi,{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(yi,{...o,ref:t})}):null});Rr.displayName=$e;var gi=he("DialogOverlay.RemoveScroll"),yi=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=G($e,n);return d.jsx(pt,{as:gi,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(N.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(wi,{...o,ref:t}):d.jsx(xi,{...o,ref:t})})});Pr.displayName=ne;var wi=c.forwardRef((e,t)=>{const n=G(ne,e.__scopeDialog),r=c.useRef(null),o=k(t,n.contentRef,r);return c.useEffect(()=>{const a=r.current;if(a)return Cn(a)},[]),d.jsx(Ar,{...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())})}),xi=c.forwardRef((e,t)=>{const n=G(ne,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return d.jsx(Ar,{...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()}})}),Ar=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=G(ne,n),p=c.useRef(null),l=k(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(bi,{titleId:s.titleId}),d.jsx(Mi,{contentRef:p,descriptionId:s.descriptionId})]})]})}),Et="DialogTitle",Nr=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=G(Et,n);return d.jsx(N.h2,{id:o.titleId,...r,ref:t})});Nr.displayName=Et;var kr="DialogDescription",Dr=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=G(kr,n);return d.jsx(N.p,{id:o.descriptionId,...r,ref:t})});Dr.displayName=kr;var Ir="DialogClose",Tr=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=G(Ir,n);return d.jsx(N.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",[Ci,jr]=ia(Or,{contentName:ne,titleName:Et,docsSlug:"dialog"}),bi=({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},Ei="DialogDescriptionWarning",Mi=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${jr(Ei).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},_i=br,Si=Mr,Ri=Sr,Pi=Rr,Ai=Pr,Ni=Nr,ki=Dr,Lr=Tr,Fr="AlertDialog",[Di]=J(Fr,[Cr]),X=Cr(),$r=e=>{const{__scopeAlertDialog:t,...n}=e,r=X(t);return d.jsx(_i,{...r,...n,modal:!0})};$r.displayName=Fr;var Ii="AlertDialogTrigger",Wr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=X(n);return d.jsx(Si,{...o,...r,ref:t})});Wr.displayName=Ii;var Ti="AlertDialogPortal",Br=e=>{const{__scopeAlertDialog:t,...n}=e,r=X(t);return d.jsx(Ri,{...r,...n})};Br.displayName=Ti;var Oi="AlertDialogOverlay",Ur=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=X(n);return d.jsx(Pi,{...o,...r,ref:t})});Ur.displayName=Oi;var pe="AlertDialogContent",[ji,Li]=Di(pe),Fi=pa("AlertDialogContent"),Gr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=X(n),i=c.useRef(null),s=k(t,i),p=c.useRef(null);return d.jsx(Ci,{contentName:pe,titleName:Kr,docsSlug:"alert-dialog",children:d.jsx(ji,{scope:n,cancelRef:p,children:d.jsxs(Ai,{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(Fi,{children:r}),d.jsx(Wi,{contentRef:i})]})})})});Gr.displayName=pe;var Kr="AlertDialogTitle",zr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=X(n);return d.jsx(Ni,{...o,...r,ref:t})});zr.displayName=Kr;var Hr="AlertDialogDescription",Vr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=X(n);return d.jsx(ki,{...o,...r,ref:t})});Vr.displayName=Hr;var $i="AlertDialogAction",Yr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=X(n);return d.jsx(Lr,{...o,...r,ref:t})});Yr.displayName=$i;var qr="AlertDialogCancel",Xr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=Li(qr,n),a=X(n),i=k(t,o);return d.jsx(Lr,{...a,...r,ref:i})});Xr.displayName=qr;var Wi=({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},Yu=$r,qu=Wr,Xu=Br,Zu=Ur,Qu=Gr,Ju=Yr,el=Xr,tl=zr,nl=Vr;export{su as $,Ui as A,mu as B,Hi as C,pu as D,fu as E,Qi as F,eu as G,nu as H,Wu as I,Nu as J,wu as K,$u as L,hu as M,xu as N,lu as O,Lu as P,Ki as Q,Uu as R,zu as S,ju as T,ku as U,ou as V,Ru as W,Du as X,gu as Y,bu as Z,iu as _,Hu as a,qi as a0,cu as a1,ru as a2,Au as a3,_i as a4,Ri as a5,Ai as a6,Lr as a7,Ni as a8,Pi as a9,ki as aa,Vu as ab,du as ac,Yu as ad,qu as ae,Xu as af,Qu as ag,tl as ah,nl as ai,el as aj,Ju as ak,Zu as al,Xi as am,Fu as b,Bu as c,Gu as d,zi as e,Vi as f,Ku as g,Ou as h,Yi as i,Su as j,au as k,Eu as l,Cu as m,yu as n,Pu as o,uu as p,Ji as q,Zi as r,vu as s,_u as t,Iu as u,di as v,fi as w,Mu as x,tu as y,Gi as z};
|