新增后端图标校验与色槽规范化,前端展示 BoardBadge/骨架屏,发帖与板块管理页增加未保存确认。 Co-authored-by: Cursor <cursoragent@cursor.com>
457 lines
98 KiB
JavaScript
457 lines
98 KiB
JavaScript
import{r as c,j as d,R as at,a as Vt,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-BdyZmpPe.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 Kt=(...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 Nt=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 Ke={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:g=""}=vo()??{},y=r??u?Number(n??f)*24/Number(t??l):n??f;return c.createElement("svg",{ref:p,...Ke,width:t??l??Ke.width,height:t??l??Ke.height,stroke:e??h,strokeWidth:y,className:Kt("lucide",g,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 w=(e,t)=>{const n=c.forwardRef(({className:r,...o},a)=>c.createElement(mo,{ref:a,iconNode:t,className:Kt(`lucide-${lo(Nt(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Nt(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 yo=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],yu=w("arrow-left",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 go=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],gu=w("arrow-right",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 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"}]],wu=w("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:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],xu=w("book-open",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 Mo=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],Mu=w("briefcase",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 bo=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],bu=w("camera",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 Co=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Cu=w("check",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 _o=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],_u=w("chevron-right",_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 Eo=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Eu=w("circle-question-mark",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 ko=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],ku=w("circle",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 So=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Su=w("clock",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:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],Ru=w("code-xml",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 No=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Nu=w("code",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 Ao=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],Au=w("coffee",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 Po=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Pu=w("cpu",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 Do=[["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"}]],Du=w("database",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=[["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 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],Iu=w("file-code",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=[["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"}]],Tu=w("file-text",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:"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"}]],Ou=w("flame",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:"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"}]],ju=w("folder-kanban",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 $o=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],$u=w("folder",$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 Lo=[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]],Lu=w("gamepad-2",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=[["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"}]],Fu=w("git-compare",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 zo=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],zu=w("globe",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 Bo=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],Bu=w("graduation-cap",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 Wo=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],Wu=w("heart",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 Uo=[["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"}]],Uu=w("history",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:"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"}]],Gu=w("house",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 Ho=[["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"}]],Hu=w("image",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=[["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"}]],Vu=w("italic",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 Ko=[["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"}]],Ku=w("layout-dashboard",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 qo=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],qu=w("layout-grid",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:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],Yu=w("lightbulb",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:"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"}]],Xu=w("link",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:"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"}]],Zu=w("list-ordered",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:"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"}]],Qu=w("list",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:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ju=w("loader-circle",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=[["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"}]],el=w("lock-keyhole",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=[["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"}]],tl=w("lock-open",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=[["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"}]],nl=w("lock",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:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],rl=w("log-out",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:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],ol=w("map-pin",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 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"}]],al=w("maximize-2",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:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]],cl=w("megaphone",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:"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"}]],sl=w("message-circle",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:"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"}]],il=w("message-square",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:"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"}]],ul=w("minimize-2",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:"M5 12h14",key:"1ays0h"}]],ll=w("minus",la);/**
|
|
* @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 da=[["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"}]],dl=w("moon",da);/**
|
|
* @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 fa=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],fl=w("music",fa);/**
|
|
* @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 pa=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],pl=w("palette",pa);/**
|
|
* @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 ha=[["path",{d:"M13 21h8",key:"1jsn5i"}],["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"}]],hl=w("pen-line",ha);/**
|
|
* @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 va=[["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"}]],vl=w("pencil",va);/**
|
|
* @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 ma=[["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"}]],ml=w("pin",ma);/**
|
|
* @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 ya=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],yl=w("plus",ya);/**
|
|
* @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 ga=[["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"}]],gl=w("quote",ga);/**
|
|
* @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 wa=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],wl=w("search",wa);/**
|
|
* @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 xa=[["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"}]],xl=w("send",xa);/**
|
|
* @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 Ma=[["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"}]],Ml=w("server",Ma);/**
|
|
* @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 ba=[["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"}]],bl=w("settings",ba);/**
|
|
* @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:"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"}]],Cl=w("shield",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 _a=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],_l=w("shopping-bag",_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 Ea=[["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"}]],El=w("sliders-horizontal",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 ka=[["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"}]],kl=w("star",ka);/**
|
|
* @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:"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"}]],Sl=w("strikethrough",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 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"}]],Rl=w("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 Na=[["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"}]],Nl=w("tag",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 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"}]],Al=w("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 Pa=[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]],Pl=w("underline",Pa);/**
|
|
* @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 Da=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Dl=w("upload",Da);/**
|
|
* @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:"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"}]],Il=w("users",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 Ta=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Tl=w("wrench",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 Oa=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ol=w("x",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 ja=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],jl=w("zap",ja);function k(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 P(...e){return c.useCallback(ct(...e),e)}function $a(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 x;const{scope:h,children:g,...y}=u,v=((x=h==null?void 0:h[e])==null?void 0:x[p])||s,m=c.useMemo(()=>y,Object.values(y));return d.jsx(v.Provider,{value:m,children:g})};l.displayName=a+"Provider";function f(u,h){var v;const g=((v=h==null?void 0:h[e])==null?void 0:v[p])||s,y=c.useContext(g);if(y)return y;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,La(o,...t)]}function La(...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:()=>{},Fa=at[" useInsertionEffect ".trim().toString()]||q;function ze({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=za({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=Ba(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 za({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),a=c.useRef(t);return Fa(()=>{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 Ba(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=[];Pt(o)&&typeof Re=="function"&&(o=Re(o._payload)),c.Children.forEach(o,h=>{var g;if(Va(h)){s=!0;const y=h;let v="child"in y.props?y.props.child:y.props.children;Pt(v)&&typeof Re=="function"&&(v=Re(v._payload)),i=Ua(y,v),p.push((g=i==null?void 0:i.props)==null?void 0:g.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?Ha(i):void 0,f=P(r,l);if(!i){if(o||o===0)throw new Error(s?Xa(e):Ya(e));return o}const u=Ga(a,i.props??{});return i.type!==c.Fragment&&(u.ref=r?f:l),c.cloneElement(i,u)});return t.displayName=`${e}.Slot`,t}var $l=he("Slot"),qt=Symbol.for("radix.slottable");function Wa(e){const t=n=>"child"in n?n.children(n.child):n.children;return t.displayName=`${e}.Slottable`,t.__radixId=qt,t}var Ua=(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 Ga(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 Ha(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 Va(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qt}var Ka=Symbol.for("react.lazy");function Pt(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ka&&"_payload"in e&&qa(e._payload)}function qa(e){return typeof e=="object"&&e!==null&&"then"in e}var Ya=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Xa=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Re=at[" use ".trim().toString()],Za=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],A=Za.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&&Vt.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:x}=v,b=c.useRef(null),M=c.useRef(new Map).current;return d.jsx(o,{scope:m,itemMap:M,collectionRef:b,children:x})};i.displayName=t;const s=e+"CollectionSlot",p=he(s),l=c.forwardRef((v,m)=>{const{scope:x,children:b}=v,M=a(s,x),C=P(m,M.collectionRef);return d.jsx(p,{ref:C,children:b})});l.displayName=s;const f=e+"CollectionItemSlot",u="data-radix-collection-item",h=he(f),g=c.forwardRef((v,m)=>{const{scope:x,children:b,...M}=v,C=c.useRef(null),S=P(m,C),R=a(f,x);return c.useEffect(()=>(R.itemMap.set(C,{ref:C,...M}),()=>void R.itemMap.delete(C))),d.jsx(h,{[u]:"",ref:S,children:b})});g.displayName=f;function y(v){const m=a(e+"CollectionConsumer",v);return c.useCallback(()=>{const b=m.collectionRef.current;if(!b)return[];const M=Array.from(b.querySelectorAll(`[${u}]`));return Array.from(m.itemMap.values()).sort((R,E)=>M.indexOf(R.ref.current)-M.indexOf(E.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:i,Slot:l,ItemSlot:g},y,r]}var Qa=c.createContext(void 0);function Zt(e){const t=c.useContext(Qa);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 Ja(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 ec="DismissableLayer",tt="dismissableLayer.update",tc="dismissableLayer.pointerDownOutside",nc="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),[,g]=c.useState({}),y=P(t,E=>u(E)),v=Array.from(l.layers),[m]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),x=v.indexOf(m),b=f?v.indexOf(f):-1,M=l.layersWithOutsidePointerEventsDisabled.size>0,C=b>=x,S=ac(E=>{const N=E.target,I=[...l.branches].some(T=>T.contains(N));!C||I||(o==null||o(E),i==null||i(E),E.defaultPrevented||s==null||s())},h),R=cc(E=>{const N=E.target;[...l.branches].some(T=>T.contains(N))||(a==null||a(E),i==null||i(E),E.defaultPrevented||s==null||s())},h);return Ja(E=>{b===l.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&s&&(E.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 E=()=>g({});return document.addEventListener(tt,E),()=>document.removeEventListener(tt,E)},[]),d.jsx(A.div,{...p,ref:y,style:{pointerEvents:M?C?"auto":"none":void 0,...e.style},onFocusCapture:k(e.onFocusCapture,R.onFocusCapture),onBlurCapture:k(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:k(e.onPointerDownCapture,S.onPointerDownCapture)})});st.displayName=ec;var rc="DismissableLayerBranch",oc=c.forwardRef((e,t)=>{const n=c.useContext(Qt),r=c.useRef(null),o=P(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})});oc.displayName=rc;function ac(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(tc,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 cc(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(nc,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 Ne=0,H=null;function en(){c.useEffect(()=>{H||(H={start:Tt(),end:Tt()});const{start:e,end:t}=H;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Ne++,()=>{Ne===1&&(H==null||H.start.remove(),H==null||H.end.remove(),H=null),Ne=Math.max(0,Ne-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},sc="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=P(t,v=>p(v)),g=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let v=function(M){if(g.paused||!s)return;const C=M.target;s.contains(C)?u.current=C:Q(u.current,{select:!0})},m=function(M){if(g.paused||!s)return;const C=M.relatedTarget;C!==null&&(s.contains(C)||Q(u.current,{select:!0}))},x=function(M){if(document.activeElement===document.body)for(const S of M)S.removedNodes.length>0&&Q(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",m);const b=new MutationObserver(x);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",m),b.disconnect()}}},[r,s,g.paused]),c.useEffect(()=>{if(s){$t.add(g);const v=document.activeElement;if(!s.contains(v)){const x=new CustomEvent(qe,Ot);s.addEventListener(qe,l),s.dispatchEvent(x),x.defaultPrevented||(ic(pc(tn(s)),{select:!0}),document.activeElement===v&&Q(s))}return()=>{s.removeEventListener(qe,l),setTimeout(()=>{const x=new CustomEvent(Ye,Ot);s.addEventListener(Ye,f),s.dispatchEvent(x),x.defaultPrevented||Q(v??document.body,{select:!0}),s.removeEventListener(Ye,f),$t.remove(g)},0)}}},[s,l,f,g]);const y=c.useCallback(v=>{if(!n&&!r||g.paused)return;const m=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,x=document.activeElement;if(m&&x){const b=v.currentTarget,[M,C]=uc(b);M&&C?!v.shiftKey&&x===C?(v.preventDefault(),n&&Q(M,{select:!0})):v.shiftKey&&x===M&&(v.preventDefault(),n&&Q(C,{select:!0})):x===b&&v.preventDefault()}},[n,r,g.paused]);return d.jsx(A.div,{tabIndex:-1,...i,ref:h,onKeyDown:y})});it.displayName=sc;function ic(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Q(r,{select:t}),document.activeElement!==n)return}function uc(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(!lc(n,{upTo:t}))return n}function lc(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 dc(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&&dc(e)&&t&&e.select()}}var $t=fc();function fc(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Lt(e,t),e.unshift(t)},remove(t){var n;e=Lt(e,t),(n=e[0])==null||n.resume()}}}function Lt(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function pc(e){return e.filter(t=>t.tagName!=="A")}var hc=at[" useId ".trim().toString()]||(()=>{}),vc=0;function de(e){const[t,n]=c.useState(hc());return q(()=>{n(r=>r??String(vc++))},[e]),t?`radix-${t}`:""}var mc="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=mc;var yc=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),[gc,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(gc,{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(y=>{i.current=y,y&&s(y)},[s]),l=P(t,p),f=c.useRef(null);c.useEffect(()=>{if(!r)return;const y=f.current;f.current=r.current,y!==f.current&&s(f.current)});const u=a.placementState&&dt(a.placementState),h=u==null?void 0:u[0],g=u==null?void 0:u[1];return r?null:d.jsx(A.div,{"data-radix-popper-side":h,"data-radix-popper-align":g,...o,ref:l})});ln.displayName=un;var lt="PopperContent",[wc,xc]=on(lt),dn=c.forwardRef((e,t)=>{var ye,B,ge,Et,kt,St;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:g="optimized",onPlaced:y,...v}=e,m=cn(lt,n),[x,b]=c.useState(null),M=P(t,we=>b(we)),[C,S]=c.useState(null),R=rn(C),E=(R==null?void 0:R.width)??0,N=(R==null?void 0:R.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,G=D!==void 0&&D.length>0,K={padding:T,boundary:D==null?void 0:D.filter(bc),altBoundary:G},{refs:ae,floatingStyles:ce,placement:$,isPositioned:se,middlewareData:L}=to({strategy:"fixed",placement:I,whileElementsMounted:(...we)=>io(...we,{animationFrame:g==="always"}),elements:{reference:m.anchor},middleware:[no({mainAxis:o+N,alignmentAxis:i}),p&&ro({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?uo():void 0,...K}),p&&oo({...K}),ao({...K,apply:({elements:we,rects:Rt,availableWidth:Zr,availableHeight:Qr})=>{const{width:Jr,height:eo}=Rt.reference,Se=we.floating.style;Se.setProperty("--radix-popper-available-width",`${Zr}px`),Se.setProperty("--radix-popper-available-height",`${Qr}px`),Se.setProperty("--radix-popper-anchor-width",`${Jr}px`),Se.setProperty("--radix-popper-anchor-height",`${eo}px`)}}),C&&co({element:C,padding:s}),Cc({arrowWidth:E,arrowHeight:N}),h&&so({strategy:"referenceHidden",...K})]}),_=m.setPlacementState;q(()=>(_($),()=>{_(void 0)}),[$,_]);const[O,F]=dt($),z=Y(y);q(()=>{se&&(z==null||z())},[se,z]);const ve=(ye=L.arrow)==null?void 0:ye.x,me=(B=L.arrow)==null?void 0:B.y,ke=((ge=L.arrow)==null?void 0:ge.centerOffset)!==0,[te,Z]=c.useState();return q(()=>{x&&Z(window.getComputedStyle(x).zIndex)},[x]),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":[(Et=L.transformOrigin)==null?void 0:Et.x,(kt=L.transformOrigin)==null?void 0:kt.y].join(" "),...((St=L.hide)==null?void 0:St.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(wc,{scope:n,placedSide:O,placedAlign:F,onArrowChange:S,arrowX:ve,arrowY:me,shouldHideArrow:ke,children:d.jsx(A.div,{"data-side":O,"data-align":F,...v,ref:M,style:{...v.style,animation:se?void 0:"none"}})})})});dn.displayName=lt;var fn="PopperArrow",Mc={top:"bottom",right:"left",bottom:"top",left:"right"},pn=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=xc(fn,r),i=Mc[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(yc,{...o,ref:n,style:{...o.style,display:"block"}})})});pn.displayName=fn;function bc(e){return e!==null}var Cc=e=>({name:"transformOrigin",options:e,fn(t){var m,x,b;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=(((x=o.arrow)==null?void 0:x.x)??0)+s/2,g=(((b=o.arrow)==null?void 0:b.y)??0)+p/2;let y="",v="";return l==="bottom"?(y=i?u:`${h}px`,v=`${-p}px`):l==="top"?(y=i?u:`${h}px`,v=`${r.floating.height+p}px`):l==="right"?(y=`${-p}px`,v=i?u:`${g}px`):l==="left"&&(y=`${r.floating.width+p}px`,v=i?u:`${g}px`),{data:{x:y,y:v}}}});function dt(e){const[t,n="center"]=e.split("-");return[t,n]}var _c=sn,Ec=ln,kc=dn,Sc=pn,Rc="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?Vt.createPortal(d.jsx(A.div,{...r,ref:t}),i):null});ft.displayName=Rc;function Nc(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var ee=e=>{const{present:t,children:n}=e,r=Ac(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),a=Pc(r.ref,Dc(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:a}):null};ee.displayName="Presence";function Ac(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[s,p]=Nc(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,g=Ae(l);e?p("MOUNT"):g==="none"||(l==null?void 0:l.display)==="none"?p("UNMOUNT"):p(f&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),q(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,u=g=>{const v=Ae(r.current).includes(CSS.escape(g.animationName));if(g.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=g=>{g.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 Ft(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Pc(...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=Ft(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():Ft(r[i],null)}}},[])}function Ae(e){return(e==null?void 0:e.animationName)||"none"}function Dc(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",Ic={bubbles:!1,cancelable:!0},Ce="RovingFocusGroup",[nt,hn,Tc]=Xt(Ce),[Oc,vn]=J(Ce,[Tc]),[jc,$c]=Oc(Ce),mn=c.forwardRef((e,t)=>d.jsx(nt.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(nt.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Lc,{...e,ref:t})})}));mn.displayName=Ce;var Lc=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),g=P(t,h),y=Zt(a),[v,m]=ze({prop:i,defaultProp:s??null,onChange:p,caller:Ce}),[x,b]=c.useState(!1),M=Y(l),C=hn(n),S=c.useRef(!1),[R,E]=c.useState(0);return c.useEffect(()=>{const N=h.current;if(N)return N.addEventListener(Xe,M),()=>N.removeEventListener(Xe,M)},[M]),d.jsx(jc,{scope:n,orientation:r,dir:y,loop:o,currentTabStopId:v,onItemFocus:c.useCallback(N=>m(N),[m]),onItemShiftTab:c.useCallback(()=>b(!0),[]),onFocusableItemAdd:c.useCallback(()=>E(N=>N+1),[]),onFocusableItemRemove:c.useCallback(()=>E(N=>N-1),[]),children:d.jsx(A.div,{tabIndex:x||R===0?-1:0,"data-orientation":r,...u,ref:g,style:{outline:"none",...e.style},onMouseDown:k(e.onMouseDown,()=>{S.current=!0}),onFocus:k(e.onFocus,N=>{const I=!S.current;if(N.target===N.currentTarget&&I&&!x){const T=new CustomEvent(Xe,Ic);if(N.currentTarget.dispatchEvent(T),!T.defaultPrevented){const D=C().filter($=>$.focusable),G=D.find($=>$.active),K=D.find($=>$.id===v),ce=[G,K,...D].filter(Boolean).map($=>$.ref.current);wn(ce,f)}}S.current=!1}),onBlur:k(e.onBlur,()=>b(!1))})})}),yn="RovingFocusGroupItem",gn=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=$c(yn,n),u=f.currentTabStopId===l,h=hn(n),{onFocusableItemAdd:g,onFocusableItemRemove:y,currentTabStopId:v}=f;return c.useEffect(()=>{if(r)return g(),()=>y()},[r,g,y]),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:k(e.onMouseDown,m=>{r?f.onItemFocus(l):m.preventDefault()}),onFocus:k(e.onFocus,()=>f.onItemFocus(l)),onKeyDown:k(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){f.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const x=Bc(m,f.orientation,f.dir);if(x!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let M=h().filter(C=>C.focusable).map(C=>C.ref.current);if(x==="last")M.reverse();else if(x==="prev"||x==="next"){x==="prev"&&M.reverse();const C=M.indexOf(m.currentTarget);M=f.loop?Wc(M,C+1):M.slice(C+1)}setTimeout(()=>wn(M))}}),children:typeof i=="function"?i({isCurrentTabStop:u,hasTabStop:v!=null}):i})})});gn.displayName=yn;var Fc={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function zc(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Bc(e,t,n){const r=zc(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Fc[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 Wc(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Uc=mn,Gc=gn,Hc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ie=new WeakMap,Pe=new WeakMap,De={},Ze=0,xn=function(e){return e&&(e.host||xn(e.parentNode))},Vc=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})},Kc=function(e,t,n,r){var o=Vc(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 g=h.getAttribute(r),y=g!==null&&g!=="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&&y&&Pe.set(h,!0),m===1&&h.setAttribute(n,"true"),y||h.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",h,x)}})};return f(t),s.clear(),Ze++,function(){i.forEach(function(u){var h=ie.get(u)-1,g=a.get(u)-1;ie.set(u,h),a.set(u,g),h||(Pe.has(u)||u.removeAttribute(r),Pe.delete(u)),g||u.removeAttribute(n)}),Ze--,Ze||(ie=new WeakMap,ie=new WeakMap,Pe=new WeakMap,De={})}},Mn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Hc(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Kc(r,o,n,"aria-hidden")):function(){return null}},V=function(){return V=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},V.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 qc(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",Yc="with-scroll-bars-hidden",Xc="--removed-body-scroll-bar-size";function Qe(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Zc(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 Qc=typeof window<"u"?c.useLayoutEffect:c.useEffect,zt=new WeakMap;function Jc(e,t){var n=Zc(null,function(r){return e.forEach(function(o){return Qe(o,r)})});return Qc(function(){var r=zt.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)})}zt.set(n,e)},[e]),n}function es(e){return e}function ts(e,t){t===void 0&&(t=es);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 ns(e){e===void 0&&(e={});var t=ts(null);return t.options=V({async:!0,ssr:!1},e),t}var Cn=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,V({},n))};Cn.isSideCarExport=!0;function rs(e,t){return e.useMedium(t),Cn}var _n=ns(),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,g=e.noRelative,y=e.noIsolation,v=e.inert,m=e.allowPinchZoom,x=e.as,b=x===void 0?"div":x,M=e.gapMode,C=bn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,R=Jc([n,t]),E=V(V({},C),o);return c.createElement(c.Fragment,null,f&&c.createElement(S,{sideCar:_n,removeScrollBar:l,shards:u,noRelative:g,noIsolation:y,inert:v,setCallbacks:a,allowPinchZoom:!!m,lockRef:n,gapMode:M}),i?c.cloneElement(c.Children.only(s),V(V({},E),{ref:R})):c.createElement(b,V({},E,{className:p,ref:R}),s))});Be.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Be.classNames={fullWidth:je,zeroRight:Oe};var os=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function as(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=os();return t&&e.setAttribute("nonce",t),e}function cs(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ss(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var is=function(){var e=0,t=null;return{add:function(n){e==0&&(t=as())&&(cs(t,n),ss(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},us=function(){var e=is();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},En=function(){var e=us(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ls={left:0,top:0,right:0,gap:0},et=function(e){return parseInt(e||"",10)||0},ds=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)]},fs=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ls;var t=ds(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])}},ps=En(),fe="data-scroll-locked",hs=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(Yc,` {
|
|
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(Xc,": ").concat(s,`px;
|
|
}
|
|
`)},Bt=function(){var e=parseInt(document.body.getAttribute(fe)||"0",10);return isFinite(e)?e:0},vs=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())}},[])},ms=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;vs();var a=c.useMemo(function(){return fs(o)},[o]);return c.createElement(ps,{styles:hs(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,ys=function(e){return e.tagName==="TEXTAREA"},kn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ys(e)&&n[t]==="visible")},gs=function(e){return kn(e,"overflowY")},ws=function(e){return kn(e,"overflowX")},Wt=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Sn(e,r);if(o){var a=Rn(e,r),i=a[1],s=a[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},xs=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Ms=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Sn=function(e,t){return e==="v"?gs(t):ws(t)},Rn=function(e,t){return e==="v"?xs(t):Ms(t)},bs=function(e,t){return e==="h"&&t==="rtl"?-1:1},Cs=function(e,t,n,r,o){var a=bs(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 g=Rn(e,s),y=g[0],v=g[1],m=g[2],x=v-m-a*y;(y||x)&&Sn(e,s)&&(u+=x,h+=y);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}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]},Ut=function(e){return[e.deltaX,e.deltaY]},Gt=function(e){return e&&"current"in e?e.current:e},_s=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Es=function(e){return`
|
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
`)},ks=0,le=[];function Ss(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(ks++)[0],a=c.useState(En)[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=qc([e.lockRef.current],(e.shards||[]).map(Gt),!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 x=Te(v),b=n.current,M="deltaX"in v?v.deltaX:b[0]-x[0],C="deltaY"in v?v.deltaY:b[1]-x[1],S,R=v.target,E=Math.abs(M)>Math.abs(C)?"h":"v";if("touches"in v&&E==="h"&&R.type==="range")return!1;var N=window.getSelection(),I=N&&N.anchorNode,T=I?I===R||I.contains(R):!1;if(T)return!1;var D=Wt(E,R);if(!D)return!0;if(D?S=E:(S=E==="v"?"h":"v",D=Wt(E,R)),!D)return!1;if(!r.current&&"changedTouches"in v&&(M||C)&&(r.current=S),!S)return!0;var G=r.current||S;return Cs(G,m,v,G==="h"?M:C)},[]),p=c.useCallback(function(v){var m=v;if(!(!le.length||le[le.length-1]!==a)){var x="deltaY"in m?Ut(m):Te(m),b=t.current.filter(function(S){return S.name===m.type&&(S.target===m.target||m.target===S.shadowParent)&&_s(S.delta,x)})[0];if(b&&b.should){m.cancelable&&m.preventDefault();return}if(!b){var M=(i.current.shards||[]).map(Gt).filter(Boolean).filter(function(S){return S.contains(m.target)}),C=M.length>0?s(m,M[0]):!i.current.noIsolation;C&&m.cancelable&&m.preventDefault()}}},[]),l=c.useCallback(function(v,m,x,b){var M={name:v,delta:m,target:x,should:b,shadowParent:Rs(x)};t.current.push(M),setTimeout(function(){t.current=t.current.filter(function(C){return C!==M})},1)},[]),f=c.useCallback(function(v){n.current=Te(v),r.current=void 0},[]),u=c.useCallback(function(v){l(v.type,Ut(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 g=e.removeScrollBar,y=e.inert;return c.createElement(c.Fragment,null,y?c.createElement(a,{styles:Es(o)}):null,g?c.createElement(ms,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Rs(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ns=rs(_n,Ss);var pt=c.forwardRef(function(e,t){return c.createElement(Be,V({},e,{ref:t,sideCar:Ns}))});pt.classNames=Be.classNames;var ot=["Enter"," "],As=["ArrowDown","PageUp","Home"],Nn=["ArrowUp","PageDown","End"],Ps=[...As,...Nn],Ds={ltr:[...ot,"ArrowRight"],rtl:[...ot,"ArrowLeft"]},Is={ltr:["ArrowLeft"],rtl:["ArrowRight"]},_e="Menu",[Me,Ts,Os]=Xt(_e),[re,An]=J(_e,[Os,an,vn]),We=an(),Pn=vn(),[js,oe]=re(_e),[$s,Ee]=re(_e),Dn=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=We(t),[p,l]=c.useState(null),f=c.useRef(!1),u=Y(a),h=Zt(o);return c.useEffect(()=>{const g=()=>{f.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>f.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),d.jsx(_c,{...s,children:d.jsx(js,{scope:t,open:n,onOpenChange:u,content:p,onContentChange:l,children:d.jsx($s,{scope:t,onClose:c.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:f,dir:h,modal:i,children:r})})})};Dn.displayName=_e;var Ls="MenuAnchor",ht=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=We(n);return d.jsx(Ec,{...o,...r,ref:t})});ht.displayName=Ls;var vt="MenuPortal",[Fs,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(Fs,{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 W="MenuContent",[zs,mt]=re(W),On=c.forwardRef((e,t)=>{const n=In(W,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=oe(W,e.__scopeMenu),i=Ee(W,e.__scopeMenu);return d.jsx(Me.Provider,{scope:e.__scopeMenu,children:d.jsx(ee,{present:r||a.open,children:d.jsx(Me.Slot,{scope:e.__scopeMenu,children:i.modal?d.jsx(Bs,{...o,ref:t}):d.jsx(Ws,{...o,ref:t})})})})}),Bs=c.forwardRef((e,t)=>{const n=oe(W,e.__scopeMenu),r=c.useRef(null),o=P(t,r);return c.useEffect(()=>{const a=r.current;if(a)return Mn(a)},[]),d.jsx(yt,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:k(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Ws=c.forwardRef((e,t)=>{const n=oe(W,e.__scopeMenu);return d.jsx(yt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Us=he("MenuContent.ScrollLock"),yt=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:g,disableOutsideScroll:y,...v}=e,m=oe(W,n),x=Ee(W,n),b=We(n),M=Pn(n),C=Ts(n),[S,R]=c.useState(null),E=c.useRef(null),N=P(t,E,m.onContentChange),I=c.useRef(0),T=c.useRef(""),D=c.useRef(0),G=c.useRef(null),K=c.useRef("right"),ae=c.useRef(0),ce=y?pt:c.Fragment,$=y?{as:Us,allowPinchZoom:!0}:void 0,se=_=>{var Z,ye;const O=T.current+_,F=C().filter(B=>!B.disabled),z=document.activeElement,ve=(Z=F.find(B=>B.ref.current===z))==null?void 0:Z.textValue,me=F.map(B=>B.textValue),ke=ti(me,O,ve),te=(ye=F.find(B=>B.textValue===ke))==null?void 0:ye.ref.current;(function B(ge){T.current=ge,window.clearTimeout(I.current),ge!==""&&(I.current=window.setTimeout(()=>B(""),1e3))})(O),te&&setTimeout(()=>te.focus())};c.useEffect(()=>()=>window.clearTimeout(I.current),[]),en();const L=c.useCallback(_=>{var F,z;return K.current===((F=G.current)==null?void 0:F.side)&&ri(_,(z=G.current)==null?void 0:z.area)},[]);return d.jsx(zs,{scope:n,searchRef:T,onItemEnter:c.useCallback(_=>{L(_)&&_.preventDefault()},[L]),onItemLeave:c.useCallback(_=>{var O;L(_)||((O=E.current)==null||O.focus(),R(null))},[L]),onTriggerLeave:c.useCallback(_=>{L(_)&&_.preventDefault()},[L]),pointerGraceTimerRef:D,onPointerGraceIntentChange:c.useCallback(_=>{G.current=_},[]),children:d.jsx(ce,{...$,children:d.jsx(it,{asChild:!0,trapped:o,onMountAutoFocus:k(a,_=>{var O;_.preventDefault(),(O=E.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:g,children:d.jsx(Uc,{asChild:!0,...M,dir:x.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:R,onEntryFocus:k(p,_=>{x.isUsingKeyboardRef.current||_.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(kc,{role:"menu","aria-orientation":"vertical","data-state":Zn(m.open),"data-radix-menu-content":"",dir:x.dir,...b,...v,ref:N,style:{outline:"none",...v.style},onKeyDown:k(v.onKeyDown,_=>{const F=_.target.closest("[data-radix-menu-content]")===_.currentTarget,z=_.ctrlKey||_.altKey||_.metaKey,ve=_.key.length===1;F&&(_.key==="Tab"&&_.preventDefault(),!z&&ve&&se(_.key));const me=E.current;if(_.target!==me||!Ps.includes(_.key))return;_.preventDefault();const te=C().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);Nn.includes(_.key)&&te.reverse(),Js(te)}),onBlur:k(e.onBlur,_=>{_.currentTarget.contains(_.target)||(window.clearTimeout(I.current),T.current="")}),onPointerMove:k(e.onPointerMove,be(_=>{const O=_.target,F=ae.current!==_.clientX;if(_.currentTarget.contains(O)&&F){const z=_.clientX>ae.current?"right":"left";K.current=z,ae.current=_.clientX}}))})})})})})})});On.displayName=W;var Gs="MenuGroup",gt=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(A.div,{role:"group",...r,ref:t})});gt.displayName=Gs;var Hs="MenuLabel",jn=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(A.div,{...r,ref:t})});jn.displayName=Hs;var $e="MenuItem",Ht="menu.itemSelect",Ue=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=c.useRef(null),i=Ee($e,e.__scopeMenu),s=mt($e,e.__scopeMenu),p=P(t,a),l=c.useRef(!1),f=()=>{const u=a.current;if(!n&&u){const h=new CustomEvent(Ht,{bubbles:!0,cancelable:!0});u.addEventListener(Ht,g=>r==null?void 0:r(g),{once:!0}),Yt(u,h),h.defaultPrevented?l.current=!1:i.onClose()}};return d.jsx($n,{...o,ref:p,disabled:n,onClick:k(e.onClick,f),onPointerDown:u=>{var h;(h=e.onPointerDown)==null||h.call(e,u),l.current=!0},onPointerUp:k(e.onPointerUp,u=>{var h;l.current||(h=u.currentTarget)==null||h.click()}),onKeyDown:k(e.onKeyDown,u=>{const h=s.searchRef.current!=="";n||h&&u.key===" "||ot.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});Ue.displayName=$e;var $n=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=mt($e,n),s=Pn(n),p=c.useRef(null),l=P(t,p),[f,u]=c.useState(!1),[h,g]=c.useState("");return c.useEffect(()=>{const y=p.current;y&&g((y.textContent??"").trim())},[a.children]),d.jsx(Me.ItemSlot,{scope:n,disabled:r,textValue:o??h,children:d.jsx(Gc,{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:k(e.onPointerMove,be(y=>{r?i.onItemLeave(y):(i.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:k(e.onPointerLeave,be(y=>i.onItemLeave(y))),onFocus:k(e.onFocus,()=>u(!0)),onBlur:k(e.onBlur,()=>u(!1))})})})}),Vs="MenuCheckboxItem",Ln=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return d.jsx(Un,{scope:e.__scopeMenu,checked:n,children:d.jsx(Ue,{role:"menuitemcheckbox","aria-checked":Le(n)?"mixed":n,...o,ref:t,"data-state":xt(n),onSelect:k(o.onSelect,()=>r==null?void 0:r(Le(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ln.displayName=Vs;var Fn="MenuRadioGroup",[Ks,qs]=re(Fn,{value:void 0,onValueChange:()=>{}}),zn=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=Y(r);return d.jsx(Ks,{scope:e.__scopeMenu,value:n,onValueChange:a,children:d.jsx(gt,{...o,ref:t})})});zn.displayName=Fn;var Bn="MenuRadioItem",Wn=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=qs(Bn,e.__scopeMenu),a=n===o.value;return d.jsx(Un,{scope:e.__scopeMenu,checked:a,children:d.jsx(Ue,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":xt(a),onSelect:k(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});Wn.displayName=Bn;var wt="MenuItemIndicator",[Un,Ys]=re(wt,{checked:!1}),Gn=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Ys(wt,n);return d.jsx(ee,{present:r||Le(a.checked)||a.checked===!0,children:d.jsx(A.span,{...o,ref:t,"data-state":xt(a.checked)})})});Gn.displayName=wt;var Xs="MenuSeparator",Hn=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(A.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Hn.displayName=Xs;var Zs="MenuArrow",Vn=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=We(n);return d.jsx(Sc,{...o,...r,ref:t})});Vn.displayName=Zs;var Qs="MenuSub",[Ll,Kn]=re(Qs),xe="MenuSubTrigger",qn=c.forwardRef((e,t)=>{const n=oe(xe,e.__scopeMenu),r=Ee(xe,e.__scopeMenu),o=Kn(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($n,{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:k(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:k(e.onPointerLeave,be(u=>{var g,y;f();const h=(g=n.content)==null?void 0:g.getBoundingClientRect();if(h){const v=(y=n.content)==null?void 0:y.dataset.side,m=v==="right",x=m?-5:5,b=h[m?"left":"right"],M=h[m?"right":"left"];a.onPointerGraceIntentChange({area:[{x:u.clientX+x,y:u.clientY},{x:b,y:h.top},{x:M,y:h.top},{x:M,y:h.bottom},{x:b,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:k(e.onKeyDown,u=>{var g;const h=a.searchRef.current!=="";e.disabled||h&&u.key===" "||Ds[r.dir].includes(u.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),u.preventDefault())})})})});qn.displayName=xe;var Yn="MenuSubContent",Xn=c.forwardRef((e,t)=>{const n=In(W,e.__scopeMenu),{forceMount:r=n.forceMount,align:o="start",...a}=e,i=oe(W,e.__scopeMenu),s=Ee(W,e.__scopeMenu),p=Kn(Yn,e.__scopeMenu),l=c.useRef(null),f=P(t,l);return d.jsx(Me.Provider,{scope:e.__scopeMenu,children:d.jsx(ee,{present:r||i.open,children:d.jsx(Me.Slot,{scope:e.__scopeMenu,children:d.jsx(yt,{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:k(e.onFocusOutside,u=>{u.target!==p.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:k(e.onEscapeKeyDown,u=>{s.onClose(),u.preventDefault()}),onKeyDown:k(e.onKeyDown,u=>{var y;const h=u.currentTarget.contains(u.target),g=Is[s.dir].includes(u.key);h&&g&&(i.onOpenChange(!1),(y=p.trigger)==null||y.focus(),u.preventDefault())})})})})})});Xn.displayName=Yn;function Zn(e){return e?"open":"closed"}function Le(e){return e==="indeterminate"}function xt(e){return Le(e)?"indeterminate":e?"checked":"unchecked"}function Js(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ei(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function ti(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=ei(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 ni(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 ri(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return ni(n,t)}function be(e){return t=>t.pointerType==="mouse"?e(t):void 0}var oi=Dn,ai=ht,ci=Tn,si=On,ii=gt,ui=jn,li=Ue,di=Ln,fi=zn,pi=Wn,hi=Gn,vi=Hn,mi=Vn,yi=qn,gi=Xn,Ge="DropdownMenu",[wi]=J(Ge,[An]),j=An(),[xi,Qn]=wi(Ge),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]=ze({prop:o,defaultProp:a??!1,onChange:i,caller:Ge});return d.jsx(xi,{scope:t,triggerId:de(),triggerRef:l,contentId:de(),open:f,onOpenChange:u,onOpenToggle:c.useCallback(()=>u(h=>!h),[u]),modal:s,children:d.jsx(oi,{...p,open:f,onOpenChange:u,dir:r,modal:s,children:n})})};Jn.displayName=Ge;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(ai,{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:k(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:k(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 Mi="DropdownMenuPortal",nr=e=>{const{__scopeDropdownMenu:t,...n}=e,r=j(t);return d.jsx(ci,{...r,...n})};nr.displayName=Mi;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(si,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:k(e.onCloseAutoFocus,s=>{var p;i.current||(p=o.triggerRef.current)==null||p.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:k(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 bi="DropdownMenuGroup",Ci=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(ii,{...o,...r,ref:t})});Ci.displayName=bi;var _i="DropdownMenuLabel",ar=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(ui,{...o,...r,ref:t})});ar.displayName=_i;var Ei="DropdownMenuItem",cr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(li,{...o,...r,ref:t})});cr.displayName=Ei;var ki="DropdownMenuCheckboxItem",sr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(di,{...o,...r,ref:t})});sr.displayName=ki;var Si="DropdownMenuRadioGroup",Ri=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(fi,{...o,...r,ref:t})});Ri.displayName=Si;var Ni="DropdownMenuRadioItem",ir=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(pi,{...o,...r,ref:t})});ir.displayName=Ni;var Ai="DropdownMenuItemIndicator",ur=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(hi,{...o,...r,ref:t})});ur.displayName=Ai;var Pi="DropdownMenuSeparator",lr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(vi,{...o,...r,ref:t})});lr.displayName=Pi;var Di="DropdownMenuArrow",Ii=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(mi,{...o,...r,ref:t})});Ii.displayName=Di;var Ti="DropdownMenuSubTrigger",dr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(yi,{...o,...r,ref:t})});dr.displayName=Ti;var Oi="DropdownMenuSubContent",fr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(gi,{...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=Oi;var Fl=Jn,zl=tr,Bl=nr,Wl=or,Ul=ar,Gl=cr,Hl=sr,Vl=ir,Kl=ur,ql=lr,Yl=dr,Xl=fr;function ji(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 He="Switch",[$i]=J(He),[Li,Mt]=$i(He);function Fi(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,g]=ze({prop:n,defaultProp:o??!1,onChange:p,caller:He}),[y,v]=c.useState(null),[m,x]=c.useState(null),b=c.useRef(!1),M=y?!!i||!!y.closest("form"):!0,C={checked:h,setChecked:g,disabled:a,control:y,setControl:v,name:s,form:i,value:f,hasConsumerStoppedPropagationRef:b,required:l,defaultChecked:o,isFormControl:M,bubbleInput:m,setBubbleInput:x};return d.jsx(Li,{scope:t,...C,children:Wi(u)?u(C):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}=Mt(pr,e),g=P(r,p);return d.jsx(A.button,{type:"button",role:"switch","aria-checked":i,"aria-required":s,"data-state":gr(i),"data-disabled":a?"":void 0,disabled:a,value:o,...n,ref:g,onClick:k(t,y=>{l(v=>!v),h&&u&&(f.current=y.isPropagationStopped(),f.current||y.stopPropagation())})})});hr.displayName=pr;var zi=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(Fi,{__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(yr,{__scopeSwitch:n})]})})});zi.displayName=He;var vr="SwitchThumb",Bi=c.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=Mt(vr,n);return d.jsx(A.span,{"data-state":gr(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});Bi.displayName=vr;var mr="SwitchBubbleInput",yr=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:g}=Mt(mr,e),y=P(n,g),v=ji(a),m=rn(r);c.useEffect(()=>{const b=h;if(!b)return;const M=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(M,"checked").set,R=!o.current;if(v!==a&&S){const E=new Event("click",{bubbles:R});S.call(b,a),b.dispatchEvent(E)}},[h,v,a,o]);const x=c.useRef(a);return d.jsx(A.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??x.current,required:s,disabled:p,name:l,value:f,form:u,...t,tabIndex:-1,ref:y,style:{...t.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});yr.displayName=mr;function Wi(e){return typeof e=="function"}function gr(e){return e?"checked":"unchecked"}var Ui="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=Ui;var Zl=wr,Ve="Dialog",[xr,Mr]=J(Ve),[Gi,U]=xr(Ve),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]=ze({prop:r,defaultProp:o??!1,onChange:a,caller:Ve});return d.jsx(Gi,{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=Ve;var Cr="DialogTrigger",_r=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=U(Cr,n),a=P(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":_t(o.open),...r,ref:a,onClick:k(e.onClick,o.onOpenToggle)})});_r.displayName=Cr;var bt="DialogPortal",[Hi,Er]=xr(bt,{forceMount:void 0}),kr=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=U(bt,t);return d.jsx(Hi,{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})}))})};kr.displayName=bt;var Fe="DialogOverlay",Sr=c.forwardRef((e,t)=>{const n=Er(Fe,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=U(Fe,e.__scopeDialog);return a.modal?d.jsx(ee,{present:r||a.open,children:d.jsx(Ki,{...o,ref:t})}):null});Sr.displayName=Fe;var Vi=he("DialogOverlay.RemoveScroll"),Ki=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=U(Fe,n);return d.jsx(pt,{as:Vi,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(A.div,{"data-state":_t(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ne="DialogContent",Rr=c.forwardRef((e,t)=>{const n=Er(ne,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=U(ne,e.__scopeDialog);return d.jsx(ee,{present:r||a.open,children:a.modal?d.jsx(qi,{...o,ref:t}):d.jsx(Yi,{...o,ref:t})})});Rr.displayName=ne;var qi=c.forwardRef((e,t)=>{const n=U(ne,e.__scopeDialog),r=c.useRef(null),o=P(t,n.contentRef,r);return c.useEffect(()=>{const a=r.current;if(a)return Mn(a)},[]),d.jsx(Nr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:k(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:k(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:k(e.onFocusOutside,a=>a.preventDefault())})}),Yi=c.forwardRef((e,t)=>{const n=U(ne,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return d.jsx(Nr,{...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()}})}),Nr=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=U(ne,n),p=c.useRef(null),l=P(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":_t(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(Zi,{titleId:s.titleId}),d.jsx(Ji,{contentRef:p,descriptionId:s.descriptionId})]})]})}),Ct="DialogTitle",Ar=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=U(Ct,n);return d.jsx(A.h2,{id:o.titleId,...r,ref:t})});Ar.displayName=Ct;var Pr="DialogDescription",Dr=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=U(Pr,n);return d.jsx(A.p,{id:o.descriptionId,...r,ref:t})});Dr.displayName=Pr;var Ir="DialogClose",Tr=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=U(Ir,n);return d.jsx(A.button,{type:"button",...r,ref:t,onClick:k(e.onClick,()=>o.onOpenChange(!1))})});Tr.displayName=Ir;function _t(e){return e?"open":"closed"}var Or="DialogTitleWarning",[Xi,jr]=$a(Or,{contentName:ne,titleName:Ct,docsSlug:"dialog"}),Zi=({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},Qi="DialogDescriptionWarning",Ji=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${jr(Qi).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},eu=br,tu=_r,nu=kr,ru=Sr,ou=Rr,au=Ar,cu=Dr,$r=Tr,Lr="AlertDialog",[su]=J(Lr,[Mr]),X=Mr(),Fr=e=>{const{__scopeAlertDialog:t,...n}=e,r=X(t);return d.jsx(eu,{...r,...n,modal:!0})};Fr.displayName=Lr;var iu="AlertDialogTrigger",zr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=X(n);return d.jsx(tu,{...o,...r,ref:t})});zr.displayName=iu;var uu="AlertDialogPortal",Br=e=>{const{__scopeAlertDialog:t,...n}=e,r=X(t);return d.jsx(nu,{...r,...n})};Br.displayName=uu;var lu="AlertDialogOverlay",Wr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=X(n);return d.jsx(ru,{...o,...r,ref:t})});Wr.displayName=lu;var pe="AlertDialogContent",[du,fu]=su(pe),pu=Wa("AlertDialogContent"),Ur=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=X(n),i=c.useRef(null),s=P(t,i),p=c.useRef(null);return d.jsx(Xi,{contentName:pe,titleName:Gr,docsSlug:"alert-dialog",children:d.jsx(du,{scope:n,cancelRef:p,children:d.jsxs(ou,{role:"alertdialog",...a,...o,ref:s,onOpenAutoFocus:k(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(pu,{children:r}),d.jsx(vu,{contentRef:i})]})})})});Ur.displayName=pe;var Gr="AlertDialogTitle",Hr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=X(n);return d.jsx(au,{...o,...r,ref:t})});Hr.displayName=Gr;var Vr="AlertDialogDescription",Kr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=X(n);return d.jsx(cu,{...o,...r,ref:t})});Kr.displayName=Vr;var hu="AlertDialogAction",qr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=X(n);return d.jsx($r,{...o,...r,ref:t})});qr.displayName=hu;var Yr="AlertDialogCancel",Xr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=fu(Yr,n),a=X(n),i=P(t,o);return d.jsx($r,{...a,...r,ref:i})});Xr.displayName=Yr;var vu=({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 \`${Vr}\` 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},Ql=Fr,Jl=zr,ed=Br,td=Wr,nd=Ur,rd=qr,od=Xr,ad=Hr,cd=Kr;export{Al as $,Gu as A,xu as B,_u as C,Ku as D,wl as E,Ou as F,Lu as G,Wu as H,Gl as I,yl as J,dl as K,Ul as L,sl as M,Rl as N,Ju as O,Bl as P,yu as Q,Vl as R,Yl as S,zl as T,Il as U,ju as V,Tl as W,Tu as X,bl as Y,jl as Z,$l as _,Xl as a,qu as a0,Ol as a1,zi as a2,Bi as a3,xl as a4,Uu as a5,Fu as a6,gu as a7,ul as a8,al as a9,cu as aA,ru as aB,tl as aC,Ql as aD,Jl as aE,ed as aF,nd as aG,ad as aH,cd as aI,od as aJ,rd as aK,td as aL,El as aM,Cl as aN,Ml as aO,Du as aP,nl as aa,vl as ab,ml as ac,el as ad,rl as ae,wu as af,Vu as ag,Pl as ah,Sl as ai,ll as aj,gl as ak,Qu as al,Zu as am,Nu as an,Xu as ao,Hu as ap,Iu as aq,hl as ar,Nl as as,Dl as at,Zl as au,eu as av,nu as aw,ou as ax,$r as ay,au as az,Wl as b,Hl as c,Kl as d,Cu as e,ku as f,ql as g,Fl as h,Su as i,Ru as j,Au as k,Eu as l,il as m,Yu as n,pl as o,fl as p,bu as q,zu as r,Mu as s,Bu as t,_l as u,ol as v,cl as w,kl as x,$u as y,Pu as z};
|