cogpit 2.1.3 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/cli.js +1603 -773
  2. package/dist/web/assets/CommandPaletteHost-D-VvT_HL.js +1 -0
  3. package/dist/web/assets/ConfigBrowser-Cc2lrh85.js +1 -0
  4. package/dist/web/assets/{HighlightedEditor-qhEWgnBF.js → HighlightedEditor-DWNz1Jcz.js} +2 -2
  5. package/dist/web/assets/{KeyboardShortcutsDialog-B9nMtf5U.js → KeyboardShortcutsDialog-yOs1u5D6.js} +1 -1
  6. package/dist/web/assets/{MobileFileChanges-j9DCxvz6.js → MobileFileChanges-B1dtcdSZ.js} +1 -1
  7. package/dist/web/assets/PreviewPanel-BJwfunf9.js +1 -0
  8. package/dist/web/assets/ProjectFilesPanel-DppuIFEt.js +4 -0
  9. package/dist/web/assets/{ProjectSwitcherModal-o8NhzySH.js → ProjectSwitcherModal-DgsuH5CY.js} +1 -1
  10. package/dist/web/assets/{TerminalOutput-CcWkSv29.js → TerminalOutput-DlGDS0Wx.js} +1 -1
  11. package/dist/web/assets/ThemeSelectorModal-oI9Vm3EH.js +1 -0
  12. package/dist/web/assets/WorkflowsPanel-SKbsv_IK.js +1 -0
  13. package/dist/web/assets/WorktreePanel-CcSLupr7.js +1 -0
  14. package/dist/web/assets/{index-_0HhakEy.js → index-7FuVzOBC.js} +4 -4
  15. package/dist/web/assets/index-BVkjlOVU.js +1 -0
  16. package/dist/web/assets/index-Bw-DFQut.js +1 -0
  17. package/dist/web/assets/index-Du17HzQD.js +151 -0
  18. package/dist/web/assets/index-xdv0cIL2.css +1 -0
  19. package/dist/web/assets/{session-parser.worker-DycJL0jJ.js → session-parser.worker-RMitC4X_.js} +17 -17
  20. package/dist/web/assets/{vendor-ui-Bg9q4lA4.js → vendor-ui-CdA11Wfh.js} +162 -147
  21. package/dist/web/index.html +3 -3
  22. package/package.json +1 -1
  23. package/dist/web/assets/CommandPaletteHost-1UPdv9Nv.js +0 -1
  24. package/dist/web/assets/ConfigBrowser-B5lZsJDw.js +0 -1
  25. package/dist/web/assets/PreviewPanel-DZSVN3mt.js +0 -1
  26. package/dist/web/assets/ProjectFilesPanel-DSvO4CrB.js +0 -4
  27. package/dist/web/assets/ThemeSelectorModal-CnbSCgJj.js +0 -1
  28. package/dist/web/assets/WorkflowsPanel-CvBweQMf.js +0 -1
  29. package/dist/web/assets/WorktreePanel-DahbK2L0.js +0 -1
  30. package/dist/web/assets/index-7UiltNKa.js +0 -1
  31. package/dist/web/assets/index-BESnPMZk.js +0 -144
  32. package/dist/web/assets/index-Bif4Kdtn.css +0 -1
  33. package/dist/web/assets/index-DXTQExVH.js +0 -1
@@ -43,707 +43,722 @@ var Op=Object.defineProperty;var rc=e=>{throw TypeError(e)};var Ap=(e,t,n)=>t in
43
43
  *
44
44
  * This source code is licensed under the ISC license.
45
45
  * See the LICENSE file in the root directory of this source tree.
46
- */const zp=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Hw=W("activity",zp);/**
46
+ */const zp=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Ww=W("activity",zp);/**
47
47
  * @license lucide-react v0.577.0 - ISC
48
48
  *
49
49
  * This source code is licensed under the ISC license.
50
50
  * See the LICENSE file in the root directory of this source tree.
51
- */const Vp=[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]],jw=W("arrow-down-left",Vp);/**
51
+ */const Vp=[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]],Uw=W("arrow-down-left",Vp);/**
52
52
  * @license lucide-react v0.577.0 - ISC
53
53
  *
54
54
  * This source code is licensed under the ISC license.
55
55
  * See the LICENSE file in the root directory of this source tree.
56
- */const $p=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Bw=W("arrow-down",$p);/**
56
+ */const $p=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Gw=W("arrow-down",$p);/**
57
57
  * @license lucide-react v0.577.0 - ISC
58
58
  *
59
59
  * This source code is licensed under the ISC license.
60
60
  * See the LICENSE file in the root directory of this source tree.
61
- */const Hp=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Ww=W("bell",Hp);/**
61
+ */const Hp=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Yw=W("arrow-up-right",Hp);/**
62
62
  * @license lucide-react v0.577.0 - ISC
63
63
  *
64
64
  * This source code is licensed under the ISC license.
65
65
  * See the LICENSE file in the root directory of this source tree.
66
- */const jp=[["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"}]],Uw=W("book-open",jp);/**
66
+ */const jp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],qw=W("ban",jp);/**
67
67
  * @license lucide-react v0.577.0 - ISC
68
68
  *
69
69
  * This source code is licensed under the ISC license.
70
70
  * See the LICENSE file in the root directory of this source tree.
71
- */const Bp=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Gw=W("bot",Bp);/**
71
+ */const Bp=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Xw=W("bell",Bp);/**
72
72
  * @license lucide-react v0.577.0 - ISC
73
73
  *
74
74
  * This source code is licensed under the ISC license.
75
75
  * See the LICENSE file in the root directory of this source tree.
76
- */const Wp=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Yw=W("brain",Wp);/**
76
+ */const Wp=[["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"}]],Kw=W("book-open",Wp);/**
77
77
  * @license lucide-react v0.577.0 - ISC
78
78
  *
79
79
  * This source code is licensed under the ISC license.
80
80
  * See the LICENSE file in the root directory of this source tree.
81
- */const Up=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],qw=W("chart-column",Up);/**
81
+ */const Up=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Zw=W("bot",Up);/**
82
82
  * @license lucide-react v0.577.0 - ISC
83
83
  *
84
84
  * This source code is licensed under the ISC license.
85
85
  * See the LICENSE file in the root directory of this source tree.
86
- */const Gp=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],Xw=W("check-check",Gp);/**
86
+ */const Gp=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Jw=W("brain",Gp);/**
87
87
  * @license lucide-react v0.577.0 - ISC
88
88
  *
89
89
  * This source code is licensed under the ISC license.
90
90
  * See the LICENSE file in the root directory of this source tree.
91
- */const Yp=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Kw=W("check",Yp);/**
91
+ */const Yp=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Qw=W("chart-column",Yp);/**
92
92
  * @license lucide-react v0.577.0 - ISC
93
93
  *
94
94
  * This source code is licensed under the ISC license.
95
95
  * See the LICENSE file in the root directory of this source tree.
96
- */const qp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Zw=W("chevron-down",qp);/**
96
+ */const qp=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],eS=W("check-check",qp);/**
97
97
  * @license lucide-react v0.577.0 - ISC
98
98
  *
99
99
  * This source code is licensed under the ISC license.
100
100
  * See the LICENSE file in the root directory of this source tree.
101
- */const Xp=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Qw=W("chevron-left",Xp);/**
101
+ */const Xp=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],tS=W("check",Xp);/**
102
102
  * @license lucide-react v0.577.0 - ISC
103
103
  *
104
104
  * This source code is licensed under the ISC license.
105
105
  * See the LICENSE file in the root directory of this source tree.
106
- */const Kp=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Jw=W("chevron-right",Kp);/**
106
+ */const Kp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],nS=W("chevron-down",Kp);/**
107
107
  * @license lucide-react v0.577.0 - ISC
108
108
  *
109
109
  * This source code is licensed under the ISC license.
110
110
  * See the LICENSE file in the root directory of this source tree.
111
- */const Zp=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],eS=W("chevron-up",Zp);/**
111
+ */const Zp=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],oS=W("chevron-left",Zp);/**
112
112
  * @license lucide-react v0.577.0 - ISC
113
113
  *
114
114
  * This source code is licensed under the ISC license.
115
115
  * See the LICENSE file in the root directory of this source tree.
116
- */const Qp=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],tS=W("chevrons-down-up",Qp);/**
116
+ */const Jp=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],rS=W("chevron-right",Jp);/**
117
117
  * @license lucide-react v0.577.0 - ISC
118
118
  *
119
119
  * This source code is licensed under the ISC license.
120
120
  * See the LICENSE file in the root directory of this source tree.
121
- */const Jp=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],nS=W("chevrons-right",Jp);/**
121
+ */const Qp=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],sS=W("chevron-up",Qp);/**
122
122
  * @license lucide-react v0.577.0 - ISC
123
123
  *
124
124
  * This source code is licensed under the ISC license.
125
125
  * See the LICENSE file in the root directory of this source tree.
126
- */const eh=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],oS=W("chevrons-up-down",eh);/**
126
+ */const eh=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],iS=W("chevrons-down-up",eh);/**
127
127
  * @license lucide-react v0.577.0 - ISC
128
128
  *
129
129
  * This source code is licensed under the ISC license.
130
130
  * See the LICENSE file in the root directory of this source tree.
131
- */const th=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],rS=W("circle-alert",th);/**
131
+ */const th=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],aS=W("chevrons-right",th);/**
132
132
  * @license lucide-react v0.577.0 - ISC
133
133
  *
134
134
  * This source code is licensed under the ISC license.
135
135
  * See the LICENSE file in the root directory of this source tree.
136
- */const nh=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],sS=W("circle-check-big",nh);/**
136
+ */const nh=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],cS=W("chevrons-up-down",nh);/**
137
137
  * @license lucide-react v0.577.0 - ISC
138
138
  *
139
139
  * This source code is licensed under the ISC license.
140
140
  * See the LICENSE file in the root directory of this source tree.
141
- */const oh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]],iS=W("circle-arrow-up",oh);/**
141
+ */const oh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],lS=W("circle-alert",oh);/**
142
142
  * @license lucide-react v0.577.0 - ISC
143
143
  *
144
144
  * This source code is licensed under the ISC license.
145
145
  * See the LICENSE file in the root directory of this source tree.
146
- */const rh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],aS=W("circle-check",rh);/**
146
+ */const rh=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],uS=W("circle-check-big",rh);/**
147
147
  * @license lucide-react v0.577.0 - ISC
148
148
  *
149
149
  * This source code is licensed under the ISC license.
150
150
  * See the LICENSE file in the root directory of this source tree.
151
- */const sh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M7 12h.01",key:"eqddd0"}]],cS=W("circle-ellipsis",sh);/**
151
+ */const sh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]],dS=W("circle-arrow-up",sh);/**
152
152
  * @license lucide-react v0.577.0 - ISC
153
153
  *
154
154
  * This source code is licensed under the ISC license.
155
155
  * See the LICENSE file in the root directory of this source tree.
156
- */const ih=[["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"}]],lS=W("circle-question-mark",ih);/**
156
+ */const ih=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],fS=W("circle-check",ih);/**
157
157
  * @license lucide-react v0.577.0 - ISC
158
158
  *
159
159
  * This source code is licensed under the ISC license.
160
160
  * See the LICENSE file in the root directory of this source tree.
161
- */const ah=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],uS=W("circle-x",ah);/**
161
+ */const ah=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M7 12h.01",key:"eqddd0"}]],pS=W("circle-ellipsis",ah);/**
162
162
  * @license lucide-react v0.577.0 - ISC
163
163
  *
164
164
  * This source code is licensed under the ISC license.
165
165
  * See the LICENSE file in the root directory of this source tree.
166
- */const ch=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],dS=W("circle",ch);/**
166
+ */const ch=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],hS=W("circle-minus",ch);/**
167
167
  * @license lucide-react v0.577.0 - ISC
168
168
  *
169
169
  * This source code is licensed under the ISC license.
170
170
  * See the LICENSE file in the root directory of this source tree.
171
- */const lh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],fS=W("clock-3",lh);/**
171
+ */const lh=[["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"}]],gS=W("circle-question-mark",lh);/**
172
172
  * @license lucide-react v0.577.0 - ISC
173
173
  *
174
174
  * This source code is licensed under the ISC license.
175
175
  * See the LICENSE file in the root directory of this source tree.
176
- */const uh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],pS=W("clock",uh);/**
176
+ */const uh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],mS=W("circle-x",uh);/**
177
177
  * @license lucide-react v0.577.0 - ISC
178
178
  *
179
179
  * This source code is licensed under the ISC license.
180
180
  * See the LICENSE file in the root directory of this source tree.
181
- */const dh=[["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"}]],hS=W("code-xml",dh);/**
181
+ */const dh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],yS=W("circle",dh);/**
182
182
  * @license lucide-react v0.577.0 - ISC
183
183
  *
184
184
  * This source code is licensed under the ISC license.
185
185
  * See the LICENSE file in the root directory of this source tree.
186
- */const fh=[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]],gS=W("coins",fh);/**
186
+ */const fh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],bS=W("clock-3",fh);/**
187
187
  * @license lucide-react v0.577.0 - ISC
188
188
  *
189
189
  * This source code is licensed under the ISC license.
190
190
  * See the LICENSE file in the root directory of this source tree.
191
- */const ph=[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],mS=W("copy-plus",ph);/**
191
+ */const ph=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],vS=W("clock",ph);/**
192
192
  * @license lucide-react v0.577.0 - ISC
193
193
  *
194
194
  * This source code is licensed under the ISC license.
195
195
  * See the LICENSE file in the root directory of this source tree.
196
- */const hh=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],yS=W("copy",hh);/**
196
+ */const hh=[["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"}]],xS=W("code-xml",hh);/**
197
197
  * @license lucide-react v0.577.0 - ISC
198
198
  *
199
199
  * This source code is licensed under the ISC license.
200
200
  * See the LICENSE file in the root directory of this source tree.
201
- */const gh=[["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"}]],bS=W("cpu",gh);/**
201
+ */const gh=[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]],wS=W("coins",gh);/**
202
202
  * @license lucide-react v0.577.0 - ISC
203
203
  *
204
204
  * This source code is licensed under the ISC license.
205
205
  * See the LICENSE file in the root directory of this source tree.
206
- */const mh=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],vS=W("crown",mh);/**
206
+ */const mh=[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],SS=W("copy-plus",mh);/**
207
207
  * @license lucide-react v0.577.0 - ISC
208
208
  *
209
209
  * This source code is licensed under the ISC license.
210
210
  * See the LICENSE file in the root directory of this source tree.
211
- */const yh=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],xS=W("download",yh);/**
211
+ */const yh=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],RS=W("copy",yh);/**
212
212
  * @license lucide-react v0.577.0 - ISC
213
213
  *
214
214
  * This source code is licensed under the ISC license.
215
215
  * See the LICENSE file in the root directory of this source tree.
216
- */const bh=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],wS=W("earth",bh);/**
216
+ */const bh=[["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"}]],kS=W("cpu",bh);/**
217
217
  * @license lucide-react v0.577.0 - ISC
218
218
  *
219
219
  * This source code is licensed under the ISC license.
220
220
  * See the LICENSE file in the root directory of this source tree.
221
- */const vh=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],SS=W("ellipsis",vh);/**
221
+ */const vh=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],ES=W("crown",vh);/**
222
222
  * @license lucide-react v0.577.0 - ISC
223
223
  *
224
224
  * This source code is licensed under the ISC license.
225
225
  * See the LICENSE file in the root directory of this source tree.
226
- */const xh=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],RS=W("external-link",xh);/**
226
+ */const xh=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],CS=W("download",xh);/**
227
227
  * @license lucide-react v0.577.0 - ISC
228
228
  *
229
229
  * This source code is licensed under the ISC license.
230
230
  * See the LICENSE file in the root directory of this source tree.
231
- */const wh=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],kS=W("eye-off",wh);/**
231
+ */const wh=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],PS=W("earth",wh);/**
232
232
  * @license lucide-react v0.577.0 - ISC
233
233
  *
234
234
  * This source code is licensed under the ISC license.
235
235
  * See the LICENSE file in the root directory of this source tree.
236
- */const Sh=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ES=W("eye",Sh);/**
236
+ */const Sh=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],MS=W("ellipsis",Sh);/**
237
237
  * @license lucide-react v0.577.0 - ISC
238
238
  *
239
239
  * This source code is licensed under the ISC license.
240
240
  * See the LICENSE file in the root directory of this source tree.
241
- */const Rh=[["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 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],CS=W("file-braces",Rh);/**
241
+ */const Rh=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],TS=W("external-link",Rh);/**
242
242
  * @license lucide-react v0.577.0 - ISC
243
243
  *
244
244
  * This source code is licensed under the ISC license.
245
245
  * See the LICENSE file in the root directory of this source tree.
246
- */const kh=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],PS=W("file-code-corner",kh);/**
246
+ */const kh=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],IS=W("eye-off",kh);/**
247
247
  * @license lucide-react v0.577.0 - ISC
248
248
  *
249
249
  * This source code is licensed under the ISC license.
250
250
  * See the LICENSE file in the root directory of this source tree.
251
- */const Eh=[["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"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],MS=W("file-image",Eh);/**
251
+ */const Eh=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],OS=W("eye",Eh);/**
252
252
  * @license lucide-react v0.577.0 - ISC
253
253
  *
254
254
  * This source code is licensed under the ISC license.
255
255
  * See the LICENSE file in the root directory of this source tree.
256
- */const Ch=[["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:"m8 16 2-2-2-2",key:"10vzyd"}],["path",{d:"M12 18h4",key:"1wd2n7"}]],TS=W("file-terminal",Ch);/**
256
+ */const Ch=[["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 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],AS=W("file-braces",Ch);/**
257
257
  * @license lucide-react v0.577.0 - ISC
258
258
  *
259
259
  * This source code is licensed under the ISC license.
260
260
  * See the LICENSE file in the root directory of this source tree.
261
- */const Ph=[["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"}]],IS=W("file-text",Ph);/**
261
+ */const Ph=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],DS=W("file-code-corner",Ph);/**
262
262
  * @license lucide-react v0.577.0 - ISC
263
263
  *
264
264
  * This source code is licensed under the ISC license.
265
265
  * See the LICENSE file in the root directory of this source tree.
266
- */const Mh=[["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"}]],OS=W("file",Mh);/**
266
+ */const Mh=[["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"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],NS=W("file-image",Mh);/**
267
267
  * @license lucide-react v0.577.0 - ISC
268
268
  *
269
269
  * This source code is licensed under the ISC license.
270
270
  * See the LICENSE file in the root directory of this source tree.
271
- */const Th=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]],AS=W("flag",Th);/**
271
+ */const Th=[["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:"m8 16 2-2-2-2",key:"10vzyd"}],["path",{d:"M12 18h4",key:"1wd2n7"}]],LS=W("file-terminal",Th);/**
272
272
  * @license lucide-react v0.577.0 - ISC
273
273
  *
274
274
  * This source code is licensed under the ISC license.
275
275
  * See the LICENSE file in the root directory of this source tree.
276
- */const Ih=[["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"}]],DS=W("flame",Ih);/**
276
+ */const Ih=[["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"}]],_S=W("file-text",Ih);/**
277
277
  * @license lucide-react v0.577.0 - ISC
278
278
  *
279
279
  * This source code is licensed under the ISC license.
280
280
  * See the LICENSE file in the root directory of this source tree.
281
- */const Oh=[["path",{d:"M10 10.5 8 13l2 2.5",key:"m4t9c1"}],["path",{d:"m14 10.5 2 2.5-2 2.5",key:"14w2eb"}],["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:"1u1bxd"}]],NS=W("folder-code",Oh);/**
281
+ */const Oh=[["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"}]],FS=W("file",Oh);/**
282
282
  * @license lucide-react v0.577.0 - ISC
283
283
  *
284
284
  * This source code is licensed under the ISC license.
285
285
  * See the LICENSE file in the root directory of this source tree.
286
- */const Ah=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],LS=W("folder-open",Ah);/**
286
+ */const Ah=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]],zS=W("flag",Ah);/**
287
287
  * @license lucide-react v0.577.0 - ISC
288
288
  *
289
289
  * This source code is licensed under the ISC license.
290
290
  * See the LICENSE file in the root directory of this source tree.
291
- */const Dh=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["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"}]],_S=W("folder-plus",Dh);/**
291
+ */const Dh=[["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"}]],VS=W("flame",Dh);/**
292
292
  * @license lucide-react v0.577.0 - ISC
293
293
  *
294
294
  * This source code is licensed under the ISC license.
295
295
  * See the LICENSE file in the root directory of this source tree.
296
- */const Nh=[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]],FS=W("folder-search",Nh);/**
296
+ */const Nh=[["path",{d:"M10 10.5 8 13l2 2.5",key:"m4t9c1"}],["path",{d:"m14 10.5 2 2.5-2 2.5",key:"14w2eb"}],["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:"1u1bxd"}]],$S=W("folder-code",Nh);/**
297
297
  * @license lucide-react v0.577.0 - ISC
298
298
  *
299
299
  * This source code is licensed under the ISC license.
300
300
  * See the LICENSE file in the root directory of this source tree.
301
- */const Lh=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],zS=W("folder-tree",Lh);/**
301
+ */const Lh=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],HS=W("folder-open",Lh);/**
302
302
  * @license lucide-react v0.577.0 - ISC
303
303
  *
304
304
  * This source code is licensed under the ISC license.
305
305
  * See the LICENSE file in the root directory of this source tree.
306
- */const _h=[["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"}]],VS=W("folder",_h);/**
306
+ */const _h=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["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"}]],jS=W("folder-plus",_h);/**
307
307
  * @license lucide-react v0.577.0 - ISC
308
308
  *
309
309
  * This source code is licensed under the ISC license.
310
310
  * See the LICENSE file in the root directory of this source tree.
311
- */const Fh=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],$S=W("git-branch",Fh);/**
311
+ */const Fh=[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]],BS=W("folder-search",Fh);/**
312
312
  * @license lucide-react v0.577.0 - ISC
313
313
  *
314
314
  * This source code is licensed under the ISC license.
315
315
  * See the LICENSE file in the root directory of this source tree.
316
- */const zh=[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]],HS=W("git-compare-arrows",zh);/**
316
+ */const zh=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],WS=W("folder-tree",zh);/**
317
317
  * @license lucide-react v0.577.0 - ISC
318
318
  *
319
319
  * This source code is licensed under the ISC license.
320
320
  * See the LICENSE file in the root directory of this source tree.
321
- */const Vh=[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]],jS=W("git-fork",Vh);/**
321
+ */const Vh=[["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"}]],US=W("folder",Vh);/**
322
322
  * @license lucide-react v0.577.0 - ISC
323
323
  *
324
324
  * This source code is licensed under the ISC license.
325
325
  * See the LICENSE file in the root directory of this source tree.
326
- */const $h=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M18 6V5",key:"1oao2s"}],["path",{d:"M18 11v-1",key:"11c8tz"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],BS=W("git-pull-request-draft",$h);/**
326
+ */const $h=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],GS=W("git-branch",$h);/**
327
327
  * @license lucide-react v0.577.0 - ISC
328
328
  *
329
329
  * This source code is licensed under the ISC license.
330
330
  * See the LICENSE file in the root directory of this source tree.
331
- */const Hh=[["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"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],WS=W("git-pull-request",Hh);/**
331
+ */const Hh=[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]],YS=W("git-compare-arrows",Hh);/**
332
332
  * @license lucide-react v0.577.0 - ISC
333
333
  *
334
334
  * This source code is licensed under the ISC license.
335
335
  * See the LICENSE file in the root directory of this source tree.
336
- */const jh=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],US=W("github",jh);/**
336
+ */const jh=[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]],qS=W("git-fork",jh);/**
337
337
  * @license lucide-react v0.577.0 - ISC
338
338
  *
339
339
  * This source code is licensed under the ISC license.
340
340
  * See the LICENSE file in the root directory of this source tree.
341
- */const Bh=[["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"}]],GS=W("globe",Bh);/**
341
+ */const Bh=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M18 6V5",key:"1oao2s"}],["path",{d:"M18 11v-1",key:"11c8tz"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],XS=W("git-pull-request-draft",Bh);/**
342
342
  * @license lucide-react v0.577.0 - ISC
343
343
  *
344
344
  * This source code is licensed under the ISC license.
345
345
  * See the LICENSE file in the root directory of this source tree.
346
- */const Wh=[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]],YS=W("hand",Wh);/**
346
+ */const Wh=[["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"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],KS=W("git-pull-request",Wh);/**
347
347
  * @license lucide-react v0.577.0 - ISC
348
348
  *
349
349
  * This source code is licensed under the ISC license.
350
350
  * See the LICENSE file in the root directory of this source tree.
351
- */const Uh=[["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"}]],qS=W("history",Uh);/**
351
+ */const Uh=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],ZS=W("github",Uh);/**
352
352
  * @license lucide-react v0.577.0 - ISC
353
353
  *
354
354
  * This source code is licensed under the ISC license.
355
355
  * See the LICENSE file in the root directory of this source tree.
356
- */const Gh=[["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"}]],XS=W("house",Gh);/**
356
+ */const Gh=[["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"}]],JS=W("globe",Gh);/**
357
357
  * @license lucide-react v0.577.0 - ISC
358
358
  *
359
359
  * This source code is licensed under the ISC license.
360
360
  * See the LICENSE file in the root directory of this source tree.
361
- */const Yh=[["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"}]],KS=W("image",Yh);/**
361
+ */const Yh=[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]],QS=W("hand",Yh);/**
362
362
  * @license lucide-react v0.577.0 - ISC
363
363
  *
364
364
  * This source code is licensed under the ISC license.
365
365
  * See the LICENSE file in the root directory of this source tree.
366
- */const qh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],ZS=W("info",qh);/**
366
+ */const qh=[["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"}]],eR=W("history",qh);/**
367
367
  * @license lucide-react v0.577.0 - ISC
368
368
  *
369
369
  * This source code is licensed under the ISC license.
370
370
  * See the LICENSE file in the root directory of this source tree.
371
- */const Xh=[["path",{d:"M6 16c5 0 7-8 12-8a4 4 0 0 1 0 8c-5 0-7-8-12-8a4 4 0 1 0 0 8",key:"18ogeb"}]],QS=W("infinity",Xh);/**
371
+ */const Xh=[["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"}]],tR=W("house",Xh);/**
372
372
  * @license lucide-react v0.577.0 - ISC
373
373
  *
374
374
  * This source code is licensed under the ISC license.
375
375
  * See the LICENSE file in the root directory of this source tree.
376
- */const Kh=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],JS=W("key-round",Kh);/**
376
+ */const Kh=[["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"}]],nR=W("image",Kh);/**
377
377
  * @license lucide-react v0.577.0 - ISC
378
378
  *
379
379
  * This source code is licensed under the ISC license.
380
380
  * See the LICENSE file in the root directory of this source tree.
381
- */const Zh=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],eR=W("keyboard",Zh);/**
381
+ */const Zh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],oR=W("info",Zh);/**
382
382
  * @license lucide-react v0.577.0 - ISC
383
383
  *
384
384
  * This source code is licensed under the ISC license.
385
385
  * See the LICENSE file in the root directory of this source tree.
386
- */const Qh=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],tR=W("laptop",Qh);/**
386
+ */const Jh=[["path",{d:"M6 16c5 0 7-8 12-8a4 4 0 0 1 0 8c-5 0-7-8-12-8a4 4 0 1 0 0 8",key:"18ogeb"}]],rR=W("infinity",Jh);/**
387
387
  * @license lucide-react v0.577.0 - ISC
388
388
  *
389
389
  * This source code is licensed under the ISC license.
390
390
  * See the LICENSE file in the root directory of this source tree.
391
- */const Jh=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],nR=W("layers",Jh);/**
391
+ */const Qh=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],sR=W("key-round",Qh);/**
392
392
  * @license lucide-react v0.577.0 - ISC
393
393
  *
394
394
  * This source code is licensed under the ISC license.
395
395
  * See the LICENSE file in the root directory of this source tree.
396
- */const eg=[["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"}]],oR=W("layout-grid",eg);/**
396
+ */const eg=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],iR=W("keyboard",eg);/**
397
397
  * @license lucide-react v0.577.0 - ISC
398
398
  *
399
399
  * This source code is licensed under the ISC license.
400
400
  * See the LICENSE file in the root directory of this source tree.
401
- */const tg=[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],rR=W("link-2-off",tg);/**
401
+ */const tg=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],aR=W("laptop",tg);/**
402
402
  * @license lucide-react v0.577.0 - ISC
403
403
  *
404
404
  * This source code is licensed under the ISC license.
405
405
  * See the LICENSE file in the root directory of this source tree.
406
- */const ng=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],sR=W("link-2",ng);/**
406
+ */const ng=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],cR=W("layers",ng);/**
407
407
  * @license lucide-react v0.577.0 - ISC
408
408
  *
409
409
  * This source code is licensed under the ISC license.
410
410
  * See the LICENSE file in the root directory of this source tree.
411
- */const og=[["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"}]],iR=W("list",og);/**
411
+ */const og=[["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"}]],lR=W("layout-grid",og);/**
412
412
  * @license lucide-react v0.577.0 - ISC
413
413
  *
414
414
  * This source code is licensed under the ISC license.
415
415
  * See the LICENSE file in the root directory of this source tree.
416
- */const rg=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aR=W("loader-circle",rg);/**
416
+ */const rg=[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],uR=W("link-2-off",rg);/**
417
417
  * @license lucide-react v0.577.0 - ISC
418
418
  *
419
419
  * This source code is licensed under the ISC license.
420
420
  * See the LICENSE file in the root directory of this source tree.
421
- */const sg=[["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"}]],cR=W("lock",sg);/**
421
+ */const sg=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],dR=W("link-2",sg);/**
422
422
  * @license lucide-react v0.577.0 - ISC
423
423
  *
424
424
  * This source code is licensed under the ISC license.
425
425
  * See the LICENSE file in the root directory of this source tree.
426
- */const ig=[["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"}]],lR=W("maximize-2",ig);/**
426
+ */const ig=[["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"}]],fR=W("list",ig);/**
427
427
  * @license lucide-react v0.577.0 - ISC
428
428
  *
429
429
  * This source code is licensed under the ISC license.
430
430
  * See the LICENSE file in the root directory of this source tree.
431
- */const ag=[["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"}],["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"}]],uR=W("message-circle-question-mark",ag);/**
431
+ */const ag=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],pR=W("loader-circle",ag);/**
432
432
  * @license lucide-react v0.577.0 - ISC
433
433
  *
434
434
  * This source code is licensed under the ISC license.
435
435
  * See the LICENSE file in the root directory of this source tree.
436
- */const cg=[["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"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]],dR=W("message-square-plus",cg);/**
436
+ */const cg=[["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"}]],hR=W("lock",cg);/**
437
437
  * @license lucide-react v0.577.0 - ISC
438
438
  *
439
439
  * This source code is licensed under the ISC license.
440
440
  * See the LICENSE file in the root directory of this source tree.
441
- */const lg=[["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"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],fR=W("message-square-text",lg);/**
441
+ */const lg=[["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"}]],gR=W("maximize-2",lg);/**
442
442
  * @license lucide-react v0.577.0 - ISC
443
443
  *
444
444
  * This source code is licensed under the ISC license.
445
445
  * See the LICENSE file in the root directory of this source tree.
446
- */const ug=[["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"}]],pR=W("message-square",ug);/**
446
+ */const ug=[["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"}],["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"}]],mR=W("message-circle-question-mark",ug);/**
447
447
  * @license lucide-react v0.577.0 - ISC
448
448
  *
449
449
  * This source code is licensed under the ISC license.
450
450
  * See the LICENSE file in the root directory of this source tree.
451
- */const dg=[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]],hR=W("messages-square",dg);/**
451
+ */const dg=[["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"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]],yR=W("message-square-plus",dg);/**
452
452
  * @license lucide-react v0.577.0 - ISC
453
453
  *
454
454
  * This source code is licensed under the ISC license.
455
455
  * See the LICENSE file in the root directory of this source tree.
456
- */const fg=[["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"}]],gR=W("minimize-2",fg);/**
456
+ */const fg=[["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"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],bR=W("message-square-text",fg);/**
457
457
  * @license lucide-react v0.577.0 - ISC
458
458
  *
459
459
  * This source code is licensed under the ISC license.
460
460
  * See the LICENSE file in the root directory of this source tree.
461
- */const pg=[["path",{d:"M5 12h14",key:"1ays0h"}]],mR=W("minus",pg);/**
461
+ */const pg=[["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"}]],vR=W("message-square",pg);/**
462
462
  * @license lucide-react v0.577.0 - ISC
463
463
  *
464
464
  * This source code is licensed under the ISC license.
465
465
  * See the LICENSE file in the root directory of this source tree.
466
- */const hg=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],yR=W("monitor",hg);/**
466
+ */const hg=[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]],xR=W("messages-square",hg);/**
467
467
  * @license lucide-react v0.577.0 - ISC
468
468
  *
469
469
  * This source code is licensed under the ISC license.
470
470
  * See the LICENSE file in the root directory of this source tree.
471
- */const gg=[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]],bR=W("notebook-pen",gg);/**
471
+ */const gg=[["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"}]],wR=W("minimize-2",gg);/**
472
472
  * @license lucide-react v0.577.0 - ISC
473
473
  *
474
474
  * This source code is licensed under the ISC license.
475
475
  * See the LICENSE file in the root directory of this source tree.
476
- */const mg=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],vR=W("octagon-x",mg);/**
476
+ */const mg=[["path",{d:"M5 12h14",key:"1ays0h"}]],SR=W("minus",mg);/**
477
477
  * @license lucide-react v0.577.0 - ISC
478
478
  *
479
479
  * This source code is licensed under the ISC license.
480
480
  * See the LICENSE file in the root directory of this source tree.
481
- */const yg=[["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}]],xR=W("octagon",yg);/**
481
+ */const yg=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],RR=W("monitor",yg);/**
482
482
  * @license lucide-react v0.577.0 - ISC
483
483
  *
484
484
  * This source code is licensed under the ISC license.
485
485
  * See the LICENSE file in the root directory of this source tree.
486
- */const bg=[["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"}]],wR=W("palette",bg);/**
486
+ */const bg=[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]],kR=W("notebook-pen",bg);/**
487
487
  * @license lucide-react v0.577.0 - ISC
488
488
  *
489
489
  * This source code is licensed under the ISC license.
490
490
  * See the LICENSE file in the root directory of this source tree.
491
- */const vg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],SR=W("panel-left-close",vg);/**
491
+ */const vg=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],ER=W("octagon-x",vg);/**
492
492
  * @license lucide-react v0.577.0 - ISC
493
493
  *
494
494
  * This source code is licensed under the ISC license.
495
495
  * See the LICENSE file in the root directory of this source tree.
496
- */const xg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],RR=W("panel-left-open",xg);/**
496
+ */const xg=[["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}]],CR=W("octagon",xg);/**
497
497
  * @license lucide-react v0.577.0 - ISC
498
498
  *
499
499
  * This source code is licensed under the ISC license.
500
500
  * See the LICENSE file in the root directory of this source tree.
501
- */const wg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],kR=W("panel-left",wg);/**
501
+ */const wg=[["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"}]],PR=W("palette",wg);/**
502
502
  * @license lucide-react v0.577.0 - ISC
503
503
  *
504
504
  * This source code is licensed under the ISC license.
505
505
  * See the LICENSE file in the root directory of this source tree.
506
- */const Sg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]],ER=W("panel-right-close",Sg);/**
506
+ */const Sg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],MR=W("panel-left-close",Sg);/**
507
507
  * @license lucide-react v0.577.0 - ISC
508
508
  *
509
509
  * This source code is licensed under the ISC license.
510
510
  * See the LICENSE file in the root directory of this source tree.
511
- */const Rg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]],CR=W("panel-right-open",Rg);/**
511
+ */const Rg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],TR=W("panel-left-open",Rg);/**
512
512
  * @license lucide-react v0.577.0 - ISC
513
513
  *
514
514
  * This source code is licensed under the ISC license.
515
515
  * See the LICENSE file in the root directory of this source tree.
516
- */const kg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],PR=W("panels-top-left",kg);/**
516
+ */const kg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],IR=W("panel-left",kg);/**
517
517
  * @license lucide-react v0.577.0 - ISC
518
518
  *
519
519
  * This source code is licensed under the ISC license.
520
520
  * See the LICENSE file in the root directory of this source tree.
521
- */const Eg=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],MR=W("pause",Eg);/**
521
+ */const Eg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]],OR=W("panel-right",Eg);/**
522
522
  * @license lucide-react v0.577.0 - ISC
523
523
  *
524
524
  * This source code is licensed under the ISC license.
525
525
  * See the LICENSE file in the root directory of this source tree.
526
- */const Cg=[["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"}]],TR=W("pen-line",Cg);/**
526
+ */const Cg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],AR=W("panels-top-left",Cg);/**
527
527
  * @license lucide-react v0.577.0 - ISC
528
528
  *
529
529
  * This source code is licensed under the ISC license.
530
530
  * See the LICENSE file in the root directory of this source tree.
531
- */const Pg=[["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"}]],IR=W("pencil",Pg);/**
531
+ */const Pg=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],DR=W("pause",Pg);/**
532
532
  * @license lucide-react v0.577.0 - ISC
533
533
  *
534
534
  * This source code is licensed under the ISC license.
535
535
  * See the LICENSE file in the root directory of this source tree.
536
- */const Mg=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],OR=W("play",Mg);/**
536
+ */const Mg=[["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"}]],NR=W("pen-line",Mg);/**
537
537
  * @license lucide-react v0.577.0 - ISC
538
538
  *
539
539
  * This source code is licensed under the ISC license.
540
540
  * See the LICENSE file in the root directory of this source tree.
541
- */const Tg=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],AR=W("plug",Tg);/**
541
+ */const Tg=[["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"}]],LR=W("pencil",Tg);/**
542
542
  * @license lucide-react v0.577.0 - ISC
543
543
  *
544
544
  * This source code is licensed under the ISC license.
545
545
  * See the LICENSE file in the root directory of this source tree.
546
- */const Ig=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],DR=W("plus",Ig);/**
546
+ */const Ig=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],_R=W("play",Ig);/**
547
547
  * @license lucide-react v0.577.0 - ISC
548
548
  *
549
549
  * This source code is licensed under the ISC license.
550
550
  * See the LICENSE file in the root directory of this source tree.
551
- */const Og=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],NR=W("power",Og);/**
551
+ */const Og=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],FR=W("plug",Og);/**
552
552
  * @license lucide-react v0.577.0 - ISC
553
553
  *
554
554
  * This source code is licensed under the ISC license.
555
555
  * See the LICENSE file in the root directory of this source tree.
556
- */const Ag=[["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"}]],LR=W("quote",Ag);/**
556
+ */const Ag=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],zR=W("plus",Ag);/**
557
557
  * @license lucide-react v0.577.0 - ISC
558
558
  *
559
559
  * This source code is licensed under the ISC license.
560
560
  * See the LICENSE file in the root directory of this source tree.
561
- */const Dg=[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]],_R=W("redo-2",Dg);/**
561
+ */const Dg=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],VR=W("power",Dg);/**
562
562
  * @license lucide-react v0.577.0 - ISC
563
563
  *
564
564
  * This source code is licensed under the ISC license.
565
565
  * See the LICENSE file in the root directory of this source tree.
566
- */const Ng=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],FR=W("refresh-cw",Ng);/**
566
+ */const Ng=[["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"}]],$R=W("quote",Ng);/**
567
567
  * @license lucide-react v0.577.0 - ISC
568
568
  *
569
569
  * This source code is licensed under the ISC license.
570
570
  * See the LICENSE file in the root directory of this source tree.
571
- */const Lg=[["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"}]],zR=W("rotate-ccw",Lg);/**
571
+ */const Lg=[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]],HR=W("redo-2",Lg);/**
572
572
  * @license lucide-react v0.577.0 - ISC
573
573
  *
574
574
  * This source code is licensed under the ISC license.
575
575
  * See the LICENSE file in the root directory of this source tree.
576
- */const _g=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],VR=W("save",_g);/**
576
+ */const _g=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],jR=W("refresh-cw",_g);/**
577
577
  * @license lucide-react v0.577.0 - ISC
578
578
  *
579
579
  * This source code is licensed under the ISC license.
580
580
  * See the LICENSE file in the root directory of this source tree.
581
- */const Fg=[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],$R=W("search-x",Fg);/**
581
+ */const Fg=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],BR=W("rocket",Fg);/**
582
582
  * @license lucide-react v0.577.0 - ISC
583
583
  *
584
584
  * This source code is licensed under the ISC license.
585
585
  * See the LICENSE file in the root directory of this source tree.
586
- */const zg=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],HR=W("search",zg);/**
586
+ */const zg=[["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"}]],WR=W("rotate-ccw",zg);/**
587
587
  * @license lucide-react v0.577.0 - ISC
588
588
  *
589
589
  * This source code is licensed under the ISC license.
590
590
  * See the LICENSE file in the root directory of this source tree.
591
- */const Vg=[["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"}]],jR=W("send",Vg);/**
591
+ */const Vg=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],UR=W("save",Vg);/**
592
592
  * @license lucide-react v0.577.0 - ISC
593
593
  *
594
594
  * This source code is licensed under the ISC license.
595
595
  * See the LICENSE file in the root directory of this source tree.
596
- */const $g=[["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"}]],BR=W("server",$g);/**
596
+ */const $g=[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],GR=W("search-x",$g);/**
597
597
  * @license lucide-react v0.577.0 - ISC
598
598
  *
599
599
  * This source code is licensed under the ISC license.
600
600
  * See the LICENSE file in the root directory of this source tree.
601
- */const Hg=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],WR=W("settings-2",Hg);/**
601
+ */const Hg=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],YR=W("search",Hg);/**
602
602
  * @license lucide-react v0.577.0 - ISC
603
603
  *
604
604
  * This source code is licensed under the ISC license.
605
605
  * See the LICENSE file in the root directory of this source tree.
606
- */const jg=[["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"}]],UR=W("settings",jg);/**
606
+ */const jg=[["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"}]],qR=W("send",jg);/**
607
607
  * @license lucide-react v0.577.0 - ISC
608
608
  *
609
609
  * This source code is licensed under the ISC license.
610
610
  * See the LICENSE file in the root directory of this source tree.
611
- */const Bg=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],GR=W("share-2",Bg);/**
611
+ */const Bg=[["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"}]],XR=W("server",Bg);/**
612
612
  * @license lucide-react v0.577.0 - ISC
613
613
  *
614
614
  * This source code is licensed under the ISC license.
615
615
  * See the LICENSE file in the root directory of this source tree.
616
- */const Wg=[["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"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],YR=W("shield-alert",Wg);/**
616
+ */const Wg=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],KR=W("settings-2",Wg);/**
617
617
  * @license lucide-react v0.577.0 - ISC
618
618
  *
619
619
  * This source code is licensed under the ISC license.
620
620
  * See the LICENSE file in the root directory of this source tree.
621
- */const Ug=[["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"}],["path",{d:"M9 12h6",key:"1c52cq"}],["path",{d:"M12 9v6",key:"199k2o"}]],qR=W("shield-plus",Ug);/**
621
+ */const Ug=[["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"}]],ZR=W("settings",Ug);/**
622
622
  * @license lucide-react v0.577.0 - ISC
623
623
  *
624
624
  * This source code is licensed under the ISC license.
625
625
  * See the LICENSE file in the root directory of this source tree.
626
- */const Gg=[["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"}]],XR=W("shield",Gg);/**
626
+ */const Gg=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],JR=W("share-2",Gg);/**
627
627
  * @license lucide-react v0.577.0 - ISC
628
628
  *
629
629
  * This source code is licensed under the ISC license.
630
630
  * See the LICENSE file in the root directory of this source tree.
631
- */const Yg=[["path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",key:"wuwx1p"}]],KR=W("sigma",Yg);/**
631
+ */const Yg=[["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"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],QR=W("shield-alert",Yg);/**
632
632
  * @license lucide-react v0.577.0 - ISC
633
633
  *
634
634
  * This source code is licensed under the ISC license.
635
635
  * See the LICENSE file in the root directory of this source tree.
636
- */const qg=[["path",{d:"m12.5 17-.5-1-.5 1h1z",key:"3me087"}],["path",{d:"M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20v1a1 1 0 0 0 1 1z",key:"1o5pge"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}]],ZR=W("skull",qg);/**
636
+ */const qg=[["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"}],["path",{d:"M9 12h6",key:"1c52cq"}],["path",{d:"M12 9v6",key:"199k2o"}]],ek=W("shield-plus",qg);/**
637
637
  * @license lucide-react v0.577.0 - ISC
638
638
  *
639
639
  * This source code is licensed under the ISC license.
640
640
  * See the LICENSE file in the root directory of this source tree.
641
- */const Xg=[["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"}]],QR=W("sliders-horizontal",Xg);/**
641
+ */const Xg=[["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"}]],tk=W("shield",Xg);/**
642
642
  * @license lucide-react v0.577.0 - ISC
643
643
  *
644
644
  * This source code is licensed under the ISC license.
645
645
  * See the LICENSE file in the root directory of this source tree.
646
- */const Kg=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],JR=W("smartphone",Kg);/**
646
+ */const Kg=[["path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",key:"wuwx1p"}]],nk=W("sigma",Kg);/**
647
647
  * @license lucide-react v0.577.0 - ISC
648
648
  *
649
649
  * This source code is licensed under the ISC license.
650
650
  * See the LICENSE file in the root directory of this source tree.
651
- */const Zg=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],ek=W("sparkles",Zg);/**
651
+ */const Zg=[["path",{d:"m12.5 17-.5-1-.5 1h1z",key:"3me087"}],["path",{d:"M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20v1a1 1 0 0 0 1 1z",key:"1o5pge"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}]],ok=W("skull",Zg);/**
652
652
  * @license lucide-react v0.577.0 - ISC
653
653
  *
654
654
  * This source code is licensed under the ISC license.
655
655
  * See the LICENSE file in the root directory of this source tree.
656
- */const Qg=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],tk=W("square-terminal",Qg);/**
656
+ */const Jg=[["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"}]],rk=W("sliders-horizontal",Jg);/**
657
657
  * @license lucide-react v0.577.0 - ISC
658
658
  *
659
659
  * This source code is licensed under the ISC license.
660
660
  * See the LICENSE file in the root directory of this source tree.
661
- */const Jg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],nk=W("square",Jg);/**
661
+ */const Qg=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],sk=W("smartphone",Qg);/**
662
662
  * @license lucide-react v0.577.0 - ISC
663
663
  *
664
664
  * This source code is licensed under the ISC license.
665
665
  * See the LICENSE file in the root directory of this source tree.
666
- */const em=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]],ok=W("tablet",em);/**
666
+ */const em=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],ik=W("sparkles",em);/**
667
667
  * @license lucide-react v0.577.0 - ISC
668
668
  *
669
669
  * This source code is licensed under the ISC license.
670
670
  * See the LICENSE file in the root directory of this source tree.
671
- */const tm=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],rk=W("terminal",tm);/**
671
+ */const tm=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],ak=W("square-terminal",tm);/**
672
672
  * @license lucide-react v0.577.0 - ISC
673
673
  *
674
674
  * This source code is licensed under the ISC license.
675
675
  * See the LICENSE file in the root directory of this source tree.
676
- */const nm=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],sk=W("trash-2",nm);/**
676
+ */const nm=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],ck=W("square",nm);/**
677
677
  * @license lucide-react v0.577.0 - ISC
678
678
  *
679
679
  * This source code is licensed under the ISC license.
680
680
  * See the LICENSE file in the root directory of this source tree.
681
- */const om=[["path",{d:"M10 10v.2A3 3 0 0 1 8.9 16H5a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z",key:"1l6gj6"}],["path",{d:"M7 16v6",key:"1a82de"}],["path",{d:"M13 19v3",key:"13sx9i"}],["path",{d:"M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5",key:"1sj9kv"}]],ik=W("trees",om);/**
681
+ */const om=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]],lk=W("tablet",om);/**
682
682
  * @license lucide-react v0.577.0 - ISC
683
683
  *
684
684
  * This source code is licensed under the ISC license.
685
685
  * See the LICENSE file in the root directory of this source tree.
686
- */const rm=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ak=W("triangle-alert",rm);/**
686
+ */const rm=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],uk=W("terminal",rm);/**
687
687
  * @license lucide-react v0.577.0 - ISC
688
688
  *
689
689
  * This source code is licensed under the ISC license.
690
690
  * See the LICENSE file in the root directory of this source tree.
691
- */const sm=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],ck=W("undo-2",sm);/**
691
+ */const sm=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],dk=W("trash-2",sm);/**
692
692
  * @license lucide-react v0.577.0 - ISC
693
693
  *
694
694
  * This source code is licensed under the ISC license.
695
695
  * See the LICENSE file in the root directory of this source tree.
696
- */const im=[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]],lk=W("unlink",im);/**
696
+ */const im=[["path",{d:"M10 10v.2A3 3 0 0 1 8.9 16H5a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z",key:"1l6gj6"}],["path",{d:"M7 16v6",key:"1a82de"}],["path",{d:"M13 19v3",key:"13sx9i"}],["path",{d:"M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5",key:"1sj9kv"}]],fk=W("trees",im);/**
697
697
  * @license lucide-react v0.577.0 - ISC
698
698
  *
699
699
  * This source code is licensed under the ISC license.
700
700
  * See the LICENSE file in the root directory of this source tree.
701
- */const am=[["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"}]],uk=W("users",am);/**
701
+ */const am=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],pk=W("triangle-alert",am);/**
702
702
  * @license lucide-react v0.577.0 - ISC
703
703
  *
704
704
  * This source code is licensed under the ISC license.
705
705
  * See the LICENSE file in the root directory of this source tree.
706
- */const cm=[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]],dk=W("webhook",cm);/**
706
+ */const cm=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],hk=W("undo-2",cm);/**
707
707
  * @license lucide-react v0.577.0 - ISC
708
708
  *
709
709
  * This source code is licensed under the ISC license.
710
710
  * See the LICENSE file in the root directory of this source tree.
711
- */const lm=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],fk=W("wifi-off",lm);/**
711
+ */const lm=[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]],gk=W("unlink",lm);/**
712
712
  * @license lucide-react v0.577.0 - ISC
713
713
  *
714
714
  * This source code is licensed under the ISC license.
715
715
  * See the LICENSE file in the root directory of this source tree.
716
- */const um=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],pk=W("wifi",um);/**
716
+ */const um=[["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"}]],mk=W("users",um);/**
717
717
  * @license lucide-react v0.577.0 - ISC
718
718
  *
719
719
  * This source code is licensed under the ISC license.
720
720
  * See the LICENSE file in the root directory of this source tree.
721
- */const dm=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],hk=W("workflow",dm);/**
721
+ */const dm=[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]],yk=W("webhook",dm);/**
722
722
  * @license lucide-react v0.577.0 - ISC
723
723
  *
724
724
  * This source code is licensed under the ISC license.
725
725
  * See the LICENSE file in the root directory of this source tree.
726
- */const fm=[["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"}]],gk=W("wrench",fm);/**
726
+ */const fm=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],bk=W("wifi-off",fm);/**
727
727
  * @license lucide-react v0.577.0 - ISC
728
728
  *
729
729
  * This source code is licensed under the ISC license.
730
730
  * See the LICENSE file in the root directory of this source tree.
731
- */const pm=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],mk=W("x",pm);/**
731
+ */const pm=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],vk=W("wifi",pm);/**
732
732
  * @license lucide-react v0.577.0 - ISC
733
733
  *
734
734
  * This source code is licensed under the ISC license.
735
735
  * See the LICENSE file in the root directory of this source tree.
736
- */const hm=[["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"}]],yk=W("zap",hm);/**
736
+ */const hm=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],xk=W("workflow",hm);/**
737
737
  * @license lucide-react v0.577.0 - ISC
738
738
  *
739
739
  * This source code is licensed under the ISC license.
740
740
  * See the LICENSE file in the root directory of this source tree.
741
- */const gm=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],bk=W("zoom-in",gm);/**
741
+ */const gm=[["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"}]],wk=W("wrench",gm);/**
742
742
  * @license lucide-react v0.577.0 - ISC
743
743
  *
744
744
  * This source code is licensed under the ISC license.
745
745
  * See the LICENSE file in the root directory of this source tree.
746
- */const mm=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],vk=W("zoom-out",mm);function Wr(){return typeof window<"u"}function ut(e){return Oi(e)?(e.nodeName||"").toLowerCase():"#document"}function He(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function an(e){var t;return(t=(Oi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Oi(e){return Wr()?e instanceof Node||e instanceof He(e).Node:!1}function Oe(e){return Wr()?e instanceof Element||e instanceof He(e).Element:!1}function Fe(e){return Wr()?e instanceof HTMLElement||e instanceof He(e).HTMLElement:!1}function so(e){return!Wr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof He(e).ShadowRoot}function jo(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=xt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function ym(e){return/^(table|td|th)$/.test(ut(e))}function Ur(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const bm=/transform|translate|scale|rotate|perspective|filter/,vm=/paint|layout|strict|content/,Tn=e=>!!e&&e!=="none";let Ps;function Ai(e){const t=Oe(e)?xt(e):e;return Tn(t.transform)||Tn(t.translate)||Tn(t.scale)||Tn(t.rotate)||Tn(t.perspective)||!Di()&&(Tn(t.backdropFilter)||Tn(t.filter))||bm.test(t.willChange||"")||vm.test(t.contain||"")}function xm(e){let t=on(e);for(;Fe(t)&&!en(t);){if(Ai(t))return t;if(Ur(t))return null;t=on(t)}return null}function Di(){return Ps==null&&(Ps=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ps}function en(e){return/^(html|body|#document)$/.test(ut(e))}function xt(e){return He(e).getComputedStyle(e)}function Gr(e){return Oe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function on(e){if(ut(e)==="html")return e;const t=e.assignedSlot||e.parentNode||so(e)&&e.host||an(e);return so(t)?t.host:t}function nu(e){const t=on(e);return en(t)?(e.ownerDocument||e).body:Fe(t)&&jo(t)?t:nu(t)}function Lo(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=nu(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=He(r);if(s){const a=Ks(i);return t.concat(i,i.visualViewport||[],jo(r)?r:[],a&&n?Lo(a):[])}else return t.concat(r,Lo(r,[],n))}function Ks(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Ni={...mo},lc={};function at(e,t){const n=c.useRef(lc);return n.current===lc&&(n.current=e(t)),n}const Ms=Ni.useInsertionEffect,wm=Ms&&Ms!==Ni.useLayoutEffect?Ms:e=>e();function le(e){const t=at(Sm).current;return t.next=e,wm(t.effect),t.trampoline}function Sm(){const e={next:void 0,callback:Rm,trampoline:(...t)=>{var n;return(n=e.callback)==null?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function Rm(){}const km=()=>{},re=typeof document<"u"?c.useLayoutEffect:km;function Zs(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}const Li={};function St(e,t,n,o,r){if(!n&&!o&&!r&&!e)return Or(t);let s=Or(e);return t&&(s=Mo(s,t)),n&&(s=Mo(s,n)),o&&(s=Mo(s,o)),r&&(s=Mo(s,r)),s}function Em(e){if(e.length===0)return Li;if(e.length===1)return Or(e[0]);let t=Or(e[0]);for(let n=1;n<e.length;n+=1)t=Mo(t,e[n]);return t}function Or(e){return _i(e)?{...ru(e,Li)}:Cm(e)}function Mo(e,t){return _i(t)?ru(t,e):Pm(e,t)}function Cm(e){const t={...e};for(const n in t){const o=t[n];ou(n,o)&&(t[n]=su(o))}return t}function Pm(e,t){if(!t)return e;for(const n in t){const o=t[n];switch(n){case"style":{e[n]=Zs(e.style,o);break}case"className":{e[n]=iu(e.className,o);break}default:ou(n,o)?e[n]=Mm(e[n],o):e[n]=o}}return e}function ou(e,t){const n=e.charCodeAt(0),o=e.charCodeAt(1),r=e.charCodeAt(2);return n===111&&o===110&&r>=65&&r<=90&&(typeof t=="function"||typeof t>"u")}function _i(e){return typeof e=="function"}function ru(e,t){return _i(e)?e(t):e??Li}function Mm(e,t){return t?e?(...n)=>{const o=n[0];if(au(o)){const s=o;Ar(s);const i=t(...n);return s.baseUIHandlerPrevented||e==null||e(...n),i}const r=t(...n);return e==null||e(...n),r}:su(t):e}function su(e){return e&&((...t)=>{const n=t[0];return au(n)&&Ar(n),e(...t)})}function Ar(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function iu(e,t){return t?e?t+" "+e:t:e}function au(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Tm(e,t){return function(o,...r){const s=new URL(e);return s.searchParams.set("code",o.toString()),r.forEach(i=>s.searchParams.append("args[]",i)),`${t} error #${o}; visit ${s} for the full message.`}}const Ne=Tm("https://base-ui.com/production-error","Base UI"),cu=c.createContext(void 0);function Yr(e=!1){const t=c.useContext(cu);if(t===void 0&&!e)throw new Error(Ne(16));return t}function Im(e){const{focusableWhenDisabled:t,disabled:n,composite:o=!1,tabIndex:r=0,isNativeButton:s}=e,i=o&&t!==!1,a=o&&t===!1;return{props:c.useMemo(()=>{const u={onKeyDown(d){n&&t&&d.key!=="Tab"&&d.preventDefault()}};return o||(u.tabIndex=r,!s&&n&&(u.tabIndex=t?r:-1)),(s&&(t||i)||!s&&n)&&(u["aria-disabled"]=n),s&&(!t||a)&&(u.disabled=n),u},[o,n,t,i,a,s,r])}}function Te(e){return(e==null?void 0:e.ownerDocument)||document}function Qn(e,t,{detail:n=0}={}){e.dispatchEvent(new(He(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Tt(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:o=0,native:r=!0,composite:s}=e,i=c.useRef(null),a=Yr(!0),l=s??a!==void 0,{props:u}=Im({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:o,isNativeButton:r}),d=c.useCallback(()=>{const y=i.current;Ts(y)&&l&&t&&u.disabled===void 0&&y.disabled&&(y.disabled=!1)},[t,u.disabled,l]);re(d,[d]);const p=c.useCallback((y={})=>{const{onClick:m,onMouseDown:g,onKeyUp:h,onKeyDown:b,onPointerDown:v,...w}=y;return St({onClick(x){if(t){x.preventDefault();return}m==null||m(x)},onMouseDown(x){t||g==null||g(x)},onKeyDown(x){if(t||(Ar(x),b==null||b(x),x.baseUIHandlerPrevented))return;const S=x.target===x.currentTarget,R=x.currentTarget,E=Ts(R),k=!r&&Om(R),M=S&&(r?E:!k),C=x.key==="Enter",O=x.key===" ",I=R.getAttribute("role"),D=(I==null?void 0:I.startsWith("menuitem"))||I==="option"||I==="gridcell";if(S&&l&&O){if(x.defaultPrevented&&D)return;x.preventDefault(),(!r||E)&&(x.preventBaseUIHandler(),Qn(R,x));return}if(!M||r||!O&&!C){S&&k&&O&&x.preventDefault();return}x.defaultPrevented||(x.preventDefault(),C&&(x.preventBaseUIHandler(),Qn(R,x)))},onKeyUp(x){if(!t){if(Ar(x),h==null||h(x),x.target===x.currentTarget&&r&&l&&Ts(x.currentTarget)&&x.key===" "){x.preventDefault();return}x.baseUIHandlerPrevented||x.target===x.currentTarget&&!r&&!l&&!x.defaultPrevented&&x.key===" "&&(x.preventBaseUIHandler(),Qn(x.currentTarget,x))}},onPointerDown(x){if(t){x.preventDefault();return}v==null||v(x)}},r?{type:"button"}:{role:"button"},u,w)},[t,u,l,r]),f=le(y=>{i.current=y,d()});return{getButtonProps:p,buttonRef:f}}function Ts(e){return Fe(e)&&e.tagName==="BUTTON"}function Om(e){return Fe(e)&&e.tagName==="A"&&!!e.href}function Dt(e,t,n,o){const r=at(lu).current;return Dm(r,e,t,n,o)&&uu(r,[e,t,n,o]),r.callback}function Am(e){const t=at(lu).current;return Nm(t,e)&&uu(t,e),t.callback}function lu(){return{callback:null,cleanup:null,refs:[]}}function Dm(e,t,n,o,r){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==o||e.refs[3]!==r}function Nm(e,t){return e.refs.length!==t.length||e.refs.some((n,o)=>n!==t[o])}function uu(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const o=Array(t.length).fill(null);for(let r=0;r<t.length;r+=1){const s=t[r];if(s!=null)switch(typeof s){case"function":{const i=s(n);typeof i=="function"&&(o[r]=i);break}case"object":{s.current=n;break}}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){const s=t[r];if(s!=null)switch(typeof s){case"function":{const i=o[r];typeof i=="function"?i():s(null);break}case"object":{s.current=null;break}}}}}}}const Lm=parseInt(c.version,10);function Fi(e){return Lm>=e}function uc(e){if(!c.isValidElement(e))return null;const t=e,n=t.props;return(Fi(19)?n==null?void 0:n.ref:t.ref)??null}function Ke(){}const Nt=Object.freeze([]),We=Object.freeze({});function _m(e,t){const n={};for(const o in e){const r=e[o];if(t!=null&&t.hasOwnProperty(o)){const s=t[o](r);s!=null&&Object.assign(n,s);continue}r===!0?n[`data-${o.toLowerCase()}`]="":r&&(n[`data-${o.toLowerCase()}`]=r.toString())}return n}function Fm(e,t){return typeof e=="function"?e(t):e}function du(e,t){return typeof e=="function"?e(t):e}function ke(e,t,n={}){const o=t.render,r=zm(t,n);if(n.enabled===!1)return null;const s=n.state??We;return Hm(e,o,r,s)}function zm(e,t={}){const{className:n,style:o,render:r}=e,{state:s=We,ref:i,props:a,stateAttributesMapping:l,enabled:u=!0}=t,d=u?Fm(n,s):void 0,p=u?du(o,s):void 0,f=u?_m(s,l):We,y=u&&a?Vm(a):void 0,m=u?Zs(f,y)??{}:We;return typeof document<"u"&&(u?Array.isArray(i)?m.ref=Am([m.ref,uc(r),...i]):m.ref=Dt(m.ref,uc(r),i):Dt(null,null)),u?(d!==void 0&&(m.className=iu(m.className,d)),p!==void 0&&(m.style=Zs(m.style,p)),m):We}function Vm(e){return Array.isArray(e)?Em(e):St(void 0,e)}const $m=Symbol.for("react.lazy");function Hm(e,t,n,o){if(t){if(typeof t=="function")return t(n,o);const r=St(n,t.props);r.ref=n.ref;let s=t;return(s==null?void 0:s.$$typeof)===$m&&(s=c.Children.toArray(t)[0]),c.cloneElement(s,r)}if(e&&typeof e=="string")return jm(e,n);throw new Error(Ne(8))}function jm(e,t){return e==="button"?c.createElement("button",{type:"button",...t,key:t.key}):e==="img"?c.createElement("img",{alt:"",...t,key:t.key}):c.createElement(e,t)}const xk=c.forwardRef(function(t,n){const{render:o,className:r,disabled:s=!1,focusableWhenDisabled:i=!1,nativeButton:a=!0,style:l,...u}=t,{getButtonProps:d,buttonRef:p}=Tt({disabled:s,focusableWhenDisabled:i,native:a});return ke("button",t,{state:{disabled:s},ref:[n,p],props:[u,d]})});function fu(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=fu(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Bm(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=fu(e))&&(o&&(o+=" "),o+=t);return o}const dc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,fc=Bm,wk=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return fc(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:s}=t,i=Object.keys(r).map(u=>{const d=n==null?void 0:n[u],p=s==null?void 0:s[u];if(d===null)return null;const f=dc(d)||dc(p);return r[u][f]}),a=n&&Object.entries(n).reduce((u,d)=>{let[p,f]=d;return f===void 0||(u[p]=f),u},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,d)=>{let{class:p,className:f,...y}=d;return Object.entries(y).every(m=>{let[g,h]=m;return Array.isArray(h)?h.includes({...s,...a}[g]):{...s,...a}[g]===h})?[...u,p,f]:u},[]);return fc(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)},Wm=(e,t)=>{const n=new Array(e.length+t.length);for(let o=0;o<e.length;o++)n[o]=e[o];for(let o=0;o<t.length;o++)n[e.length+o]=t[o];return n},Um=(e,t)=>({classGroupId:e,validator:t}),pu=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Dr="-",pc=[],Gm="arbitrary..",Ym=e=>{const t=Xm(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return qm(i);const a=i.split(Dr),l=a[0]===""&&a.length>1?1:0;return hu(a,l,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const l=o[i],u=n[i];return l?u?Wm(u,l):l:u||pc}return n[i]||pc}}},hu=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],s=n.nextPart.get(r);if(s){const u=hu(e,t+1,s);if(u)return u}const i=n.validators;if(i===null)return;const a=t===0?e.join(Dr):e.slice(t).join(Dr),l=i.length;for(let u=0;u<l;u++){const d=i[u];if(d.validator(a))return d.classGroupId}},qm=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),o=t.slice(0,n);return o?Gm+o:void 0})(),Xm=e=>{const{theme:t,classGroups:n}=e;return Km(n,t)},Km=(e,t)=>{const n=pu();for(const o in e){const r=e[o];zi(r,n,o,t)}return n},zi=(e,t,n,o)=>{const r=e.length;for(let s=0;s<r;s++){const i=e[s];Zm(i,t,n,o)}},Zm=(e,t,n,o)=>{if(typeof e=="string"){Qm(e,t,n);return}if(typeof e=="function"){Jm(e,t,n,o);return}ey(e,t,n,o)},Qm=(e,t,n)=>{const o=e===""?t:gu(t,e);o.classGroupId=n},Jm=(e,t,n,o)=>{if(ty(e)){zi(e(o),t,n,o);return}t.validators===null&&(t.validators=[]),t.validators.push(Um(n,e))},ey=(e,t,n,o)=>{const r=Object.entries(e),s=r.length;for(let i=0;i<s;i++){const[a,l]=r[i];zi(l,gu(t,a),n,o)}},gu=(e,t)=>{let n=e;const o=t.split(Dr),r=o.length;for(let s=0;s<r;s++){const i=o[s];let a=n.nextPart.get(i);a||(a=pu(),n.nextPart.set(i,a)),n=a}return n},ty=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ny=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),o=Object.create(null);const r=(s,i)=>{n[s]=i,t++,t>e&&(t=0,o=n,n=Object.create(null))};return{get(s){let i=n[s];if(i!==void 0)return i;if((i=o[s])!==void 0)return r(s,i),i},set(s,i){s in n?n[s]=i:r(s,i)}}},Qs="!",hc=":",oy=[],gc=(e,t,n,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:o,isExternal:r}),ry=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=r=>{const s=[];let i=0,a=0,l=0,u;const d=r.length;for(let g=0;g<d;g++){const h=r[g];if(i===0&&a===0){if(h===hc){s.push(r.slice(l,g)),l=g+1;continue}if(h==="/"){u=g;continue}}h==="["?i++:h==="]"?i--:h==="("?a++:h===")"&&a--}const p=s.length===0?r:r.slice(l);let f=p,y=!1;p.endsWith(Qs)?(f=p.slice(0,-1),y=!0):p.startsWith(Qs)&&(f=p.slice(1),y=!0);const m=u&&u>l?u-l:void 0;return gc(s,y,f,m)};if(t){const r=t+hc,s=o;o=i=>i.startsWith(r)?s(i.slice(r.length)):gc(oy,!1,i,void 0,!0)}if(n){const r=o;o=s=>n({className:s,parseClassName:r})}return o},sy=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,o)=>{t.set(n,1e6+o)}),n=>{const o=[];let r=[];for(let s=0;s<n.length;s++){const i=n[s],a=i[0]==="[",l=t.has(i);a||l?(r.length>0&&(r.sort(),o.push(...r),r=[]),o.push(i)):r.push(i)}return r.length>0&&(r.sort(),o.push(...r)),o}},iy=e=>({cache:ny(e.cacheSize),parseClassName:ry(e),sortModifiers:sy(e),postfixLookupClassGroupIds:ay(e),...Ym(e)}),ay=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let o=0;o<n.length;o++)t[n[o]]=!0;return t},cy=/\s+/,ly=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:s,postfixLookupClassGroupIds:i}=t,a=[],l=e.trim().split(cy);let u="";for(let d=l.length-1;d>=0;d-=1){const p=l[d],{isExternal:f,modifiers:y,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:h}=n(p);if(f){u=p+(u.length>0?" "+u:u);continue}let b=!!h,v;if(b){const E=g.substring(0,h);v=o(E);const k=v&&i[v]?o(g):void 0;k&&k!==v&&(v=k,b=!1)}else v=o(g);if(!v){if(!b){u=p+(u.length>0?" "+u:u);continue}if(v=o(g),!v){u=p+(u.length>0?" "+u:u);continue}b=!1}const w=y.length===0?"":y.length===1?y[0]:s(y).join(":"),x=m?w+Qs:w,S=x+v;if(a.indexOf(S)>-1)continue;a.push(S);const R=r(v,b);for(let E=0;E<R.length;++E){const k=R[E];a.push(x+k)}u=p+(u.length>0?" "+u:u)}return u},uy=(...e)=>{let t=0,n,o,r="";for(;t<e.length;)(n=e[t++])&&(o=mu(n))&&(r&&(r+=" "),r+=o);return r},mu=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=mu(e[o]))&&(n&&(n+=" "),n+=t);return n},dy=(e,...t)=>{let n,o,r,s;const i=l=>{const u=t.reduce((d,p)=>p(d),e());return n=iy(u),o=n.cache.get,r=n.cache.set,s=a,a(l)},a=l=>{const u=o(l);if(u)return u;const d=ly(l,n);return r(l,d),d};return s=i,(...l)=>s(uy(...l))},fy=[],nt=e=>{const t=n=>n[e]||fy;return t.isThemeGetter=!0,t},yu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,py=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,hy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gy=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,my=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,yy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,by=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dn=e=>py.test(e),Ie=e=>!!e&&!Number.isNaN(Number(e)),$t=e=>!!e&&Number.isInteger(Number(e)),Is=e=>e.endsWith("%")&&Ie(e.slice(0,-1)),Kt=e=>hy.test(e),vu=()=>!0,vy=e=>gy.test(e)&&!my.test(e),Vi=()=>!1,xy=e=>yy.test(e),wy=e=>by.test(e),Sy=e=>!me(e)&&!ye(e),Ry=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),ky=e=>Sn(e,Su,Vi),me=e=>yu.test(e),In=e=>Sn(e,Ru,vy),mc=e=>Sn(e,Ay,Ie),Ey=e=>Sn(e,Eu,vu),Cy=e=>Sn(e,ku,Vi),yc=e=>Sn(e,xu,Vi),Py=e=>Sn(e,wu,wy),Qo=e=>Sn(e,Cu,xy),ye=e=>bu.test(e),ko=e=>Vn(e,Ru),My=e=>Vn(e,ku),bc=e=>Vn(e,xu),Ty=e=>Vn(e,Su),Iy=e=>Vn(e,wu),Jo=e=>Vn(e,Cu,!0),Oy=e=>Vn(e,Eu,!0),Sn=(e,t,n)=>{const o=yu.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},Vn=(e,t,n=!1)=>{const o=bu.exec(e);return o?o[1]?t(o[1]):n:!1},xu=e=>e==="position"||e==="percentage",wu=e=>e==="image"||e==="url",Su=e=>e==="length"||e==="size"||e==="bg-size",Ru=e=>e==="length",Ay=e=>e==="number",ku=e=>e==="family-name",Eu=e=>e==="number"||e==="weight",Cu=e=>e==="shadow",Dy=()=>{const e=nt("color"),t=nt("font"),n=nt("text"),o=nt("font-weight"),r=nt("tracking"),s=nt("leading"),i=nt("breakpoint"),a=nt("container"),l=nt("spacing"),u=nt("radius"),d=nt("shadow"),p=nt("inset-shadow"),f=nt("text-shadow"),y=nt("drop-shadow"),m=nt("blur"),g=nt("perspective"),h=nt("aspect"),b=nt("ease"),v=nt("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...x(),ye,me],R=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],k=()=>[ye,me,l],M=()=>[dn,"full","auto",...k()],C=()=>[$t,"none","subgrid",ye,me],O=()=>["auto",{span:["full",$t,ye,me]},$t,ye,me],I=()=>[$t,"auto",ye,me],D=()=>["auto","min","max","fr",ye,me],N=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...k()],L=()=>[dn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],A=()=>[dn,"screen","full","dvw","lvw","svw","min","max","fit",...k()],F=()=>[dn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],T=()=>[e,ye,me],_=()=>[...x(),bc,yc,{position:[ye,me]}],j=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",Ty,ky,{size:[ye,me]}],U=()=>[Is,ko,In],Y=()=>["","none","full",u,ye,me],V=()=>["",Ie,ko,In],Q=()=>["solid","dashed","dotted","double"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[Ie,Is,bc,yc],ue=()=>["","none",m,ye,me],ne=()=>["none",Ie,ye,me],te=()=>["none",Ie,ye,me],J=()=>[Ie,ye,me],ee=()=>[dn,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Kt],breakpoint:[Kt],color:[vu],container:[Kt],"drop-shadow":[Kt],ease:["in","out","in-out"],font:[Sy],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Kt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Kt],shadow:[Kt],spacing:["px",Ie],text:[Kt],"text-shadow":[Kt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",dn,me,ye,h]}],container:["container"],"container-type":[{"@container":["","normal","size",ye,me]}],"container-named":[Ry],columns:[{columns:[Ie,me,ye,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[$t,"auto",ye,me]}],basis:[{basis:[dn,"full","auto",a,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ie,dn,"auto","initial","none",me]}],grow:[{grow:["",Ie,ye,me]}],shrink:[{shrink:["",Ie,ye,me]}],order:[{order:[$t,"first","last","none",ye,me]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...N(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...N()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":N()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],"inline-size":[{inline:["auto",...A()]}],"min-inline-size":[{"min-inline":["auto",...A()]}],"max-inline-size":[{"max-inline":["none",...A()]}],"block-size":[{block:["auto",...F()]}],"min-block-size":[{"min-block":["auto",...F()]}],"max-block-size":[{"max-block":["none",...F()]}],w:[{w:[a,"screen",...L()]}],"min-w":[{"min-w":[a,"screen","none",...L()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",n,ko,In]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Oy,Ey]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Is,me]}],"font-family":[{font:[My,Cy,t]}],"font-features":[{"font-features":[me]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,ye,me]}],"line-clamp":[{"line-clamp":[Ie,"none",ye,mc]}],leading:[{leading:[s,...k()]}],"list-image":[{"list-image":["none",ye,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ie,"from-font","auto",ye,In]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[Ie,"auto",ye,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"tab-size":[{tab:[$t,ye,me]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:j()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$t,ye,me],radial:["",ye,me],conic:[$t,ye,me]},Iy,Py]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-bs":[{"border-bs":V()}],"border-w-be":[{"border-be":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Q(),"hidden","none"]}],"divide-style":[{divide:[...Q(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...Q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ie,ye,me]}],"outline-w":[{outline:["",Ie,ko,In]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",d,Jo,Qo]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",p,Jo,Qo]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[Ie,In]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",f,Jo,Qo]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[Ie,ye,me]}],"mix-blend":[{"mix-blend":[...H(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":H()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ie]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[ye,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[Ie]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:j()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,me]}],filter:[{filter:["","none",ye,me]}],blur:[{blur:ue()}],brightness:[{brightness:[Ie,ye,me]}],contrast:[{contrast:[Ie,ye,me]}],"drop-shadow":[{"drop-shadow":["","none",y,Jo,Qo]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",Ie,ye,me]}],"hue-rotate":[{"hue-rotate":[Ie,ye,me]}],invert:[{invert:["",Ie,ye,me]}],saturate:[{saturate:[Ie,ye,me]}],sepia:[{sepia:["",Ie,ye,me]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,me]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[Ie,ye,me]}],"backdrop-contrast":[{"backdrop-contrast":[Ie,ye,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ie,ye,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ie,ye,me]}],"backdrop-invert":[{"backdrop-invert":["",Ie,ye,me]}],"backdrop-opacity":[{"backdrop-opacity":[Ie,ye,me]}],"backdrop-saturate":[{"backdrop-saturate":[Ie,ye,me]}],"backdrop-sepia":[{"backdrop-sepia":["",Ie,ye,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ie,"initial",ye,me]}],ease:[{ease:["linear","initial",b,ye,me]}],delay:[{delay:[Ie,ye,me]}],animate:[{animate:["none",v,ye,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,ye,me]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:te()}],"scale-x":[{"scale-x":te()}],"scale-y":[{"scale-y":te()}],"scale-z":[{"scale-z":te()}],"scale-3d":["scale-3d"],skew:[{skew:J()}],"skew-x":[{"skew-x":J()}],"skew-y":[{"skew-y":J()}],transform:[{transform:[ye,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],zoom:[{zoom:[$t,ye,me]}],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ye,me]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[Ie,ko,In,mc]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Sk=dy(Dy),Pu=c.createContext(void 0);function qr(e){const t=c.useContext(Pu);if(t===void 0&&!e)throw new Error(Ne(33));return t}const $i=c.createContext(void 0);function cn(e){const t=c.useContext($i);if(t===void 0&&!e)throw new Error(Ne(36));return t}let Nr=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const Ny={"data-starting-style":""},Ly={"data-ending-style":""},Gt={transitionStatus(e){return e==="starting"?Ny:e==="ending"?Ly:null}};(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Nr.startingStyle]="startingStyle",e[e.endingStyle=Nr.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({});const _y={"data-popup-open":""},Fy={"data-popup-open":"","data-pressed":""},zy={"data-open":""},Vy={"data-closed":""},$y={"data-anchor-hidden":""},Hi={open(e){return e?_y:null}},Lr={open(e){return e?Fy:null}},Xr={open(e){return e?zy:Vy},anchorHidden(e){return e?$y:null}},ji={...Xr,...Gt},Mu=c.createContext(void 0);function Kr(e=!0){const t=c.useContext(Mu);if(t===void 0&&!e)throw new Error(Ne(25));return t}const Rt="none",Rn="trigger-press",ot="trigger-hover",Jn="trigger-focus",Zr="outside-press",An="item-press",Hy="close-press",Nn="focus-out",Qr="escape-key",Js="list-navigation",Bi="cancel-open",To="sibling-open",Tu="disabled",vc="missing",xc="initial",Wi="imperative-action",jy="window-resize";function Lt({controlled:e,default:t,name:n,state:o="value"}){const{current:r}=c.useRef(e!==void 0),[s,i]=c.useState(t),a=r?e:s,l=c.useCallback(u=>{r||i(u)},[]);return[a,l]}const Iu=c.createContext(void 0);function By(){const e=c.useContext(Iu);if(e===void 0)throw new Error(Ne(30));return e}function Wy(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}const{userAgent:Uy,platform:Gy,maxTouchPoints:Yy}=Wy(),Jr=Uy.toLowerCase(),_o=Gy.toLowerCase(),es=/^i(os$|p)/.test(_o)||_o==="macintel"&&Yy>1,wc="android",ei=_o===wc||Jr.includes(wc),Ui=!es&&_o.startsWith("mac");_o.startsWith("win");const qy=Ui||es;var Jl;const Yt=typeof CSS<"u"&&!!((Jl=CSS.supports)!=null&&Jl.call(CSS,"-webkit-backdrop-filter:none"));!Yt&&Jr.includes("firefox");!Yt&&Jr.includes("chrom");const Xy=qy,Gi=/jsdom|happydom/.test(Jr);function Ky(e){const{closeOnClick:t,highlighted:n,id:o,nodeId:r,store:s,typingRef:i,itemRef:a,itemMetadata:l}=e,{events:u}=s.useState("floatingTreeRoot"),d=s.useState("open"),p=Kr(!0),f=p!==void 0;return c.useMemo(()=>({id:o,role:"menuitem",tabIndex:d&&n?0:-1,onKeyDown(y){y.key===" "&&(i!=null&&i.current)&&y.preventDefault()},onMouseMove(y){r&&u.emit("itemhover",{nodeId:r,target:y.currentTarget})},onClick(y){t&&u.emit("close",{domEvent:y,reason:An})},onMouseUp(y){if(p){const m=p.initialCursorPointRef.current;if(p.initialCursorPointRef.current=null,f&&m&&Math.abs(y.clientX-m.x)<=1&&Math.abs(y.clientY-m.y)<=1||f&&!Ui&&y.button===2)return}a.current&&s.context.allowMouseUpTriggerRef.current&&(!f||y.button===2)&&l.type==="regular-item"&&Qn(a.current,y,{detail:1})}}),[t,n,o,u,r,d,s,i,a,p,f,l])}const Yi={type:"regular-item"};function qi(e){const{closeOnClick:t,disabled:n,highlighted:o,id:r,store:s,typingRef:i=s.context.typingRef,nativeButton:a,itemMetadata:l,nodeId:u}=e,d=c.useRef(null),{getButtonProps:p,buttonRef:f}=Tt({disabled:n,focusableWhenDisabled:!0,native:a,composite:!0}),y=Ky({closeOnClick:t,highlighted:o,id:r,nodeId:u,store:s,typingRef:i,itemRef:d,itemMetadata:l}),m=c.useCallback(h=>St(y,{onMouseEnter(){l.type==="submenu-trigger"&&l.setActive()}},h,p),[y,p,l]),g=Dt(d,f);return c.useMemo(()=>({getItemProps:m,itemRef:g}),[m,g])}const Ou=c.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function Zy(){return c.useContext(Ou)}function yo(e={}){const{guess:t,label:n,metadata:o,textRef:r,index:s}=e,{register:i,unregister:a,subscribeMapChange:l,nextIndexRef:u}=Zy(),d=c.useRef(-1),[p,f]=c.useState(s==null&&t?()=>{if(d.current===-1){const h=u.current;u.current+=1,d.current=h}return d.current}:-1),y=s??p,m=c.useRef(null),g=c.useCallback(h=>{const b=m.current;b&&a(b),m.current=h,h&&i(h,{metadata:o??null,index:s??null,label:n,textRef:r})},[s,i,a,o,n,r]);return re(()=>{if(s==null)return l(h=>{var v;const b=m.current?(v=h.get(m.current))==null?void 0:v.index:null;b!=null&&f(b)})},[s,l]),{ref:g,index:y}}let Sc=0;function Qy(e,t="mui"){const[n,o]=c.useState(e),r=e||n;return c.useEffect(()=>{n==null&&(Sc+=1,o(`${t}-${Sc}`))},[n,t]),r}const Rc=Ni.useId;function bn(e,t){if(Rc!==void 0){const n=Rc();return e??(t?`${t}-${n}`:n)}return Qy(e,t)}function rt(e){return bn(e,"base-ui")}let kc=(function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.highlighted="data-highlighted",e})({});const ts={checked(e){return e?{[kc.checked]:""}:{[kc.unchecked]:""}},...Gt};function Re(e,t,n,o){let r=!1,s=!1;const i=o??We;return{reason:e,event:t??new Event("base-ui"),cancel(){r=!0},allowPropagation(){s=!0},get isCanceled(){return r},get isPropagationAllowed(){return s},trigger:n,...i}}const Rk=c.forwardRef(function(t,n){const{render:o,className:r,id:s,label:i,nativeButton:a=!1,disabled:l=!1,closeOnClick:u=!1,checked:d,defaultChecked:p,onCheckedChange:f,style:y,...m}=t,g=yo({guess:!0,label:i}),h=qr(!0),b=rt(s),{store:v}=cn(),w=v.useState("disabled"),x=l||w,S=v.useState("isActive",g.index),R=v.useState("itemProps"),[E,k]=Lt({controlled:d,default:p??!1,name:"MenuCheckboxItem",state:"checked"}),{getItemProps:M,itemRef:C}=qi({closeOnClick:u,disabled:x,highlighted:S,id:b,store:v,nativeButton:a,nodeId:h==null?void 0:h.context.nodeId,itemMetadata:Yi}),O=c.useMemo(()=>({disabled:x,highlighted:S,checked:E}),[x,S,E]);function I(N){const P=Re(An,N.nativeEvent,void 0,{preventUnmountOnClose:Ke});f==null||f(!E,P),!P.isCanceled&&k(z=>!z)}const D=ke("div",t,{state:O,stateAttributesMapping:ts,props:[R,{role:"menuitemcheckbox","aria-checked":E,onClick:I},m,M],ref:[C,n,g.ref]});return K.jsx(Iu.Provider,{value:O,children:D})});function Xi(e){c.useEffect(e,Nt)}const er=null;class Jy{constructor(){De(this,"callbacks",[]);De(this,"callbacksCount",0);De(this,"nextId",1);De(this,"startId",1);De(this,"isScheduled",!1);De(this,"tick",t=>{var r;this.isScheduled=!1;const n=this.callbacks,o=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,o>0)for(let s=0;s<n.length;s+=1)(r=n[s])==null||r.call(n,t)})}request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,(!this.isScheduled||!1)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}let tr=new Jy;class vt{constructor(){De(this,"currentId",er);De(this,"cancel",()=>{this.currentId!==er&&(tr.cancel(this.currentId),this.currentId=er)});De(this,"disposeEffect",()=>this.cancel)}static create(){return new vt}static request(t){return tr.request(t)}static cancel(t){return tr.cancel(t)}request(t){this.cancel(),this.currentId=tr.request(()=>{this.currentId=er,t()})}}function io(){const e=at(vt.create).current;return Xi(e.disposeEffect),e}function ln(e,t=!1,n=!1){const[o,r]=c.useState(e&&t?"idle":void 0),[s,i]=c.useState(e);return e&&!s&&(i(!0),r("starting")),!e&&s&&o!=="ending"&&!n&&r("ending"),!e&&!s&&o==="ending"&&r(void 0),re(()=>{if(!e&&s&&o!=="ending"&&n){const a=vt.request(()=>{r("ending")});return()=>{vt.cancel(a)}}},[e,s,o,n]),re(()=>{if(!e||t)return;const a=vt.request(()=>{r(void 0)});return()=>{vt.cancel(a)}},[t,e]),re(()=>{if(!e||!t)return;e&&s&&o!=="idle"&&r("starting");const a=vt.request(()=>{r("idle")});return()=>{vt.cancel(a)}},[t,e,s,o]),{mounted:s,setMounted:i,transitionStatus:o}}function Zt(e){return e==null?e:"current"in e?e.current:e}function Ki(e,t=!1){const n=io();return le((o,r=null)=>{n.cancel();const s=Zt(e);if(s==null)return;const i=s,a=()=>{At.flushSync(o)};if(typeof i.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){o();return}function l(){Promise.all(i.getAnimations().map(u=>u.finished)).then(()=>{r!=null&&r.aborted||a()},()=>{if(r!=null&&r.aborted)return;if(i.getAnimations().some(d=>d.pending||d.playState!=="finished")){l();return}a()})}if(t){const u="data-starting-style";if(!i.hasAttribute(u)){n.request(l);return}const d=new MutationObserver(()=>{i.hasAttribute(u)||(d.disconnect(),l())});d.observe(i,{attributes:!0,attributeFilter:[u]}),r==null||r.addEventListener("abort",()=>d.disconnect(),{once:!0});return}n.request(l)})}function kt(e){const{enabled:t=!0,open:n,ref:o,onComplete:r}=e,s=le(r),i=Ki(o,n);c.useEffect(()=>{if(!t)return;const a=new AbortController;return i(s,a.signal),()=>{a.abort()}},[t,n,s,i])}const kk=c.forwardRef(function(t,n){const{render:o,className:r,style:s,keepMounted:i=!1,...a}=t,l=By(),u=c.useRef(null),{transitionStatus:d,mounted:p,setMounted:f}=ln(l.checked);kt({open:l.checked,ref:u,onComplete(){l.checked||f(!1)}});const y={checked:l.checked,disabled:l.disabled,highlighted:l.highlighted,transitionStatus:d};return ke("span",t,{state:y,ref:[n,u],stateAttributesMapping:ts,props:{"aria-hidden":!0,...a},enabled:i||p})}),Zi=c.createContext(void 0);function e0(){const e=c.useContext(Zi);if(e===void 0)throw new Error(Ne(31));return e}const Ek=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,[a,l]=c.useState(void 0),u=ke("div",t,{ref:n,props:{role:"group","aria-labelledby":a,...i}});return K.jsx(Zi.Provider,{value:l,children:u})}),Ck=c.forwardRef(function(t,n){const{render:o,className:r,style:s,id:i,...a}=t,l=rt(i),u=e0();return re(()=>(u(l),()=>{u(d=>d===l?void 0:d)}),[u,l]),ke("div",t,{ref:n,props:{id:l,role:"presentation",...a}})}),Pk=c.forwardRef(function(t,n){const{render:o,className:r,id:s,label:i,nativeButton:a=!1,disabled:l=!1,closeOnClick:u=!0,style:d,...p}=t,f=yo({guess:!0,label:i}),y=qr(!0),m=rt(s),{store:g}=cn(),h=g.useState("disabled"),b=l||h,v=g.useState("isActive",f.index),w=g.useState("itemProps"),{getItemProps:x,itemRef:S}=qi({closeOnClick:u,disabled:b,highlighted:v,id:m,store:g,nativeButton:a,nodeId:y==null?void 0:y.context.nodeId,itemMetadata:Yi});return ke("div",t,{state:{disabled:b,highlighted:v},props:[w,p,x],ref:[S,n,f.ref]})}),Eo=0;class _t{constructor(){De(this,"currentId",Eo);De(this,"clear",()=>{this.currentId!==Eo&&(clearTimeout(this.currentId),this.currentId=Eo)});De(this,"disposeEffect",()=>this.clear)}static create(){return new _t}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Eo,n()},t)}isStarted(){return this.currentId!==Eo}}function Ge(){const e=at(_t.create).current;return Xi(e.disposeEffect),e}function It(e){e.preventDefault(),e.stopPropagation()}function t0(e){return"nativeEvent"in e}function Qi(e){return e.pointerType===""&&e.isTrusted?!0:ei&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ji(e){return Gi?!1:!ei&&e.width===0&&e.height===0||ei&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function mn(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function n0(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const ti="data-base-ui-focusable",Au="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",ns="ArrowLeft",os="ArrowRight",Du="ArrowUp",ea="ArrowDown";function dt(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}function ve(e,t){var o;if(!e||!t)return!1;const n=(o=t.getRootNode)==null?void 0:o.call(t);if(e.contains(t))return!0;if(n&&so(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function et(e){return"composedPath"in e?e.composedPath()[0]:e.target}function _r(e,t){if(!Oe(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute("data-trigger-disabled");for(const[,o]of t.entries())if(ve(o,n))return!o.hasAttribute("data-trigger-disabled");return!1}function Os(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function o0(e){return e.matches("html,body")}function rs(e){return Fe(e)&&e.matches(Au)}function r0(e){return(e==null?void 0:e.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Au}`))!=null}function ni(e){return e?e.getAttribute("role")==="combobox"&&rs(e):!1}function s0(e){if(!e||Gi)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Fr(e){return e?e.hasAttribute(ti)?e:e.querySelector(`[${ti}]`)||e:null}function i0(e,t){return t!=null&&!mn(t)?0:typeof e=="function"?e():e}function vn(e,t,n){const o=i0(e,n);return typeof o=="number"?o:o==null?void 0:o[t]}function Ec(e){return typeof e=="function"?e():e}function Nu(e,t){return t||e==="click"||e==="mousedown"}function a0(e){return(e==null?void 0:e.includes("mouse"))&&e!=="mousedown"}const Lu=c.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new _t,currentIdRef:{current:null},currentContextRef:{current:null}});function c0(e,t){e.current=t.current}function l0(e){const{children:t,delay:n,timeoutMs:o=0}=e,r=c.useRef(n),s=c.useRef(n),i=c.useRef(null),a=c.useRef(null),l=Ge();return re(()=>{if(s.current=n,!i.current){r.current=n;return}r.current={open:vn(r.current,"open"),close:vn(n,"close")}},[n,i,r,s]),K.jsx(Lu.Provider,{value:c.useMemo(()=>({hasProvider:!0,delayRef:r,initialDelayRef:s,currentIdRef:i,timeoutMs:o,currentContextRef:a,timeout:l}),[o,l]),children:t})}function u0(e,t={open:!1}){const{open:n}=t,o="rootStore"in e?e.rootStore:e,r=o.useState("floatingId"),s=c.useContext(Lu),{currentIdRef:i,delayRef:a,timeoutMs:l,initialDelayRef:u,currentContextRef:d,hasProvider:p,timeout:f}=s,[y,m]=c.useState(!1),g=c.useRef(n);return re(()=>{g.current=n},[n]),re(()=>{function h(){var b;(b=d.current)==null||b.setIsInstantPhase(!1),i.current=null,d.current=null,a.current=u.current,f.clear()}if(i.current&&!n&&i.current===r){if(m(!1),l){const b=r;return f.start(l,()=>{o.select("open")||i.current&&i.current!==b||h()}),()=>{(g.current||i.current!==b)&&f.clear()}}h()}},[n,r,i,a,l,u,d,f,o]),re(()=>{if(!n)return;const h=d.current,b=i.current;f.clear(),d.current={onOpenChange:o.setOpen,setIsInstantPhase:m},i.current=r,a.current={open:0,close:vn(u.current,"close")},b!==null&&b!==r?(m(!0),h==null||h.setIsInstantPhase(!0),h==null||h.onOpenChange(!1,Re(Rt))):(m(!1),h==null||h.setIsInstantPhase(!1))},[n,r,o,i,a,u,d,f]),re(()=>()=>{if(i.current===r){if(d.current=null,!g.current)return;i.current=null,c0(a,u),f.clear()}},[d,i,a,r,u,f]),c.useMemo(()=>({hasProvider:p,delayRef:a,isInstantPhase:y}),[p,a,y])}function Me(e,t,n,o){return e.addEventListener(t,n,o),()=>{e.removeEventListener(t,n,o)}}function Ut(...e){return()=>{for(let t=0;t<e.length;t+=1){const n=e[t];n&&n()}}}function Ze(e){const t=at(d0,e).current;return t.next=e,re(t.effect),t}function d0(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const _u={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},Bo={..._u,position:"fixed",top:0,left:0},ta={..._u,position:"absolute"},ao=c.forwardRef(function(t,n){const[o,r]=c.useState();re(()=>{Xy&&Yt&&r("button")},[]);const s={tabIndex:0,role:o};return K.jsx("span",{...t,ref:n,style:Bo,"aria-hidden":o?void 0:!0,...s,"data-base-ui-focus-guard":""})}),co=Math.min,tn=Math.max,lo=Math.round,nr=Math.floor,nn=e=>({x:e,y:e}),f0={left:"right",right:"left",bottom:"top",top:"bottom"};function Fu(e,t,n){return tn(e,co(t,n))}function xn(e,t){return typeof e=="function"?e(t):e}function Mt(e){return e.split("-")[0]}function kn(e){return e.split("-")[1]}function na(e){return e==="x"?"y":"x"}function oa(e){return e==="y"?"height":"width"}function Pt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ra(e){return na(Pt(e))}function p0(e,t,n){n===void 0&&(n=!1);const o=kn(e),r=ra(e),s=oa(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=zr(i)),[i,zr(i)]}function h0(e){const t=zr(e);return[oi(e),t,oi(t)]}function oi(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Cc=["left","right"],Pc=["right","left"],g0=["top","bottom"],m0=["bottom","top"];function y0(e,t,n){switch(e){case"top":case"bottom":return n?t?Pc:Cc:t?Cc:Pc;case"left":case"right":return t?g0:m0;default:return[]}}function b0(e,t,n,o){const r=kn(e);let s=y0(Mt(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(oi)))),s}function zr(e){const t=Mt(e);return f0[t]+e.slice(t.length)}function v0(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function zu(e){return typeof e!="number"?v0(e):{top:e,right:e,bottom:e,left:e}}function Fo(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Ao(e,t){return t<0||t>=e.length}function Rr(e,t){return Jt(e.current,{disabledIndices:t})}function ri(e,t){return Jt(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Jt(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:o,amount:r=1}={}){let s=t;do s+=n?-r:r;while(s>=0&&s<=e.length-1&&Vr(e,s,o));return s}function Vr(e,t,n){if(typeof n=="function"?n(t):(n==null?void 0:n.includes(t))??!1)return!0;const r=e[t];return r?!ss(r)||r.matches(":disabled")?!0:!n&&(r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"):!1}function x0(e){return e.visibility==="hidden"||e.visibility==="collapse"}function ss(e,t=e?xt(e):null){return!e||!e.isConnected||!t||x0(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}const w0='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function S0(e){const t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;const n=e.getRootNode();return so(n)?n.host:null}function si(e){for(const t of Array.from(e.children))if(ut(t)==="summary")return t;return null}function R0(e,t){const n=si(t);return!!n&&(e===n||ve(n,e))}function Vu(e){const t=e?ut(e):"";return e!=null&&e.matches(w0)&&(t!=="summary"||e.parentElement!=null&&ut(e.parentElement)==="details"&&si(e.parentElement)===e)&&(t!=="details"||si(e)==null)&&(t!=="input"||e.type!=="hidden")}function $u(e){if(!Vu(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=S0(t)){const n=t!==e,o=ut(t)==="slot";if(t.hasAttribute("inert")||n&&ut(t)==="details"&&!t.open&&!R0(e,t)||t.hasAttribute("hidden")||!o&&!k0(t,n))return!1}return!0}function k0(e,t){const n=xt(e);return t?n.display!=="none":ss(e,n)}function Hu(e){const t=e.tabIndex;if(t<0){const n=ut(e);if(n==="details"||n==="audio"||n==="video"||Fe(e)&&e.isContentEditable)return 0}return t}function As(e){if(ut(e)!=="input")return null;const t=e;return t.type==="radio"&&t.name!==""?t:null}function E0(e,t){const n=As(e);if(!n)return!0;const o=t.find(r=>{const s=As(r);return(s==null?void 0:s.name)===n.name&&s.form===n.form&&s.checked});return o?o===n:t.find(r=>{const s=As(r);return(s==null?void 0:s.name)===n.name&&s.form===n.form})===n}function ju(e){if(Fe(e)&&ut(e)==="slot"){const t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Fe(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Bu(e,t){ju(e).forEach(n=>{Vu(n)&&t.push(n),Bu(n,t)})}function Wu(e,t,n){ju(e).forEach(o=>{Fe(o)&&o.matches(t)&&n.push(o),Wu(o,t,n)})}function sa(e){return $u(e)&&Hu(e)>=0}function Uu(e){const t=[];return Bu(e,t),t.filter($u)}function Wo(e){const t=Uu(e);return t.filter(n=>Hu(n)>=0&&E0(n,t))}function Gu(e,t){const n=Wo(e),o=n.length;if(o===0)return;const r=dt(Te(e)),s=n.indexOf(r),i=s===-1?t===1?0:o-1:s+t;return n[i]}function ia(e){return Gu(Te(e).body,1)||e}function Yu(e){return Gu(Te(e).body,-1)||e}function qu(e,t){if(!e)return null;const n=Wo(Te(e).body),o=n.length;if(o===0)return null;const r=n.indexOf(e);if(r===-1)return null;const s=(r+t+o)%o;return n[s]}function C0(e){return qu(e,1)}function P0(e){return qu(e,-1)}function eo(e,t){const n=t||e.currentTarget,o=e.relatedTarget;return!o||!ve(n,o)}function M0(e){Wo(e).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Mc(e){const t=[];Wu(e,"[data-tabindex]",t),t.forEach(n=>{const o=n.dataset.tabindex;delete n.dataset.tabindex,o?n.setAttribute("tabindex",o):n.removeAttribute("tabindex")})}function wn(e,t,n=!0){return e.filter(r=>r.parentId===t).flatMap(r=>{var s;return[...!n||(s=r.context)!=null&&s.open?[r]:[],...wn(e,r.id,n)]})}function Tc(e,t){var r;let n=[],o=(r=e.find(s=>s.id===t))==null?void 0:r.parentId;for(;o;){const s=e.find(i=>i.id===o);o=s==null?void 0:s.parentId,s&&(n=n.concat(s))}return n}function zo(e){return`data-base-ui-${e}`}let or=0;function kr(e,t={}){const{preventScroll:n=!1,sync:o=!1,shouldFocus:r}=t;cancelAnimationFrame(or);function s(){r&&!r()||e==null||e.focus({preventScroll:n})}if(o)return s(),Ke;const i=requestAnimationFrame(s);return or=i,()=>{or===i&&(cancelAnimationFrame(i),or=0)}}const Ds={inert:new WeakMap,"aria-hidden":new WeakMap},Ic="data-base-ui-inert",ii={inert:new WeakSet,"aria-hidden":new WeakSet};let Co=new WeakMap,Ns=0;function T0(e){return ii[e]}function Xu(e){return e?so(e)?e.host:Xu(e.parentNode):null}const Oc=(e,t)=>t.map(n=>{if(e.contains(n))return n;const o=Xu(n);return e.contains(o)?o:null}).filter(n=>n!=null),Ac=e=>{const t=new Set;return e.forEach(n=>{let o=n;for(;o&&!t.has(o);)t.add(o),o=o.parentNode}),t},Dc=(e,t,n)=>{const o=[],r=s=>{!s||n.has(s)||Array.from(s.children).forEach(i=>{ut(i)!=="script"&&(t.has(i)?r(i):o.push(i))})};return r(e),o};function I0(e,t,n,o,{mark:r=!0}){let s=null;o?s="inert":n&&(s="aria-hidden");let i=null,a=null;const l=Oc(t,e),u=r?Dc(t,Ac(l),new Set(l)):[],d=[],p=[];if(s){const f=Ds[s],y=T0(s);a=y,i=f;const m=Oc(t,Array.from(t.querySelectorAll("[aria-live]"))),g=l.concat(m);Dc(t,Ac(g),new Set(g)).forEach(b=>{const v=b.getAttribute(s),w=v!==null&&v!=="false",x=(f.get(b)||0)+1;f.set(b,x),d.push(b),x===1&&w&&y.add(b),w||b.setAttribute(s,s==="inert"?"":"true")})}return r&&u.forEach(f=>{const y=(Co.get(f)||0)+1;Co.set(f,y),p.push(f),y===1&&f.setAttribute(Ic,"")}),Ns+=1,()=>{i&&d.forEach(f=>{const m=(i.get(f)||0)-1;i.set(f,m),m||(!(a!=null&&a.has(f))&&s&&f.removeAttribute(s),a==null||a.delete(f))}),r&&p.forEach(f=>{const y=(Co.get(f)||0)-1;Co.set(f,y),y||f.removeAttribute(Ic)}),Ns-=1,Ns||(Ds.inert=new WeakMap,Ds["aria-hidden"]=new WeakMap,ii.inert=new WeakSet,ii["aria-hidden"]=new WeakSet,Co=new WeakMap)}}function Nc(e,t={}){const{ariaHidden:n=!1,inert:o=!1,mark:r=!0}=t,s=Te(e[0]).body;return I0(e,s,n,o,{mark:r})}const O0=500,A0=500,D0={style:{transition:"none"}},Ku="data-base-ui-click-trigger",Zu={fallbackAxisSide:"none"},Qu={fallbackAxisSide:"end"},N0={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Ju=c.createContext(null),ed=()=>c.useContext(Ju),L0=zo("portal");function td(e={}){const{ref:t,container:n,componentProps:o=We,elementProps:r}=e,s=bn(),i=ed(),a=i==null?void 0:i.portalNode,[l,u]=c.useState(null),[d,p]=c.useState(null),f=le(h=>{h!==null&&p(h)}),y=c.useRef(null);re(()=>{if(n===null){y.current&&(y.current=null,p(null),u(null));return}const h=(n&&(Oi(n)?n:n.current))??a??document.body;if(h==null){y.current&&(y.current=null,p(null),u(null));return}y.current!==h&&(y.current=h,p(null),u(h))},[n,a]);const m=ke("div",o,{ref:[t,f],props:[{id:s,[L0]:""},r]}),g=l&&m?At.createPortal(m,l):null;return{node:d,nodeId:c.isValidElement(m)?m.props.id:void 0,subtree:g}}const aa=c.forwardRef(function(t,n){const{render:o,className:r,style:s,children:i,container:a,...l}=t,{node:u,nodeId:d,subtree:p}=td({container:a,ref:n,componentProps:t,elementProps:l}),f=c.useRef(null),y=c.useRef(null),m=c.useRef(null),g=c.useRef(null),[h,b]=c.useState(null),v=c.useRef(!1),w=h==null?void 0:h.modal,x=h==null?void 0:h.open,S=!!h&&!h.modal&&h.open&&!!u;c.useEffect(()=>{if(!u||w)return;function E(k){u&&k.relatedTarget&&eo(k)&&(k.type==="focusin"?v.current&&(Mc(u),v.current=!1):(M0(u),v.current=!0))}return Ut(Me(u,"focusin",E,!0),Me(u,"focusout",E,!0))},[u,w]),re(()=>{!u||x!==!0||!v.current||(Mc(u),v.current=!1)},[x,u]);const R=c.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:y,beforeInsideRef:m,afterInsideRef:g,portalNode:u,setFocusManagerState:b}),[u]);return K.jsxs(c.Fragment,{children:[p,K.jsxs(Ju.Provider,{value:R,children:[S&&u&&K.jsx(ao,{"data-type":"outside",ref:f,onFocus:E=>{var k;if(eo(E,u))(k=m.current)==null||k.focus();else{const M=h?h.domReference:null,C=Yu(M);C==null||C.focus()}}}),S&&u&&K.jsx("span",{"aria-owns":d,style:N0}),u&&At.createPortal(i,u),S&&u&&K.jsx(ao,{"data-type":"outside",ref:y,onFocus:E=>{var k;if(eo(E,u))(k=g.current)==null||k.focus();else{const M=h?h.domReference:null,C=ia(M);C==null||C.focus(),h!=null&&h.closeOnFocusOut&&(h==null||h.onOpenChange(!1,Re(Nn,E.nativeEvent)))}}})]})]})});function nd(){const e=new Map;return{emit(t,n){var o;(o=e.get(t))==null||o.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var o;(o=e.get(t))==null||o.delete(n)}}}class ca{constructor(){De(this,"nodesRef",{current:[]});De(this,"events",nd())}addNode(t){this.nodesRef.current.push(t)}removeNode(t){const n=this.nodesRef.current.findIndex(o=>o===t);n!==-1&&this.nodesRef.current.splice(n,1)}}const od=c.createContext(null),rd=c.createContext(null),En=()=>{var e;return((e=c.useContext(od))==null?void 0:e.id)||null},Cn=e=>{const t=c.useContext(rd);return e??t};function sd(e){const t=bn(),n=Cn(e),o=En();return re(()=>{if(!t)return;const r={id:t,parentId:o};return n==null||n.addNode(r),()=>{n==null||n.removeNode(r)}},[n,t,o]),t}function _0(e){const{children:t,id:n}=e,o=En();return K.jsx(od.Provider,{value:c.useMemo(()=>({id:n,parentId:o}),[n,o]),children:t})}function F0(e){const{children:t,externalTree:n}=e,o=at(()=>n??new ca).current;return K.jsx(rd.Provider,{value:o,children:t})}function z0(e,t){const n=He(et(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const Lc=20;let pn=[];function la(){pn=pn.filter(e=>{var t;return(t=e.deref())==null?void 0:t.isConnected})}function _c(e){la(),e&&ut(e)!=="body"&&(pn.push(new WeakRef(e)),pn.length>Lc&&(pn=pn.slice(-Lc)))}function Fc(){var e;return la(),(e=pn[pn.length-1])==null?void 0:e.deref()}function V0(e){return e?sa(e)?e:Wo(e)[0]||e:null}function zc(e){var r;if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!((r=e.getAttribute("role"))!=null&&r.includes("dialog")))return;const n=Uu(e).filter(s=>{const i=s.getAttribute("data-tabindex")||"";return sa(s)||s.hasAttribute("data-tabindex")&&!i.startsWith("-")}),o=e.getAttribute("tabindex");n.length===0?o!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(o!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function ua(e){const{context:t,children:n,disabled:o=!1,initialFocus:r=!0,returnFocus:s=!0,restoreFocus:i=!1,modal:a=!0,closeOnFocusOut:l=!0,openInteractionType:u="",nextFocusableElement:d,previousFocusableElement:p,beforeContentFocusGuardRef:f,externalTree:y,getInsideElements:m}=e,g="rootStore"in t?t.rootStore:t,h=g.useState("open"),b=g.useState("domReferenceElement"),v=g.useState("floatingElement"),{events:w,dataRef:x}=g.context,S=le(()=>{var te;return(te=x.current.floatingContext)==null?void 0:te.nodeId}),R=r===!1,E=ni(b)&&R,k=Ze(r),M=Ze(s),C=Ze(u),O=Ze(h),I=Cn(y),D=ed(),N=c.useRef(!1),P=c.useRef(!1),z=c.useRef(!1),L=c.useRef(null),A=c.useRef(""),F=c.useRef(""),T=c.useRef(null),_=c.useRef(null),j=Dt(T,f,D==null?void 0:D.beforeInsideRef),$=Dt(_,D==null?void 0:D.afterInsideRef),U=Ge(),Y=Ge(),V=io(),Q=D!=null,H=Fr(v),G=le((te=H)=>te?Wo(te):[]),ue=le(()=>(m==null?void 0:m().filter(te=>te!=null))??[]);c.useEffect(()=>{if(o||!a)return;function te(ee){ee.key==="Tab"&&ve(H,dt(Te(H)))&&G().length===0&&!E&&It(ee)}const J=Te(H);return Me(J,"keydown",te)},[o,H,a,E,G]),c.useEffect(()=>{if(o||!h)return;const te=Te(H);function J(){z.current=!1}function ee(xe){const ae=et(xe),he=ue(),oe=ve(v,ae)||ve(b,ae)||ve(D==null?void 0:D.portalNode,ae)||he.some(ge=>ge===ae||ve(ge,ae));z.current=!oe,F.current=xe.pointerType||"keyboard",ae!=null&&ae.closest(`[${Ku}]`)&&(P.current=!0,Y.start(0,()=>{P.current=!1}))}function ie(){F.current="keyboard"}return Ut(Me(te,"pointerdown",ee,!0),Me(te,"pointerup",J,!0),Me(te,"pointercancel",J,!0),Me(te,"keydown",ie,!0),J)},[o,v,b,H,h,D,Y,ue]),c.useEffect(()=>{if(o||!l)return;const te=Te(H);function J(){P.current=!0,Y.start(0,()=>{P.current=!1})}function ee(he){const oe=et(he);sa(oe)&&(L.current=oe)}function ie(he){const oe=he.relatedTarget,ge=he.currentTarget,de=et(he);a&&oe==null&&de!=null&&ve(v,de)&&_c(de),queueMicrotask(()=>{const ce=S(),fe=g.context.triggerElements,B=ue(),q=(oe==null?void 0:oe.hasAttribute(zo("focus-guard")))&&[T.current,_.current,D==null?void 0:D.beforeInsideRef.current,D==null?void 0:D.afterInsideRef.current,D==null?void 0:D.beforeOutsideRef.current,D==null?void 0:D.afterOutsideRef.current,Zt(p),Zt(d)].includes(oe),se=!(ve(b,oe)||ve(v,oe)||ve(oe,v)||ve(D==null?void 0:D.portalNode,oe)||B.some(Z=>Z===oe||ve(Z,oe))||fe.hasMatchingElement(Z=>ve(Z,oe))||q||I&&(wn(I.nodesRef.current,ce).find(Z=>{var X,pe;return ve((X=Z.context)==null?void 0:X.elements.floating,oe)||ve((pe=Z.context)==null?void 0:pe.elements.domReference,oe)})||Tc(I.nodesRef.current,ce).find(Z=>{var X,pe,be;return[(X=Z.context)==null?void 0:X.elements.floating,Fr((pe=Z.context)==null?void 0:pe.elements.floating)].includes(oe)||((be=Z.context)==null?void 0:be.elements.domReference)===oe})));if(ge===b&&H&&zc(H),i&&ge!==b&&!ss(de)&&dt(te)===te.body){if(Fe(H)&&(H.focus(),i==="popup")){V.request(()=>{H.focus()});return}const Z=G(),X=L.current,pe=(X&&Z.includes(X)?X:null)||Z[Z.length-1]||H;Fe(pe)&&pe.focus()}if(x.current.insideReactTree){x.current.insideReactTree=!1;return}(E||!a)&&oe&&se&&!P.current&&(E||oe!==Fc())&&(N.current=!0,g.setOpen(!1,Re(Nn,he)))})}function xe(){z.current||(x.current.insideReactTree=!0,U.start(0,()=>{x.current.insideReactTree=!1}))}const ae=Fe(b)?b:null;if(!(!v&&!ae))return Ut(ae&&Me(ae,"focusout",ie),ae&&Me(ae,"pointerdown",J),v&&Me(v,"focusin",ee),v&&Me(v,"focusout",ie),v&&D&&Me(v,"focusout",xe,!0))},[o,b,v,H,a,I,D,g,l,i,G,E,S,x,U,Y,V,d,p,ue]),c.useEffect(()=>{var ge,de,ce;if(o||!v||!h)return;const te=Array.from(((ge=D==null?void 0:D.portalNode)==null?void 0:ge.querySelectorAll(`[${zo("portal")}]`))||[]),ee=(ce=(de=(I?Tc(I.nodesRef.current,S()):[]).find(fe=>{var B;return ni(((B=fe.context)==null?void 0:B.elements.domReference)||null)}))==null?void 0:de.context)==null?void 0:ce.elements.domReference,xe=[...[v,...te,T.current,_.current,D==null?void 0:D.beforeOutsideRef.current,D==null?void 0:D.afterOutsideRef.current,...ue()],ee,Zt(p),Zt(d),E?b:null].filter(fe=>fe!=null),ae=Nc(xe,{ariaHidden:a||E,mark:!1}),he=[v,...te].filter(fe=>fe!=null),oe=Nc(he);return()=>{oe(),ae()}},[h,o,b,v,a,D,E,I,S,d,p,ue]),re(()=>{if(!h||o||!Fe(H))return;A.current="",F.current="";const te=Te(H),J=dt(te);queueMicrotask(()=>{const ee=k.current,ie=typeof ee=="function"?ee(C.current||""):ee;if(ie===void 0||ie===!1||ve(H,J))return;let ae=null;const he=()=>(ae==null&&(ae=G(H)),ae[0]||H);let oe;ie===!0||ie===null?oe=he():oe=Zt(ie),oe=oe||he();const ge=ve(H,dt(te));kr(oe,{preventScroll:oe===H,shouldFocus(){if(!O.current)return!1;if(ge)return!0;const de=dt(te);return!(de!==oe&&ve(H,de))}})})},[o,h,H,G,k,C,O]),re(()=>{if(o||!H)return;const te=Te(H),J=dt(te),ee=C.current==null;_c(J);function ie(ae){if(ae.open||(A.current=z0(ae.nativeEvent,F.current)),ae.reason===ot&&ae.nativeEvent.type==="mouseleave"&&(N.current=!0),ae.reason===Zr)if(ae.nested)N.current=!1;else if(Qi(ae.nativeEvent)||Ji(ae.nativeEvent))N.current=!1;else{let he=!1;Te(H).createElement("div").focus({get preventScroll(){return he=!0,!1}}),he?N.current=!1:N.current=!0}}w.on("openchange",ie);function xe(ae){const he=M.current;let oe=typeof he=="function"?he(ae):he;if(oe===void 0||oe===!1)return null;oe===null&&(oe=!0);const ge=b!=null&&b.isConnected?b:null,de=J!=null&&J.isConnected&&ut(J)!=="body"?J:null;let ce=ee?de||ge:ge||de;return ce||(ce=Fc()||null),typeof oe=="boolean"?ce:Zt(oe)||ce||null}return()=>{w.off("openchange",ie);const ae=dt(te),he=ue(),oe=ve(v,ae)||he.some(fe=>fe===ae||ve(fe,ae))||I&&wn(I.nodesRef.current,S(),!1).some(fe=>{var B;return ve((B=fe.context)==null?void 0:B.elements.floating,ae)}),ge=M.current,de=A.current,ce=xe(de);queueMicrotask(()=>{const fe=V0(ce),B=typeof ge!="boolean";if(ge&&!N.current&&Fe(fe)&&(!(!B&&fe!==ae&&ae!==te.body)||oe)){const q={preventScroll:!0};de==="keyboard"&&(q.focusVisible=!0),fe.focus(q)}N.current=!1})}},[o,v,H,M,C,w,I,b,S,ue]),re(()=>{if(!Yt||h||!v)return;const te=dt(Te(v));!Fe(te)||!rs(te)||ve(v,te)&&te.blur()},[h,v]),re(()=>{if(!(o||!D))return D.setFocusManagerState({modal:a,closeOnFocusOut:l,open:h,onOpenChange:g.setOpen,domReference:b}),()=>{D.setFocusManagerState(null)}},[o,D,a,h,g,l,b]),re(()=>{if(!(o||!H))return zc(H),()=>{queueMicrotask(la)}},[o,H]);const ne=!o&&(a?!E:!0)&&(Q||a);return K.jsxs(c.Fragment,{children:[ne&&K.jsx(ao,{"data-type":"inside",ref:j,onFocus:te=>{var J;if(a){const ee=G();kr(ee[ee.length-1])}else if(D!=null&&D.portalNode)if(N.current=!1,eo(te,D.portalNode)){const ee=ia(b);ee==null||ee.focus()}else(J=Zt(p??D.beforeOutsideRef))==null||J.focus()}}),n,ne&&K.jsx(ao,{"data-type":"inside",ref:$,onFocus:te=>{var J;if(a)kr(G()[0]);else if(D!=null&&D.portalNode)if(l&&(N.current=!0),eo(te,D.portalNode)){const ee=Yu(b);ee==null||ee.focus()}else(J=Zt(d??D.afterOutsideRef))==null||J.focus()}})]})}function da(e,t={}){const{enabled:n=!0,event:o="click",toggle:r=!0,ignoreMouse:s=!1,stickIfOpen:i=!0,touchOpenDelay:a=0,reason:l=Rn}=t,u="rootStore"in e?e.rootStore:e,d=u.context.dataRef,p=c.useRef(void 0),f=io(),y=Ge(),m=c.useMemo(()=>{function g(b,v,w,x){const S=Re(l,v,w);b&&x==="touch"&&a>0?y.start(a,()=>{u.setOpen(!0,S)}):u.setOpen(b,S)}function h(b,v,w){const x=d.current.openEvent,S=u.select("domReferenceElement")!==v;return b&&S||!b||!r?!0:x&&i?!w(x.type):!1}return{onPointerDown(b){p.current=mn(b.pointerType,!0)&&Ji(b.nativeEvent)?"virtual":b.pointerType},onMouseDown(b){const v=p.current,w=b.nativeEvent,x=u.select("open");if(b.button!==0||o==="click"||mn(v,!0)&&s)return;const S=h(x,b.currentTarget,k=>k==="click"||k==="mousedown"),R=et(w);if(rs(R)){g(S,w,R,v);return}const E=b.currentTarget;f.request(()=>{g(S,w,E,v)})},onClick(b){if(o==="mousedown-only")return;const v=p.current;if(o==="mousedown"&&v){p.current=void 0;return}if(mn(v,!0)&&s)return;const w=u.select("open"),x=h(w,b.currentTarget,S=>S==="click"||S==="mousedown"||S==="keydown"||S==="keyup");g(x,b.nativeEvent,b.currentTarget,v)},onKeyDown(){p.current=void 0}}},[d,o,s,l,u,i,r,f,y,a]);return c.useMemo(()=>n?{reference:m}:We,[n,m])}function $0(e,t){let n=null,o=null,r=!1;return{contextElement:e||void 0,getBoundingClientRect(){var y;const s=(e==null?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},i=t.axis==="x"||t.axis==="both",a=t.axis==="y"||t.axis==="both",l=["mouseenter","mousemove"].includes(((y=t.dataRef.current.openEvent)==null?void 0:y.type)||"")&&t.pointerType!=="touch";let u=s.width,d=s.height,p=s.x,f=s.y;return n==null&&t.x&&i&&(n=s.x-t.x),o==null&&t.y&&a&&(o=s.y-t.y),p-=n||0,f-=o||0,u=0,d=0,!r||l?(u=t.axis==="y"?s.width:0,d=t.axis==="x"?s.height:0,p=i&&t.x!=null?t.x:p,f=a&&t.y!=null?t.y:f):r&&!l&&(d=t.axis==="x"?s.height:d,u=t.axis==="y"?s.width:u),r=!0,{width:u,height:d,x:p,y:f,top:f,right:p+u,bottom:f+d,left:p}}}}function Vc(e){return e!=null&&e.clientX!=null}function H0(e,t={}){const{enabled:n=!0,axis:o="both"}=t,r="rootStore"in e?e.rootStore:e,s=r.useState("open"),i=r.useState("floatingElement"),a=r.useState("domReferenceElement"),l=r.context.dataRef,u=c.useRef(!1),d=c.useRef(null),[p,f]=c.useState(),[y,m]=c.useState([]),g=le(x=>{r.set("positionReference",x)}),h=le((x,S,R)=>{u.current||l.current.openEvent&&!Vc(l.current.openEvent)||r.set("positionReference",$0(R??a,{x,y:S,axis:o,dataRef:l,pointerType:p}))}),b=le(x=>{s?d.current||(h(x.clientX,x.clientY,x.currentTarget),m([])):h(x.clientX,x.clientY,x.currentTarget)}),v=mn(p)?i:s;c.useEffect(()=>{if(!n){g(a);return}if(!v)return;function x(){var E;(E=d.current)==null||E.call(d),d.current=null}const S=He(i);function R(E){const k=et(E);ve(i,k)?x():h(E.clientX,E.clientY)}return!l.current.openEvent||Vc(l.current.openEvent)?d.current=Me(S,"mousemove",R):g(a),x},[v,n,i,l,a,r,h,g,y]),c.useEffect(()=>()=>{r.set("positionReference",null)},[r]),c.useEffect(()=>{n&&!i&&(u.current=!1)},[n,i]),c.useEffect(()=>{!n&&s&&(u.current=!0)},[n,s]);const w=c.useMemo(()=>{function x(S){f(S.pointerType)}return{onPointerDown:x,onPointerEnter:x,onMouseMove:b,onMouseEnter:b}},[b]);return c.useMemo(()=>n?{reference:w,trigger:w}:{},[n,w])}function j0(){return!1}function B0(e){return{escapeKey:typeof e=="boolean"?e:(e==null?void 0:e.escapeKey)??!1,outsidePress:typeof e=="boolean"?e:(e==null?void 0:e.outsidePress)??!0}}function is(e,t={}){const{enabled:n=!0,escapeKey:o=!0,outsidePress:r=!0,outsidePressEvent:s="sloppy",referencePress:i=j0,bubbles:a,externalTree:l}=t,u="rootStore"in e?e.rootStore:e,d=u.useState("open"),p=u.useState("floatingElement"),{dataRef:f}=u.context,y=Cn(l),m=le(typeof r=="function"?r:()=>!1),g=typeof r=="function"?m:r,h=g!==!1,b=le(()=>s),{escapeKey:v,outsidePress:w}=B0(a),x=c.useRef(!1),S=c.useRef(!1),R=c.useRef(!1),E=c.useRef(!1),k=c.useRef(""),M=c.useRef(null),C=Ge(),O=Ge(),I=le(()=>{O.clear(),f.current.insideReactTree=!1}),D=le(j=>{var Y;const $=(Y=f.current.floatingContext)==null?void 0:Y.nodeId;return(y?wn(y.nodesRef.current,$):[]).some(V=>{var Q;return((Q=V.context)==null?void 0:Q.open)&&!V.context.dataRef.current[j]})}),N=le(j=>Os(j,u.select("floatingElement"))||Os(j,u.select("domReferenceElement"))),P=le(j=>{i()&&u.setOpen(!1,Re(Rn,j.nativeEvent))}),z=le(j=>{if(!d||!n||!o||j.key!=="Escape"||E.current||!v&&D("__escapeKeyBubbles"))return;const $=t0(j)?j.nativeEvent:j,U=Re(Qr,$);u.setOpen(!1,U),U.isCanceled||j.preventDefault(),!v&&!U.isPropagationAllowed&&j.stopPropagation()}),L=le(()=>{f.current.insideReactTree=!0,O.start(0,I)}),A=le(j=>{if(!d||!n||j.button!==0)return;const $=et(j.nativeEvent);ve(u.select("floatingElement"),$)&&(x.current||(x.current=!0,S.current=!1))}),F=le(j=>{!d||!n||(j.defaultPrevented||j.nativeEvent.defaultPrevented)&&x.current&&(S.current=!0)});c.useEffect(()=>{if(!d||!n)return I;f.current.__escapeKeyBubbles=v,f.current.__outsidePressBubbles=w;const j=new _t,$=new _t;function U(){j.clear(),E.current=!0}function Y(){j.start(Yt?5:0,()=>{E.current=!1})}function V(){R.current=!0,$.start(0,()=>{R.current=!1})}function Q(){x.current=!1,S.current=!1}function H(){const B=k.current,q=B==="pen"||!B?"mouse":B,se=b(),Z=typeof se=="function"?se():se;return typeof Z=="string"?Z:Z[q]}function G(B){const q=H();return q==="intentional"&&B.type!=="click"||q==="sloppy"&&B.type==="click"}function ue(B){var Z;const q=(Z=f.current.floatingContext)==null?void 0:Z.nodeId,se=y&&wn(y.nodesRef.current,q).some(X=>{var pe;return Os(B,(pe=X.context)==null?void 0:pe.elements.floating)});return N(B)||se}function ne(B){if(G(B)){B.type!=="click"&&!N(B)&&($.clear(),R.current=!1),I();return}if(f.current.insideReactTree){I();return}const q=et(B),se=`[${zo("inert")}]`,Z=Oe(q)?q.getRootNode():null,X=Array.from((so(Z)?Z:Te(u.select("floatingElement"))).querySelectorAll(se)),pe=u.context.triggerElements;if(q&&(pe.hasElement(q)||pe.hasMatchingElement(Le=>ve(Le,q))))return;let be=Oe(q)?q:null;for(;be&&!en(be);){const Le=on(be);if(en(Le)||!Oe(Le))break;be=Le}if(!(X.length&&Oe(q)&&!o0(q)&&!ve(q,u.select("floatingElement"))&&X.every(Le=>!ve(be,Le)))){if(Fe(q)&&!("touches"in B)){const Le=en(q),Ue=xt(q),qe=/auto|scroll/,st=Le||qe.test(Ue.overflowX),_e=Le||qe.test(Ue.overflowY),Je=st&&q.clientWidth>0&&q.scrollWidth>q.clientWidth,ct=_e&&q.clientHeight>0&&q.scrollHeight>q.clientHeight,Se=Ue.direction==="rtl",je=ct&&(Se?B.offsetX<=q.offsetWidth-q.clientWidth:B.offsetX>q.clientWidth),Ye=Je&&B.offsetY>q.clientHeight;if(je||Ye)return}if(!ue(B)){if(H()==="intentional"&&R.current){$.clear(),R.current=!1;return}typeof g=="function"&&!g(B)||D("__outsidePressBubbles")||(u.setOpen(!1,Re(Zr,B)),I())}}}function te(B){H()!=="sloppy"||B.pointerType==="touch"||!u.select("open")||!n||N(B)||ne(B)}function J(B){if(H()!=="sloppy"||!u.select("open")||!n||N(B))return;const q=B.touches[0];q&&(M.current={startTime:Date.now(),startX:q.clientX,startY:q.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},C.start(1e3,()=>{M.current&&(M.current.dismissOnTouchEnd=!1,M.current.dismissOnMouseDown=!1)}))}function ee(B,q){const se=et(B);if(!se)return;const Z=Me(se,B.type,()=>{q(B),Z()})}function ie(B){k.current="touch",ee(B,J)}function xe(B){C.clear(),B.type==="pointerdown"&&(k.current=B.pointerType),!(B.type==="mousedown"&&M.current&&!M.current.dismissOnMouseDown)&&ee(B,q=>{q.type==="pointerdown"?te(q):ne(q)})}function ae(B){if(!x.current)return;const q=S.current;if(Q(),H()==="intentional"){if(B.type==="pointercancel"){q&&V();return}if(!ue(B)){if(q){V();return}typeof g=="function"&&!g(B)||($.clear(),R.current=!0,I())}}}function he(B){if(H()!=="sloppy"||!M.current||N(B))return;const q=B.touches[0];if(!q)return;const se=Math.abs(q.clientX-M.current.startX),Z=Math.abs(q.clientY-M.current.startY),X=Math.sqrt(se*se+Z*Z);X>5&&(M.current.dismissOnTouchEnd=!0),X>10&&(ne(B),C.clear(),M.current=null)}function oe(B){ee(B,he)}function ge(B){H()!=="sloppy"||!M.current||N(B)||(M.current.dismissOnTouchEnd&&ne(B),C.clear(),M.current=null)}function de(B){ee(B,ge)}const ce=Te(p),fe=Ut(o&&Ut(Me(ce,"keydown",z),Me(ce,"compositionstart",U),Me(ce,"compositionend",Y)),h&&Ut(Me(ce,"click",xe,!0),Me(ce,"pointerdown",xe,!0),Me(ce,"pointerup",ae,!0),Me(ce,"pointercancel",ae,!0),Me(ce,"mousedown",xe,!0),Me(ce,"mouseup",ae,!0),Me(ce,"touchstart",ie,!0),Me(ce,"touchmove",oe,!0),Me(ce,"touchend",de,!0)));return()=>{fe(),j.clear(),$.clear(),Q(),R.current=!1,I()}},[f,p,o,h,g,d,n,v,w,z,I,b,D,N,y,u,C]);const T=c.useMemo(()=>({onKeyDown:z,onPointerDown:P,onClick:P}),[z,P]),_=c.useMemo(()=>({onKeyDown:z,onPointerDown:F,onMouseDown:F,onClickCapture:L,onMouseDownCapture(j){L(),A(j)},onPointerDownCapture(j){L(),A(j)},onMouseUpCapture:L,onTouchEndCapture:L,onTouchMoveCapture:L}),[z,L,A,F]);return c.useMemo(()=>n?{reference:T,floating:_,trigger:T}:{},[n,T,_])}function $c(e,t,n){let{reference:o,floating:r}=e;const s=Pt(t),i=ra(t),a=oa(i),l=Mt(t),u=s==="y",d=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,f=o[a]/2-r[a]/2;let y;switch(l){case"top":y={x:d,y:o.y-r.height};break;case"bottom":y={x:d,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:p};break;case"left":y={x:o.x-r.width,y:p};break;default:y={x:o.x,y:o.y}}const m=kn(t);return m&&(y[i]+=f*(m==="end"?1:-1)*(n&&u?-1:1)),y}async function W0(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:f=!1,padding:y=0}=xn(t,e),m=zu(y),h=a[f?p==="floating"?"reference":"floating":p],b=Fo(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(h)))==null||n?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),v=p==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement(w))&&await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1},S=Fo(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:w,strategy:l}):v);return{top:(b.top-S.top+m.top)/x.y,bottom:(S.bottom-b.bottom+m.bottom)/x.y,left:(b.left-S.left+m.left)/x.x,right:(S.right-b.right+m.right)/x.x}}const U0=50,G0=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,a=i.detectOverflow?i:{...i,detectOverflow:W0},l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:p}=$c(u,o,l),f=o,y=0;const m={};for(let g=0;g<s.length;g++){const h=s[g];if(!h)continue;const{name:b,fn:v}=h,{x:w,y:x,data:S,reset:R}=await v({x:d,y:p,initialPlacement:o,placement:f,strategy:r,middlewareData:m,rects:u,platform:a,elements:{reference:e,floating:t}});d=w??d,p=x??p,m[b]={...m[b],...S},R&&y<U0&&(y++,typeof R=="object"&&(R.placement&&(f=R.placement),R.rects&&(u=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):R.rects),{x:d,y:p}=$c(u,f,l)),g=-1)}return{x:d,y:p,placement:f,strategy:r,middlewareData:m}},Y0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...h}=xn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=Mt(r),v=Pt(a),w=Mt(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=f||(w||!g?[zr(a)]:h0(a)),R=m!=="none";!f&&R&&S.push(...b0(a,g,m,x));const E=[a,...S],k=await l.detectOverflow(t,h),M=[];let C=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&M.push(k[b]),p){const N=p0(r,i,x);M.push(k[N[0]],k[N[1]])}if(C=[...C,{placement:r,overflows:M}],!M.every(N=>N<=0)){var O,I;const N=(((O=s.flip)==null?void 0:O.index)||0)+1,P=E[N];if(P&&(!(p==="alignment"?v!==Pt(P):!1)||C.every(A=>Pt(A.placement)===v?A.overflows[0]>0:!0)))return{data:{index:N,overflows:C},reset:{placement:P}};let z=(I=C.filter(L=>L.overflows[0]<=0).sort((L,A)=>L.overflows[1]-A.overflows[1])[0])==null?void 0:I.placement;if(!z)switch(y){case"bestFit":{var D;const L=(D=C.filter(A=>{if(R){const F=Pt(A.placement);return F===v||F==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(F=>F>0).reduce((F,T)=>F+T,0)]).sort((A,F)=>A[1]-F[1])[0])==null?void 0:D[0];L&&(z=L);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}},id=new Set(["left","top"]);async function q0(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=Mt(n),a=kn(n),l=Pt(n)==="y",u=id.has(i)?-1:1,d=s&&l?-1:1,p=xn(t,e);let{mainAxis:f,crossAxis:y,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof m=="number"&&(y=a==="end"?m*-1:m),l?{x:y*d,y:f*u}:{x:f*u,y:y*d}}const X0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:a}=t,l=await q0(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},K0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:w,y:x}=v;return{x:w,y:x}}},...u}=xn(e,t),d={x:n,y:o},p=await s.detectOverflow(t,u),f=Pt(r),y=na(f);let m=d[y],g=d[f];const h=(v,w)=>Fu(w+p[v==="y"?"top":"left"],w,w-p[v==="y"?"bottom":"right"]);i&&(m=h(y,m)),a&&(g=h(f,g));const b=l.fn({...t,[y]:m,[f]:g});return{...b,data:{x:b.x-n,y:b.y-o,enabled:{[y]:i,[f]:a}}}}}},Z0=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:s,placement:i,rects:a,middlewareData:l}=t,{offset:u=0,mainAxis:d=!0,crossAxis:p=!0}=xn(e,t),f={x:r,y:s},y=Pt(i),m=na(y);let g=f[m],h=f[y];const b=xn(u,t),v=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:(n=b.mainAxis)!=null?n:0,crossAxis:(o=b.crossAxis)!=null?o:0};if(d){const S=m==="y"?"height":"width",R=a.reference[m]-a.floating[S]+v.mainAxis,E=a.reference[m]+a.reference[S]-v.mainAxis;g<R?g=R:g>E&&(g=E)}if(p){var w,x;const S=m==="y"?"width":"height",R=id.has(Mt(i)),E=a.reference[y]-a.floating[S]+(R&&((w=l.offset)==null?void 0:w[y])||0)+(R?0:v.crossAxis),k=a.reference[y]+a.reference[S]+(R?0:((x=l.offset)==null?void 0:x[y])||0)-(R?v.crossAxis:0);h<E?h=E:h>k&&(h=k)}return{[m]:g,[y]:h}}}},Q0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:s}=t,{apply:i=()=>{},...a}=xn(e,t),l=await r.detectOverflow(t,a),u=Mt(n),d=kn(n),p=Pt(n)==="y",{width:f,height:y}=o.floating;let m,g;u==="top"||u==="bottom"?(m=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(g=u,m=d==="end"?"top":"bottom");const h=y-l.top-l.bottom,b=f-l.left-l.right,v=co(y-l[m],h),w=co(f-l[g],b),x=t.middlewareData.shift,S=!x;let R=v,E=w;x!=null&&x.enabled.x&&(E=b),x!=null&&x.enabled.y&&(R=h),S&&!d&&(p?E=f-2*tn(l.left,l.right):R=y-2*tn(l.top,l.bottom)),await i({...t,availableWidth:E,availableHeight:R});const k=await r.getDimensions(s.floating);return f!==k.width||y!==k.height?{reset:{rects:!0}}:{}}}};function ad(e){const t=xt(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Fe(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,a=lo(n)!==s||lo(o)!==i;return a&&(n=s,o=i),{width:n,height:o,$:a}}function fa(e){return Oe(e)?e:e.contextElement}function to(e){const t=fa(e);if(!Fe(t))return nn(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=ad(t);let i=(s?lo(n.width):n.width)/o,a=(s?lo(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const J0=nn(0);function cd(e){const t=He(e);return!Di()||!t.visualViewport?J0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function eb(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===He(e)}function Ln(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=fa(e);let i=nn(1);t&&(o?Oe(o)&&(i=to(o)):i=to(e));const a=eb(s,n,o)?cd(s):nn(0);let l=(r.left+a.x)/i.x,u=(r.top+a.y)/i.y,d=r.width/i.x,p=r.height/i.y;if(s&&o){const f=He(s),y=Oe(o)?He(o):o;let m=f,g=Ks(m);for(;g&&y!==m;){const h=to(g),b=g.getBoundingClientRect(),v=xt(g),w=b.left+(g.clientLeft+parseFloat(v.paddingLeft))*h.x,x=b.top+(g.clientTop+parseFloat(v.paddingTop))*h.y;l*=h.x,u*=h.y,d*=h.x,p*=h.y,l+=w,u+=x,m=He(g),g=Ks(m)}}return Fo({width:d,height:p,x:l,y:u})}function as(e,t){const n=Gr(e).scrollLeft;return t?t.left+n:Ln(an(e)).left+n}function ld(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-as(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function tb(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=an(o),a=t?Ur(t.floating):!1;if(o===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=nn(1);const d=nn(0),p=Fe(o);if((p||!s)&&((ut(o)!=="body"||jo(i))&&(l=Gr(o)),p)){const y=Ln(o);u=to(o),d.x=y.x+o.clientLeft,d.y=y.y+o.clientTop}const f=i&&!p&&!s?ld(i,l):nn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-l.scrollTop*u.y+d.y+f.y}}function nb(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function ob(e){const t=Gr(e),n=e.ownerDocument.body,o=tn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=tn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-t.scrollLeft+as(e);const i=-t.scrollTop;return xt(n).direction==="rtl"&&(s+=tn(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:s,y:i}}const rb=25;function sb(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=He(e),s=an(e),i=r.visualViewport;let a=s.clientWidth,l=s.clientHeight,u=0,d=0;if(i){const f=!Di()||t==="fixed";o?f||(u=-i.offsetLeft,d=-i.offsetTop):(a=i.width,l=i.height,f&&(u=i.offsetLeft,d=i.offsetTop))}if(as(s)<=0){const f=s.ownerDocument,y=f.body,m=getComputedStyle(y),g=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,h=Math.abs(s.clientWidth-y.clientWidth-g),b=getComputedStyle(s).scrollbarGutter==="stable both-edges"?h/2:h;b<=rb&&(a-=b)}return{width:a,height:l,x:u,y:d}}function ib(e,t){const n=Ln(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=to(e),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=r*s.x,u=o*s.y;return{width:i,height:a,x:l,y:u}}function Hc(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=sb(e,n,t);else if(t==="document")o=ob(an(e));else if(Oe(t))o=ib(t,n);else{const r=cd(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Fo(o)}function ab(e,t){const n=t.get(e);if(n)return n;let o=Lo(e,[],!1).filter(a=>Oe(a)&&ut(a)!=="body"),r=null;const s=xt(e).position==="fixed";let i=s?on(e):e;for(;Oe(i)&&!en(i);){const a=xt(i),l=Ai(i),u=r?r.position:s?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?o=o.filter(p=>p!==i):r=a,i=on(i)}return t.set(e,o),o}function cb(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?Ur(t)?[]:ab(t,this._c):[].concat(n),o],a=Hc(t,i[0],r);let l=a.top,u=a.right,d=a.bottom,p=a.left;for(let f=1;f<i.length;f++){const y=Hc(t,i[f],r);l=tn(y.top,l),u=co(y.right,u),d=co(y.bottom,d),p=tn(y.left,p)}return{width:u-p,height:d-l,x:p,y:l}}function lb(e){const{width:t,height:n}=ad(e);return{width:t,height:n}}function ub(e,t,n){const o=Fe(t),r=an(t),s=n==="fixed",i=Ln(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=nn(0);if((o||!s)&&((ut(t)!=="body"||jo(r))&&(a=Gr(t)),o)){const f=Ln(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!o&&r&&(l.x=as(r));const u=r&&!o&&!s?ld(r,a):nn(0),d=i.left+a.scrollLeft-l.x-u.x,p=i.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:i.width,height:i.height}}function Ls(e){return xt(e).position==="static"}function jc(e,t){if(!Fe(e)||xt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return an(e)===n&&(n=n.ownerDocument.body),n}function ud(e,t){const n=He(e);if(Ur(e))return n;if(!Fe(e)){let r=on(e);for(;r&&!en(r);){if(Oe(r)&&!Ls(r))return r;r=on(r)}return n}let o=jc(e,t);for(;o&&ym(o)&&Ls(o);)o=jc(o,t);return o&&en(o)&&Ls(o)&&!Ai(o)?n:o||xm(e)||n}const db=async function(e){const t=this.getOffsetParent||ud,n=this.getDimensions,o=await n(e.floating);return{reference:ub(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function fb(e){return xt(e).direction==="rtl"}const dd={convertOffsetParentRelativeRectToViewportRelativeRect:tb,getDocumentElement:an,getClippingRect:cb,getOffsetParent:ud,getElementRects:db,getClientRects:nb,getDimensions:lb,getScale:to,isElement:Oe,isRTL:fb};function fd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function pb(e,t,n){let o=null,r;const s=an(e);function i(){var d;clearTimeout(r),(d=o)==null||d.disconnect(),o=null}function a(d,p){d===void 0&&(d=!1),p===void 0&&(p=1),i();const f=e.getBoundingClientRect(),{left:y,top:m,width:g,height:h}=f;if(d||t(),!g||!h)return;const b=nr(m),v=nr(s.clientWidth-(y+g)),w=nr(s.clientHeight-(m+h)),x=nr(y),R={rootMargin:-b+"px "+-v+"px "+-w+"px "+-x+"px",threshold:tn(0,co(1,p))||1};let E=!0;function k(M){const C=M[0].intersectionRatio;if(!fd(f,e.getBoundingClientRect()))return a();if(C!==p){if(!E)return a();C?a(!1,C):r=setTimeout(()=>{a(!1,1e-7)},1e3)}E=!1}try{o=new IntersectionObserver(k,{...R,root:s.ownerDocument})}catch{o=new IntersectionObserver(k,R)}o.observe(e)}const l=He(e),u=()=>a(n);return l.addEventListener("resize",u),a(!0),()=>{l.removeEventListener("resize",u),i()}}function Bc(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=fa(e),d=r||s?[...u?Lo(u):[],...t?Lo(t):[]]:[];d.forEach(b=>{r&&b.addEventListener("scroll",n),s&&b.addEventListener("resize",n)});const p=u&&a?pb(u,n,s):null;let f=-1,y=null;i&&(y=new ResizeObserver(b=>{let[v]=b;v&&v.target===u&&y&&t&&(y.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=y)==null||w.observe(t)})),n()}),u&&!l&&y.observe(u),t&&y.observe(t));let m,g=l?Ln(e):null;l&&h();function h(){const b=Ln(e);g&&!fd(g,b)&&n(),g=b,m=requestAnimationFrame(h)}return n(),()=>{var b;d.forEach(v=>{r&&v.removeEventListener("scroll",n),s&&v.removeEventListener("resize",n)}),p==null||p(),(b=y)==null||b.disconnect(),y=null,l&&cancelAnimationFrame(m)}}const hb=X0,gb=K0,mb=Y0,yb=Q0,bb=Z0,vb=(e,t,n)=>{const o=new Map,r=n??{},s={...dd,...r.platform,_c:o};return G0(e,t,{...r,platform:s})};var xb=typeof document<"u",wb=function(){},Er=xb?c.useLayoutEffect:wb;function $r(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!$r(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!$r(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function pd(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Wc(e,t){const n=pd(e);return Math.round(t*n)/n}function _s(e){const t=c.useRef(e);return Er(()=>{t.current=e}),t}function Sb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,p]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,y]=c.useState(o);$r(f,o)||y(o);const[m,g]=c.useState(null),[h,b]=c.useState(null),v=c.useCallback(A=>{A!==R.current&&(R.current=A,g(A))},[]),w=c.useCallback(A=>{A!==E.current&&(E.current=A,b(A))},[]),x=s||m,S=i||h,R=c.useRef(null),E=c.useRef(null),k=c.useRef(d),M=l!=null,C=_s(l),O=_s(r),I=_s(u),D=c.useCallback(()=>{if(!R.current||!E.current)return;const A={placement:t,strategy:n,middleware:f};O.current&&(A.platform=O.current),vb(R.current,E.current,A).then(F=>{const T={...F,isPositioned:I.current!==!1};N.current&&!$r(k.current,T)&&(k.current=T,At.flushSync(()=>{p(T)}))})},[f,t,n,O,I]);Er(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,p(A=>({...A,isPositioned:!1})))},[u]);const N=c.useRef(!1);Er(()=>(N.current=!0,()=>{N.current=!1}),[]),Er(()=>{if(x&&(R.current=x),S&&(E.current=S),x&&S){if(C.current)return C.current(x,S,D);D()}},[x,S,D,C,M]);const P=c.useMemo(()=>({reference:R,floating:E,setReference:v,setFloating:w}),[v,w]),z=c.useMemo(()=>({reference:x,floating:S}),[x,S]),L=c.useMemo(()=>{const A={position:n,left:0,top:0};if(!z.floating)return A;const F=Wc(z.floating,d.x),T=Wc(z.floating,d.y);return a?{...A,transform:"translate("+F+"px, "+T+"px)",...pd(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:T}},[n,a,z.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:D,refs:P,elements:z,floatingStyles:L}),[d,D,P,z,L])}const Rb=(e,t)=>{const n=hb(e);return{name:n.name,fn:n.fn,options:[e,t]}},kb=(e,t)=>{const n=gb(e);return{name:n.name,fn:n.fn,options:[e,t]}},Eb=(e,t)=>({fn:bb(e).fn,options:[e,t]}),Cb=(e,t)=>{const n=mb(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pb=(e,t)=>{const n=yb(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Fs={exports:{}},zs={};/**
746
+ */const mm=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Sk=W("x",mm);/**
747
+ * @license lucide-react v0.577.0 - ISC
748
+ *
749
+ * This source code is licensed under the ISC license.
750
+ * See the LICENSE file in the root directory of this source tree.
751
+ */const ym=[["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"}]],Rk=W("zap",ym);/**
752
+ * @license lucide-react v0.577.0 - ISC
753
+ *
754
+ * This source code is licensed under the ISC license.
755
+ * See the LICENSE file in the root directory of this source tree.
756
+ */const bm=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],kk=W("zoom-in",bm);/**
757
+ * @license lucide-react v0.577.0 - ISC
758
+ *
759
+ * This source code is licensed under the ISC license.
760
+ * See the LICENSE file in the root directory of this source tree.
761
+ */const vm=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],Ek=W("zoom-out",vm);function Wr(){return typeof window<"u"}function ut(e){return Oi(e)?(e.nodeName||"").toLowerCase():"#document"}function He(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function an(e){var t;return(t=(Oi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Oi(e){return Wr()?e instanceof Node||e instanceof He(e).Node:!1}function Oe(e){return Wr()?e instanceof Element||e instanceof He(e).Element:!1}function Fe(e){return Wr()?e instanceof HTMLElement||e instanceof He(e).HTMLElement:!1}function so(e){return!Wr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof He(e).ShadowRoot}function jo(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=xt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function xm(e){return/^(table|td|th)$/.test(ut(e))}function Ur(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const wm=/transform|translate|scale|rotate|perspective|filter/,Sm=/paint|layout|strict|content/,Tn=e=>!!e&&e!=="none";let Ps;function Ai(e){const t=Oe(e)?xt(e):e;return Tn(t.transform)||Tn(t.translate)||Tn(t.scale)||Tn(t.rotate)||Tn(t.perspective)||!Di()&&(Tn(t.backdropFilter)||Tn(t.filter))||wm.test(t.willChange||"")||Sm.test(t.contain||"")}function Rm(e){let t=on(e);for(;Fe(t)&&!en(t);){if(Ai(t))return t;if(Ur(t))return null;t=on(t)}return null}function Di(){return Ps==null&&(Ps=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ps}function en(e){return/^(html|body|#document)$/.test(ut(e))}function xt(e){return He(e).getComputedStyle(e)}function Gr(e){return Oe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function on(e){if(ut(e)==="html")return e;const t=e.assignedSlot||e.parentNode||so(e)&&e.host||an(e);return so(t)?t.host:t}function nu(e){const t=on(e);return en(t)?(e.ownerDocument||e).body:Fe(t)&&jo(t)?t:nu(t)}function Lo(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=nu(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=He(r);if(s){const a=Ks(i);return t.concat(i,i.visualViewport||[],jo(r)?r:[],a&&n?Lo(a):[])}else return t.concat(r,Lo(r,[],n))}function Ks(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Ni={...mo},lc={};function at(e,t){const n=c.useRef(lc);return n.current===lc&&(n.current=e(t)),n}const Ms=Ni.useInsertionEffect,km=Ms&&Ms!==Ni.useLayoutEffect?Ms:e=>e();function le(e){const t=at(Em).current;return t.next=e,km(t.effect),t.trampoline}function Em(){const e={next:void 0,callback:Cm,trampoline:(...t)=>{var n;return(n=e.callback)==null?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function Cm(){}const Pm=()=>{},re=typeof document<"u"?c.useLayoutEffect:Pm;function Zs(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}const Li={};function St(e,t,n,o,r){if(!n&&!o&&!r&&!e)return Or(t);let s=Or(e);return t&&(s=Mo(s,t)),n&&(s=Mo(s,n)),o&&(s=Mo(s,o)),r&&(s=Mo(s,r)),s}function Mm(e){if(e.length===0)return Li;if(e.length===1)return Or(e[0]);let t=Or(e[0]);for(let n=1;n<e.length;n+=1)t=Mo(t,e[n]);return t}function Or(e){return _i(e)?{...ru(e,Li)}:Tm(e)}function Mo(e,t){return _i(t)?ru(t,e):Im(e,t)}function Tm(e){const t={...e};for(const n in t){const o=t[n];ou(n,o)&&(t[n]=su(o))}return t}function Im(e,t){if(!t)return e;for(const n in t){const o=t[n];switch(n){case"style":{e[n]=Zs(e.style,o);break}case"className":{e[n]=iu(e.className,o);break}default:ou(n,o)?e[n]=Om(e[n],o):e[n]=o}}return e}function ou(e,t){const n=e.charCodeAt(0),o=e.charCodeAt(1),r=e.charCodeAt(2);return n===111&&o===110&&r>=65&&r<=90&&(typeof t=="function"||typeof t>"u")}function _i(e){return typeof e=="function"}function ru(e,t){return _i(e)?e(t):e??Li}function Om(e,t){return t?e?(...n)=>{const o=n[0];if(au(o)){const s=o;Ar(s);const i=t(...n);return s.baseUIHandlerPrevented||e==null||e(...n),i}const r=t(...n);return e==null||e(...n),r}:su(t):e}function su(e){return e&&((...t)=>{const n=t[0];return au(n)&&Ar(n),e(...t)})}function Ar(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function iu(e,t){return t?e?t+" "+e:t:e}function au(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Am(e,t){return function(o,...r){const s=new URL(e);return s.searchParams.set("code",o.toString()),r.forEach(i=>s.searchParams.append("args[]",i)),`${t} error #${o}; visit ${s} for the full message.`}}const Ne=Am("https://base-ui.com/production-error","Base UI"),cu=c.createContext(void 0);function Yr(e=!1){const t=c.useContext(cu);if(t===void 0&&!e)throw new Error(Ne(16));return t}function Dm(e){const{focusableWhenDisabled:t,disabled:n,composite:o=!1,tabIndex:r=0,isNativeButton:s}=e,i=o&&t!==!1,a=o&&t===!1;return{props:c.useMemo(()=>{const u={onKeyDown(d){n&&t&&d.key!=="Tab"&&d.preventDefault()}};return o||(u.tabIndex=r,!s&&n&&(u.tabIndex=t?r:-1)),(s&&(t||i)||!s&&n)&&(u["aria-disabled"]=n),s&&(!t||a)&&(u.disabled=n),u},[o,n,t,i,a,s,r])}}function Te(e){return(e==null?void 0:e.ownerDocument)||document}function Jn(e,t,{detail:n=0}={}){e.dispatchEvent(new(He(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Tt(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:o=0,native:r=!0,composite:s}=e,i=c.useRef(null),a=Yr(!0),l=s??a!==void 0,{props:u}=Dm({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:o,isNativeButton:r}),d=c.useCallback(()=>{const y=i.current;Ts(y)&&l&&t&&u.disabled===void 0&&y.disabled&&(y.disabled=!1)},[t,u.disabled,l]);re(d,[d]);const p=c.useCallback((y={})=>{const{onClick:m,onMouseDown:g,onKeyUp:h,onKeyDown:b,onPointerDown:v,...w}=y;return St({onClick(x){if(t){x.preventDefault();return}m==null||m(x)},onMouseDown(x){t||g==null||g(x)},onKeyDown(x){if(t||(Ar(x),b==null||b(x),x.baseUIHandlerPrevented))return;const S=x.target===x.currentTarget,R=x.currentTarget,E=Ts(R),k=!r&&Nm(R),M=S&&(r?E:!k),C=x.key==="Enter",O=x.key===" ",I=R.getAttribute("role"),D=(I==null?void 0:I.startsWith("menuitem"))||I==="option"||I==="gridcell";if(S&&l&&O){if(x.defaultPrevented&&D)return;x.preventDefault(),(!r||E)&&(x.preventBaseUIHandler(),Jn(R,x));return}if(!M||r||!O&&!C){S&&k&&O&&x.preventDefault();return}x.defaultPrevented||(x.preventDefault(),C&&(x.preventBaseUIHandler(),Jn(R,x)))},onKeyUp(x){if(!t){if(Ar(x),h==null||h(x),x.target===x.currentTarget&&r&&l&&Ts(x.currentTarget)&&x.key===" "){x.preventDefault();return}x.baseUIHandlerPrevented||x.target===x.currentTarget&&!r&&!l&&!x.defaultPrevented&&x.key===" "&&(x.preventBaseUIHandler(),Jn(x.currentTarget,x))}},onPointerDown(x){if(t){x.preventDefault();return}v==null||v(x)}},r?{type:"button"}:{role:"button"},u,w)},[t,u,l,r]),f=le(y=>{i.current=y,d()});return{getButtonProps:p,buttonRef:f}}function Ts(e){return Fe(e)&&e.tagName==="BUTTON"}function Nm(e){return Fe(e)&&e.tagName==="A"&&!!e.href}function Dt(e,t,n,o){const r=at(lu).current;return _m(r,e,t,n,o)&&uu(r,[e,t,n,o]),r.callback}function Lm(e){const t=at(lu).current;return Fm(t,e)&&uu(t,e),t.callback}function lu(){return{callback:null,cleanup:null,refs:[]}}function _m(e,t,n,o,r){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==o||e.refs[3]!==r}function Fm(e,t){return e.refs.length!==t.length||e.refs.some((n,o)=>n!==t[o])}function uu(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const o=Array(t.length).fill(null);for(let r=0;r<t.length;r+=1){const s=t[r];if(s!=null)switch(typeof s){case"function":{const i=s(n);typeof i=="function"&&(o[r]=i);break}case"object":{s.current=n;break}}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){const s=t[r];if(s!=null)switch(typeof s){case"function":{const i=o[r];typeof i=="function"?i():s(null);break}case"object":{s.current=null;break}}}}}}}const zm=parseInt(c.version,10);function Fi(e){return zm>=e}function uc(e){if(!c.isValidElement(e))return null;const t=e,n=t.props;return(Fi(19)?n==null?void 0:n.ref:t.ref)??null}function Ke(){}const Nt=Object.freeze([]),We=Object.freeze({});function Vm(e,t){const n={};for(const o in e){const r=e[o];if(t!=null&&t.hasOwnProperty(o)){const s=t[o](r);s!=null&&Object.assign(n,s);continue}r===!0?n[`data-${o.toLowerCase()}`]="":r&&(n[`data-${o.toLowerCase()}`]=r.toString())}return n}function $m(e,t){return typeof e=="function"?e(t):e}function du(e,t){return typeof e=="function"?e(t):e}function ke(e,t,n={}){const o=t.render,r=Hm(t,n);if(n.enabled===!1)return null;const s=n.state??We;return Wm(e,o,r,s)}function Hm(e,t={}){const{className:n,style:o,render:r}=e,{state:s=We,ref:i,props:a,stateAttributesMapping:l,enabled:u=!0}=t,d=u?$m(n,s):void 0,p=u?du(o,s):void 0,f=u?Vm(s,l):We,y=u&&a?jm(a):void 0,m=u?Zs(f,y)??{}:We;return typeof document<"u"&&(u?Array.isArray(i)?m.ref=Lm([m.ref,uc(r),...i]):m.ref=Dt(m.ref,uc(r),i):Dt(null,null)),u?(d!==void 0&&(m.className=iu(m.className,d)),p!==void 0&&(m.style=Zs(m.style,p)),m):We}function jm(e){return Array.isArray(e)?Mm(e):St(void 0,e)}const Bm=Symbol.for("react.lazy");function Wm(e,t,n,o){if(t){if(typeof t=="function")return t(n,o);const r=St(n,t.props);r.ref=n.ref;let s=t;return(s==null?void 0:s.$$typeof)===Bm&&(s=c.Children.toArray(t)[0]),c.cloneElement(s,r)}if(e&&typeof e=="string")return Um(e,n);throw new Error(Ne(8))}function Um(e,t){return e==="button"?c.createElement("button",{type:"button",...t,key:t.key}):e==="img"?c.createElement("img",{alt:"",...t,key:t.key}):c.createElement(e,t)}const Ck=c.forwardRef(function(t,n){const{render:o,className:r,disabled:s=!1,focusableWhenDisabled:i=!1,nativeButton:a=!0,style:l,...u}=t,{getButtonProps:d,buttonRef:p}=Tt({disabled:s,focusableWhenDisabled:i,native:a});return ke("button",t,{state:{disabled:s},ref:[n,p],props:[u,d]})});function fu(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=fu(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Gm(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=fu(e))&&(o&&(o+=" "),o+=t);return o}const dc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,fc=Gm,Pk=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return fc(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:s}=t,i=Object.keys(r).map(u=>{const d=n==null?void 0:n[u],p=s==null?void 0:s[u];if(d===null)return null;const f=dc(d)||dc(p);return r[u][f]}),a=n&&Object.entries(n).reduce((u,d)=>{let[p,f]=d;return f===void 0||(u[p]=f),u},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,d)=>{let{class:p,className:f,...y}=d;return Object.entries(y).every(m=>{let[g,h]=m;return Array.isArray(h)?h.includes({...s,...a}[g]):{...s,...a}[g]===h})?[...u,p,f]:u},[]);return fc(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)},Ym=(e,t)=>{const n=new Array(e.length+t.length);for(let o=0;o<e.length;o++)n[o]=e[o];for(let o=0;o<t.length;o++)n[e.length+o]=t[o];return n},qm=(e,t)=>({classGroupId:e,validator:t}),pu=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Dr="-",pc=[],Xm="arbitrary..",Km=e=>{const t=Jm(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Zm(i);const a=i.split(Dr),l=a[0]===""&&a.length>1?1:0;return hu(a,l,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const l=o[i],u=n[i];return l?u?Ym(u,l):l:u||pc}return n[i]||pc}}},hu=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],s=n.nextPart.get(r);if(s){const u=hu(e,t+1,s);if(u)return u}const i=n.validators;if(i===null)return;const a=t===0?e.join(Dr):e.slice(t).join(Dr),l=i.length;for(let u=0;u<l;u++){const d=i[u];if(d.validator(a))return d.classGroupId}},Zm=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),o=t.slice(0,n);return o?Xm+o:void 0})(),Jm=e=>{const{theme:t,classGroups:n}=e;return Qm(n,t)},Qm=(e,t)=>{const n=pu();for(const o in e){const r=e[o];zi(r,n,o,t)}return n},zi=(e,t,n,o)=>{const r=e.length;for(let s=0;s<r;s++){const i=e[s];e0(i,t,n,o)}},e0=(e,t,n,o)=>{if(typeof e=="string"){t0(e,t,n);return}if(typeof e=="function"){n0(e,t,n,o);return}o0(e,t,n,o)},t0=(e,t,n)=>{const o=e===""?t:gu(t,e);o.classGroupId=n},n0=(e,t,n,o)=>{if(r0(e)){zi(e(o),t,n,o);return}t.validators===null&&(t.validators=[]),t.validators.push(qm(n,e))},o0=(e,t,n,o)=>{const r=Object.entries(e),s=r.length;for(let i=0;i<s;i++){const[a,l]=r[i];zi(l,gu(t,a),n,o)}},gu=(e,t)=>{let n=e;const o=t.split(Dr),r=o.length;for(let s=0;s<r;s++){const i=o[s];let a=n.nextPart.get(i);a||(a=pu(),n.nextPart.set(i,a)),n=a}return n},r0=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,s0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),o=Object.create(null);const r=(s,i)=>{n[s]=i,t++,t>e&&(t=0,o=n,n=Object.create(null))};return{get(s){let i=n[s];if(i!==void 0)return i;if((i=o[s])!==void 0)return r(s,i),i},set(s,i){s in n?n[s]=i:r(s,i)}}},Js="!",hc=":",i0=[],gc=(e,t,n,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:o,isExternal:r}),a0=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=r=>{const s=[];let i=0,a=0,l=0,u;const d=r.length;for(let g=0;g<d;g++){const h=r[g];if(i===0&&a===0){if(h===hc){s.push(r.slice(l,g)),l=g+1;continue}if(h==="/"){u=g;continue}}h==="["?i++:h==="]"?i--:h==="("?a++:h===")"&&a--}const p=s.length===0?r:r.slice(l);let f=p,y=!1;p.endsWith(Js)?(f=p.slice(0,-1),y=!0):p.startsWith(Js)&&(f=p.slice(1),y=!0);const m=u&&u>l?u-l:void 0;return gc(s,y,f,m)};if(t){const r=t+hc,s=o;o=i=>i.startsWith(r)?s(i.slice(r.length)):gc(i0,!1,i,void 0,!0)}if(n){const r=o;o=s=>n({className:s,parseClassName:r})}return o},c0=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,o)=>{t.set(n,1e6+o)}),n=>{const o=[];let r=[];for(let s=0;s<n.length;s++){const i=n[s],a=i[0]==="[",l=t.has(i);a||l?(r.length>0&&(r.sort(),o.push(...r),r=[]),o.push(i)):r.push(i)}return r.length>0&&(r.sort(),o.push(...r)),o}},l0=e=>({cache:s0(e.cacheSize),parseClassName:a0(e),sortModifiers:c0(e),postfixLookupClassGroupIds:u0(e),...Km(e)}),u0=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let o=0;o<n.length;o++)t[n[o]]=!0;return t},d0=/\s+/,f0=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:s,postfixLookupClassGroupIds:i}=t,a=[],l=e.trim().split(d0);let u="";for(let d=l.length-1;d>=0;d-=1){const p=l[d],{isExternal:f,modifiers:y,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:h}=n(p);if(f){u=p+(u.length>0?" "+u:u);continue}let b=!!h,v;if(b){const E=g.substring(0,h);v=o(E);const k=v&&i[v]?o(g):void 0;k&&k!==v&&(v=k,b=!1)}else v=o(g);if(!v){if(!b){u=p+(u.length>0?" "+u:u);continue}if(v=o(g),!v){u=p+(u.length>0?" "+u:u);continue}b=!1}const w=y.length===0?"":y.length===1?y[0]:s(y).join(":"),x=m?w+Js:w,S=x+v;if(a.indexOf(S)>-1)continue;a.push(S);const R=r(v,b);for(let E=0;E<R.length;++E){const k=R[E];a.push(x+k)}u=p+(u.length>0?" "+u:u)}return u},p0=(...e)=>{let t=0,n,o,r="";for(;t<e.length;)(n=e[t++])&&(o=mu(n))&&(r&&(r+=" "),r+=o);return r},mu=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=mu(e[o]))&&(n&&(n+=" "),n+=t);return n},h0=(e,...t)=>{let n,o,r,s;const i=l=>{const u=t.reduce((d,p)=>p(d),e());return n=l0(u),o=n.cache.get,r=n.cache.set,s=a,a(l)},a=l=>{const u=o(l);if(u)return u;const d=f0(l,n);return r(l,d),d};return s=i,(...l)=>s(p0(...l))},g0=[],nt=e=>{const t=n=>n[e]||g0;return t.isThemeGetter=!0,t},yu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,m0=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,y0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,b0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,v0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,x0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,w0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dn=e=>m0.test(e),Ie=e=>!!e&&!Number.isNaN(Number(e)),$t=e=>!!e&&Number.isInteger(Number(e)),Is=e=>e.endsWith("%")&&Ie(e.slice(0,-1)),Kt=e=>y0.test(e),vu=()=>!0,S0=e=>b0.test(e)&&!v0.test(e),Vi=()=>!1,R0=e=>x0.test(e),k0=e=>w0.test(e),E0=e=>!me(e)&&!ye(e),C0=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),P0=e=>Sn(e,Su,Vi),me=e=>yu.test(e),In=e=>Sn(e,Ru,S0),mc=e=>Sn(e,L0,Ie),M0=e=>Sn(e,Eu,vu),T0=e=>Sn(e,ku,Vi),yc=e=>Sn(e,xu,Vi),I0=e=>Sn(e,wu,k0),Jo=e=>Sn(e,Cu,R0),ye=e=>bu.test(e),ko=e=>Vn(e,Ru),O0=e=>Vn(e,ku),bc=e=>Vn(e,xu),A0=e=>Vn(e,Su),D0=e=>Vn(e,wu),Qo=e=>Vn(e,Cu,!0),N0=e=>Vn(e,Eu,!0),Sn=(e,t,n)=>{const o=yu.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},Vn=(e,t,n=!1)=>{const o=bu.exec(e);return o?o[1]?t(o[1]):n:!1},xu=e=>e==="position"||e==="percentage",wu=e=>e==="image"||e==="url",Su=e=>e==="length"||e==="size"||e==="bg-size",Ru=e=>e==="length",L0=e=>e==="number",ku=e=>e==="family-name",Eu=e=>e==="number"||e==="weight",Cu=e=>e==="shadow",_0=()=>{const e=nt("color"),t=nt("font"),n=nt("text"),o=nt("font-weight"),r=nt("tracking"),s=nt("leading"),i=nt("breakpoint"),a=nt("container"),l=nt("spacing"),u=nt("radius"),d=nt("shadow"),p=nt("inset-shadow"),f=nt("text-shadow"),y=nt("drop-shadow"),m=nt("blur"),g=nt("perspective"),h=nt("aspect"),b=nt("ease"),v=nt("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...x(),ye,me],R=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],k=()=>[ye,me,l],M=()=>[dn,"full","auto",...k()],C=()=>[$t,"none","subgrid",ye,me],O=()=>["auto",{span:["full",$t,ye,me]},$t,ye,me],I=()=>[$t,"auto",ye,me],D=()=>["auto","min","max","fr",ye,me],N=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...k()],L=()=>[dn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],A=()=>[dn,"screen","full","dvw","lvw","svw","min","max","fit",...k()],F=()=>[dn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],T=()=>[e,ye,me],_=()=>[...x(),bc,yc,{position:[ye,me]}],j=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",A0,P0,{size:[ye,me]}],U=()=>[Is,ko,In],Y=()=>["","none","full",u,ye,me],V=()=>["",Ie,ko,In],J=()=>["solid","dashed","dotted","double"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[Ie,Is,bc,yc],ue=()=>["","none",m,ye,me],ne=()=>["none",Ie,ye,me],te=()=>["none",Ie,ye,me],Q=()=>[Ie,ye,me],ee=()=>[dn,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Kt],breakpoint:[Kt],color:[vu],container:[Kt],"drop-shadow":[Kt],ease:["in","out","in-out"],font:[E0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Kt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Kt],shadow:[Kt],spacing:["px",Ie],text:[Kt],"text-shadow":[Kt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",dn,me,ye,h]}],container:["container"],"container-type":[{"@container":["","normal","size",ye,me]}],"container-named":[C0],columns:[{columns:[Ie,me,ye,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[$t,"auto",ye,me]}],basis:[{basis:[dn,"full","auto",a,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ie,dn,"auto","initial","none",me]}],grow:[{grow:["",Ie,ye,me]}],shrink:[{shrink:["",Ie,ye,me]}],order:[{order:[$t,"first","last","none",ye,me]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...N(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...N()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":N()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],"inline-size":[{inline:["auto",...A()]}],"min-inline-size":[{"min-inline":["auto",...A()]}],"max-inline-size":[{"max-inline":["none",...A()]}],"block-size":[{block:["auto",...F()]}],"min-block-size":[{"min-block":["auto",...F()]}],"max-block-size":[{"max-block":["none",...F()]}],w:[{w:[a,"screen",...L()]}],"min-w":[{"min-w":[a,"screen","none",...L()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",n,ko,In]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,N0,M0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Is,me]}],"font-family":[{font:[O0,T0,t]}],"font-features":[{"font-features":[me]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,ye,me]}],"line-clamp":[{"line-clamp":[Ie,"none",ye,mc]}],leading:[{leading:[s,...k()]}],"list-image":[{"list-image":["none",ye,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ie,"from-font","auto",ye,In]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[Ie,"auto",ye,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"tab-size":[{tab:[$t,ye,me]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:j()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$t,ye,me],radial:["",ye,me],conic:[$t,ye,me]},D0,I0]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-bs":[{"border-bs":V()}],"border-w-be":[{"border-be":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ie,ye,me]}],"outline-w":[{outline:["",Ie,ko,In]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",d,Qo,Jo]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",p,Qo,Jo]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[Ie,In]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",f,Qo,Jo]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[Ie,ye,me]}],"mix-blend":[{"mix-blend":[...H(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":H()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ie]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[ye,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[Ie]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:j()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,me]}],filter:[{filter:["","none",ye,me]}],blur:[{blur:ue()}],brightness:[{brightness:[Ie,ye,me]}],contrast:[{contrast:[Ie,ye,me]}],"drop-shadow":[{"drop-shadow":["","none",y,Qo,Jo]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",Ie,ye,me]}],"hue-rotate":[{"hue-rotate":[Ie,ye,me]}],invert:[{invert:["",Ie,ye,me]}],saturate:[{saturate:[Ie,ye,me]}],sepia:[{sepia:["",Ie,ye,me]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,me]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[Ie,ye,me]}],"backdrop-contrast":[{"backdrop-contrast":[Ie,ye,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ie,ye,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ie,ye,me]}],"backdrop-invert":[{"backdrop-invert":["",Ie,ye,me]}],"backdrop-opacity":[{"backdrop-opacity":[Ie,ye,me]}],"backdrop-saturate":[{"backdrop-saturate":[Ie,ye,me]}],"backdrop-sepia":[{"backdrop-sepia":["",Ie,ye,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ie,"initial",ye,me]}],ease:[{ease:["linear","initial",b,ye,me]}],delay:[{delay:[Ie,ye,me]}],animate:[{animate:["none",v,ye,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,ye,me]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:te()}],"scale-x":[{"scale-x":te()}],"scale-y":[{"scale-y":te()}],"scale-z":[{"scale-z":te()}],"scale-3d":["scale-3d"],skew:[{skew:Q()}],"skew-x":[{"skew-x":Q()}],"skew-y":[{"skew-y":Q()}],transform:[{transform:[ye,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],zoom:[{zoom:[$t,ye,me]}],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ye,me]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[Ie,ko,In,mc]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Mk=h0(_0),Pu=c.createContext(void 0);function qr(e){const t=c.useContext(Pu);if(t===void 0&&!e)throw new Error(Ne(33));return t}const $i=c.createContext(void 0);function cn(e){const t=c.useContext($i);if(t===void 0&&!e)throw new Error(Ne(36));return t}let Nr=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const F0={"data-starting-style":""},z0={"data-ending-style":""},Gt={transitionStatus(e){return e==="starting"?F0:e==="ending"?z0:null}};(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Nr.startingStyle]="startingStyle",e[e.endingStyle=Nr.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({});const V0={"data-popup-open":""},$0={"data-popup-open":"","data-pressed":""},H0={"data-open":""},j0={"data-closed":""},B0={"data-anchor-hidden":""},Hi={open(e){return e?V0:null}},Lr={open(e){return e?$0:null}},Xr={open(e){return e?H0:j0},anchorHidden(e){return e?B0:null}},ji={...Xr,...Gt},Mu=c.createContext(void 0);function Kr(e=!0){const t=c.useContext(Mu);if(t===void 0&&!e)throw new Error(Ne(25));return t}const Rt="none",Rn="trigger-press",ot="trigger-hover",Qn="trigger-focus",Zr="outside-press",An="item-press",W0="close-press",Nn="focus-out",Jr="escape-key",Qs="list-navigation",Bi="cancel-open",To="sibling-open",Tu="disabled",vc="missing",xc="initial",Wi="imperative-action",U0="window-resize";function Lt({controlled:e,default:t,name:n,state:o="value"}){const{current:r}=c.useRef(e!==void 0),[s,i]=c.useState(t),a=r?e:s,l=c.useCallback(u=>{r||i(u)},[]);return[a,l]}const Iu=c.createContext(void 0);function G0(){const e=c.useContext(Iu);if(e===void 0)throw new Error(Ne(30));return e}function Y0(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}const{userAgent:q0,platform:X0,maxTouchPoints:K0}=Y0(),Qr=q0.toLowerCase(),_o=X0.toLowerCase(),es=/^i(os$|p)/.test(_o)||_o==="macintel"&&K0>1,wc="android",ei=_o===wc||Qr.includes(wc),Ui=!es&&_o.startsWith("mac");_o.startsWith("win");const Z0=Ui||es;var Ql;const Yt=typeof CSS<"u"&&!!((Ql=CSS.supports)!=null&&Ql.call(CSS,"-webkit-backdrop-filter:none"));!Yt&&Qr.includes("firefox");!Yt&&Qr.includes("chrom");const J0=Z0,Gi=/jsdom|happydom/.test(Qr);function Q0(e){const{closeOnClick:t,highlighted:n,id:o,nodeId:r,store:s,typingRef:i,itemRef:a,itemMetadata:l}=e,{events:u}=s.useState("floatingTreeRoot"),d=s.useState("open"),p=Kr(!0),f=p!==void 0;return c.useMemo(()=>({id:o,role:"menuitem",tabIndex:d&&n?0:-1,onKeyDown(y){y.key===" "&&(i!=null&&i.current)&&y.preventDefault()},onMouseMove(y){r&&u.emit("itemhover",{nodeId:r,target:y.currentTarget})},onClick(y){t&&u.emit("close",{domEvent:y,reason:An})},onMouseUp(y){if(p){const m=p.initialCursorPointRef.current;if(p.initialCursorPointRef.current=null,f&&m&&Math.abs(y.clientX-m.x)<=1&&Math.abs(y.clientY-m.y)<=1||f&&!Ui&&y.button===2)return}a.current&&s.context.allowMouseUpTriggerRef.current&&(!f||y.button===2)&&l.type==="regular-item"&&Jn(a.current,y,{detail:1})}}),[t,n,o,u,r,d,s,i,a,p,f,l])}const Yi={type:"regular-item"};function qi(e){const{closeOnClick:t,disabled:n,highlighted:o,id:r,store:s,typingRef:i=s.context.typingRef,nativeButton:a,itemMetadata:l,nodeId:u}=e,d=c.useRef(null),{getButtonProps:p,buttonRef:f}=Tt({disabled:n,focusableWhenDisabled:!0,native:a,composite:!0}),y=Q0({closeOnClick:t,highlighted:o,id:r,nodeId:u,store:s,typingRef:i,itemRef:d,itemMetadata:l}),m=c.useCallback(h=>St(y,{onMouseEnter(){l.type==="submenu-trigger"&&l.setActive()}},h,p),[y,p,l]),g=Dt(d,f);return c.useMemo(()=>({getItemProps:m,itemRef:g}),[m,g])}const Ou=c.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function ey(){return c.useContext(Ou)}function yo(e={}){const{guess:t,label:n,metadata:o,textRef:r,index:s}=e,{register:i,unregister:a,subscribeMapChange:l,nextIndexRef:u}=ey(),d=c.useRef(-1),[p,f]=c.useState(s==null&&t?()=>{if(d.current===-1){const h=u.current;u.current+=1,d.current=h}return d.current}:-1),y=s??p,m=c.useRef(null),g=c.useCallback(h=>{const b=m.current;b&&a(b),m.current=h,h&&i(h,{metadata:o??null,index:s??null,label:n,textRef:r})},[s,i,a,o,n,r]);return re(()=>{if(s==null)return l(h=>{var v;const b=m.current?(v=h.get(m.current))==null?void 0:v.index:null;b!=null&&f(b)})},[s,l]),{ref:g,index:y}}let Sc=0;function ty(e,t="mui"){const[n,o]=c.useState(e),r=e||n;return c.useEffect(()=>{n==null&&(Sc+=1,o(`${t}-${Sc}`))},[n,t]),r}const Rc=Ni.useId;function bn(e,t){if(Rc!==void 0){const n=Rc();return e??(t?`${t}-${n}`:n)}return ty(e,t)}function rt(e){return bn(e,"base-ui")}let kc=(function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.highlighted="data-highlighted",e})({});const ts={checked(e){return e?{[kc.checked]:""}:{[kc.unchecked]:""}},...Gt};function Re(e,t,n,o){let r=!1,s=!1;const i=o??We;return{reason:e,event:t??new Event("base-ui"),cancel(){r=!0},allowPropagation(){s=!0},get isCanceled(){return r},get isPropagationAllowed(){return s},trigger:n,...i}}const Tk=c.forwardRef(function(t,n){const{render:o,className:r,id:s,label:i,nativeButton:a=!1,disabled:l=!1,closeOnClick:u=!1,checked:d,defaultChecked:p,onCheckedChange:f,style:y,...m}=t,g=yo({guess:!0,label:i}),h=qr(!0),b=rt(s),{store:v}=cn(),w=v.useState("disabled"),x=l||w,S=v.useState("isActive",g.index),R=v.useState("itemProps"),[E,k]=Lt({controlled:d,default:p??!1,name:"MenuCheckboxItem",state:"checked"}),{getItemProps:M,itemRef:C}=qi({closeOnClick:u,disabled:x,highlighted:S,id:b,store:v,nativeButton:a,nodeId:h==null?void 0:h.context.nodeId,itemMetadata:Yi}),O=c.useMemo(()=>({disabled:x,highlighted:S,checked:E}),[x,S,E]);function I(N){const P=Re(An,N.nativeEvent,void 0,{preventUnmountOnClose:Ke});f==null||f(!E,P),!P.isCanceled&&k(z=>!z)}const D=ke("div",t,{state:O,stateAttributesMapping:ts,props:[R,{role:"menuitemcheckbox","aria-checked":E,onClick:I},m,M],ref:[C,n,g.ref]});return K.jsx(Iu.Provider,{value:O,children:D})});function Xi(e){c.useEffect(e,Nt)}const er=null;class ny{constructor(){De(this,"callbacks",[]);De(this,"callbacksCount",0);De(this,"nextId",1);De(this,"startId",1);De(this,"isScheduled",!1);De(this,"tick",t=>{var r;this.isScheduled=!1;const n=this.callbacks,o=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,o>0)for(let s=0;s<n.length;s+=1)(r=n[s])==null||r.call(n,t)})}request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,(!this.isScheduled||!1)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}let tr=new ny;class vt{constructor(){De(this,"currentId",er);De(this,"cancel",()=>{this.currentId!==er&&(tr.cancel(this.currentId),this.currentId=er)});De(this,"disposeEffect",()=>this.cancel)}static create(){return new vt}static request(t){return tr.request(t)}static cancel(t){return tr.cancel(t)}request(t){this.cancel(),this.currentId=tr.request(()=>{this.currentId=er,t()})}}function io(){const e=at(vt.create).current;return Xi(e.disposeEffect),e}function ln(e,t=!1,n=!1){const[o,r]=c.useState(e&&t?"idle":void 0),[s,i]=c.useState(e);return e&&!s&&(i(!0),r("starting")),!e&&s&&o!=="ending"&&!n&&r("ending"),!e&&!s&&o==="ending"&&r(void 0),re(()=>{if(!e&&s&&o!=="ending"&&n){const a=vt.request(()=>{r("ending")});return()=>{vt.cancel(a)}}},[e,s,o,n]),re(()=>{if(!e||t)return;const a=vt.request(()=>{r(void 0)});return()=>{vt.cancel(a)}},[t,e]),re(()=>{if(!e||!t)return;e&&s&&o!=="idle"&&r("starting");const a=vt.request(()=>{r("idle")});return()=>{vt.cancel(a)}},[t,e,s,o]),{mounted:s,setMounted:i,transitionStatus:o}}function Zt(e){return e==null?e:"current"in e?e.current:e}function Ki(e,t=!1){const n=io();return le((o,r=null)=>{n.cancel();const s=Zt(e);if(s==null)return;const i=s,a=()=>{At.flushSync(o)};if(typeof i.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){o();return}function l(){Promise.all(i.getAnimations().map(u=>u.finished)).then(()=>{r!=null&&r.aborted||a()},()=>{if(r!=null&&r.aborted)return;if(i.getAnimations().some(d=>d.pending||d.playState!=="finished")){l();return}a()})}if(t){const u="data-starting-style";if(!i.hasAttribute(u)){n.request(l);return}const d=new MutationObserver(()=>{i.hasAttribute(u)||(d.disconnect(),l())});d.observe(i,{attributes:!0,attributeFilter:[u]}),r==null||r.addEventListener("abort",()=>d.disconnect(),{once:!0});return}n.request(l)})}function kt(e){const{enabled:t=!0,open:n,ref:o,onComplete:r}=e,s=le(r),i=Ki(o,n);c.useEffect(()=>{if(!t)return;const a=new AbortController;return i(s,a.signal),()=>{a.abort()}},[t,n,s,i])}const Ik=c.forwardRef(function(t,n){const{render:o,className:r,style:s,keepMounted:i=!1,...a}=t,l=G0(),u=c.useRef(null),{transitionStatus:d,mounted:p,setMounted:f}=ln(l.checked);kt({open:l.checked,ref:u,onComplete(){l.checked||f(!1)}});const y={checked:l.checked,disabled:l.disabled,highlighted:l.highlighted,transitionStatus:d};return ke("span",t,{state:y,ref:[n,u],stateAttributesMapping:ts,props:{"aria-hidden":!0,...a},enabled:i||p})}),Zi=c.createContext(void 0);function oy(){const e=c.useContext(Zi);if(e===void 0)throw new Error(Ne(31));return e}const Ok=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,[a,l]=c.useState(void 0),u=ke("div",t,{ref:n,props:{role:"group","aria-labelledby":a,...i}});return K.jsx(Zi.Provider,{value:l,children:u})}),Ak=c.forwardRef(function(t,n){const{render:o,className:r,style:s,id:i,...a}=t,l=rt(i),u=oy();return re(()=>(u(l),()=>{u(d=>d===l?void 0:d)}),[u,l]),ke("div",t,{ref:n,props:{id:l,role:"presentation",...a}})}),Dk=c.forwardRef(function(t,n){const{render:o,className:r,id:s,label:i,nativeButton:a=!1,disabled:l=!1,closeOnClick:u=!0,style:d,...p}=t,f=yo({guess:!0,label:i}),y=qr(!0),m=rt(s),{store:g}=cn(),h=g.useState("disabled"),b=l||h,v=g.useState("isActive",f.index),w=g.useState("itemProps"),{getItemProps:x,itemRef:S}=qi({closeOnClick:u,disabled:b,highlighted:v,id:m,store:g,nativeButton:a,nodeId:y==null?void 0:y.context.nodeId,itemMetadata:Yi});return ke("div",t,{state:{disabled:b,highlighted:v},props:[w,p,x],ref:[S,n,f.ref]})}),Eo=0;class _t{constructor(){De(this,"currentId",Eo);De(this,"clear",()=>{this.currentId!==Eo&&(clearTimeout(this.currentId),this.currentId=Eo)});De(this,"disposeEffect",()=>this.clear)}static create(){return new _t}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Eo,n()},t)}isStarted(){return this.currentId!==Eo}}function Ge(){const e=at(_t.create).current;return Xi(e.disposeEffect),e}function It(e){e.preventDefault(),e.stopPropagation()}function ry(e){return"nativeEvent"in e}function Ji(e){return e.pointerType===""&&e.isTrusted?!0:ei&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Qi(e){return Gi?!1:!ei&&e.width===0&&e.height===0||ei&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function mn(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function sy(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const ti="data-base-ui-focusable",Au="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",ns="ArrowLeft",os="ArrowRight",Du="ArrowUp",ea="ArrowDown";function dt(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}function ve(e,t){var o;if(!e||!t)return!1;const n=(o=t.getRootNode)==null?void 0:o.call(t);if(e.contains(t))return!0;if(n&&so(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function et(e){return"composedPath"in e?e.composedPath()[0]:e.target}function _r(e,t){if(!Oe(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute("data-trigger-disabled");for(const[,o]of t.entries())if(ve(o,n))return!o.hasAttribute("data-trigger-disabled");return!1}function Os(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function iy(e){return e.matches("html,body")}function rs(e){return Fe(e)&&e.matches(Au)}function ay(e){return(e==null?void 0:e.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Au}`))!=null}function ni(e){return e?e.getAttribute("role")==="combobox"&&rs(e):!1}function cy(e){if(!e||Gi)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Fr(e){return e?e.hasAttribute(ti)?e:e.querySelector(`[${ti}]`)||e:null}function ly(e,t){return t!=null&&!mn(t)?0:typeof e=="function"?e():e}function vn(e,t,n){const o=ly(e,n);return typeof o=="number"?o:o==null?void 0:o[t]}function Ec(e){return typeof e=="function"?e():e}function Nu(e,t){return t||e==="click"||e==="mousedown"}function uy(e){return(e==null?void 0:e.includes("mouse"))&&e!=="mousedown"}const Lu=c.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new _t,currentIdRef:{current:null},currentContextRef:{current:null}});function dy(e,t){e.current=t.current}function fy(e){const{children:t,delay:n,timeoutMs:o=0}=e,r=c.useRef(n),s=c.useRef(n),i=c.useRef(null),a=c.useRef(null),l=Ge();return re(()=>{if(s.current=n,!i.current){r.current=n;return}r.current={open:vn(r.current,"open"),close:vn(n,"close")}},[n,i,r,s]),K.jsx(Lu.Provider,{value:c.useMemo(()=>({hasProvider:!0,delayRef:r,initialDelayRef:s,currentIdRef:i,timeoutMs:o,currentContextRef:a,timeout:l}),[o,l]),children:t})}function py(e,t={open:!1}){const{open:n}=t,o="rootStore"in e?e.rootStore:e,r=o.useState("floatingId"),s=c.useContext(Lu),{currentIdRef:i,delayRef:a,timeoutMs:l,initialDelayRef:u,currentContextRef:d,hasProvider:p,timeout:f}=s,[y,m]=c.useState(!1),g=c.useRef(n);return re(()=>{g.current=n},[n]),re(()=>{function h(){var b;(b=d.current)==null||b.setIsInstantPhase(!1),i.current=null,d.current=null,a.current=u.current,f.clear()}if(i.current&&!n&&i.current===r){if(m(!1),l){const b=r;return f.start(l,()=>{o.select("open")||i.current&&i.current!==b||h()}),()=>{(g.current||i.current!==b)&&f.clear()}}h()}},[n,r,i,a,l,u,d,f,o]),re(()=>{if(!n)return;const h=d.current,b=i.current;f.clear(),d.current={onOpenChange:o.setOpen,setIsInstantPhase:m},i.current=r,a.current={open:0,close:vn(u.current,"close")},b!==null&&b!==r?(m(!0),h==null||h.setIsInstantPhase(!0),h==null||h.onOpenChange(!1,Re(Rt))):(m(!1),h==null||h.setIsInstantPhase(!1))},[n,r,o,i,a,u,d,f]),re(()=>()=>{if(i.current===r){if(d.current=null,!g.current)return;i.current=null,dy(a,u),f.clear()}},[d,i,a,r,u,f]),c.useMemo(()=>({hasProvider:p,delayRef:a,isInstantPhase:y}),[p,a,y])}function Me(e,t,n,o){return e.addEventListener(t,n,o),()=>{e.removeEventListener(t,n,o)}}function Ut(...e){return()=>{for(let t=0;t<e.length;t+=1){const n=e[t];n&&n()}}}function Ze(e){const t=at(hy,e).current;return t.next=e,re(t.effect),t}function hy(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const _u={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},Bo={..._u,position:"fixed",top:0,left:0},ta={..._u,position:"absolute"},ao=c.forwardRef(function(t,n){const[o,r]=c.useState();re(()=>{J0&&Yt&&r("button")},[]);const s={tabIndex:0,role:o};return K.jsx("span",{...t,ref:n,style:Bo,"aria-hidden":o?void 0:!0,...s,"data-base-ui-focus-guard":""})}),co=Math.min,tn=Math.max,lo=Math.round,nr=Math.floor,nn=e=>({x:e,y:e}),gy={left:"right",right:"left",bottom:"top",top:"bottom"};function Fu(e,t,n){return tn(e,co(t,n))}function xn(e,t){return typeof e=="function"?e(t):e}function Mt(e){return e.split("-")[0]}function kn(e){return e.split("-")[1]}function na(e){return e==="x"?"y":"x"}function oa(e){return e==="y"?"height":"width"}function Pt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ra(e){return na(Pt(e))}function my(e,t,n){n===void 0&&(n=!1);const o=kn(e),r=ra(e),s=oa(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=zr(i)),[i,zr(i)]}function yy(e){const t=zr(e);return[oi(e),t,oi(t)]}function oi(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Cc=["left","right"],Pc=["right","left"],by=["top","bottom"],vy=["bottom","top"];function xy(e,t,n){switch(e){case"top":case"bottom":return n?t?Pc:Cc:t?Cc:Pc;case"left":case"right":return t?by:vy;default:return[]}}function wy(e,t,n,o){const r=kn(e);let s=xy(Mt(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(oi)))),s}function zr(e){const t=Mt(e);return gy[t]+e.slice(t.length)}function Sy(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function zu(e){return typeof e!="number"?Sy(e):{top:e,right:e,bottom:e,left:e}}function Fo(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Ao(e,t){return t<0||t>=e.length}function Rr(e,t){return Qt(e.current,{disabledIndices:t})}function ri(e,t){return Qt(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Qt(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:o,amount:r=1}={}){let s=t;do s+=n?-r:r;while(s>=0&&s<=e.length-1&&Vr(e,s,o));return s}function Vr(e,t,n){if(typeof n=="function"?n(t):(n==null?void 0:n.includes(t))??!1)return!0;const r=e[t];return r?!ss(r)||r.matches(":disabled")?!0:!n&&(r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"):!1}function Ry(e){return e.visibility==="hidden"||e.visibility==="collapse"}function ss(e,t=e?xt(e):null){return!e||!e.isConnected||!t||Ry(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}const ky='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function Ey(e){const t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;const n=e.getRootNode();return so(n)?n.host:null}function si(e){for(const t of Array.from(e.children))if(ut(t)==="summary")return t;return null}function Cy(e,t){const n=si(t);return!!n&&(e===n||ve(n,e))}function Vu(e){const t=e?ut(e):"";return e!=null&&e.matches(ky)&&(t!=="summary"||e.parentElement!=null&&ut(e.parentElement)==="details"&&si(e.parentElement)===e)&&(t!=="details"||si(e)==null)&&(t!=="input"||e.type!=="hidden")}function $u(e){if(!Vu(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=Ey(t)){const n=t!==e,o=ut(t)==="slot";if(t.hasAttribute("inert")||n&&ut(t)==="details"&&!t.open&&!Cy(e,t)||t.hasAttribute("hidden")||!o&&!Py(t,n))return!1}return!0}function Py(e,t){const n=xt(e);return t?n.display!=="none":ss(e,n)}function Hu(e){const t=e.tabIndex;if(t<0){const n=ut(e);if(n==="details"||n==="audio"||n==="video"||Fe(e)&&e.isContentEditable)return 0}return t}function As(e){if(ut(e)!=="input")return null;const t=e;return t.type==="radio"&&t.name!==""?t:null}function My(e,t){const n=As(e);if(!n)return!0;const o=t.find(r=>{const s=As(r);return(s==null?void 0:s.name)===n.name&&s.form===n.form&&s.checked});return o?o===n:t.find(r=>{const s=As(r);return(s==null?void 0:s.name)===n.name&&s.form===n.form})===n}function ju(e){if(Fe(e)&&ut(e)==="slot"){const t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Fe(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Bu(e,t){ju(e).forEach(n=>{Vu(n)&&t.push(n),Bu(n,t)})}function Wu(e,t,n){ju(e).forEach(o=>{Fe(o)&&o.matches(t)&&n.push(o),Wu(o,t,n)})}function sa(e){return $u(e)&&Hu(e)>=0}function Uu(e){const t=[];return Bu(e,t),t.filter($u)}function Wo(e){const t=Uu(e);return t.filter(n=>Hu(n)>=0&&My(n,t))}function Gu(e,t){const n=Wo(e),o=n.length;if(o===0)return;const r=dt(Te(e)),s=n.indexOf(r),i=s===-1?t===1?0:o-1:s+t;return n[i]}function ia(e){return Gu(Te(e).body,1)||e}function Yu(e){return Gu(Te(e).body,-1)||e}function qu(e,t){if(!e)return null;const n=Wo(Te(e).body),o=n.length;if(o===0)return null;const r=n.indexOf(e);if(r===-1)return null;const s=(r+t+o)%o;return n[s]}function Ty(e){return qu(e,1)}function Iy(e){return qu(e,-1)}function eo(e,t){const n=t||e.currentTarget,o=e.relatedTarget;return!o||!ve(n,o)}function Oy(e){Wo(e).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Mc(e){const t=[];Wu(e,"[data-tabindex]",t),t.forEach(n=>{const o=n.dataset.tabindex;delete n.dataset.tabindex,o?n.setAttribute("tabindex",o):n.removeAttribute("tabindex")})}function wn(e,t,n=!0){return e.filter(r=>r.parentId===t).flatMap(r=>{var s;return[...!n||(s=r.context)!=null&&s.open?[r]:[],...wn(e,r.id,n)]})}function Tc(e,t){var r;let n=[],o=(r=e.find(s=>s.id===t))==null?void 0:r.parentId;for(;o;){const s=e.find(i=>i.id===o);o=s==null?void 0:s.parentId,s&&(n=n.concat(s))}return n}function zo(e){return`data-base-ui-${e}`}let or=0;function kr(e,t={}){const{preventScroll:n=!1,sync:o=!1,shouldFocus:r}=t;cancelAnimationFrame(or);function s(){r&&!r()||e==null||e.focus({preventScroll:n})}if(o)return s(),Ke;const i=requestAnimationFrame(s);return or=i,()=>{or===i&&(cancelAnimationFrame(i),or=0)}}const Ds={inert:new WeakMap,"aria-hidden":new WeakMap},Ic="data-base-ui-inert",ii={inert:new WeakSet,"aria-hidden":new WeakSet};let Co=new WeakMap,Ns=0;function Ay(e){return ii[e]}function Xu(e){return e?so(e)?e.host:Xu(e.parentNode):null}const Oc=(e,t)=>t.map(n=>{if(e.contains(n))return n;const o=Xu(n);return e.contains(o)?o:null}).filter(n=>n!=null),Ac=e=>{const t=new Set;return e.forEach(n=>{let o=n;for(;o&&!t.has(o);)t.add(o),o=o.parentNode}),t},Dc=(e,t,n)=>{const o=[],r=s=>{!s||n.has(s)||Array.from(s.children).forEach(i=>{ut(i)!=="script"&&(t.has(i)?r(i):o.push(i))})};return r(e),o};function Dy(e,t,n,o,{mark:r=!0}){let s=null;o?s="inert":n&&(s="aria-hidden");let i=null,a=null;const l=Oc(t,e),u=r?Dc(t,Ac(l),new Set(l)):[],d=[],p=[];if(s){const f=Ds[s],y=Ay(s);a=y,i=f;const m=Oc(t,Array.from(t.querySelectorAll("[aria-live]"))),g=l.concat(m);Dc(t,Ac(g),new Set(g)).forEach(b=>{const v=b.getAttribute(s),w=v!==null&&v!=="false",x=(f.get(b)||0)+1;f.set(b,x),d.push(b),x===1&&w&&y.add(b),w||b.setAttribute(s,s==="inert"?"":"true")})}return r&&u.forEach(f=>{const y=(Co.get(f)||0)+1;Co.set(f,y),p.push(f),y===1&&f.setAttribute(Ic,"")}),Ns+=1,()=>{i&&d.forEach(f=>{const m=(i.get(f)||0)-1;i.set(f,m),m||(!(a!=null&&a.has(f))&&s&&f.removeAttribute(s),a==null||a.delete(f))}),r&&p.forEach(f=>{const y=(Co.get(f)||0)-1;Co.set(f,y),y||f.removeAttribute(Ic)}),Ns-=1,Ns||(Ds.inert=new WeakMap,Ds["aria-hidden"]=new WeakMap,ii.inert=new WeakSet,ii["aria-hidden"]=new WeakSet,Co=new WeakMap)}}function Nc(e,t={}){const{ariaHidden:n=!1,inert:o=!1,mark:r=!0}=t,s=Te(e[0]).body;return Dy(e,s,n,o,{mark:r})}const Ny=500,Ly=500,_y={style:{transition:"none"}},Ku="data-base-ui-click-trigger",Zu={fallbackAxisSide:"none"},Ju={fallbackAxisSide:"end"},Fy={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Qu=c.createContext(null),ed=()=>c.useContext(Qu),zy=zo("portal");function td(e={}){const{ref:t,container:n,componentProps:o=We,elementProps:r}=e,s=bn(),i=ed(),a=i==null?void 0:i.portalNode,[l,u]=c.useState(null),[d,p]=c.useState(null),f=le(h=>{h!==null&&p(h)}),y=c.useRef(null);re(()=>{if(n===null){y.current&&(y.current=null,p(null),u(null));return}const h=(n&&(Oi(n)?n:n.current))??a??document.body;if(h==null){y.current&&(y.current=null,p(null),u(null));return}y.current!==h&&(y.current=h,p(null),u(h))},[n,a]);const m=ke("div",o,{ref:[t,f],props:[{id:s,[zy]:""},r]}),g=l&&m?At.createPortal(m,l):null;return{node:d,nodeId:c.isValidElement(m)?m.props.id:void 0,subtree:g}}const aa=c.forwardRef(function(t,n){const{render:o,className:r,style:s,children:i,container:a,...l}=t,{node:u,nodeId:d,subtree:p}=td({container:a,ref:n,componentProps:t,elementProps:l}),f=c.useRef(null),y=c.useRef(null),m=c.useRef(null),g=c.useRef(null),[h,b]=c.useState(null),v=c.useRef(!1),w=h==null?void 0:h.modal,x=h==null?void 0:h.open,S=!!h&&!h.modal&&h.open&&!!u;c.useEffect(()=>{if(!u||w)return;function E(k){u&&k.relatedTarget&&eo(k)&&(k.type==="focusin"?v.current&&(Mc(u),v.current=!1):(Oy(u),v.current=!0))}return Ut(Me(u,"focusin",E,!0),Me(u,"focusout",E,!0))},[u,w]),re(()=>{!u||x!==!0||!v.current||(Mc(u),v.current=!1)},[x,u]);const R=c.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:y,beforeInsideRef:m,afterInsideRef:g,portalNode:u,setFocusManagerState:b}),[u]);return K.jsxs(c.Fragment,{children:[p,K.jsxs(Qu.Provider,{value:R,children:[S&&u&&K.jsx(ao,{"data-type":"outside",ref:f,onFocus:E=>{var k;if(eo(E,u))(k=m.current)==null||k.focus();else{const M=h?h.domReference:null,C=Yu(M);C==null||C.focus()}}}),S&&u&&K.jsx("span",{"aria-owns":d,style:Fy}),u&&At.createPortal(i,u),S&&u&&K.jsx(ao,{"data-type":"outside",ref:y,onFocus:E=>{var k;if(eo(E,u))(k=g.current)==null||k.focus();else{const M=h?h.domReference:null,C=ia(M);C==null||C.focus(),h!=null&&h.closeOnFocusOut&&(h==null||h.onOpenChange(!1,Re(Nn,E.nativeEvent)))}}})]})]})});function nd(){const e=new Map;return{emit(t,n){var o;(o=e.get(t))==null||o.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var o;(o=e.get(t))==null||o.delete(n)}}}class ca{constructor(){De(this,"nodesRef",{current:[]});De(this,"events",nd())}addNode(t){this.nodesRef.current.push(t)}removeNode(t){const n=this.nodesRef.current.findIndex(o=>o===t);n!==-1&&this.nodesRef.current.splice(n,1)}}const od=c.createContext(null),rd=c.createContext(null),En=()=>{var e;return((e=c.useContext(od))==null?void 0:e.id)||null},Cn=e=>{const t=c.useContext(rd);return e??t};function sd(e){const t=bn(),n=Cn(e),o=En();return re(()=>{if(!t)return;const r={id:t,parentId:o};return n==null||n.addNode(r),()=>{n==null||n.removeNode(r)}},[n,t,o]),t}function Vy(e){const{children:t,id:n}=e,o=En();return K.jsx(od.Provider,{value:c.useMemo(()=>({id:n,parentId:o}),[n,o]),children:t})}function $y(e){const{children:t,externalTree:n}=e,o=at(()=>n??new ca).current;return K.jsx(rd.Provider,{value:o,children:t})}function Hy(e,t){const n=He(et(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const Lc=20;let pn=[];function la(){pn=pn.filter(e=>{var t;return(t=e.deref())==null?void 0:t.isConnected})}function _c(e){la(),e&&ut(e)!=="body"&&(pn.push(new WeakRef(e)),pn.length>Lc&&(pn=pn.slice(-Lc)))}function Fc(){var e;return la(),(e=pn[pn.length-1])==null?void 0:e.deref()}function jy(e){return e?sa(e)?e:Wo(e)[0]||e:null}function zc(e){var r;if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!((r=e.getAttribute("role"))!=null&&r.includes("dialog")))return;const n=Uu(e).filter(s=>{const i=s.getAttribute("data-tabindex")||"";return sa(s)||s.hasAttribute("data-tabindex")&&!i.startsWith("-")}),o=e.getAttribute("tabindex");n.length===0?o!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(o!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function ua(e){const{context:t,children:n,disabled:o=!1,initialFocus:r=!0,returnFocus:s=!0,restoreFocus:i=!1,modal:a=!0,closeOnFocusOut:l=!0,openInteractionType:u="",nextFocusableElement:d,previousFocusableElement:p,beforeContentFocusGuardRef:f,externalTree:y,getInsideElements:m}=e,g="rootStore"in t?t.rootStore:t,h=g.useState("open"),b=g.useState("domReferenceElement"),v=g.useState("floatingElement"),{events:w,dataRef:x}=g.context,S=le(()=>{var te;return(te=x.current.floatingContext)==null?void 0:te.nodeId}),R=r===!1,E=ni(b)&&R,k=Ze(r),M=Ze(s),C=Ze(u),O=Ze(h),I=Cn(y),D=ed(),N=c.useRef(!1),P=c.useRef(!1),z=c.useRef(!1),L=c.useRef(null),A=c.useRef(""),F=c.useRef(""),T=c.useRef(null),_=c.useRef(null),j=Dt(T,f,D==null?void 0:D.beforeInsideRef),$=Dt(_,D==null?void 0:D.afterInsideRef),U=Ge(),Y=Ge(),V=io(),J=D!=null,H=Fr(v),G=le((te=H)=>te?Wo(te):[]),ue=le(()=>(m==null?void 0:m().filter(te=>te!=null))??[]);c.useEffect(()=>{if(o||!a)return;function te(ee){ee.key==="Tab"&&ve(H,dt(Te(H)))&&G().length===0&&!E&&It(ee)}const Q=Te(H);return Me(Q,"keydown",te)},[o,H,a,E,G]),c.useEffect(()=>{if(o||!h)return;const te=Te(H);function Q(){z.current=!1}function ee(xe){const ae=et(xe),he=ue(),oe=ve(v,ae)||ve(b,ae)||ve(D==null?void 0:D.portalNode,ae)||he.some(ge=>ge===ae||ve(ge,ae));z.current=!oe,F.current=xe.pointerType||"keyboard",ae!=null&&ae.closest(`[${Ku}]`)&&(P.current=!0,Y.start(0,()=>{P.current=!1}))}function ie(){F.current="keyboard"}return Ut(Me(te,"pointerdown",ee,!0),Me(te,"pointerup",Q,!0),Me(te,"pointercancel",Q,!0),Me(te,"keydown",ie,!0),Q)},[o,v,b,H,h,D,Y,ue]),c.useEffect(()=>{if(o||!l)return;const te=Te(H);function Q(){P.current=!0,Y.start(0,()=>{P.current=!1})}function ee(he){const oe=et(he);sa(oe)&&(L.current=oe)}function ie(he){const oe=he.relatedTarget,ge=he.currentTarget,de=et(he);a&&oe==null&&de!=null&&ve(v,de)&&_c(de),queueMicrotask(()=>{const ce=S(),fe=g.context.triggerElements,B=ue(),q=(oe==null?void 0:oe.hasAttribute(zo("focus-guard")))&&[T.current,_.current,D==null?void 0:D.beforeInsideRef.current,D==null?void 0:D.afterInsideRef.current,D==null?void 0:D.beforeOutsideRef.current,D==null?void 0:D.afterOutsideRef.current,Zt(p),Zt(d)].includes(oe),se=!(ve(b,oe)||ve(v,oe)||ve(oe,v)||ve(D==null?void 0:D.portalNode,oe)||B.some(Z=>Z===oe||ve(Z,oe))||fe.hasMatchingElement(Z=>ve(Z,oe))||q||I&&(wn(I.nodesRef.current,ce).find(Z=>{var X,pe;return ve((X=Z.context)==null?void 0:X.elements.floating,oe)||ve((pe=Z.context)==null?void 0:pe.elements.domReference,oe)})||Tc(I.nodesRef.current,ce).find(Z=>{var X,pe,be;return[(X=Z.context)==null?void 0:X.elements.floating,Fr((pe=Z.context)==null?void 0:pe.elements.floating)].includes(oe)||((be=Z.context)==null?void 0:be.elements.domReference)===oe})));if(ge===b&&H&&zc(H),i&&ge!==b&&!ss(de)&&dt(te)===te.body){if(Fe(H)&&(H.focus(),i==="popup")){V.request(()=>{H.focus()});return}const Z=G(),X=L.current,pe=(X&&Z.includes(X)?X:null)||Z[Z.length-1]||H;Fe(pe)&&pe.focus()}if(x.current.insideReactTree){x.current.insideReactTree=!1;return}(E||!a)&&oe&&se&&!P.current&&(E||oe!==Fc())&&(N.current=!0,g.setOpen(!1,Re(Nn,he)))})}function xe(){z.current||(x.current.insideReactTree=!0,U.start(0,()=>{x.current.insideReactTree=!1}))}const ae=Fe(b)?b:null;if(!(!v&&!ae))return Ut(ae&&Me(ae,"focusout",ie),ae&&Me(ae,"pointerdown",Q),v&&Me(v,"focusin",ee),v&&Me(v,"focusout",ie),v&&D&&Me(v,"focusout",xe,!0))},[o,b,v,H,a,I,D,g,l,i,G,E,S,x,U,Y,V,d,p,ue]),c.useEffect(()=>{var ge,de,ce;if(o||!v||!h)return;const te=Array.from(((ge=D==null?void 0:D.portalNode)==null?void 0:ge.querySelectorAll(`[${zo("portal")}]`))||[]),ee=(ce=(de=(I?Tc(I.nodesRef.current,S()):[]).find(fe=>{var B;return ni(((B=fe.context)==null?void 0:B.elements.domReference)||null)}))==null?void 0:de.context)==null?void 0:ce.elements.domReference,xe=[...[v,...te,T.current,_.current,D==null?void 0:D.beforeOutsideRef.current,D==null?void 0:D.afterOutsideRef.current,...ue()],ee,Zt(p),Zt(d),E?b:null].filter(fe=>fe!=null),ae=Nc(xe,{ariaHidden:a||E,mark:!1}),he=[v,...te].filter(fe=>fe!=null),oe=Nc(he);return()=>{oe(),ae()}},[h,o,b,v,a,D,E,I,S,d,p,ue]),re(()=>{if(!h||o||!Fe(H))return;A.current="",F.current="";const te=Te(H),Q=dt(te);queueMicrotask(()=>{const ee=k.current,ie=typeof ee=="function"?ee(C.current||""):ee;if(ie===void 0||ie===!1||ve(H,Q))return;let ae=null;const he=()=>(ae==null&&(ae=G(H)),ae[0]||H);let oe;ie===!0||ie===null?oe=he():oe=Zt(ie),oe=oe||he();const ge=ve(H,dt(te));kr(oe,{preventScroll:oe===H,shouldFocus(){if(!O.current)return!1;if(ge)return!0;const de=dt(te);return!(de!==oe&&ve(H,de))}})})},[o,h,H,G,k,C,O]),re(()=>{if(o||!H)return;const te=Te(H),Q=dt(te),ee=C.current==null;_c(Q);function ie(ae){if(ae.open||(A.current=Hy(ae.nativeEvent,F.current)),ae.reason===ot&&ae.nativeEvent.type==="mouseleave"&&(N.current=!0),ae.reason===Zr)if(ae.nested)N.current=!1;else if(Ji(ae.nativeEvent)||Qi(ae.nativeEvent))N.current=!1;else{let he=!1;Te(H).createElement("div").focus({get preventScroll(){return he=!0,!1}}),he?N.current=!1:N.current=!0}}w.on("openchange",ie);function xe(ae){const he=M.current;let oe=typeof he=="function"?he(ae):he;if(oe===void 0||oe===!1)return null;oe===null&&(oe=!0);const ge=b!=null&&b.isConnected?b:null,de=Q!=null&&Q.isConnected&&ut(Q)!=="body"?Q:null;let ce=ee?de||ge:ge||de;return ce||(ce=Fc()||null),typeof oe=="boolean"?ce:Zt(oe)||ce||null}return()=>{w.off("openchange",ie);const ae=dt(te),he=ue(),oe=ve(v,ae)||he.some(fe=>fe===ae||ve(fe,ae))||I&&wn(I.nodesRef.current,S(),!1).some(fe=>{var B;return ve((B=fe.context)==null?void 0:B.elements.floating,ae)}),ge=M.current,de=A.current,ce=xe(de);queueMicrotask(()=>{const fe=jy(ce),B=typeof ge!="boolean";if(ge&&!N.current&&Fe(fe)&&(!(!B&&fe!==ae&&ae!==te.body)||oe)){const q={preventScroll:!0};de==="keyboard"&&(q.focusVisible=!0),fe.focus(q)}N.current=!1})}},[o,v,H,M,C,w,I,b,S,ue]),re(()=>{if(!Yt||h||!v)return;const te=dt(Te(v));!Fe(te)||!rs(te)||ve(v,te)&&te.blur()},[h,v]),re(()=>{if(!(o||!D))return D.setFocusManagerState({modal:a,closeOnFocusOut:l,open:h,onOpenChange:g.setOpen,domReference:b}),()=>{D.setFocusManagerState(null)}},[o,D,a,h,g,l,b]),re(()=>{if(!(o||!H))return zc(H),()=>{queueMicrotask(la)}},[o,H]);const ne=!o&&(a?!E:!0)&&(J||a);return K.jsxs(c.Fragment,{children:[ne&&K.jsx(ao,{"data-type":"inside",ref:j,onFocus:te=>{var Q;if(a){const ee=G();kr(ee[ee.length-1])}else if(D!=null&&D.portalNode)if(N.current=!1,eo(te,D.portalNode)){const ee=ia(b);ee==null||ee.focus()}else(Q=Zt(p??D.beforeOutsideRef))==null||Q.focus()}}),n,ne&&K.jsx(ao,{"data-type":"inside",ref:$,onFocus:te=>{var Q;if(a)kr(G()[0]);else if(D!=null&&D.portalNode)if(l&&(N.current=!0),eo(te,D.portalNode)){const ee=Yu(b);ee==null||ee.focus()}else(Q=Zt(d??D.afterOutsideRef))==null||Q.focus()}})]})}function da(e,t={}){const{enabled:n=!0,event:o="click",toggle:r=!0,ignoreMouse:s=!1,stickIfOpen:i=!0,touchOpenDelay:a=0,reason:l=Rn}=t,u="rootStore"in e?e.rootStore:e,d=u.context.dataRef,p=c.useRef(void 0),f=io(),y=Ge(),m=c.useMemo(()=>{function g(b,v,w,x){const S=Re(l,v,w);b&&x==="touch"&&a>0?y.start(a,()=>{u.setOpen(!0,S)}):u.setOpen(b,S)}function h(b,v,w){const x=d.current.openEvent,S=u.select("domReferenceElement")!==v;return b&&S||!b||!r?!0:x&&i?!w(x.type):!1}return{onPointerDown(b){p.current=mn(b.pointerType,!0)&&Qi(b.nativeEvent)?"virtual":b.pointerType},onMouseDown(b){const v=p.current,w=b.nativeEvent,x=u.select("open");if(b.button!==0||o==="click"||mn(v,!0)&&s)return;const S=h(x,b.currentTarget,k=>k==="click"||k==="mousedown"),R=et(w);if(rs(R)){g(S,w,R,v);return}const E=b.currentTarget;f.request(()=>{g(S,w,E,v)})},onClick(b){if(o==="mousedown-only")return;const v=p.current;if(o==="mousedown"&&v){p.current=void 0;return}if(mn(v,!0)&&s)return;const w=u.select("open"),x=h(w,b.currentTarget,S=>S==="click"||S==="mousedown"||S==="keydown"||S==="keyup");g(x,b.nativeEvent,b.currentTarget,v)},onKeyDown(){p.current=void 0}}},[d,o,s,l,u,i,r,f,y,a]);return c.useMemo(()=>n?{reference:m}:We,[n,m])}function By(e,t){let n=null,o=null,r=!1;return{contextElement:e||void 0,getBoundingClientRect(){var y;const s=(e==null?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},i=t.axis==="x"||t.axis==="both",a=t.axis==="y"||t.axis==="both",l=["mouseenter","mousemove"].includes(((y=t.dataRef.current.openEvent)==null?void 0:y.type)||"")&&t.pointerType!=="touch";let u=s.width,d=s.height,p=s.x,f=s.y;return n==null&&t.x&&i&&(n=s.x-t.x),o==null&&t.y&&a&&(o=s.y-t.y),p-=n||0,f-=o||0,u=0,d=0,!r||l?(u=t.axis==="y"?s.width:0,d=t.axis==="x"?s.height:0,p=i&&t.x!=null?t.x:p,f=a&&t.y!=null?t.y:f):r&&!l&&(d=t.axis==="x"?s.height:d,u=t.axis==="y"?s.width:u),r=!0,{width:u,height:d,x:p,y:f,top:f,right:p+u,bottom:f+d,left:p}}}}function Vc(e){return e!=null&&e.clientX!=null}function Wy(e,t={}){const{enabled:n=!0,axis:o="both"}=t,r="rootStore"in e?e.rootStore:e,s=r.useState("open"),i=r.useState("floatingElement"),a=r.useState("domReferenceElement"),l=r.context.dataRef,u=c.useRef(!1),d=c.useRef(null),[p,f]=c.useState(),[y,m]=c.useState([]),g=le(x=>{r.set("positionReference",x)}),h=le((x,S,R)=>{u.current||l.current.openEvent&&!Vc(l.current.openEvent)||r.set("positionReference",By(R??a,{x,y:S,axis:o,dataRef:l,pointerType:p}))}),b=le(x=>{s?d.current||(h(x.clientX,x.clientY,x.currentTarget),m([])):h(x.clientX,x.clientY,x.currentTarget)}),v=mn(p)?i:s;c.useEffect(()=>{if(!n){g(a);return}if(!v)return;function x(){var E;(E=d.current)==null||E.call(d),d.current=null}const S=He(i);function R(E){const k=et(E);ve(i,k)?x():h(E.clientX,E.clientY)}return!l.current.openEvent||Vc(l.current.openEvent)?d.current=Me(S,"mousemove",R):g(a),x},[v,n,i,l,a,r,h,g,y]),c.useEffect(()=>()=>{r.set("positionReference",null)},[r]),c.useEffect(()=>{n&&!i&&(u.current=!1)},[n,i]),c.useEffect(()=>{!n&&s&&(u.current=!0)},[n,s]);const w=c.useMemo(()=>{function x(S){f(S.pointerType)}return{onPointerDown:x,onPointerEnter:x,onMouseMove:b,onMouseEnter:b}},[b]);return c.useMemo(()=>n?{reference:w,trigger:w}:{},[n,w])}function Uy(){return!1}function Gy(e){return{escapeKey:typeof e=="boolean"?e:(e==null?void 0:e.escapeKey)??!1,outsidePress:typeof e=="boolean"?e:(e==null?void 0:e.outsidePress)??!0}}function is(e,t={}){const{enabled:n=!0,escapeKey:o=!0,outsidePress:r=!0,outsidePressEvent:s="sloppy",referencePress:i=Uy,bubbles:a,externalTree:l}=t,u="rootStore"in e?e.rootStore:e,d=u.useState("open"),p=u.useState("floatingElement"),{dataRef:f}=u.context,y=Cn(l),m=le(typeof r=="function"?r:()=>!1),g=typeof r=="function"?m:r,h=g!==!1,b=le(()=>s),{escapeKey:v,outsidePress:w}=Gy(a),x=c.useRef(!1),S=c.useRef(!1),R=c.useRef(!1),E=c.useRef(!1),k=c.useRef(""),M=c.useRef(null),C=Ge(),O=Ge(),I=le(()=>{O.clear(),f.current.insideReactTree=!1}),D=le(j=>{var Y;const $=(Y=f.current.floatingContext)==null?void 0:Y.nodeId;return(y?wn(y.nodesRef.current,$):[]).some(V=>{var J;return((J=V.context)==null?void 0:J.open)&&!V.context.dataRef.current[j]})}),N=le(j=>Os(j,u.select("floatingElement"))||Os(j,u.select("domReferenceElement"))),P=le(j=>{i()&&u.setOpen(!1,Re(Rn,j.nativeEvent))}),z=le(j=>{if(!d||!n||!o||j.key!=="Escape"||E.current||!v&&D("__escapeKeyBubbles"))return;const $=ry(j)?j.nativeEvent:j,U=Re(Jr,$);u.setOpen(!1,U),U.isCanceled||j.preventDefault(),!v&&!U.isPropagationAllowed&&j.stopPropagation()}),L=le(()=>{f.current.insideReactTree=!0,O.start(0,I)}),A=le(j=>{if(!d||!n||j.button!==0)return;const $=et(j.nativeEvent);ve(u.select("floatingElement"),$)&&(x.current||(x.current=!0,S.current=!1))}),F=le(j=>{!d||!n||(j.defaultPrevented||j.nativeEvent.defaultPrevented)&&x.current&&(S.current=!0)});c.useEffect(()=>{if(!d||!n)return I;f.current.__escapeKeyBubbles=v,f.current.__outsidePressBubbles=w;const j=new _t,$=new _t;function U(){j.clear(),E.current=!0}function Y(){j.start(Yt?5:0,()=>{E.current=!1})}function V(){R.current=!0,$.start(0,()=>{R.current=!1})}function J(){x.current=!1,S.current=!1}function H(){const B=k.current,q=B==="pen"||!B?"mouse":B,se=b(),Z=typeof se=="function"?se():se;return typeof Z=="string"?Z:Z[q]}function G(B){const q=H();return q==="intentional"&&B.type!=="click"||q==="sloppy"&&B.type==="click"}function ue(B){var Z;const q=(Z=f.current.floatingContext)==null?void 0:Z.nodeId,se=y&&wn(y.nodesRef.current,q).some(X=>{var pe;return Os(B,(pe=X.context)==null?void 0:pe.elements.floating)});return N(B)||se}function ne(B){if(G(B)){B.type!=="click"&&!N(B)&&($.clear(),R.current=!1),I();return}if(f.current.insideReactTree){I();return}const q=et(B),se=`[${zo("inert")}]`,Z=Oe(q)?q.getRootNode():null,X=Array.from((so(Z)?Z:Te(u.select("floatingElement"))).querySelectorAll(se)),pe=u.context.triggerElements;if(q&&(pe.hasElement(q)||pe.hasMatchingElement(Le=>ve(Le,q))))return;let be=Oe(q)?q:null;for(;be&&!en(be);){const Le=on(be);if(en(Le)||!Oe(Le))break;be=Le}if(!(X.length&&Oe(q)&&!iy(q)&&!ve(q,u.select("floatingElement"))&&X.every(Le=>!ve(be,Le)))){if(Fe(q)&&!("touches"in B)){const Le=en(q),Ue=xt(q),qe=/auto|scroll/,st=Le||qe.test(Ue.overflowX),_e=Le||qe.test(Ue.overflowY),Qe=st&&q.clientWidth>0&&q.scrollWidth>q.clientWidth,ct=_e&&q.clientHeight>0&&q.scrollHeight>q.clientHeight,Se=Ue.direction==="rtl",je=ct&&(Se?B.offsetX<=q.offsetWidth-q.clientWidth:B.offsetX>q.clientWidth),Ye=Qe&&B.offsetY>q.clientHeight;if(je||Ye)return}if(!ue(B)){if(H()==="intentional"&&R.current){$.clear(),R.current=!1;return}typeof g=="function"&&!g(B)||D("__outsidePressBubbles")||(u.setOpen(!1,Re(Zr,B)),I())}}}function te(B){H()!=="sloppy"||B.pointerType==="touch"||!u.select("open")||!n||N(B)||ne(B)}function Q(B){if(H()!=="sloppy"||!u.select("open")||!n||N(B))return;const q=B.touches[0];q&&(M.current={startTime:Date.now(),startX:q.clientX,startY:q.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},C.start(1e3,()=>{M.current&&(M.current.dismissOnTouchEnd=!1,M.current.dismissOnMouseDown=!1)}))}function ee(B,q){const se=et(B);if(!se)return;const Z=Me(se,B.type,()=>{q(B),Z()})}function ie(B){k.current="touch",ee(B,Q)}function xe(B){C.clear(),B.type==="pointerdown"&&(k.current=B.pointerType),!(B.type==="mousedown"&&M.current&&!M.current.dismissOnMouseDown)&&ee(B,q=>{q.type==="pointerdown"?te(q):ne(q)})}function ae(B){if(!x.current)return;const q=S.current;if(J(),H()==="intentional"){if(B.type==="pointercancel"){q&&V();return}if(!ue(B)){if(q){V();return}typeof g=="function"&&!g(B)||($.clear(),R.current=!0,I())}}}function he(B){if(H()!=="sloppy"||!M.current||N(B))return;const q=B.touches[0];if(!q)return;const se=Math.abs(q.clientX-M.current.startX),Z=Math.abs(q.clientY-M.current.startY),X=Math.sqrt(se*se+Z*Z);X>5&&(M.current.dismissOnTouchEnd=!0),X>10&&(ne(B),C.clear(),M.current=null)}function oe(B){ee(B,he)}function ge(B){H()!=="sloppy"||!M.current||N(B)||(M.current.dismissOnTouchEnd&&ne(B),C.clear(),M.current=null)}function de(B){ee(B,ge)}const ce=Te(p),fe=Ut(o&&Ut(Me(ce,"keydown",z),Me(ce,"compositionstart",U),Me(ce,"compositionend",Y)),h&&Ut(Me(ce,"click",xe,!0),Me(ce,"pointerdown",xe,!0),Me(ce,"pointerup",ae,!0),Me(ce,"pointercancel",ae,!0),Me(ce,"mousedown",xe,!0),Me(ce,"mouseup",ae,!0),Me(ce,"touchstart",ie,!0),Me(ce,"touchmove",oe,!0),Me(ce,"touchend",de,!0)));return()=>{fe(),j.clear(),$.clear(),J(),R.current=!1,I()}},[f,p,o,h,g,d,n,v,w,z,I,b,D,N,y,u,C]);const T=c.useMemo(()=>({onKeyDown:z,onPointerDown:P,onClick:P}),[z,P]),_=c.useMemo(()=>({onKeyDown:z,onPointerDown:F,onMouseDown:F,onClickCapture:L,onMouseDownCapture(j){L(),A(j)},onPointerDownCapture(j){L(),A(j)},onMouseUpCapture:L,onTouchEndCapture:L,onTouchMoveCapture:L}),[z,L,A,F]);return c.useMemo(()=>n?{reference:T,floating:_,trigger:T}:{},[n,T,_])}function $c(e,t,n){let{reference:o,floating:r}=e;const s=Pt(t),i=ra(t),a=oa(i),l=Mt(t),u=s==="y",d=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,f=o[a]/2-r[a]/2;let y;switch(l){case"top":y={x:d,y:o.y-r.height};break;case"bottom":y={x:d,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:p};break;case"left":y={x:o.x-r.width,y:p};break;default:y={x:o.x,y:o.y}}const m=kn(t);return m&&(y[i]+=f*(m==="end"?1:-1)*(n&&u?-1:1)),y}async function Yy(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:f=!1,padding:y=0}=xn(t,e),m=zu(y),h=a[f?p==="floating"?"reference":"floating":p],b=Fo(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(h)))==null||n?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),v=p==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement(w))&&await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1},S=Fo(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:w,strategy:l}):v);return{top:(b.top-S.top+m.top)/x.y,bottom:(S.bottom-b.bottom+m.bottom)/x.y,left:(b.left-S.left+m.left)/x.x,right:(S.right-b.right+m.right)/x.x}}const qy=50,Xy=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,a=i.detectOverflow?i:{...i,detectOverflow:Yy},l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:p}=$c(u,o,l),f=o,y=0;const m={};for(let g=0;g<s.length;g++){const h=s[g];if(!h)continue;const{name:b,fn:v}=h,{x:w,y:x,data:S,reset:R}=await v({x:d,y:p,initialPlacement:o,placement:f,strategy:r,middlewareData:m,rects:u,platform:a,elements:{reference:e,floating:t}});d=w??d,p=x??p,m[b]={...m[b],...S},R&&y<qy&&(y++,typeof R=="object"&&(R.placement&&(f=R.placement),R.rects&&(u=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):R.rects),{x:d,y:p}=$c(u,f,l)),g=-1)}return{x:d,y:p,placement:f,strategy:r,middlewareData:m}},Ky=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...h}=xn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=Mt(r),v=Pt(a),w=Mt(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=f||(w||!g?[zr(a)]:yy(a)),R=m!=="none";!f&&R&&S.push(...wy(a,g,m,x));const E=[a,...S],k=await l.detectOverflow(t,h),M=[];let C=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&M.push(k[b]),p){const N=my(r,i,x);M.push(k[N[0]],k[N[1]])}if(C=[...C,{placement:r,overflows:M}],!M.every(N=>N<=0)){var O,I;const N=(((O=s.flip)==null?void 0:O.index)||0)+1,P=E[N];if(P&&(!(p==="alignment"?v!==Pt(P):!1)||C.every(A=>Pt(A.placement)===v?A.overflows[0]>0:!0)))return{data:{index:N,overflows:C},reset:{placement:P}};let z=(I=C.filter(L=>L.overflows[0]<=0).sort((L,A)=>L.overflows[1]-A.overflows[1])[0])==null?void 0:I.placement;if(!z)switch(y){case"bestFit":{var D;const L=(D=C.filter(A=>{if(R){const F=Pt(A.placement);return F===v||F==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(F=>F>0).reduce((F,T)=>F+T,0)]).sort((A,F)=>A[1]-F[1])[0])==null?void 0:D[0];L&&(z=L);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}},id=new Set(["left","top"]);async function Zy(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=Mt(n),a=kn(n),l=Pt(n)==="y",u=id.has(i)?-1:1,d=s&&l?-1:1,p=xn(t,e);let{mainAxis:f,crossAxis:y,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof m=="number"&&(y=a==="end"?m*-1:m),l?{x:y*d,y:f*u}:{x:f*u,y:y*d}}const Jy=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:a}=t,l=await Zy(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},Qy=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:w,y:x}=v;return{x:w,y:x}}},...u}=xn(e,t),d={x:n,y:o},p=await s.detectOverflow(t,u),f=Pt(r),y=na(f);let m=d[y],g=d[f];const h=(v,w)=>Fu(w+p[v==="y"?"top":"left"],w,w-p[v==="y"?"bottom":"right"]);i&&(m=h(y,m)),a&&(g=h(f,g));const b=l.fn({...t,[y]:m,[f]:g});return{...b,data:{x:b.x-n,y:b.y-o,enabled:{[y]:i,[f]:a}}}}}},e1=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:s,placement:i,rects:a,middlewareData:l}=t,{offset:u=0,mainAxis:d=!0,crossAxis:p=!0}=xn(e,t),f={x:r,y:s},y=Pt(i),m=na(y);let g=f[m],h=f[y];const b=xn(u,t),v=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:(n=b.mainAxis)!=null?n:0,crossAxis:(o=b.crossAxis)!=null?o:0};if(d){const S=m==="y"?"height":"width",R=a.reference[m]-a.floating[S]+v.mainAxis,E=a.reference[m]+a.reference[S]-v.mainAxis;g<R?g=R:g>E&&(g=E)}if(p){var w,x;const S=m==="y"?"width":"height",R=id.has(Mt(i)),E=a.reference[y]-a.floating[S]+(R&&((w=l.offset)==null?void 0:w[y])||0)+(R?0:v.crossAxis),k=a.reference[y]+a.reference[S]+(R?0:((x=l.offset)==null?void 0:x[y])||0)-(R?v.crossAxis:0);h<E?h=E:h>k&&(h=k)}return{[m]:g,[y]:h}}}},t1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:s}=t,{apply:i=()=>{},...a}=xn(e,t),l=await r.detectOverflow(t,a),u=Mt(n),d=kn(n),p=Pt(n)==="y",{width:f,height:y}=o.floating;let m,g;u==="top"||u==="bottom"?(m=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(g=u,m=d==="end"?"top":"bottom");const h=y-l.top-l.bottom,b=f-l.left-l.right,v=co(y-l[m],h),w=co(f-l[g],b),x=t.middlewareData.shift,S=!x;let R=v,E=w;x!=null&&x.enabled.x&&(E=b),x!=null&&x.enabled.y&&(R=h),S&&!d&&(p?E=f-2*tn(l.left,l.right):R=y-2*tn(l.top,l.bottom)),await i({...t,availableWidth:E,availableHeight:R});const k=await r.getDimensions(s.floating);return f!==k.width||y!==k.height?{reset:{rects:!0}}:{}}}};function ad(e){const t=xt(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Fe(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,a=lo(n)!==s||lo(o)!==i;return a&&(n=s,o=i),{width:n,height:o,$:a}}function fa(e){return Oe(e)?e:e.contextElement}function to(e){const t=fa(e);if(!Fe(t))return nn(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=ad(t);let i=(s?lo(n.width):n.width)/o,a=(s?lo(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const n1=nn(0);function cd(e){const t=He(e);return!Di()||!t.visualViewport?n1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function o1(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===He(e)}function Ln(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=fa(e);let i=nn(1);t&&(o?Oe(o)&&(i=to(o)):i=to(e));const a=o1(s,n,o)?cd(s):nn(0);let l=(r.left+a.x)/i.x,u=(r.top+a.y)/i.y,d=r.width/i.x,p=r.height/i.y;if(s&&o){const f=He(s),y=Oe(o)?He(o):o;let m=f,g=Ks(m);for(;g&&y!==m;){const h=to(g),b=g.getBoundingClientRect(),v=xt(g),w=b.left+(g.clientLeft+parseFloat(v.paddingLeft))*h.x,x=b.top+(g.clientTop+parseFloat(v.paddingTop))*h.y;l*=h.x,u*=h.y,d*=h.x,p*=h.y,l+=w,u+=x,m=He(g),g=Ks(m)}}return Fo({width:d,height:p,x:l,y:u})}function as(e,t){const n=Gr(e).scrollLeft;return t?t.left+n:Ln(an(e)).left+n}function ld(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-as(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function r1(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=an(o),a=t?Ur(t.floating):!1;if(o===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=nn(1);const d=nn(0),p=Fe(o);if((p||!s)&&((ut(o)!=="body"||jo(i))&&(l=Gr(o)),p)){const y=Ln(o);u=to(o),d.x=y.x+o.clientLeft,d.y=y.y+o.clientTop}const f=i&&!p&&!s?ld(i,l):nn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-l.scrollTop*u.y+d.y+f.y}}function s1(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function i1(e){const t=Gr(e),n=e.ownerDocument.body,o=tn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=tn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-t.scrollLeft+as(e);const i=-t.scrollTop;return xt(n).direction==="rtl"&&(s+=tn(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:s,y:i}}const a1=25;function c1(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=He(e),s=an(e),i=r.visualViewport;let a=s.clientWidth,l=s.clientHeight,u=0,d=0;if(i){const f=!Di()||t==="fixed";o?f||(u=-i.offsetLeft,d=-i.offsetTop):(a=i.width,l=i.height,f&&(u=i.offsetLeft,d=i.offsetTop))}if(as(s)<=0){const f=s.ownerDocument,y=f.body,m=getComputedStyle(y),g=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,h=Math.abs(s.clientWidth-y.clientWidth-g),b=getComputedStyle(s).scrollbarGutter==="stable both-edges"?h/2:h;b<=a1&&(a-=b)}return{width:a,height:l,x:u,y:d}}function l1(e,t){const n=Ln(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=to(e),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=r*s.x,u=o*s.y;return{width:i,height:a,x:l,y:u}}function Hc(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=c1(e,n,t);else if(t==="document")o=i1(an(e));else if(Oe(t))o=l1(t,n);else{const r=cd(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Fo(o)}function u1(e,t){const n=t.get(e);if(n)return n;let o=Lo(e,[],!1).filter(a=>Oe(a)&&ut(a)!=="body"),r=null;const s=xt(e).position==="fixed";let i=s?on(e):e;for(;Oe(i)&&!en(i);){const a=xt(i),l=Ai(i),u=r?r.position:s?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?o=o.filter(p=>p!==i):r=a,i=on(i)}return t.set(e,o),o}function d1(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?Ur(t)?[]:u1(t,this._c):[].concat(n),o],a=Hc(t,i[0],r);let l=a.top,u=a.right,d=a.bottom,p=a.left;for(let f=1;f<i.length;f++){const y=Hc(t,i[f],r);l=tn(y.top,l),u=co(y.right,u),d=co(y.bottom,d),p=tn(y.left,p)}return{width:u-p,height:d-l,x:p,y:l}}function f1(e){const{width:t,height:n}=ad(e);return{width:t,height:n}}function p1(e,t,n){const o=Fe(t),r=an(t),s=n==="fixed",i=Ln(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=nn(0);if((o||!s)&&((ut(t)!=="body"||jo(r))&&(a=Gr(t)),o)){const f=Ln(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!o&&r&&(l.x=as(r));const u=r&&!o&&!s?ld(r,a):nn(0),d=i.left+a.scrollLeft-l.x-u.x,p=i.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:i.width,height:i.height}}function Ls(e){return xt(e).position==="static"}function jc(e,t){if(!Fe(e)||xt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return an(e)===n&&(n=n.ownerDocument.body),n}function ud(e,t){const n=He(e);if(Ur(e))return n;if(!Fe(e)){let r=on(e);for(;r&&!en(r);){if(Oe(r)&&!Ls(r))return r;r=on(r)}return n}let o=jc(e,t);for(;o&&xm(o)&&Ls(o);)o=jc(o,t);return o&&en(o)&&Ls(o)&&!Ai(o)?n:o||Rm(e)||n}const h1=async function(e){const t=this.getOffsetParent||ud,n=this.getDimensions,o=await n(e.floating);return{reference:p1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function g1(e){return xt(e).direction==="rtl"}const dd={convertOffsetParentRelativeRectToViewportRelativeRect:r1,getDocumentElement:an,getClippingRect:d1,getOffsetParent:ud,getElementRects:h1,getClientRects:s1,getDimensions:f1,getScale:to,isElement:Oe,isRTL:g1};function fd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function m1(e,t,n){let o=null,r;const s=an(e);function i(){var d;clearTimeout(r),(d=o)==null||d.disconnect(),o=null}function a(d,p){d===void 0&&(d=!1),p===void 0&&(p=1),i();const f=e.getBoundingClientRect(),{left:y,top:m,width:g,height:h}=f;if(d||t(),!g||!h)return;const b=nr(m),v=nr(s.clientWidth-(y+g)),w=nr(s.clientHeight-(m+h)),x=nr(y),R={rootMargin:-b+"px "+-v+"px "+-w+"px "+-x+"px",threshold:tn(0,co(1,p))||1};let E=!0;function k(M){const C=M[0].intersectionRatio;if(!fd(f,e.getBoundingClientRect()))return a();if(C!==p){if(!E)return a();C?a(!1,C):r=setTimeout(()=>{a(!1,1e-7)},1e3)}E=!1}try{o=new IntersectionObserver(k,{...R,root:s.ownerDocument})}catch{o=new IntersectionObserver(k,R)}o.observe(e)}const l=He(e),u=()=>a(n);return l.addEventListener("resize",u),a(!0),()=>{l.removeEventListener("resize",u),i()}}function Bc(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=fa(e),d=r||s?[...u?Lo(u):[],...t?Lo(t):[]]:[];d.forEach(b=>{r&&b.addEventListener("scroll",n),s&&b.addEventListener("resize",n)});const p=u&&a?m1(u,n,s):null;let f=-1,y=null;i&&(y=new ResizeObserver(b=>{let[v]=b;v&&v.target===u&&y&&t&&(y.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=y)==null||w.observe(t)})),n()}),u&&!l&&y.observe(u),t&&y.observe(t));let m,g=l?Ln(e):null;l&&h();function h(){const b=Ln(e);g&&!fd(g,b)&&n(),g=b,m=requestAnimationFrame(h)}return n(),()=>{var b;d.forEach(v=>{r&&v.removeEventListener("scroll",n),s&&v.removeEventListener("resize",n)}),p==null||p(),(b=y)==null||b.disconnect(),y=null,l&&cancelAnimationFrame(m)}}const y1=Jy,b1=Qy,v1=Ky,x1=t1,w1=e1,S1=(e,t,n)=>{const o=new Map,r=n??{},s={...dd,...r.platform,_c:o};return Xy(e,t,{...r,platform:s})};var R1=typeof document<"u",k1=function(){},Er=R1?c.useLayoutEffect:k1;function $r(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!$r(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!$r(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function pd(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Wc(e,t){const n=pd(e);return Math.round(t*n)/n}function _s(e){const t=c.useRef(e);return Er(()=>{t.current=e}),t}function E1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,p]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,y]=c.useState(o);$r(f,o)||y(o);const[m,g]=c.useState(null),[h,b]=c.useState(null),v=c.useCallback(A=>{A!==R.current&&(R.current=A,g(A))},[]),w=c.useCallback(A=>{A!==E.current&&(E.current=A,b(A))},[]),x=s||m,S=i||h,R=c.useRef(null),E=c.useRef(null),k=c.useRef(d),M=l!=null,C=_s(l),O=_s(r),I=_s(u),D=c.useCallback(()=>{if(!R.current||!E.current)return;const A={placement:t,strategy:n,middleware:f};O.current&&(A.platform=O.current),S1(R.current,E.current,A).then(F=>{const T={...F,isPositioned:I.current!==!1};N.current&&!$r(k.current,T)&&(k.current=T,At.flushSync(()=>{p(T)}))})},[f,t,n,O,I]);Er(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,p(A=>({...A,isPositioned:!1})))},[u]);const N=c.useRef(!1);Er(()=>(N.current=!0,()=>{N.current=!1}),[]),Er(()=>{if(x&&(R.current=x),S&&(E.current=S),x&&S){if(C.current)return C.current(x,S,D);D()}},[x,S,D,C,M]);const P=c.useMemo(()=>({reference:R,floating:E,setReference:v,setFloating:w}),[v,w]),z=c.useMemo(()=>({reference:x,floating:S}),[x,S]),L=c.useMemo(()=>{const A={position:n,left:0,top:0};if(!z.floating)return A;const F=Wc(z.floating,d.x),T=Wc(z.floating,d.y);return a?{...A,transform:"translate("+F+"px, "+T+"px)",...pd(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:T}},[n,a,z.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:D,refs:P,elements:z,floatingStyles:L}),[d,D,P,z,L])}const C1=(e,t)=>{const n=y1(e);return{name:n.name,fn:n.fn,options:[e,t]}},P1=(e,t)=>{const n=b1(e);return{name:n.name,fn:n.fn,options:[e,t]}},M1=(e,t)=>({fn:w1(e).fn,options:[e,t]}),T1=(e,t)=>{const n=v1(e);return{name:n.name,fn:n.fn,options:[e,t]}},I1=(e,t)=>{const n=x1(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Fs={exports:{}},zs={};/**
747
762
  * @license React
748
763
  * use-sync-external-store-shim.production.js
749
764
  *
@@ -751,7 +766,7 @@ var Op=Object.defineProperty;var rc=e=>{throw TypeError(e)};var Ap=(e,t,n)=>t in
751
766
  *
752
767
  * This source code is licensed under the MIT license found in the
753
768
  * LICENSE file in the root directory of this source tree.
754
- */var Uc;function Mb(){if(Uc)return zs;Uc=1;var e=eu();function t(p,f){return p===f&&(p!==0||1/p===1/f)||p!==p&&f!==f}var n=typeof Object.is=="function"?Object.is:t,o=e.useState,r=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function a(p,f){var y=f(),m=o({inst:{value:y,getSnapshot:f}}),g=m[0].inst,h=m[1];return s(function(){g.value=y,g.getSnapshot=f,l(g)&&h({inst:g})},[p,y,f]),r(function(){return l(g)&&h({inst:g}),p(function(){l(g)&&h({inst:g})})},[p]),i(y),y}function l(p){var f=p.getSnapshot;p=p.value;try{var y=f();return!n(p,y)}catch{return!0}}function u(p,f){return f()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return zs.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,zs}var Gc;function hd(){return Gc||(Gc=1,Fs.exports=Mb()),Fs.exports}var cs=hd(),Vs={exports:{}},$s={};/**
769
+ */var Uc;function O1(){if(Uc)return zs;Uc=1;var e=eu();function t(p,f){return p===f&&(p!==0||1/p===1/f)||p!==p&&f!==f}var n=typeof Object.is=="function"?Object.is:t,o=e.useState,r=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function a(p,f){var y=f(),m=o({inst:{value:y,getSnapshot:f}}),g=m[0].inst,h=m[1];return s(function(){g.value=y,g.getSnapshot=f,l(g)&&h({inst:g})},[p,y,f]),r(function(){return l(g)&&h({inst:g}),p(function(){l(g)&&h({inst:g})})},[p]),i(y),y}function l(p){var f=p.getSnapshot;p=p.value;try{var y=f();return!n(p,y)}catch{return!0}}function u(p,f){return f()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return zs.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,zs}var Gc;function hd(){return Gc||(Gc=1,Fs.exports=O1()),Fs.exports}var cs=hd(),Vs={exports:{}},$s={};/**
755
770
  * @license React
756
771
  * use-sync-external-store-shim/with-selector.production.js
757
772
  *
@@ -759,8 +774,8 @@ var Op=Object.defineProperty;var rc=e=>{throw TypeError(e)};var Ap=(e,t,n)=>t in
759
774
  *
760
775
  * This source code is licensed under the MIT license found in the
761
776
  * LICENSE file in the root directory of this source tree.
762
- */var Yc;function Tb(){if(Yc)return $s;Yc=1;var e=eu(),t=hd();function n(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var o=typeof Object.is=="function"?Object.is:n,r=t.useSyncExternalStore,s=e.useRef,i=e.useEffect,a=e.useMemo,l=e.useDebugValue;return $s.useSyncExternalStoreWithSelector=function(u,d,p,f,y){var m=s(null);if(m.current===null){var g={hasValue:!1,value:null};m.current=g}else g=m.current;m=a(function(){function b(R){if(!v){if(v=!0,w=R,R=f(R),y!==void 0&&g.hasValue){var E=g.value;if(y(E,R))return x=E}return x=R}if(E=x,o(w,R))return E;var k=f(R);return y!==void 0&&y(E,k)?(w=R,E):(w=R,x=k)}var v=!1,w,x,S=p===void 0?null:p;return[function(){return b(d())},S===null?void 0:function(){return b(S())}]},[d,p,f,y]);var h=r(u,m[0],m[1]);return i(function(){g.hasValue=!0,g.value=h},[h]),l(h),h},$s}var qc;function Ib(){return qc||(qc=1,Vs.exports=Tb()),Vs.exports}var Ob=Ib();const ai=[];let ci;function Ab(){return ci}function Db(e){ai.push(e)}function pa(e){const t=(n,o)=>{const r=at(Nb).current;let s;try{ci=r;for(const i of ai)i.before(r);s=e(n,o);for(const i of ai)i.after(r);r.didInitialize=!0}finally{ci=void 0}return s};return t.displayName=e.displayName||e.name,t}function gd(e){return c.forwardRef(pa(e))}function Nb(){return{didInitialize:!1}}const Lb=Fi(19),_b=Lb?zb:Vb;function Ee(e,t,n,o,r){return _b(e,t,n,o,r)}function Fb(e,t,n,o,r){const s=c.useCallback(()=>t(e.getSnapshot(),n,o,r),[e,t,n,o,r]);return cs.useSyncExternalStore(e.subscribe,s,s)}Db({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){const o=e.syncHooks[n],r=o.selector(o.store.state,o.a1,o.a2,o.a3);Object.is(o.value,r)||(t=!0,o.value=r)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{const n=new Set;for(const r of e.syncHooks)n.add(r.store);const o=[];for(const r of n)o.push(r.subscribe(t));return()=>{for(const r of o)r()}}),cs.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot))}});function zb(e,t,n,o,r){const s=Ab();if(!s)return Fb(e,t,n,o,r);const i=s.syncIndex;s.syncIndex+=1;let a;return s.didInitialize?(a=s.syncHooks[i],(a.store!==e||a.selector!==t||!Object.is(a.a1,n)||!Object.is(a.a2,o)||!Object.is(a.a3,r))&&(a.store!==e&&(s.didChangeStore=!0),a.store=e,a.selector=t,a.a1=n,a.a2=o,a.a3=r,a.value=t(e.getSnapshot(),n,o,r))):(a={store:e,selector:t,a1:n,a2:o,a3:r,value:t(e.getSnapshot(),n,o,r)},s.syncHooks.push(a)),a.value}function Vb(e,t,n,o,r){return Ob.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,n,o,r))}class $b{constructor(t){De(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));De(this,"getSnapshot",()=>this.state);this.state=t,this.listeners=new Set,this.updateTick=0}setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const o of this.listeners){if(n!==this.updateTick)return;o(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){const t={...this.state};this.setState(t)}use(t,n,o,r){return Ee(this,t,n,o,r)}}class Uo extends $b{constructor(t,n={},o){super(t),this.context=n,this.selectors=o}useSyncedValue(t,n){c.useDebugValue(t);const o=this;re(()=>{o.state[t]!==n&&o.set(t,n)},[o,t,n])}useSyncedValueWithCleanup(t,n){const o=this;re(()=>(o.state[t]!==n&&o.set(t,n),()=>{o.set(t,void 0)}),[o,t,n])}useSyncedValues(t){const n=this,o=Object.values(t);re(()=>{n.update(t)},[n,...o])}useControlledProp(t,n){c.useDebugValue(t);const o=this,r=n!==void 0;re(()=>{r&&!Object.is(o.state[t],n)&&o.setState({...o.state,[t]:n})},[o,t,n,r])}select(t,n,o,r){const s=this.selectors[t];return s(this.state,n,o,r)}useState(t,n,o,r){return c.useDebugValue(t),Ee(this,this.selectors[t],n,o,r)}useContextCallback(t,n){c.useDebugValue(t);const o=le(n??Ke);this.context[t]=o}useStateSetter(t){const n=c.useRef(void 0);return n.current===void 0&&(n.current=o=>{this.set(t,o)}),n.current}observe(t,n){let o;typeof t=="function"?o=t:o=this.selectors[t];let r=o(this.state);return n(r,r,this),this.subscribe(s=>{const i=o(s);if(!Object.is(r,i)){const a=r;r=i,n(i,a,this)}})}}function Hb(){const[,e]=c.useState({});return c.useCallback(()=>{e({})},[])}const jb={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId};class ls extends Uo{constructor(n){const{syncOnly:o,nested:r,onOpenChange:s,triggerElements:i,...a}=n;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:s,dataRef:{current:{}},events:nd(),nested:r,triggerElements:i},jb);De(this,"syncOpenEvent",(n,o)=>{(!n||!this.state.open||o!=null&&n0(o))&&(this.context.dataRef.current.openEvent=n?o:void 0)});De(this,"dispatchOpenChange",(n,o)=>{this.syncOpenEvent(n,o.event);const r={open:n,reason:o.reason,nativeEvent:o.event,nested:this.context.nested,triggerElement:o.trigger};this.context.events.emit("openchange",r)});De(this,"setOpen",(n,o)=>{var r,s,i,a;if(this.syncOnly){(s=(r=this.context).onOpenChange)==null||s.call(r,n,o);return}this.dispatchOpenChange(n,o),(a=(i=this.context).onOpenChange)==null||a.call(i,n,o)});this.syncOnly=o}}function md(e){const{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:o,floatingId:r,nested:s,onOpenChange:i}=e,a=t.useState("open"),l=t.useState("activeTriggerElement"),u=t.useState(n?"popupElement":"positionerElement"),d=t.context.triggerElements,p=i,f=c.useRef(null);o===void 0&&f.current===null&&(f.current=new ls({open:a,transitionStatus:void 0,referenceElement:l,floatingElement:u,triggerElements:d,onOpenChange:p,floatingId:r,syncOnly:!0,nested:s}));const y=o??f.current;return t.useSyncedValue("floatingId",r),re(()=>{const m={open:a,floatingId:r,referenceElement:l,floatingElement:u};Oe(l)&&(m.domReferenceElement=l),y.state.positionReference===y.state.referenceElement&&(m.positionReference=l),y.update(m)},[a,r,l,u,y]),y.context.onOpenChange=p,y.context.nested=s,y}const us={tabIndex:-1,[ti]:""};function Bb(e){return t=>t==="touch"?e.current:!0}function yd(e,t=!1){const n=bn(),o=En()!=null,r=at(()=>e(n,o)).current;return md({popupStore:r,treatPopupAsFloatingElement:t,floatingRootContext:r.state.floatingRootContext,floatingId:n,nested:o,onOpenChange:r.setOpen}),r}function ha({handle:e,store:t}){return re(()=>e.attachStore(t),[e,t]),null}function Wb(e,t){const n=c.useRef(null),o=c.useRef(null);return c.useCallback(r=>{if(e===void 0)return;let s=!1;if(n.current!==null){const i=n.current,a=o.current,l=t.context.triggerElements.getById(i);a&&l===a&&(t.context.triggerElements.delete(i),s=!0),n.current=null,o.current=null}if(r!==null&&(n.current=e,o.current=r,t.context.triggerElements.add(e,r),s=!0),s){const i=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==i&&t.set("triggerCount",i)}},[t,e])}function ga(e,t,n,o=!1){t?e.preventUnmountingOnClose=!1:o&&(e.preventUnmountingOnClose=!0);const r=(n==null?void 0:n.id)??null;(r||t)&&(e.activeTriggerId=r,e.activeTriggerElement=n??null)}function bd(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Ub(e,t,n,o={}){var d,p,f;const r=n.reason,s=r===ot,i=t&&r===Jn,a=!t&&(r===Rn||r===Qr),l=bd(n);if((p=(d=e.context).onOpenChange)==null||p.call(d,t,n),n.isCanceled)return;(f=o.onBeforeDispatch)==null||f.call(o),e.state.floatingRootContext.dispatchOpenChange(t,n);const u=()=>{const y={...o.extraState,open:t};i?y.instantType="focus":a?y.instantType="dismiss":s&&(y.instantType=void 0),ga(y,t,n.trigger,l()),e.update(y)};s?At.flushSync(u):u()}function ma(e,t,n,o){const r=n.useState("isMountedByTrigger",e),s=Wb(e,n),i=le(l=>{const u=n.select("open"),d=n.select("activeTriggerId");if(d===e){n.update({activeTriggerElement:l,...u?o:null});return}d==null&&u&&n.update({activeTriggerId:e,activeTriggerElement:l,...o})}),a=c.useCallback(l=>{s(l),l&&i(l)},[s,i]);return re(()=>{r&&n.update({activeTriggerElement:t.current,...o})},[r,n,t,...Object.values(o)]),{registerTrigger:a,isMountedByThisTrigger:r}}function ya(e,t={}){const{closeOnActiveTriggerUnmount:n=!1}=t,o=c.useRef(null),r=e.useState("open"),s=e.useState("triggerCount"),i=e.useState("activeTriggerId"),a=e.useState("activeTriggerElement");re(()=>{if(!r){o.current=null,e.state.triggerCount!==0&&e.set("triggerCount",0);return}const l=e.context.triggerElements.size,u={};e.state.triggerCount!==l&&(u.triggerCount=l);const d=e.select("activeTriggerId");let p=null;if(d){const f=e.context.triggerElements.getById(d);if(f)o.current=d,f!==e.state.activeTriggerElement&&(u.activeTriggerElement=f);else{for(const[y,m]of e.context.triggerElements.entries())if(m===e.state.activeTriggerElement){u.activeTriggerId=y,u.activeTriggerElement=m,o.current=y;break}u.activeTriggerId===void 0&&(o.current===d?p=d:o.current=null)}}else o.current=null;if(!p&&!d&&l===1){const f=e.context.triggerElements.entries().next();if(!f.done){const[y,m]=f.value;u.activeTriggerId=y,u.activeTriggerElement=m,o.current=y}}(u.triggerCount!==void 0||u.activeTriggerId!==void 0||u.activeTriggerElement!==void 0)&&e.update(u),p&&n&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===p&&!e.context.triggerElements.getById(p)){const f=Re(Rt);e.setOpen(!1,f),f.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,s,i,a,n])}function ba(e,t,n){const{mounted:o,setMounted:r,transitionStatus:s}=ln(e),i=t.useState("preventUnmountingOnClose"),a=e?!1:i;t.useSyncedValues({mounted:o,transitionStatus:s,preventUnmountingOnClose:a});const l=le(()=>{var u,d;r(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n==null||n(),(d=(u=t.context).onOpenChangeComplete)==null||d.call(u,!1)});return kt({enabled:o&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:s}}function va(e,t){e.useSyncedValues(t),re(()=>()=>{e.update({activeTriggerProps:We,inactiveTriggerProps:We,popupProps:We})},[e])}function Gb(e,t){re(()=>{!t&&e.state.openMethod!==null&&e.set("openMethod",null)},[t,e]),re(()=>()=>{e.state.openMethod!==null&&e.set("openMethod",null)},[e])}class Go{constructor(){this.idMap=new Map}add(t,n){this.idMap.set(t,n)}delete(t){this.idMap.delete(t)}hasElement(t){for(const n of this.idMap.values())if(n===t)return!0;return!1}hasMatchingElement(t){for(const n of this.idMap.values())if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}function Yb(){return new ls({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Go,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function xa(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Yb(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:We,inactiveTriggerProps:We,popupProps:We}}function vd(e,t,n=!1){return new ls({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}const Do=e=>e.triggerIdProp??e.activeTriggerId,wa=e=>e.openProp??e.open,Xc=e=>{var n;return(((n=e.popupElement)==null?void 0:n.id)??e.floatingId)||void 0};function xd(e,t){return t!==void 0&&wa(e)&&Do(e)===t}function qb(e,t){return xd(e,t)?!0:t!==void 0&&wa(e)&&Do(e)==null&&e.triggerCount===1}const Sa={open:wa,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:Do,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:Xc,isTriggerActive:(e,t)=>t!==void 0&&Do(e)===t,isOpenedByTrigger:(e,t)=>xd(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Do(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>qb(e,t)?Xc(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function Ra(e){const t=c.useCallback(o=>e===void 0?Ke:e.subscribeStore(o),[e]),n=c.useCallback(()=>e===void 0?void 0:e.store,[e]);return cs.useSyncExternalStore(t,n,()=>e==null?void 0:e.serverStore)}function Xb(e){const{open:t=!1,onOpenChange:n,elements:o={}}=e,r=bn(),s=En()!=null,i=at(()=>new ls({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:o.reference??null,floatingElement:o.floating??null,triggerElements:new Go,floatingId:r,syncOnly:!1,nested:s})).current;return re(()=>{const a={open:t,floatingId:r};o.reference!==void 0&&(a.referenceElement=o.reference,a.domReferenceElement=Oe(o.reference)?o.reference:null),o.floating!==void 0&&(a.floatingElement=o.floating),i.update(a)},[t,r,o.reference,o.floating,i]),i.context.onOpenChange=n,i.context.nested=s,i}function Kb(e){return Zb(e,e.rootContext)}function Zb(e,t){const{nodeId:n,externalTree:o}=e,r=t.useState("referenceElement"),s=t.useState("floatingElement"),i=t.useState("domReferenceElement"),a=t.useState("open"),l=t.useState("floatingId"),[u,d]=c.useState(null),[p,f]=c.useState(void 0),[y,m]=c.useState(void 0),g=c.useRef(null),h=Cn(o),b=c.useMemo(()=>({reference:r,floating:s,domReference:i}),[r,s,i]),v=Sb({...e,elements:{...b,...u&&{reference:u}}}),w=Oe(p)?p:null,x=y===void 0?t.state.floatingElement:y;t.useSyncedValue("referenceElement",p??null),t.useSyncedValue("domReferenceElement",p===void 0?i:w),t.useSyncedValue("floatingElement",x);const S=c.useCallback(O=>{const I=Oe(O)?{getBoundingClientRect:()=>O.getBoundingClientRect(),getClientRects:()=>O.getClientRects(),contextElement:O}:O;d(I),v.refs.setReference(I)},[v.refs]),R=c.useCallback(O=>{(Oe(O)||O===null)&&(g.current=O,f(O)),(Oe(v.refs.reference.current)||v.refs.reference.current===null||O!==null&&!Oe(O))&&v.refs.setReference(O)},[v.refs,f]),E=c.useCallback(O=>{m(O),v.refs.setFloating(O)},[v.refs]),k=c.useMemo(()=>({...v.refs,setReference:R,setFloating:E,setPositionReference:S,domReference:g}),[v.refs,R,E,S]),M=c.useMemo(()=>({...v.elements,domReference:i}),[v.elements,i]),C=c.useMemo(()=>({...v,dataRef:t.context.dataRef,open:a,onOpenChange:t.setOpen,events:t.context.events,floatingId:l,refs:k,elements:M,nodeId:n,rootStore:t}),[v,k,M,n,t,a,l]);return re(()=>{i&&(g.current=i)},[i]),re(()=>{t.context.dataRef.current.floatingContext=C;const O=h==null?void 0:h.nodesRef.current.find(I=>I.id===n);O&&(O.context=C)}),c.useMemo(()=>({...v,context:C,refs:k,elements:M,rootStore:t}),[v,k,M,C,t])}const Hs=Ui&&Yt;function wd(e,t={}){const{enabled:n=!0,delay:o}=t,r="rootStore"in e?e.rootStore:e,{events:s,dataRef:i}=r.context,a=c.useRef(!1),l=c.useRef(null),u=c.useRef(!0),d=Ge();c.useEffect(()=>{const f=r.select("domReferenceElement");if(!n)return;const y=He(f);function m(){const b=r.select("domReferenceElement");!r.select("open")&&Fe(b)&&b===dt(Te(b))&&(a.current=!0)}function g(){u.current=!0}function h(){u.current=!1}return Ut(Me(y,"blur",m),Hs&&Me(y,"keydown",g,!0),Hs&&Me(y,"pointerdown",h,!0))},[r,n]),c.useEffect(()=>{if(!n)return;function f(y){if(y.reason===Rn||y.reason===Qr){const m=r.select("domReferenceElement");Oe(m)&&(l.current=m,a.current=!0)}}return s.on("openchange",f),()=>{s.off("openchange",f)}},[s,n,r]);const p=c.useMemo(()=>{function f(){a.current=!1,l.current=null}return{onMouseLeave(){f()},onFocus(y){const m=y.currentTarget;if(a.current){if(l.current===m)return;f()}const g=et(y.nativeEvent);if(Oe(g)){if(Hs&&!y.relatedTarget){if(!u.current&&!rs(g))return}else if(!s0(g))return}const h=_r(y.relatedTarget,r.context.triggerElements),{nativeEvent:b,currentTarget:v}=y,w=typeof o=="function"?o():o;if(r.select("open")&&h||w===0||w===void 0){r.setOpen(!0,Re(Jn,b,v));return}d.start(w,()=>{a.current||r.setOpen(!0,Re(Jn,b,v))})},onBlur(y){f();const m=y.relatedTarget,g=y.nativeEvent,h=Oe(m)&&m.hasAttribute(zo("focus-guard"))&&m.getAttribute("data-type")==="outside";d.start(0,()=>{var x;const b=r.select("domReferenceElement"),v=dt(Te(b));!m&&v===b||ve((x=i.current.floatingContext)==null?void 0:x.refs.floating.current,v)||ve(b,v)||h||_r(m??v,r.context.triggerElements)||r.setOpen(!1,Re(Jn,g))})}}},[i,o,r,d]);return c.useMemo(()=>n?{reference:p,trigger:p}:{},[n,p])}class ka{constructor(){De(this,"dispose",()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()});De(this,"disposeEffect",()=>this.dispose);this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new _t,this.restTimeout=new _t,this.handleCloseOptions=void 0}static create(){return new ka}}const Hr=new WeakMap;function jr(e){var n,o,r;if(!e.performedPointerEventsMutation)return;const t=e.pointerEventsScopeElement;t&&Hr.get(t)===e&&((n=e.pointerEventsScopeElement)==null||n.style.removeProperty("pointer-events"),(o=e.pointerEventsReferenceElement)==null||o.style.removeProperty("pointer-events"),(r=e.pointerEventsFloatingElement)==null||r.style.removeProperty("pointer-events"),Hr.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Sd(e,t){const{scopeElement:n,referenceElement:o,floatingElement:r}=t,s=Hr.get(n);s&&s!==e&&jr(s),jr(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=o,e.pointerEventsFloatingElement=r,Hr.set(n,e),n.style.pointerEvents="none",o.style.pointerEvents="auto",r.style.pointerEvents="auto"}function Ea(e){const t=e.context.dataRef.current,n=at(()=>t.hoverInteractionState??ka.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=n),Xi(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function Rd(e,t={}){const{enabled:n=!0,closeDelay:o=0,nodeId:r}=t,s="rootStore"in e?e.rootStore:e,i=s.useState("open"),a=s.useState("floatingElement"),l=s.useState("domReferenceElement"),{dataRef:u}=s.context,d=Cn(),p=En(),f=Ea(s),y=Ge(),m=le(()=>{var b;return Nu((b=u.current.openEvent)==null?void 0:b.type,f.interactedInside)}),g=le(()=>{var b;return a0((b=u.current.openEvent)==null?void 0:b.type)}),h=le(()=>{jr(f)});re(()=>{i||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,h())},[i,f,h]),c.useEffect(()=>h,[h]),re(()=>{var b,v,w,x,S;if(n&&i&&(b=f.handleCloseOptions)!=null&&b.blockPointerEvents&&g()&&Oe(l)&&a){const R=l,E=a,k=Te(a),M=(w=(v=d==null?void 0:d.nodesRef.current.find(D=>D.id===p))==null?void 0:v.context)==null?void 0:w.elements.floating;M&&(M.style.pointerEvents="");const C=f.pointerEventsScopeElement!==E?f.pointerEventsScopeElement:null,O=M!==E?M:null,I=((S=(x=f.handleCloseOptions)==null?void 0:x.getScope)==null?void 0:S.call(x))??C??O??R.closest("[data-rootownerid]")??k.body;return Sd(f,{scopeElement:I,referenceElement:R,floatingElement:E}),()=>{h()}}},[n,i,l,a,f,g,d,p,h]),c.useEffect(()=>{if(!n)return;function b(){return!!(d&&p&&wn(d.nodesRef.current,p).length>0)}function v(k){const M=vn(o,"close",f.pointerType),C=()=>{s.setOpen(!1,Re(ot,k)),d==null||d.events.emit("floating.closed",k)};M?f.openChangeTimeout.start(M,C):(f.openChangeTimeout.clear(),C())}function w(k){const M=et(k);if(!r0(M)){f.interactedInside=!1;return}f.interactedInside=(M==null?void 0:M.closest("[aria-haspopup]"))!=null}function x(){f.openChangeTimeout.clear(),y.clear(),d==null||d.events.off("floating.closed",R),h()}function S(k){var I;if(b()&&d){d.events.on("floating.closed",R);return}if(_r(k.relatedTarget,s.context.triggerElements))return;const M=((I=u.current.floatingContext)==null?void 0:I.nodeId)??r,C=k.relatedTarget;if(!(d&&M&&Oe(C)&&wn(d.nodesRef.current,M,!1).some(D=>{var N;return ve((N=D.context)==null?void 0:N.elements.floating,C)}))){if(f.handler){f.handler(k);return}h(),g()&&!m()&&v(k)}}function R(k){!d||!p||b()||y.start(0,()=>{d.events.off("floating.closed",R),s.setOpen(!1,Re(ot,k)),d.events.emit("floating.closed",k)})}const E=a;return Ut(E&&Me(E,"mouseenter",x),E&&Me(E,"mouseleave",S),E&&Me(E,"pointerdown",w,!0),()=>{d==null||d.events.off("floating.closed",R)})},[n,a,s,u,o,r,g,m,h,f,d,p,y])}const Qb={current:null};function kd(e,t={}){var z;const{enabled:n=!0,delay:o=0,handleClose:r=null,mouseOnly:s=!1,restMs:i=0,move:a=!0,triggerElementRef:l=Qb,externalTree:u,isActiveTrigger:d=!0,getHandleCloseContext:p,isClosing:f,shouldOpen:y,guardStaleOpen:m=!1}=t,g="rootStore"in e?e.rootStore:e,{dataRef:h,events:b}=g.context,v=Cn(u),w=Ea(g),x=c.useRef(!1),S=Ze(r),R=Ze(o),E=Ze(i),k=Ze(n),M=Ze(y),C=Ze(f),O=le(()=>{var L;return Nu((L=h.current.openEvent)==null?void 0:L.type,w.interactedInside)}),I=le(()=>{var L;return((L=M.current)==null?void 0:L.call(M))!==!1}),D=le((L,A,F)=>{const T=g.context.triggerElements;if(T.hasElement(A))return!L||!ve(L,A);if(!Oe(F))return!1;const _=F;return T.hasMatchingElement(j=>ve(j,_))&&(!L||!ve(L,_))}),N=le(()=>{if(!w.handler)return;Te(g.select("domReferenceElement")).removeEventListener("mousemove",w.handler),w.handler=void 0}),P=le(()=>{jr(w)});return d&&(w.handleCloseOptions=(z=S.current)==null?void 0:z.__options),c.useEffect(()=>N,[N]),c.useEffect(()=>{if(!n)return;function L(A){A.open?x.current=!1:(x.current=A.reason===ot,N(),w.openChangeTimeout.clear(),w.restTimeout.clear(),w.blockMouseMove=!0,w.restTimeoutPending=!1)}return b.on("openchange",L),()=>{b.off("openchange",L)}},[n,b,w,N]),c.useEffect(()=>{if(!n)return;function L($,U=!0){const Y=vn(R.current,"close",w.pointerType);Y?w.openChangeTimeout.start(Y,()=>{g.setOpen(!1,Re(ot,$)),v==null||v.events.emit("floating.closed",$)}):U&&(w.openChangeTimeout.clear(),g.setOpen(!1,Re(ot,$)),v==null||v.events.emit("floating.closed",$))}const A=l.current??(d?g.select("domReferenceElement"):null);if(!Oe(A))return;function F($){var he;if(w.openChangeTimeout.clear(),w.blockMouseMove=!1,s&&!mn(w.pointerType))return;const U=Ec(E.current),Y=vn(R.current,"open",w.pointerType),V=et($),Q=$.currentTarget??null,H=g.select("domReferenceElement");let G=Q;if(Oe(V)&&!g.context.triggerElements.hasElement(V)){for(const oe of g.context.triggerElements.elements())if(ve(oe,V)){G=oe;break}}Oe(Q)&&Oe(H)&&!g.context.triggerElements.hasElement(Q)&&ve(Q,H)&&(G=H);const ue=G==null?!1:D(H,G,V),ne=g.select("open"),te=((he=C.current)==null?void 0:he.call(C))??g.select("transitionStatus")==="ending",J=!ne&&te&&x.current,ee=!ue&&Oe(G)&&Oe(H)&&ve(H,G)&&J,ie=U>0&&!Y,xe=ue&&(ne||J)||ee,ae=!ne||ue;if(xe){I()&&g.setOpen(!0,Re(ot,$,G));return}ie||(Y?w.openChangeTimeout.start(Y,()=>{ae&&I()&&g.setOpen(!0,Re(ot,$,G))}):ae&&I()&&g.setOpen(!0,Re(ot,$,G)))}function T($){if(O()){P();return}N();const U=g.select("domReferenceElement"),Y=Te(U);w.restTimeout.clear(),w.restTimeoutPending=!1;const V=h.current.floatingContext??(p==null?void 0:p());if(_r($.relatedTarget,g.context.triggerElements))return;if(S.current&&V){g.select("open")||w.openChangeTimeout.clear();const H=l.current;w.handler=S.current({...V,tree:v,x:$.clientX,y:$.clientY,onClose(){P(),N(),k.current&&!O()&&H===g.select("domReferenceElement")&&L($,!0)}}),Y.addEventListener("mousemove",w.handler),w.handler($);return}(w.pointerType==="touch"?!ve(g.select("floatingElement"),$.relatedTarget):!0)&&L($)}function _($){ve(A,$.relatedTarget)||(w.openChangeTimeout.clear(),w.restTimeout.clear(),w.restTimeoutPending=!1)}const j=m?Me(A,"mouseout",_):void 0;return a?Ut(Me(A,"mousemove",F,{once:!0}),Me(A,"mouseenter",F),Me(A,"mouseleave",T),j):Ut(Me(A,"mouseenter",F),Me(A,"mouseleave",T),j)},[N,P,h,R,g,n,S,w,d,D,O,s,a,E,l,v,k,p,C,I,m]),c.useMemo(()=>{if(!n)return;function L(A){w.pointerType=A.pointerType}return{onPointerDown:L,onPointerEnter:L,onMouseMove(A){var V,Q,H;const{nativeEvent:F}=A,T=A.currentTarget,_=g.select("domReferenceElement"),j=g.select("open"),$=D(_,T,A.target);if(s&&!mn(w.pointerType))return;if(j&&$&&((V=w.handleCloseOptions)!=null&&V.blockPointerEvents)){const G=g.select("floatingElement");if(G){const ue=((H=(Q=w.handleCloseOptions)==null?void 0:Q.getScope)==null?void 0:H.call(Q))??T.ownerDocument.body;Sd(w,{scopeElement:ue,referenceElement:T,floatingElement:G})}}const U=Ec(E.current);if(j&&!$||U===0||!$&&w.restTimeoutPending&&A.movementX**2+A.movementY**2<2)return;w.restTimeout.clear();function Y(){if(w.restTimeoutPending=!1,O())return;const G=g.select("open");!w.blockMouseMove&&(!G||$)&&I()&&g.setOpen(!0,Re(ot,F,T))}w.pointerType==="touch"?At.flushSync(()=>{Y()}):$&&j?Y():(w.restTimeoutPending=!0,w.restTimeout.start(U,Y))}}},[n,w,O,D,s,g,E,I])}const Jb="Escape";function Kc(e){return Yt&&e.movementX===0&&e.movementY===0}function ds(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function rr(e,t){return ds(t,e===Du||e===ea,e===ns||e===os)}function js(e,t,n){return ds(t,e===ea,n?e===ns:e===os)||e==="Enter"||e===" "||e===""}function e1(e,t,n){return ds(t,n?e===ns:e===os,e===ea)}function t1(e,t,n,o){const r=n?e===os:e===ns,s=e===Du;return t==="both"||t==="horizontal"&&o?e===Jb:ds(t,r,s)}function Ed(e,t){const{listRef:n,activeIndex:o,onNavigate:r=()=>{},enabled:s=!0,selectedIndex:i=null,allowEscape:a=!1,loopFocus:l=!1,nested:u=!1,rtl:d=!1,virtual:p=!1,focusItemOnOpen:f="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:m=!0,disabledIndices:g=void 0,orientation:h="vertical",parentOrientation:b,id:v,resetOnPointerLeave:w=!0,externalTree:x,grid:S}=t,R=S!=null,E="rootStore"in e?e.rootStore:e,k=E.useState("open"),M=E.useState("floatingElement"),C=E.useState("domReferenceElement"),O=E.context.dataRef,I=Fr(M),D=ni(C),N=Ze(I),P=En(),z=Cn(x),L=c.useRef(f),A=c.useRef(i??-1),F=c.useRef(null),T=c.useRef(!0),_=le(B=>{r(A.current===-1?null:A.current,B)}),j=c.useRef(!!M),$=c.useRef(k),U=c.useRef(!1),Y=c.useRef(!1),V=c.useRef(null),Q=Ze(g),H=Ze(k),G=Ze(i),ue=Ze(w),ne=io(),te=io(),J=le(()=>{function B(X){p?z==null||z.events.emit("virtualfocus",X):V.current=kr(X,{sync:U.current,preventScroll:!0})}const q=n.current[A.current],se=Y.current;q&&B(q),(U.current?X=>X():X=>ne.request(X))(()=>{var be;const X=n.current[A.current]||q;if(!X)return;q||B(X),oe&&(se||!T.current)&&((be=X.scrollIntoView)==null||be.call(X,{block:"nearest",inline:"nearest"}))})});re(()=>{O.current.orientation=h},[O,h]),re(()=>{s&&(k&&M?(A.current=i??-1,L.current&&i!=null&&(Y.current=!0,_())):j.current&&(A.current=-1,_()))},[s,k,M,i,_]),re(()=>{if(s){if(!k){U.current=!1;return}if(M)if(o==null){if(U.current=!1,G.current!=null)return;if(j.current&&(A.current=-1,J()),(!$.current||!j.current)&&L.current&&(F.current!=null||L.current===!0&&F.current==null)){let B=0;const q=()=>{n.current[0]==null?(B<2&&(B?Z=>te.request(Z):queueMicrotask)(q),B+=1):(A.current=F.current==null||js(F.current,h,d)||u?Rr(n):ri(n),F.current=null,_())};q()}}else Ao(n.current,o)||(A.current=o,J(),Y.current=!1)}},[s,k,M,o,G,u,n,h,d,_,J,te]),re(()=>{var X,pe;if(!s||M||!z||p||!j.current)return;const B=z.nodesRef.current,q=(pe=(X=B.find(be=>be.id===P))==null?void 0:X.context)==null?void 0:pe.elements.floating,se=dt(Te(C??q??null)),Z=B.some(be=>be.context&&ve(be.context.elements.floating,se));q&&!Z&&T.current&&q.focus({preventScroll:!0})},[s,M,C,z,P,p]),re(()=>{$.current=k,j.current=!!M}),re(()=>{k||(F.current=null,L.current=f)},[k,f]);const ee=o!=null,ie=le(B=>{if(!H.current)return;const q=n.current.indexOf(B.currentTarget);q!==-1&&(A.current!==q||o!==q)&&(A.current=q,_(B))}),xe=le(()=>{var B,q,se;return b??((se=(q=(B=z==null?void 0:z.nodesRef.current.find(Z=>Z.id===P))==null?void 0:B.context)==null?void 0:q.dataRef)==null?void 0:se.current.orientation)}),ae=le(()=>Rr(n,Q.current)),he=le(B=>{if(T.current=!1,U.current=!0,B.which===229||!H.current&&B.currentTarget===N.current)return;if(u&&t1(B.key,h,d,R)){rr(B.key,xe())||It(B),E.setOpen(!1,Re(Js,B.nativeEvent)),Fe(C)&&(p?z==null||z.events.emit("virtualfocus",C):C.focus());return}const q=A.current,se=Rr(n,g),Z=ri(n,g);if(D||(B.key==="Home"&&(It(B),A.current=se,_(B)),B.key==="End"&&(It(B),A.current=Z,_(B))),S!=null){const X=S(B,A.current,n,h,l,d,g,se,Z);if(X!=null&&(A.current=X,_(B)),h==="both")return}if(rr(B.key,h)){if(It(B),k&&!p&&dt(B.currentTarget.ownerDocument)===B.currentTarget){A.current=js(B.key,h,d)?se:Z,_(B);return}js(B.key,h,d)?l?q>=Z?a&&q!==n.current.length?A.current=-1:(U.current=!1,A.current=se):A.current=Jt(n.current,{startingIndex:q,disabledIndices:g}):A.current=Math.min(Z,Jt(n.current,{startingIndex:q,disabledIndices:g})):l?q<=se?a&&q!==-1?A.current=n.current.length:(U.current=!1,A.current=Z):A.current=Jt(n.current,{startingIndex:q,decrement:!0,disabledIndices:g}):A.current=Math.max(se,Jt(n.current,{startingIndex:q,decrement:!0,disabledIndices:g})),Ao(n.current,A.current)&&(A.current=-1),_(B)}}),oe=c.useMemo(()=>({onFocus(q){U.current=!0,ie(q)},onClick:({currentTarget:q})=>q.focus({preventScroll:!0}),onMouseMove(q){Kc(q)||(U.current=!0,Y.current=!1,y&&ie(q))},onPointerLeave(q){var Z;if(!H.current||!T.current||q.pointerType==="touch")return;U.current=!0;const se=q.relatedTarget;if(!(!y||n.current.includes(se))&&ue.current&&((Z=V.current)==null||Z.call(V),V.current=null,A.current=-1,_(q),!p)){const X=N.current,pe=dt(Te(X));X&&ve(X,pe)&&X.focus({preventScroll:!0})}}}),[ie,H,N,y,n,_,ue,p]),ge=c.useMemo(()=>p&&k&&ee&&{"aria-activedescendant":`${v}-${o}`},[p,k,ee,v,o]),de=c.useMemo(()=>({"aria-orientation":h==="both"?void 0:h,...D?{}:ge,onKeyDown(B){if(B.key==="Tab"&&B.shiftKey&&k&&!p){const q=et(B.nativeEvent);if(q&&!ve(N.current,q))return;It(B),E.setOpen(!1,Re(Nn,B.nativeEvent)),Fe(C)&&C.focus();return}he(B)},onPointerMove(B){Kc(B)||(T.current=!0)}}),[ge,he,N,h,D,E,k,p,C]),ce=c.useMemo(()=>{function B(Z){E.setOpen(!0,Re(Js,Z.nativeEvent,Z.currentTarget))}function q(Z){f==="auto"&&Qi(Z.nativeEvent)&&(L.current=!p)}function se(Z){L.current=f,f==="auto"&&Ji(Z.nativeEvent)&&(L.current=!0)}return{onKeyDown(Z){const X=E.select("open");T.current=!1;const pe=Z.key.startsWith("Arrow"),be=e1(Z.key,xe(),d),Le=rr(Z.key,h),Ue=(u?be:Le)||Z.key==="Enter"||Z.key.trim()==="";if(p&&X)return he(Z);if(!(!X&&!m&&pe)){if(Ue){const qe=rr(Z.key,xe());F.current=u&&qe?null:Z.key}if(u){be&&(It(Z),X?(A.current=ae(),_(Z)):B(Z));return}Le&&(G.current!=null&&(A.current=G.current),It(Z),!X&&m?B(Z):he(Z),X&&_(Z))}},onFocus(Z){E.select("open")&&!p&&(A.current=-1,_(Z))},onPointerDown:se,onPointerEnter:se,onMouseDown:q,onClick:q}},[he,f,ae,u,_,E,m,h,xe,d,G,p]),fe=c.useMemo(()=>({...ge,...ce}),[ge,ce]);return c.useMemo(()=>s?{reference:fe,floating:de,item:oe,trigger:ce}:{},[s,fe,de,ce,oe])}function Cd(e,t){const{listRef:n,elementsRef:o,activeIndex:r,onMatch:s,disabledIndices:i,onTyping:a,enabled:l=!0,resetMs:u=750,selectedIndex:d=null}=t,p="rootStore"in e?e.rootStore:e,f=p.useState("open"),y=Ge(),m=c.useRef(""),g=c.useRef(d??r??-1),h=c.useRef(null),b=le(x=>{function S(N){return o==null?void 0:o.current[N]}function R(N){const P=S(N);return P&&!ss(P)||P!=null&&P.matches(":disabled")?!1:i==null||!Vr(Nt,N,i)}function E(N,P,z=0){if(N.length===0)return-1;const L=(z%N.length+N.length)%N.length,A=P.toLowerCase();for(let F=0;F<N.length;F+=1){const T=(L+F)%N.length,_=N[T];if(!(!(_!=null&&_.toLowerCase().startsWith(A))||!R(T)))return T}return-1}const k=n.current;if(m.current.length>0&&x.key===" "&&(It(x),a==null||a(!0)),m.current.length>0&&m.current[0]!==" "&&E(k,m.current)===-1&&x.key!==" "&&(a==null||a(!1)),k==null||x.key.length!==1||x.ctrlKey||x.metaKey||x.altKey)return;f&&x.key!==" "&&(It(x),a==null||a(!0));const M=m.current==="";M&&(g.current=d??r??-1),k.every((N,P)=>{var z,L;return N&&R(P)?((z=N[0])==null?void 0:z.toLowerCase())!==((L=N[1])==null?void 0:L.toLowerCase()):!0})&&m.current===x.key&&(m.current="",g.current=h.current),m.current+=x.key,y.start(u,()=>{m.current="",g.current=h.current,a==null||a(!1)});const I=((M?d??r??-1:g.current)??0)+1,D=E(k,m.current,I);D!==-1?(s==null||s(D),h.current=D):x.key!==" "&&(m.current="",a==null||a(!1))}),v=le(x=>{const S=x.relatedTarget,R=p.select("domReferenceElement"),E=p.select("floatingElement");ve(R,S)||ve(E,S)||(y.clear(),m.current="",g.current=h.current,a==null||a(!1))});re(()=>{!f&&d!==null||(y.clear(),h.current=null,m.current!==""&&(m.current=""))},[f,d,y]);const w=c.useMemo(()=>({onKeyDown:b,onBlur:v}),[b,v]);return c.useMemo(()=>l?{reference:w,floating:w}:{},[l,w])}const Zc=.1,n1=Zc*Zc,Ve=.5;function sr(e,t,n,o,r,s){return o>=t!=s>=t&&e<=(r-n)*(t-o)/(s-o)+n}function ir(e,t,n,o,r,s,i,a,l,u){let d=!1;return sr(e,t,n,o,r,s)&&(d=!d),sr(e,t,r,s,i,a)&&(d=!d),sr(e,t,i,a,l,u)&&(d=!d),sr(e,t,l,u,n,o)&&(d=!d),d}function o1(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function ar(e,t,n,o,r,s){const i=Math.min(n,r),a=Math.max(n,r),l=Math.min(o,s),u=Math.max(o,s);return e>=i&&e<=a&&t>=l&&t<=u}function Pd(e={}){const{blockPointerEvents:t=!1}=e,n=new _t,o=({x:r,y:s,placement:i,elements:a,onClose:l,nodeId:u,tree:d})=>{const p=i==null?void 0:i.split("-")[0];let f=!1,y=null,m=null,g=typeof performance<"u"?performance.now():0;function h(v,w){const x=performance.now(),S=x-g;if(y===null||m===null||S===0)return y=v,m=w,g=x,!1;const R=v-y,E=w-m,k=R*R+E*E,M=S*S*n1;return y=v,m=w,g=x,k<M}function b(){n.clear(),l()}return function(w){n.clear();const x=a.domReference,S=a.floating;if(!x||!S||p==null||r==null||s==null)return;const{clientX:R,clientY:E}=w,k=et(w),M=w.type==="mouseleave",C=ve(S,k),O=ve(x,k);if(C&&(f=!0,!M))return;if(O&&(f=!1,!M)){f=!0;return}if(M&&Oe(w.relatedTarget)&&ve(S,w.relatedTarget))return;function I(){return!!(d&&wn(d.nodesRef.current,u).length>0)}function D(){I()||b()}if(I())return;const N=x.getBoundingClientRect(),P=S.getBoundingClientRect(),z=r>P.right-P.width/2,L=s>P.bottom-P.height/2,A=P.width>N.width,F=P.height>N.height,T=(A?N:P).left,_=(A?N:P).right,j=(F?N:P).top,$=(F?N:P).bottom;if(p==="top"&&s>=N.bottom-1||p==="bottom"&&s<=N.top+1||p==="left"&&r>=N.right-1||p==="right"&&r<=N.left+1){D();return}let U=!1;switch(p){case"top":U=ar(R,E,T,N.top+1,_,P.bottom-1);break;case"bottom":U=ar(R,E,T,P.top+1,_,N.bottom-1);break;case"left":U=ar(R,E,P.right-1,$,N.left+1,j);break;case"right":U=ar(R,E,N.right-1,$,P.left+1,j);break}if(U)return;if(f&&!o1(R,E,N)){D();return}if(!M&&h(R,E)){D();return}let Y=!1;switch(p){case"top":{const V=A?Ve/2:Ve*4,Q=A||z?r+V:r-V,H=A?r-V:z?r+V:r-V,G=s+Ve+1,ue=z||A?P.bottom-Ve:P.top,ne=z?A?P.bottom-Ve:P.top:P.bottom-Ve;Y=ir(R,E,Q,G,H,G,P.left,ue,P.right,ne);break}case"bottom":{const V=A?Ve/2:Ve*4,Q=A||z?r+V:r-V,H=A?r-V:z?r+V:r-V,G=s-Ve,ue=z||A?P.top+Ve:P.bottom,ne=z?A?P.top+Ve:P.bottom:P.top+Ve;Y=ir(R,E,Q,G,H,G,P.left,ue,P.right,ne);break}case"left":{const V=F?Ve/2:Ve*4,Q=F||L?s+V:s-V,H=F?s-V:L?s+V:s-V,G=r+Ve+1,ue=L||F?P.right-Ve:P.left,ne=L?F?P.right-Ve:P.left:P.right-Ve;Y=ir(R,E,ue,P.top,ne,P.bottom,G,Q,G,H);break}case"right":{const V=F?Ve/2:Ve*4,Q=F||L?s+V:s-V,H=F?s-V:L?s+V:s-V,G=r-Ve,ue=L||F?P.left+Ve:P.right,ne=L?F?P.left+Ve:P.right:P.left+Ve;Y=ir(R,E,G,Q,G,H,ue,P.top,ne,P.bottom);break}}Y?f||n.start(40,D):D()}};return o.__options={...e,blockPointerEvents:t},o}const r1=c.createContext(void 0);function Ca(e){return c.useContext(r1)}const li="ArrowUp",ui="ArrowDown",di="ArrowLeft",fi="ArrowRight",pi="Home",hi="End",fs=new Set([li,ui,di,fi,pi,hi]),s1="Shift",i1=[s1,"Control","Alt","Meta"];function a1(e){return Fe(e)&&e.tagName==="INPUT"}function Qc(e){return!!(a1(e)&&e.selectionStart!=null||Fe(e)&&e.tagName==="TEXTAREA")}function Jc(e,t,n,o){if(!e||!t||!t.scrollTo)return;let r=e.scrollLeft,s=e.scrollTop;const i=e.clientWidth<e.scrollWidth,a=e.clientHeight<e.scrollHeight;if(i&&o!=="vertical"){const l=el(e,t,"left"),u=cr(e),d=cr(t);n==="ltr"&&(l+t.offsetWidth+d.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight?r=l+t.offsetWidth+d.scrollMarginRight-e.clientWidth+u.scrollPaddingRight:l-d.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft&&(r=l-d.scrollMarginLeft-u.scrollPaddingLeft)),n==="rtl"&&(l-d.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft?r=l-d.scrollMarginLeft-u.scrollPaddingLeft:l+t.offsetWidth+d.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight&&(r=l+t.offsetWidth+d.scrollMarginRight-e.clientWidth+u.scrollPaddingRight))}if(a&&o!=="horizontal"){const l=el(e,t,"top"),u=cr(e),d=cr(t);l-d.scrollMarginTop<e.scrollTop+u.scrollPaddingTop?s=l-d.scrollMarginTop-u.scrollPaddingTop:l+t.offsetHeight+d.scrollMarginBottom>e.scrollTop+e.clientHeight-u.scrollPaddingBottom&&(s=l+t.offsetHeight+d.scrollMarginBottom-e.clientHeight+u.scrollPaddingBottom)}e.scrollTo({left:r,top:s,behavior:"auto"})}function el(e,t,n){const o=n==="left"?"offsetLeft":"offsetTop";let r=0;for(;t.offsetParent&&(r+=t[o],t.offsetParent!==e);)t=t.offsetParent;return r}function cr(e){const t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function ps(e){return e==="starting"?D0:We}const Mk=c.forwardRef(function(t,n){const{render:o,className:r,style:s,finalFocus:i,...a}=t,{store:l}=cn(),{side:u,align:d}=qr(),p=Ca()!=null,f=l.useState("open"),y=l.useState("transitionStatus"),m=l.useState("popupProps"),g=l.useState("mounted"),h=l.useState("instantType"),b=l.useState("activeTriggerElement"),v=l.useState("parent"),w=l.useState("lastOpenChangeReason"),x=l.useState("rootId"),S=l.useState("floatingRootContext"),R=l.useState("floatingTreeRoot"),E=l.useState("closeDelay"),k=l.useState("hoverEnabled"),M=l.useState("disabled"),C=l.useState("openMethod"),O=v.type==="context-menu";kt({open:f,ref:l.context.popupRef,onComplete(){var z,L;f&&((L=(z=l.context).onOpenChangeComplete)==null||L.call(z,!0))}}),c.useEffect(()=>{function z(L){l.setOpen(!1,Re(L.reason,L.domEvent))}return R.events.on("close",z),()=>{R.events.off("close",z)}},[R.events,l]),Rd(S,{enabled:k&&!M&&!O&&v.type!=="menubar",closeDelay:E});const I=l.useStateSetter("popupElement"),D={transitionStatus:y,side:u,align:d,open:f,nested:v.type==="menu",instant:h},N=ke("div",t,{state:D,ref:[n,l.context.popupRef,I],stateAttributesMapping:ji,props:[m,{onKeyDown(z){p&&fs.has(z.key)&&z.stopPropagation()}},ps(y),a,{"data-rootownerid":x}]});let P=v.type===void 0||O;return(b||v.type==="menubar"&&w!==Zr)&&(P=!0),K.jsx(ua,{context:S,openInteractionType:C,modal:O,disabled:!g,returnFocus:i===void 0?P:i,initialFocus:v.type!=="menu",restoreFocus:!0,externalTree:v.type!=="menubar"?R:void 0,previousFocusableElement:b,nextFocusableElement:v.type===void 0?l.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:v.type===void 0?l.context.beforeContentFocusGuardRef:void 0,children:N})}),Md=c.createContext(void 0);function c1(){const e=c.useContext(Md);if(e===void 0)throw new Error(Ne(32));return e}const Tk=c.forwardRef(function(t,n){const{keepMounted:o=!1,...r}=t,{store:s}=cn();return s.useState("mounted")||o?K.jsx(Md.Provider,{value:o,children:K.jsx(aa,{ref:n,...r})}):null});function hs(e){return Fi(19)?e:e?"true":void 0}const l1=c.createContext(void 0);function bo(){const e=c.useContext(l1);return(e==null?void 0:e.direction)??"ltr"}const u1=e=>({name:"arrow",options:e,async fn(t){var F,T;const{x:n,y:o,placement:r,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:d=0,offsetParent:p="real"}=xn(e,t)||{};if(u==null)return{};const f=zu(d),y={x:n,y:o},m=ra(r),g=oa(m),h=await i.getDimensions(u),b=m==="y",v=b?"top":"left",w=b?"bottom":"right",x=b?"clientHeight":"clientWidth",S=s.reference[g]+s.reference[m]-y[m]-s.floating[g],R=y[m]-s.reference[m],E=p==="real"?await((F=i.getOffsetParent)==null?void 0:F.call(i,u)):a.floating;let k=a.floating[x]||s.floating[g];(!k||!await((T=i.isElement)==null?void 0:T.call(i,E)))&&(k=a.floating[x]||s.floating[g]);const M=S/2-R/2,C=k/2-h[g]/2-1,O=Math.min(f[v],C),I=Math.min(f[w],C),D=O,N=k-h[g]-I,P=k/2-h[g]/2+M,z=Fu(D,P,N),L=!l.arrow&&kn(r)!=null&&P!==z&&s.reference[g]/2-(P<D?O:I)-h[g]/2<0,A=L?P<D?P-D:P-N:0;return{[m]:y[m]+A,data:{[m]:z,centerOffset:P-z-A,...L&&{alignmentOffset:A}},reset:L}}}),d1=(e,t)=>({...u1(e),options:[e,t]}),f1={name:"hide",async fn(e){const{width:t,height:n,x:o,y:r}=e.rects.reference,s=t===0&&n===0&&o===0&&r===0,i=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:i.top-n>=0||i.right-t>=0||i.bottom-n>=0||i.left-t>=0||s}}}},p1={sideX:"left",sideY:"top"},tl="--available-width",nl="--available-height";function Td(e,t,n){const o=e==="inline-start"||e==="inline-end";return{top:"top",right:o?n?"inline-start":"inline-end":"right",bottom:"bottom",left:o?n?"inline-end":"inline-start":"left"}[t]}function ol(e,t,n){const{rects:o,placement:r}=e;return{side:Td(t,Mt(r),n),align:kn(r)||"center",anchor:{width:o.reference.width,height:o.reference.height},positioner:{width:o.floating.width,height:o.floating.height}}}function Pa(e){return h1(e,Kb)}function h1(e,t){var Xe,pt;const{anchor:n,positionMethod:o="absolute",side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:a=0,collisionBoundary:l,collisionPadding:u=5,sticky:d=!1,arrowPadding:p=5,disableAnchorTracking:f=!1,inline:y,keepMounted:m=!1,floatingRootContext:g,mounted:h,collisionAvoidance:b,shift:v,nodeId:w,adaptiveOrigin:x,lazyFlip:S=!1,externalTree:R}=e,[E,k]=c.useState(null);!h&&E!==null&&k(null);const M=b.side||"flip",C=b.align||"flip",O=b.fallbackAxisSide||"end",I=(v==null?void 0:v.crossAxis)??!1,D=v==null?void 0:v.rootBoundary,N=typeof n=="function"?n:void 0,P=le(N),z=N?P:n,L=Ze(n),A=Ze(h),T=bo()==="rtl",_=E||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":T?"left":"right","inline-start":T?"right":"left"}[r],j=i==="center"?_:`${_}-${i}`;let $=u;typeof $=="number"?$={top:$,right:$,bottom:$,left:$}:$&&($={top:$.top||0,right:$.right||0,bottom:$.bottom||0,left:$.left||0});const U=1,Y=r==="bottom"?U:0,V=r==="top"?U:0,Q=r==="right"?U:0,H=r==="left"?U:0,G={boundary:l==="clipping-ancestors"?"clippingAncestors":l,padding:$},ue=c.useRef(null),ne=Ze(s),te=Ze(a),J=typeof s!="function"?s:0,ee=typeof a!="function"?a:0,ie=[];y&&ie.push(y),ie.push(Rb(we=>{const Ae=ol(we,r,T),Qe=typeof ne.current=="function"?ne.current(Ae):ne.current,tt=typeof te.current=="function"?te.current(Ae):te.current;return{mainAxis:Qe,crossAxis:tt,alignmentAxis:tt}},[J,ee,T,r]));const xe=C==="none"&&M!=="shift",ae=!xe&&(d||I||M==="shift"),he=M==="none"?null:Cb({...G,padding:{top:$.top+U+Y,right:$.right+U+H,bottom:$.bottom+U+V,left:$.left+U+Q},mainAxis:!I&&M==="flip",crossAxis:C==="flip"?"alignment":!1,fallbackAxisSideDirection:O}),oe=xe?null:kb({...G,rootBoundary:D,mainAxis:C!=="none",crossAxis:ae,limiter:d||I?void 0:Eb(we=>{if(!ue.current)return{};const{width:Ae,height:Qe}=ue.current.getBoundingClientRect(),tt=Pt(Mt(we.placement)),yt=tt==="y"?Ae:Qe,bt=tt==="y"?$.left+$.right:$.top+$.bottom;return{offset:yt/2+bt/2}})},[G,d,I,D,$,C]);M==="shift"||C==="shift"||i==="center"?ie.push(oe,he):ie.push(he,oe),ie.push(Pb({...G,apply({elements:{floating:we},availableWidth:Ae,availableHeight:Qe,rects:tt}){if(!A.current)return;const yt=we.style;yt.setProperty(tl,`${Ae}px`),yt.setProperty(nl,`${Qe}px`);const bt=He(we).devicePixelRatio||1,{x:Xt,y:lt,width:ht,height:Pe}=tt.reference,ze=(Math.round((Xt+ht)*bt)-Math.round(Xt*bt))/bt,wt=(Math.round((lt+Pe)*bt)-Math.round(lt*bt))/bt;yt.setProperty("--anchor-width",`${ze}px`),yt.setProperty("--anchor-height",`${wt}px`)}}),d1(we=>({element:ue.current||Te(we.elements.floating).createElement("div"),padding:p,offsetParent:"floating"}),[p]),{name:"transformOrigin",fn(we){var tc,nc,oc;const{elements:Ae,middlewareData:Qe,placement:tt,rects:yt,y:bt}=we,Xt=Mt(tt),lt=Pt(Xt),ht=ue.current,Pe=((tc=Qe.arrow)==null?void 0:tc.x)||0,ze=((nc=Qe.arrow)==null?void 0:nc.y)||0,wt=(ht==null?void 0:ht.clientWidth)||0,zt=(ht==null?void 0:ht.clientHeight)||0,Et=Pe+wt/2,Vt=ze+zt/2,Ko=Math.abs(((oc=Qe.shift)==null?void 0:oc.y)||0),So=yt.reference.height/2,Mn=typeof s=="function"?s(ol(we,r,T)):s,Zo=Ko>Mn,Tp={top:`${Et}px calc(100% + ${Mn}px)`,bottom:`${Et}px ${-Mn}px`,left:`calc(100% + ${Mn}px) ${Vt}px`,right:`${-Mn}px ${Vt}px`}[Xt],Ip=`${Et}px ${yt.reference.y+So-bt}px`;return Ae.floating.style.setProperty("--transform-origin",ae&&lt==="y"&&Zo?Ip:Tp),{}}},f1,x),re(()=>{!h&&g&&g.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,g]);const ge=c.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:de,elements:ce,x:fe,y:B,middlewareData:q,update:se,placement:Z,context:X,isPositioned:pe,floatingStyles:be}=t({rootContext:g,open:m?h:void 0,placement:j,middleware:ie,strategy:o,whileElementsMounted:m?void 0:(...we)=>Bc(...we,ge),nodeId:w,externalTree:R}),{sideX:Le,sideY:Ue}=q.adaptiveOrigin||p1,qe=pe?o:"fixed",st=c.useMemo(()=>{let we;return pe?x?we={position:qe,[Le]:fe,[Ue]:B}:we={...be,position:qe}:we={position:qe,top:0,left:0},we[tl]="100vw",we[nl]="100vh",pe||(we.opacity=0),we},[x,qe,Le,fe,Ue,B,be,pe]),_e=c.useRef(null);re(()=>{if(!h)return;const we=L.current,Ae=typeof we=="function"?we():we,tt=(rl(Ae)?Ae.current:Ae)||null||null;tt!==_e.current&&(de.setPositionReference(tt),_e.current=tt)},[h,de,z,L]),c.useEffect(()=>{if(!h)return;const we=L.current;typeof we!="function"&&rl(we)&&we.current!==_e.current&&(de.setPositionReference(we.current),_e.current=we.current)},[h,de,z,L]),c.useEffect(()=>{if(m&&h&&ce.reference&&ce.floating)return Bc(ce.reference,ce.floating,se,ge)},[m,h,ce,se,ge]);const Je=Mt(Z),ct=Td(r,Je,T),Se=kn(Z)||"center",je=!!((Xe=q.hide)!=null&&Xe.referenceHidden);re(()=>{S&&h&&pe&&Je!==_&&k(Je)},[S,h,pe,Je,_]);const Ye=c.useMemo(()=>{var we,Ae;return{position:"absolute",top:(we=q.arrow)==null?void 0:we.y,left:(Ae=q.arrow)==null?void 0:Ae.x}},[q.arrow]),Be=((pt=q.arrow)==null?void 0:pt.centerOffset)!==0;return c.useMemo(()=>({positionerStyles:st,arrowStyles:Ye,arrowRef:ue,arrowUncentered:Be,side:ct,align:Se,physicalSide:Je,anchorHidden:je,refs:de,context:X,isPositioned:pe,update:se}),[st,Ye,ue,Be,ct,Se,Je,je,de,X,pe,se])}function rl(e){return e!=null&&"current"in e}function gs(e){const{children:t,elementsRef:n,labelsRef:o,onMapChange:r}=e,s=le(r),[,i]=c.useState(!1),a=at(m1).current,l=at(g1).current,u=c.useRef(0),d=c.useRef(!0),p=c.useRef([]),f=c.useRef(null),y=le(()=>{d.current||(d.current=!0,i(S=>!S))}),m=le((S,R)=>{l.set(S,R),y()}),g=le(S=>{l.delete(S),y()}),h=le(S=>{const R=new Map;return n.current.length=0,o&&(o.current.length=0),S.forEach(E=>{var k,M;R.set(E.element,{...E.registration.metadata??{},index:E.index}),n.current[E.index]=E.element,o&&(o.current[E.index]=E.registration.label!==void 0?E.registration.label:((M=(k=E.registration.textRef)==null?void 0:k.current)==null?void 0:M.textContent)??E.element.textContent)}),u.current=n.current.length,R});function b(S){var k;if((k=f.current)==null||k.disconnect(),f.current=null,typeof MutationObserver!="function"||S.length<2)return;const R=new MutationObserver(M=>{if(!v1(M))return;let C=null;for(const O of S)if(O.isConnected){if(C&&Id(C,O)>0){R.disconnect(),y();return}C=O}});f.current=R;const E=new Set;for(let M=1;M<S.length;M+=1){const C=b1(S[M-1],S[M]);C&&E.add(C)}E.forEach(M=>R.observe(M,{childList:!0}))}const v=le(()=>{const[S,R]=y1(l),E=h(S);b(R),p.current=S,d.current=!1,a.forEach(k=>k(E)),s(E)});re(()=>(d.current||h(p.current),()=>{n.current=[],o&&(o.current=[])}),[n,o,h]),re(()=>{d.current&&v()}),re(()=>()=>{var S;(S=f.current)==null||S.disconnect(),d.current=!0},[]);const w=le(S=>(a.add(S),()=>{a.delete(S)})),x=c.useMemo(()=>({register:m,unregister:g,subscribeMapChange:w,nextIndexRef:u}),[m,g,w,u]);return K.jsx(Ou.Provider,{value:x,children:t})}function g1(){return new Map}function m1(){return new Set}function y1(e){const t=new Set,n=[],o=[];e.forEach((s,i)=>{if(!i.isConnected)return;const a=s.index,l={index:a??-1,element:i,registration:s};a===null?o.push(l):a>=0&&(t.add(a),n.push(l))});let r=0;return o.sort((s,i)=>Id(s.element,i.element)),o.forEach(s=>{for(;t.has(r);)r+=1;s.index=r,n.push(s),r+=1}),t.size>0&&n.sort((s,i)=>s.index-i.index),[n,o.map(s=>s.element)]}function b1(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function v1(e){for(const t of e)for(let n=0;n<t.removedNodes.length;n+=1)if(t.removedNodes[n].isConnected)return!0;return!1}function Id(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}const Ma=c.forwardRef(function(t,n){const{cutout:o,...r}=t;let s;if(o){const i=o.getBoundingClientRect();s=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${i.left}px ${i.top}px,${i.left}px ${i.bottom}px,${i.right}px ${i.bottom}px,${i.right}px ${i.top}px,${i.left}px ${i.top}px)`}return K.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...r,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:s}})});function Ta(e,t,{styles:n,transitionStatus:o,props:r,refs:s,hidden:i,inert:a=!1}){const l={...n};return a&&(l.pointerEvents="none"),ke("div",e,{state:t,ref:s,props:[{role:"presentation",hidden:i,style:l},ps(o),r],stateAttributesMapping:Xr})}let sl={},il={},al="";function ms(e,t){return jo(e)?e:t}function cl(e,t,n){return/hidden|clip/.test(e.getComputedStyle(ms(t,n)).overflowY)}function x1(e){if(typeof document>"u")return!1;const t=Te(e);return He(t).innerWidth-t.documentElement.clientWidth>0}function w1(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const n=Te(e),o=n.documentElement,r=n.body,s=ms(o,r),i=s.style.overflowY,a=o.style.scrollbarGutter;o.style.scrollbarGutter="stable",s.style.overflowY="scroll";const l=s.offsetWidth;s.style.overflowY="hidden";const u=s.offsetWidth;return s.style.overflowY=i,o.style.scrollbarGutter=a,l===u}function S1(e){const t=Te(e),n=t.documentElement,o=t.body,r=ms(n,o),s={overflowY:r.style.overflowY,overflowX:r.style.overflowX};return Object.assign(r.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(r.style,s)}}function R1(e){var y;const t=Te(e),n=t.documentElement,o=t.body,r=He(n);let s=0,i=0,a=!1;const l=vt.create();if(Yt&&(((y=r.visualViewport)==null?void 0:y.scale)??1)!==1)return()=>{};function u(){const m=r.getComputedStyle(n),g=r.getComputedStyle(o),v=(m.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";s=n.scrollTop,i=n.scrollLeft,sl={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},al=n.style.scrollBehavior,il={position:o.style.position,height:o.style.height,width:o.style.width,boxSizing:o.style.boxSizing,overflowY:o.style.overflowY,overflowX:o.style.overflowX,scrollBehavior:o.style.scrollBehavior};const w=n.scrollHeight>n.clientHeight,x=n.scrollWidth>n.clientWidth,S=m.overflowY==="scroll"||g.overflowY==="scroll",R=m.overflowX==="scroll"||g.overflowX==="scroll",E=Math.max(0,r.innerWidth-o.clientWidth),k=Math.max(0,r.innerHeight-o.clientHeight),M=parseFloat(g.marginTop)+parseFloat(g.marginBottom),C=parseFloat(g.marginLeft)+parseFloat(g.marginRight),O=ms(n,o);if(a=w1(e),a){n.style.scrollbarGutter=v,O.style.overflowY="hidden",O.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:v,overflowY:"hidden",overflowX:"hidden"}),(w||S)&&(n.style.overflowY="scroll"),(x||R)&&(n.style.overflowX="scroll"),Object.assign(o.style,{position:"relative",height:M||k?`calc(100dvh - ${M+k}px)`:"100dvh",width:C||E?`calc(100vw - ${C+E}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),o.scrollTop=s,o.scrollLeft=i,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function d(){Object.assign(n.style,sl),Object.assign(o.style,il),a||(n.scrollTop=s,n.scrollLeft=i,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=al)}function p(){d(),l.request(u)}u();const f=Me(r,"resize",p);return()=>{l.cancel(),d(),typeof r.removeEventListener=="function"&&f()}}class k1{constructor(){De(this,"lockCount",0);De(this,"restore",null);De(this,"timeoutLock",_t.create());De(this,"timeoutUnlock",_t.create());De(this,"release",()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)});De(this,"unlock",()=>{var t;this.lockCount===0&&this.restore&&((t=this.restore)==null||t.call(this),this.restore=null)})}acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}lock(t){if(this.lockCount===0||this.restore!==null)return;const n=Te(t),o=n.documentElement,r=n.body,s=He(o);if(cl(s,o,r)){const a=new s.MutationObserver(()=>{cl(s,o,r)||(a.disconnect(),this.restore=null,this.lock(t))}),l={attributes:!0};a.observe(o,l),a.observe(r,l),this.restore=()=>a.disconnect();return}const i=es||!x1(t);this.restore=i?S1(t):R1(t)}}const E1=new k1;function Od(e=!0,t=null){re(()=>{if(e)return E1.acquire(t)},[e,t])}const C1=20;function Ad(e,t,n,o){const[r,s]=c.useState(!1);re(()=>{if(!e||!t||n==null){s(!1);return}const i=Te(n).documentElement.clientWidth,a=n.offsetWidth;s(i>0&&a>0&&a>=i-C1)},[e,t,n]),Od(e&&(!t||r),o)}const Ik=c.forwardRef(function(t,n){var ge;const{anchor:o,positionMethod:r="absolute",className:s,render:i,side:a,align:l,sideOffset:u=0,alignOffset:d=0,collisionBoundary:p="clipping-ancestors",collisionPadding:f=5,arrowPadding:y=5,sticky:m=!1,disableAnchorTracking:g=!1,collisionAvoidance:h=Zu,style:b,...v}=t,{store:w}=cn(),x=c1(),S=Kr(!0),R=w.useState("parent"),E=w.useState("floatingRootContext"),k=w.useState("floatingTreeRoot"),M=w.useState("mounted"),C=w.useState("open"),O=w.useState("modal"),I=w.useState("openMethod"),D=w.useState("activeTriggerElement"),N=w.useState("transitionStatus"),P=w.useState("positionerElement"),z=w.useState("instantType"),L=w.useState("adaptiveOrigin"),A=w.useState("lastOpenChangeReason"),F=w.useState("floatingNodeId"),T=w.useState("floatingParentNodeId"),_=E.useState("domReferenceElement"),j=c.useRef(null),$=Ki(P);let U=o,Y=u,V=d,Q=l,H=h;R.type==="context-menu"&&(U=o??((ge=R.context)==null?void 0:ge.anchor),Q=Q??"start",!a&&Q!=="center"&&(V=t.alignOffset??2,Y=t.sideOffset??-5));let G=a,ue=Q;R.type==="menu"?(G=G??"inline-end",ue=ue??"start",H=t.collisionAvoidance??Qu):R.type==="menubar"&&(G=G??(R.context.orientation==="vertical"?"inline-end":"bottom"),ue=ue??"start");const ne=R.type==="context-menu",te=Pa({anchor:U,floatingRootContext:E,positionMethod:S?"fixed":r,mounted:M,side:G,sideOffset:Y,align:ue,alignOffset:V,arrowPadding:ne?0:y,collisionBoundary:p,collisionPadding:f,sticky:m,nodeId:F,keepMounted:x,disableAnchorTracking:g,collisionAvoidance:H,shift:ne?{crossAxis:!("side"in H&&H.side==="flip"),rootBoundary:"layoutViewport"}:void 0,externalTree:k,adaptiveOrigin:L});c.useEffect(()=>{function de(ce){ce.open&&(ce.parentNodeId===F&&w.set("hoverEnabled",!1),ce.nodeId!==F&&ce.parentNodeId===w.select("floatingParentNodeId")&&w.setOpen(!1,Re(To)))}return k.events.on("menuopenchange",de),()=>{k.events.off("menuopenchange",de)}},[w,k.events,F]),c.useEffect(()=>{if(w.select("floatingParentNodeId")==null)return;function de(ce){if(ce.open||ce.nodeId!==w.select("floatingParentNodeId"))return;const fe=ce.reason??To;w.setOpen(!1,Re(fe))}return k.events.on("menuopenchange",de),()=>{k.events.off("menuopenchange",de)}},[k.events,w]);const J=Ge();c.useEffect(()=>{C||J.clear()},[C,J]),c.useEffect(()=>{function de(ce){if(!(!C||ce.nodeId!==w.select("floatingParentNodeId")))if(ce.target&&D&&D!==ce.target){const fe=w.select("closeDelay");fe>0?J.isStarted()||J.start(fe,()=>{w.setOpen(!1,Re(To))}):w.setOpen(!1,Re(To))}else J.clear()}return k.events.on("itemhover",de),()=>{k.events.off("itemhover",de)}},[k.events,C,D,w,J]),c.useEffect(()=>{const de={open:C,nodeId:F,parentNodeId:T,reason:w.select("lastOpenChangeReason")};k.events.emit("menuopenchange",de)},[k.events,C,w,F,T]),re(()=>{const de=_,ce=j.current;if(de&&(j.current=de),ce&&de&&de!==ce){w.set("instantType",void 0);const fe=new AbortController;return $(()=>{w.set("instantType","trigger-change")},fe.signal),()=>{fe.abort()}}},[_,$,w]);const ee={open:C,side:te.side,align:te.align,anchorHidden:te.anchorHidden,nested:R.type==="menu",instant:z},ie=R.type==="menubar"&&R.context.modal;Ad(C&&(ie||O&&A!==ot),I==="touch",P,D);const ae=Ta(t,ee,{styles:te.positionerStyles,transitionStatus:N,props:v,refs:[n,w.useStateSetter("positionerElement")],hidden:!M,inert:!C}),he=M&&R.type!=="menu"&&(R.type!=="menubar"&&O&&A!==ot||R.type==="menubar"&&R.context.modal);let oe=null;return R.type==="menubar"?oe=R.context.contentElement:R.type===void 0&&(oe=D),K.jsxs(Pu.Provider,{value:te,children:[he&&K.jsx(Ma,{ref:R.type==="context-menu"||R.type==="nested-context-menu"?R.context.internalBackdropRef:null,inert:hs(!C),cutout:oe}),K.jsx(_0,{id:F,children:K.jsx(gs,{elementsRef:w.context.itemDomElements,labelsRef:w.context.itemLabels,children:ae})})]})}),Dd=c.createContext(void 0);function P1(){const e=c.useContext(Dd);if(e===void 0)throw new Error(Ne(34));return e}const Ok=c.memo(c.forwardRef(function(t,n){const{render:o,className:r,value:s,defaultValue:i,onValueChange:a,disabled:l=!1,style:u,"aria-labelledby":d,...p}=t,[f,y]=c.useState(void 0),[m,g]=Lt({controlled:s,default:i,name:"MenuRadioGroup"}),h=le((x,S)=>{a==null||a(x,S),!S.isCanceled&&g(x)}),v=ke("div",t,{state:{disabled:l},ref:n,props:{role:"group","aria-labelledby":d??f,"aria-disabled":l||void 0,...p}}),w=c.useMemo(()=>({value:m,setValue:h,disabled:l}),[m,h,l]);return K.jsx(Zi.Provider,{value:y,children:K.jsx(Dd.Provider,{value:w,children:v})})})),Nd=c.createContext(void 0);function M1(){const e=c.useContext(Nd);if(e===void 0)throw new Error(Ne(35));return e}const Ak=c.forwardRef(function(t,n){const{render:o,className:r,id:s,label:i,nativeButton:a=!1,disabled:l=!1,closeOnClick:u=!1,value:d,style:p,...f}=t,y=yo({guess:!0,label:i}),m=qr(!0),g=rt(s),{store:h}=cn(),b=h.useState("isActive",y.index),v=h.useState("itemProps"),{value:w,setValue:x,disabled:S}=P1(),R=h.useState("disabled"),E=l||S||R,k=w===d,{getItemProps:M,itemRef:C}=qi({closeOnClick:u,disabled:E,highlighted:b,id:g,store:h,nativeButton:a,nodeId:m==null?void 0:m.context.nodeId,itemMetadata:Yi}),O=c.useMemo(()=>({disabled:E,highlighted:b,checked:k}),[E,b,k]);function I(N){const P=Re(An,N.nativeEvent,void 0,{preventUnmountOnClose:Ke});x(d,P)}const D=ke("div",t,{state:O,stateAttributesMapping:ts,props:[v,{role:"menuitemradio","aria-checked":k,onClick:I},f,M],ref:[C,n,y.ref]});return K.jsx(Nd.Provider,{value:O,children:D})}),Dk=c.forwardRef(function(t,n){const{render:o,className:r,style:s,keepMounted:i=!1,...a}=t,l=M1(),u=c.useRef(null),{transitionStatus:d,mounted:p,setMounted:f}=ln(l.checked);kt({open:l.checked,ref:u,onComplete(){l.checked||f(!1)}});const y={checked:l.checked,disabled:l.disabled,highlighted:l.highlighted,transitionStatus:d};return ke("span",t,{state:y,stateAttributesMapping:ts,ref:[n,u],props:{"aria-hidden":!0,...a},enabled:i||p})}),T1=c.createContext(null);function Ld(e){return c.useContext(T1)}function I1(e){const t=c.useRef(""),n=c.useCallback(r=>{r.defaultPrevented||(t.current=r.pointerType,e(r,r.pointerType))},[e]);return{onClick:c.useCallback(r=>{if(r.detail===0){e(r,"keyboard");return}"pointerType"in r?e(r,r.pointerType):e(r,t.current),t.current=""},[e]),onPointerDown:n}}function ys(e,t){const n=c.useRef(e),o=le(t);re(()=>{n.current!==e&&o(n.current),n.current=e},[e,o])}function _d(e,t){const n=le((s,i)=>{(typeof e=="function"?e():e)||t(i||(es?"touch":""))}),{onClick:o,onPointerDown:r}=I1(n);return c.useMemo(()=>({onClick:o,onPointerDown:r}),[o,r])}function Fd(e){const[t,n]=c.useState(null),o=_d(e,n);return ys(e,r=>{r&&!e&&n(null)}),c.useMemo(()=>({openMethod:t,triggerProps:o}),[t,o])}const O1={...Sa,disabled:e=>e.parent.type==="menubar"&&e.parent.context.disabled||e.disabled,modal:e=>(e.parent.type===void 0||e.parent.type==="context-menu")&&(e.modal??!0),openMethod:e=>e.openMethod,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>e.parent.type==="menu"?e.parent.store.select("rootId"):e.parent.type!==void 0?e.parent.context.rootId:e.rootId,activeIndex:e=>e.activeIndex,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>e.parent.type==="menu"?e.parent.store.select("floatingTreeRoot"):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type==="menu")return e.parent.store.select("keyboardEventRelay")}};class A1 extends Uo{constructor(n){super({...N1(),...n},D1(),O1);De(this,"unsubscribeParentListener",null);this.unsubscribeParentListener=this.observe("parent",o=>{var r;if((r=this.unsubscribeParentListener)==null||r.call(this),o.type==="menu"){let s=o.store.select("rootId"),i=o.store.select("floatingTreeRoot"),a=o.store.select("keyboardEventRelay");this.unsubscribeParentListener=o.store.subscribe(()=>{const l=o.store.select("rootId"),u=o.store.select("floatingTreeRoot"),d=o.store.select("keyboardEventRelay");s===l&&i===u&&a===d||(s=l,i=u,a=d,this.notifyAll())}),this.context.allowMouseUpTriggerRef=o.store.context.allowMouseUpTriggerRef;return}o.type!==void 0&&(this.context.allowMouseUpTriggerRef=o.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(n,o){this.state.floatingRootContext.context.events.emit("setOpen",{open:n,eventDetails:o})}}function D1(){return{positionerRef:c.createRef(),popupRef:c.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:c.createRef(),beforeContentFocusGuardRef:c.createRef(),onOpenChangeComplete:void 0,triggerElements:new Go}}function N1(){return{...xa(),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new ca,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:We,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0}}const L1=c.createContext(void 0);function _1(){return c.useContext(L1)}const F1=pa(function(t){const{children:n,open:o,onOpenChange:r,onOpenChangeComplete:s,defaultOpen:i=!1,disabled:a=!1,modal:l,loopFocus:u=!0,orientation:d="vertical",actionsRef:p,closeParentOnEsc:f=!1,handle:y,triggerId:m,defaultTriggerId:g=null,highlightItemOnHover:h=!0}=t,b=Kr(!0),v=cn(!0),w=Ld(!0),x=_1(),S=c.useMemo(()=>x&&v?{type:"menu",store:v.store}:w?{type:"menubar",context:w}:b&&!v?{type:"context-menu",context:b}:{type:void 0},[b,v,w,x]),R=z1({open:i,openProp:o,activeTriggerId:g,triggerIdProp:m,parent:S});R.useControlledProp("openProp",o),R.useControlledProp("triggerIdProp",m),R.useContextCallback("onOpenChangeComplete",s);const E=bn(),k=bn(),M=R.useState("floatingTreeRoot"),C=sd(M),O=En(),I=R.useState("open"),D=R.useState("activeTriggerElement"),N=R.useState("positionerElement"),P=R.useState("hoverEnabled"),z=R.useState("disabled"),L=R.useState("lastOpenChangeReason"),A=R.useState("parent"),F=R.useState("activeIndex"),T=R.useState("payload"),_=R.useState("floatingParentNodeId"),j=c.useRef(null),$=c.useRef(A.type!=="context-menu"),U=Ge(),Y=c.useRef(!0),V=Ge(),Q=_!=null,{openMethod:H,triggerProps:G}=Fd(I);R.useSyncedValues({disabled:a,highlightItemOnHover:h,modal:A.type===void 0?l:void 0,openMethod:H,rootId:E}),ya(R);const{forceUnmount:ue}=ba(I,R,()=>{R.set("allowMouseEnter",!1)});re(()=>{b&&!v?R.update({parent:{type:"context-menu",context:b},floatingNodeId:C,floatingParentNodeId:O}):v&&R.update({floatingNodeId:C,floatingParentNodeId:O})},[b,v,C,O,R]),c.useEffect(()=>{if(I||(j.current=null),A.type==="context-menu"){if(!I){U.clear(),$.current=!1;return}U.start(500,()=>{$.current=!0})}},[U,I,A.type]),re(()=>{!I&&!P&&R.set("hoverEnabled",!0)},[I,P,R]);const ne=le((X,pe)=>{const be=pe.reason;if(!X&&!R.select("open")||I===X&&pe.trigger===D&&L===be)return;const Le=bd(pe);if(!X&&pe.trigger==null&&(pe.trigger=D??void 0),r==null||r(X,pe),pe.isCanceled)return;R.state.floatingRootContext.dispatchOpenChange(X,pe);const Ue=pe.event;if(X===!1&&(Ue==null?void 0:Ue.type)==="click"&&Ue.pointerType==="touch"&&!Y.current)return;X&&be===Jn?(Y.current=!1,V.start(300,()=>{Y.current=!0})):(Y.current=!0,V.clear());const qe=(be===Rn||be===An)&&Ue.detail===0,st=!X&&(be===Qr||be==null),_e={open:X,openChangeReason:be};j.current=pe.event,ga(_e,X,pe.trigger,Le()),R.update(_e),A.type==="menubar"&&(be===Jn||be===Nn||be===ot||be===Js||be===To)?R.set("instantType","group"):qe||st?R.set("instantType",qe?"click":"dismiss"):R.set("instantType",void 0)}),te=md({popupStore:R,floatingId:k,nested:O!=null,onOpenChange:ne}),J=te.context.events;re(()=>{const X=({open:pe,eventDetails:be})=>ne(pe,be);return J.on("setOpen",X),()=>{J==null||J.off("setOpen",X)}},[J,ne]);const ee=c.useCallback(()=>{R.setOpen(!1,Re(Wi))},[R]);c.useImperativeHandle(p,()=>({unmount:ue,close:ee}),[ue,ee]);let ie;A.type==="context-menu"&&(ie=A.context),c.useImperativeHandle(ie==null?void 0:ie.positionerRef,()=>N,[N]),c.useImperativeHandle(ie==null?void 0:ie.actionsRef,()=>({setOpen:ne}),[ne]);const xe=is(te,{enabled:!z,bubbles:{escapeKey:f&&A.type==="menu"},outsidePress(){var X;return A.type!=="context-menu"||((X=j.current)==null?void 0:X.type)==="contextmenu"?!0:$.current},externalTree:Q?M:void 0}),ae=bo(),he=c.useCallback(X=>{R.select("activeIndex")!==X&&R.set("activeIndex",X)},[R]),oe=Ed(te,{enabled:!z,listRef:R.context.itemDomElements,activeIndex:F,nested:A.type!==void 0,loopFocus:u,orientation:d,parentOrientation:A.type==="menubar"?A.context.orientation:void 0,rtl:ae==="rtl",disabledIndices:Nt,onNavigate:he,openOnArrowKeyDown:A.type!=="context-menu",externalTree:Q?M:void 0,focusItemOnHover:h}),ge=c.useCallback(X=>{R.context.typingRef.current=X},[R]),de=Cd(te,{enabled:!z,listRef:R.context.itemLabels,elementsRef:R.context.itemDomElements,activeIndex:F,resetMs:O0,onMatch:X=>{I&&X!==F&&R.set("activeIndex",X)},onTyping:ge}),ce=c.useMemo(()=>{const X=St(de.reference,oe.reference,xe.reference,{onMouseMove(){R.set("allowMouseEnter",!0)}},G);return X["aria-haspopup"]="menu",X["aria-expanded"]=I,X},[R,de.reference,oe.reference,xe.reference,G,I]),fe=c.useMemo(()=>{const X=St(oe.trigger,xe.trigger,G);return X["aria-haspopup"]="menu",X["aria-expanded"]=!1,X},[oe.trigger,xe.trigger,G]),B=c.useMemo(()=>St(us,{id:k,role:"menu","aria-labelledby":D==null?void 0:D.id,onMouseMove(){R.set("allowMouseEnter",!0),A.type==="menu"&&R.set("hoverEnabled",!1)},onClick(){R.select("hoverEnabled")&&R.set("hoverEnabled",!1)},onKeyDown(X){const pe=R.select("keyboardEventRelay");pe&&!X.isPropagationStopped()&&pe(X)}},de.floating,oe.floating,xe.floating),[D,k,A.type,R,de.floating,oe.floating,xe.floating]),q=oe.item??We;va(R,{floatingRootContext:te,activeTriggerProps:ce,inactiveTriggerProps:fe,popupProps:B,itemProps:q});const se=c.useMemo(()=>({store:R,parent:S}),[R,S]),Z=K.jsxs($i.Provider,{value:se,children:[y&&K.jsx(ha,{handle:y,store:R}),typeof n=="function"?n({payload:T}):n]});return A.type===void 0||A.type==="context-menu"?K.jsx(F0,{externalTree:M,children:Z}):Z});function z1(e){return at(()=>new A1(e)).current}const lr=5;function zd(e,t){const n=V1(t);return e.clientX>=n.left-lr&&e.clientX<=n.right+lr&&e.clientY>=n.top-lr&&e.clientY<=n.bottom+lr}function V1(e){const t=e.getBoundingClientRect(),n=He(e);if(Gi)return t;const o=n.getComputedStyle(e,"::before"),r=n.getComputedStyle(e,"::after");if(!(o.content!=="none"||r.content!=="none"))return t;const i=parseFloat(o.width)||0,a=parseFloat(o.height)||0,l=parseFloat(r.width)||0,u=parseFloat(r.height)||0,d=Math.max(t.width,i,l),p=Math.max(t.height,a,u),f=d-t.width,y=p-t.height;return{left:t.left-f/2,right:t.right+f/2,top:t.top-y/2,bottom:t.bottom+y/2}}function Vd(e={}){const{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:o}=Yr(),{ref:r,index:s}=yo(e),i=n===s,a=c.useRef(null),l=Dt(r,a);return{compositeProps:{tabIndex:i?0:-1,onFocus(){o(s)},onMouseMove(){const d=a.current;if(!t||!d)return;const p=d.hasAttribute("disabled")||d.ariaDisabled==="true";!i&&!p&&d.focus()}},compositeRef:l,index:s}}function $d(e){const{render:t,className:n,style:o,state:r=We,props:s=Nt,refs:i=Nt,metadata:a,stateAttributesMapping:l,tag:u="div",...d}=e,{compositeProps:p,compositeRef:f}=Vd({metadata:a});return ke(u,e,{state:r,ref:[f,...i],props:[p,...s,d],stateAttributesMapping:l})}function Ia(e){if(Fe(e)&&e.hasAttribute("data-rootownerid"))return e.getAttribute("data-rootownerid");if(!en(e))return Ia(on(e))}function $1(e,t){const n=c.useRef(null);function o(s){At.flushSync(()=>{e.setOpen(!1,Re(Nn,s.nativeEvent,s.currentTarget))});const i=P0(n.current);i==null||i.focus()}function r(s){var a;const i=e.select("positionerElement");if(i&&eo(s,i))(a=e.context.beforeContentFocusGuardRef.current)==null||a.focus();else{At.flushSync(()=>{e.setOpen(!1,Re(Nn,s.nativeEvent,s.currentTarget))});let l=C0(e.context.triggerFocusTargetRef.current||t.current);for(;l!==null&&ve(i,l);){const u=l;if(l=ia(l),l===u)break}l==null||l.focus()}}return{preFocusGuardRef:n,handlePreFocusGuardFocus:o,handleFocusTargetFocus:r}}function H1(e){const{enabled:t=!0,mouseDownAction:n,open:o}=e,r=c.useRef(!1);return c.useMemo(()=>t?{onMouseDown:s=>{(n==="open"&&!o||n==="close"&&o)&&(r.current=!0,Te(s.currentTarget).addEventListener("click",()=>{r.current=!1},{once:!0}))},onClick:s=>{r.current&&(r.current=!1,s.preventBaseUIHandler())}}:We,[t,n,o])}const Nk=gd(function(t,n){const{render:o,className:r,style:s,disabled:i=!1,nativeButton:a=!0,id:l,openOnHover:u,delay:d=100,closeDelay:p=0,handle:f,payload:y,...m}=t,g=cn(!0),b=Ra(f)??(g==null?void 0:g.store);if(!b)throw new Error(Ne(85));const v=rt(l),w=b.useState("isTriggerActive",v),x=b.useState("floatingRootContext"),S=b.useState("isOpenedByTrigger",v),R=b.useState("triggerPopupId",v),E=c.useRef(null),k=B1(),M=Yr(!0),C=Cn(),O=c.useMemo(()=>C??new ca,[C]),I=sd(O),D=En(),{registerTrigger:N,isMountedByThisTrigger:P}=ma(v,E,b,{payload:y,closeDelay:p,parent:k,floatingTreeRoot:O,floatingNodeId:I,floatingParentNodeId:D,keyboardEventRelay:M==null?void 0:M.relayKeyboardEvent}),z=k.type==="menubar",L=b.useState("disabled"),A=i||L||z&&k.context.disabled,{getButtonProps:F,buttonRef:T}=Tt({disabled:A,native:a});c.useEffect(()=>{!S&&k.type===void 0&&(b.context.allowMouseUpTriggerRef.current=!1)},[b,S,k.type]);const _=c.useRef(null),j=Ge(),$=le(ge=>{if(!_.current)return;j.clear(),b.context.allowMouseUpTriggerRef.current=!1;const de=ge.target;ve(_.current,de)||ve(b.select("positionerElement"),de)||de===_.current||de!=null&&Ia(de)===b.select("rootId")||zd(ge,_.current)||O.events.emit("close",{domEvent:ge,reason:Bi})});c.useEffect(()=>{S&&b.select("lastOpenChangeReason")===ot&&Te(_.current).addEventListener("mouseup",$,{once:!0})},[S,$,b]);const U=z&&k.context.hasSubmenuOpen,V=kd(x,{enabled:(u??U)&&!A&&(!z||U&&!P),handleClose:Pd({blockPointerEvents:!z}),mouseOnly:!0,move:!1,restMs:k.type===void 0?d:void 0,delay:{close:p},triggerElementRef:E,externalTree:O,isActiveTrigger:w,isClosing:()=>b.select("transitionStatus")==="ending"}),Q=j1(S,b.select("lastOpenChangeReason")),H=da(x,{enabled:!A,event:S&&z?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:k.type===void 0?Q:!1}),G=wd(x,{enabled:!A&&U}),ue=H1({open:S,enabled:z,mouseDownAction:"open"}),ne=c.useMemo(()=>St(G.reference,H.reference),[G.reference,H.reference]),te=b.useState("triggerProps",P),{preFocusGuardRef:J,handlePreFocusGuardFocus:ee,handleFocusTargetFocus:ie}=$1(b,E),xe={disabled:A,open:S},ae=[_,n,T,N,E],he=[ne,V??We,te,{"aria-haspopup":"menu","aria-controls":R,id:v,onMouseDown:ge=>{if(b.select("open"))return;j.start(200,()=>{b.context.allowMouseUpTriggerRef.current=!0}),Te(ge.currentTarget).addEventListener("mouseup",$,{once:!0})}},z?{role:"menuitem"}:{},ue,m,F],oe=ke("button",t,{enabled:!z,stateAttributesMapping:Lr,state:xe,ref:ae,props:he});return z?K.jsx($d,{tag:"button",render:o,className:r,style:s,state:xe,refs:ae,props:he,stateAttributesMapping:Lr}):S?K.jsxs(c.Fragment,{children:[K.jsx(ao,{ref:J,onFocus:ee},`${v}-pre-focus-guard`),K.jsx(c.Fragment,{children:oe},v),K.jsx(ao,{ref:b.context.triggerFocusTargetRef,onFocus:ie},`${v}-post-focus-guard`)]}):K.jsx(c.Fragment,{children:oe},v)});function j1(e,t){const n=Ge(),[o,r]=c.useState(!1);return re(()=>{e&&t===ot?(r(!0),n.start(A0,()=>{r(!1)})):e||(n.clear(),r(!1))},[e,t,n]),o}function B1(){const e=Ld();return c.useMemo(()=>e?{type:"menubar",context:e}:{type:void 0},[e])}function W1(e){const[t,n]=c.useState({current:e,previous:null});return Object.is(e,t.current)||n({current:e,previous:t.current}),t.previous}function ll(e){const t=xt(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Fe(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o;return(lo(n)!==s||lo(o)!==i)&&(n=s,o=i),{width:n,height:o}}const Lk=c.forwardRef(function(t,n){const{className:o,render:r,orientation:s="horizontal",style:i,...a}=t;return ke("div",t,{state:{orientation:s},ref:n,props:[{role:"separator","aria-orientation":s},a]})});function Hd(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}function U1(e){const t=c.useRef(!0);t.current&&(t.current=!1,e())}const jd=c.createContext(null);function qt(){const e=c.useContext(jd);if(e===null)throw new Error(Ne(60));return e}const G1={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Y1={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},q1={disabled:!1,...Y1},bs={valid(e){return e===null?null:e?{"data-valid":""}:{"data-invalid":""}}},X1={invalid:void 0,name:void 0,validityData:{state:G1,errors:[],error:"",value:"",initialValue:null},setValidityData:Ke,disabled:void 0,setTouched:Ke,setDirty:Ke,setFilled:Ke,setFocused:Ke,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:q1,registerFieldControl:Ke,validation:{getValidationProps:(e,t=We)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:Ke,getInputControl:()=>null,commit:async()=>{},change:Ke}},K1=c.createContext(X1);function vo(e=!0){const t=c.useContext(K1);if(t.setValidityData===Ke&&!e)throw new Error(Ne(28));return t}function vs(e,t,n,o,r=!0,s){const{registerFieldControl:i}=vo(),a=at(()=>Symbol());re(()=>{const l=a.current;if(!r){i(l,void 0);return}i(l,{controlRef:e,getValue:o,id:t,name:s,value:n})},[e,r,o,t,s,i,a,n]),re(()=>{const l=a.current;return()=>{i(l,void 0)}},[i,a])}const Z1=c.createContext({controlId:void 0,registerControlId:Ke,labelId:void 0,setLabelId:Ke,messageIds:[],setMessageIds:Ke,getDescriptionProps:e=>e});function Yo(){return c.useContext(Z1)}function xs(e={}){const{id:t,implicit:n=!1,controlRef:o}=e,{controlId:r,registerControlId:s}=Yo(),i=rt(t),a=n?r:void 0,l=at(()=>Symbol()),u=c.useRef(!1),d=c.useRef(t!=null),p=le(()=>{!u.current||s===Ke||(u.current=!1,s(l.current,void 0))});return re(()=>{if(s===Ke)return;let f;if(n){const y=o==null?void 0:o.current;Oe(y)&&y.closest("label")!=null?f=t??null:f=a??i}else if(t!=null)d.current=!0,f=t;else if(d.current)f=i;else{p();return}if(f===void 0){p();return}u.current=!0,s(l.current,f)},[t,o,a,s,n,i,l,p]),c.useEffect(()=>p,[p]),r??i}const Q1=(e,t)=>Object.is(e,t);function uo(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function Cr(e,t,n){return!e||e.length===0?-1:e.findIndex(o=>o===void 0?!1:uo(o,t,n))}function J1(e,t,n){return e.filter(o=>!uo(t,o,n))}function gi(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function Bd(e){return e!=null&&e.length>0&&typeof e[0]=="object"&&e[0]!=null&&"items"in e[0]}function ev(e){if(!Array.isArray(e))return e!=null&&"null"in e;const t=e;if(Bd(t)){for(const n of t)for(const o of n.items)if(o&&o.value==null&&o.label!=null)return!0;return!1}for(const n of t)if(n&&n.value==null&&n.label!=null)return!0;return!1}function Wd(e,t){if(t&&e!=null)return t(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return gi(e)}function Xn(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?gi(e.value):gi(e)}function Ud(e,t,n){function o(){return Wd(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e=="object"&&"label"in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??o();if(Array.isArray(t)){const r=t,s=Bd(r)?r.flatMap(i=>i.items):r;if(e==null||typeof e!="object"){const i=s.find(a=>a.value===e);return i&&i.label!=null?i.label:o()}if("value"in e){const i=s.find(a=>a&&a.value===e.value);if(i&&i.label!=null)return i.label}}return o()}function tv(e,t,n){return e.reduce((o,r,s)=>(s>0&&o.push(", "),o.push(K.jsx(c.Fragment,{children:Ud(r,t,n)},s)),o),[])}const Ce={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{const{value:t,multiple:n,itemToStringValue:o}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:Xn(t,o)!==""},hasNullItemLabel:(e,t)=>t?ev(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{const n=e.isItemEqualToValue,o=e.value;return e.multiple?Array.isArray(o)&&o.some(r=>uo(t,r,n)):uo(t,o,n)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows},nv=c.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Ke,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function ws(){return c.useContext(nv)}function ov(e,t,n=(o,r)=>o===r){return e.length===t.length&&e.every((o,r)=>n(o,t[r]))}function hn(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Ot=1;function Oa(e,t){return Math.max(0,e-t)}function fo(e,t){if(t<=0)return 0;const n=hn(e,0,t),o=n,r=t-n,s=o<=Ot,i=r<=Ot;return s&&i?o<=r?0:t:s?0:i?t:n}function _k(e){const{id:t,value:n,defaultValue:o=null,onValueChange:r,open:s,defaultOpen:i=!1,onOpenChange:a,name:l,form:u,autoComplete:d,disabled:p=!1,readOnly:f=!1,required:y=!1,modal:m=!0,actionsRef:g,inputRef:h,onOpenChangeComplete:b,items:v,multiple:w=!1,itemToStringLabel:x,itemToStringValue:S,isItemEqualToValue:R=Q1,highlightItemOnHover:E=!0,children:k}=e,{clearErrors:M}=ws(),{setDirty:C,setTouched:O,setFocused:I,validityData:D,setFilled:N,name:P,disabled:z,validation:L,validationMode:A}=vo(),F=xs({id:t}),T=z||p,_=P??l,[j,$]=Lt({controlled:n,default:w?o??Nt:o,name:"Select",state:"value"}),[U,Y]=Lt({controlled:s,default:i,name:"Select",state:"open"}),V=c.useRef([]),Q=c.useRef([]),H=c.useRef(null),G=c.useRef(null),ue=c.useRef(0),ne=c.useRef(null),te=c.useRef([]),J=c.useRef(!1),ee=c.useRef(null),ie=c.useRef(null),xe=c.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),ae=c.useRef(!1),{mounted:he,setMounted:oe,transitionStatus:ge}=ln(U),{openMethod:de,triggerProps:ce}=Fd(U),fe=at(()=>new Uo({id:F,labelId:void 0,modal:m,multiple:w,itemToStringLabel:x,itemToStringValue:S,isItemEqualToValue:R,value:j,open:U,mounted:he,transitionStatus:ge,items:v,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,B=Ee(fe,Ce.activeIndex),q=Ee(fe,Ce.selectedIndex),se=Ee(fe,Ce.triggerElement),Z=Ee(fe,Ce.positionerElement),X=W1(de),pe=de??X,be=c.useMemo(()=>w?"":Xn(j,S),[w,j,S]),Le=c.useMemo(()=>w&&Array.isArray(j)?j.map(Pe=>Xn(Pe,S)):Xn(j,S),[w,j,S]),Ue=Ze(se),qe=le(()=>Le);vs(Ue,F,j,qe,!T,l);const st=c.useRef(j),_e=w?Array.isArray(j)&&j.length>0:j!=null&&be!=="";re(()=>{N(_e)},[_e,N]),re(function(){let ze=j,wt=!1;if(w){const Vt=Array.isArray(j)?j:[];wt=Vt.length===0,ze=Vt[Vt.length-1]}const zt=wt?-1:Cr(te.current,ze,R),Et=zt===-1?null:zt;Et===null&&(ie.current=null),!U&&fe.set("selectedIndex",Et)},[w,U,j,R,fe]);function Je(Pe){const ze=D.initialValue;return Array.isArray(Pe)&&Array.isArray(ze)?!ov(Pe,ze,(wt,zt)=>uo(wt,zt,R)):Pe!==ze}ys(j,()=>{M(_),C(Je(j)),L.change(j)});const ct=le((Pe,ze)=>{a==null||a(Pe,ze),!ze.isCanceled&&(Y(Pe),!Pe&&(ze.reason===Nn||ze.reason===Zr)&&(O(!0),I(!1),A==="onBlur"&&L.commit(j)))}),Se=le(()=>{oe(!1),fe.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),b==null||b(!1)});kt({enabled:!g,open:U,ref:H,onComplete(){U||Se()}}),c.useImperativeHandle(g,()=>({unmount:Se}),[Se]);const je=le((Pe,ze)=>{r==null||r(Pe,ze),!ze.isCanceled&&$(Pe)}),Ye=le(Pe=>{const ze=Oa(Pe.scrollHeight,Pe.clientHeight),wt=fo(Pe.scrollTop,ze),zt=wt>0,Et=wt<ze;fe.set("scrollUpArrowVisible",zt),fe.set("scrollDownArrowVisible",Et)}),Be=Xb({open:U,onOpenChange:ct,elements:{reference:se,floating:Z}}),Xe=da(Be,{enabled:!f&&!T,event:"mousedown"}),pt=is(Be),we=Ed(Be,{enabled:!f&&!T,listRef:V,activeIndex:B,selectedIndex:q,disabledIndices:Nt,onNavigate(Pe){Pe===null&&!U||fe.set("activeIndex",Pe)},focusItemOnHover:E}),Ae=Cd(Be,{enabled:!f&&!T&&(U||!w),listRef:Q,activeIndex:B,selectedIndex:q,disabledIndices:Pe=>Hd(V.current[Pe]),onMatch(Pe){U?fe.set("activeIndex",Pe):je(te.current[Pe],Re(Rt))},onTyping(Pe){J.current=Pe}}),Qe=c.useMemo(()=>St(Ae.reference,we.reference,pt.reference,Xe.reference,ce),[Xe.reference,Ae.reference,we.reference,pt.reference,ce]),tt=c.useMemo(()=>St(us,Ae.floating,we.floating,pt.floating),[Ae.floating,we.floating,pt.floating]),yt=we.item??We;U1(()=>{fe.update({popupProps:tt,triggerProps:Qe})}),fe.useSyncedValues({id:F,modal:m,multiple:w,value:j,open:U,mounted:he,transitionStatus:ge,popupProps:tt,triggerProps:Qe,items:v,itemToStringLabel:x,itemToStringValue:S,isItemEqualToValue:R,openMethod:pe});const bt=c.useMemo(()=>({store:fe,floatingContext:Be,required:y,disabled:T,readOnly:f,multiple:w,highlightItemOnHover:E,setValue:je,setOpen:ct,listRef:V,popupRef:H,scrollHandlerRef:G,handleScrollArrowVisibility:Ye,scrollArrowsMountedCountRef:ue,itemProps:yt,valueRef:ne,valuesRef:te,labelsRef:Q,typingRef:J,selectionRef:xe,firstItemTextRef:ee,selectedItemTextRef:ie,validation:L,onOpenChangeComplete:b,alignItemWithTriggerActiveRef:ae,initialValueRef:st}),[fe,Be,y,T,f,w,E,je,ct,yt,L,b,Ye]),Xt=Dt(h,L.inputRef),lt=w?void 0:_,ht=c.useMemo(()=>!w||!Array.isArray(j)||!_?null:j.map(Pe=>{const ze=Xn(Pe,S);return K.jsx("input",{type:"hidden",form:u,name:_,value:ze,disabled:T},ze)}),[w,j,u,_,S,T]);return K.jsxs(jd.Provider,{value:bt,children:[k,K.jsx("input",{...L.getValidationProps(T,{onFocus(){var Pe;(Pe=fe.state.triggerElement)==null||Pe.focus({focusVisible:!0})},onChange(Pe){if(Pe.nativeEvent.defaultPrevented||T||f)return;const ze=Pe.currentTarget.value,wt=Re(Rt,Pe.nativeEvent);function zt(){if(w)return;const Et=ze.toLowerCase();let Vt=te.current.findIndex(So=>Xn(So,S).toLowerCase()===Et||Wd(So,x).toLowerCase()===Et);Vt===-1&&(Vt=te.current.findIndex((So,Mn)=>{const Zo=Q.current[Mn];return Zo!=null&&Zo.toLowerCase()===Et}));const Ko=te.current[Vt];Ko!=null&&je(Ko,wt)}fe.set("forceMount",!0),queueMicrotask(zt)}}),id:F&&lt==null?`${F}-hidden-input`:void 0,form:u,name:lt,autoComplete:d,value:be,disabled:T,required:y&&!(w&&_e),readOnly:f,ref:Xt,style:_?ta:Bo,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),ht]})}function rv(e,t){return e??t}const sv=400,iv={...Lr,...bs,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},Fk=c.forwardRef(function(t,n){var J;const{render:o,className:r,id:s,disabled:i=!1,nativeButton:a=!0,style:l,...u}=t,{setTouched:d,setFocused:p,validationMode:f,state:y,disabled:m}=vo(),{labelId:g}=Yo(),{store:h,setOpen:b,selectionRef:v,validation:w,readOnly:x,required:S,alignItemWithTriggerActiveRef:R,disabled:E}=qt(),k=m||E||i,M=Ee(h,Ce.open),C=Ee(h,Ce.mounted),O=Ee(h,Ce.value),I=Ee(h,Ce.triggerProps),D=Ee(h,Ce.positionerElement),N=Ee(h,Ce.listElement),P=Ee(h,Ce.popupSide),z=Ee(h,Ce.id),L=Ee(h,Ce.labelId),A=Ee(h,Ce.hasSelectedValue),F=C&&D?P:null,T=s??z,_=rv(g,L);xs({id:T});const j=Ze(D),$=c.useRef(null),{getButtonProps:U,buttonRef:Y}=Tt({disabled:k,native:a}),V=h.useStateSetter("triggerElement"),Q=Ge(),H=Ge(),G=Ge();c.useEffect(()=>{if(M)return G.start(sv,()=>{v.current.allowUnselectedMouseUp=!0,v.current.allowSelectedMouseUp=!0}),()=>{G.clear()};v.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},H.clear()},[M,v,H,G]);const ue=St(I,{id:T,role:"combobox","aria-expanded":M,"aria-haspopup":"listbox","aria-controls":M?(N==null?void 0:N.id)??((J=Fr(D))==null?void 0:J.id):void 0,"aria-labelledby":_,"aria-readonly":x||void 0,"aria-required":S||void 0,tabIndex:k?-1:0,onFocus(ee){p(!0),M&&R.current&&b(!1,Re(Rt,ee.nativeEvent)),Q.start(0,()=>{h.set("forceMount",!0)})},onBlur(ee){ve(D,ee.relatedTarget)||(d(!0),p(!1),f==="onBlur"&&w.commit(O))},onMouseDown(ee){if(M)return;const ie=Te(ee.currentTarget);function xe(ae){if(!$.current)return;const he=ae.target;ve($.current,he)||ve(j.current,he)||zd(ae,$.current)||b(!1,Re(Bi,ae))}H.start(0,()=>{ie.addEventListener("mouseup",xe,{once:!0})})}},u,U),ne=w.getValidationProps(k,ue);ne.role="combobox";const te={...y,open:M,disabled:k,value:O,readOnly:x,popupSide:F,placeholder:!A};return ke("button",t,{ref:[n,$,Y,V],state:te,stateAttributesMapping:iv,props:ne})}),av={value:()=>null},zk=c.forwardRef(function(t,n){const{className:o,render:r,children:s,placeholder:i,style:a,...l}=t,{store:u,valueRef:d}=qt(),p=Ee(u,Ce.value),f=Ee(u,Ce.items),y=Ee(u,Ce.itemToStringLabel),m=Ee(u,Ce.hasSelectedValue),g=!m&&i!=null&&s==null,h=Ee(u,Ce.hasNullItemLabel,g),b={value:p,placeholder:!m};let v=null;return typeof s=="function"?v=s(p):s!=null?v=s:g&&!h?v=i:Array.isArray(p)?v=tv(p,f,y):v=Ud(p,f,y),ke("span",t,{state:b,ref:[n,d],props:[{children:v},l],stateAttributesMapping:av})}),Vk=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{store:a}=qt(),u={open:Ee(a,Ce.open)};return ke("span",t,{state:u,ref:n,props:[{"aria-hidden":!0,children:"▼"},i],stateAttributesMapping:Hi})}),$k=c.forwardRef(function(t,n){const{store:o}=qt(),r=Ee(o,Ce.mounted),s=Ee(o,Ce.forceMount);return r||s?K.jsx(aa,{ref:n,...t}):null}),Gd=c.createContext(void 0);function Aa(){const e=c.useContext(Gd);if(!e)throw new Error(Ne(59));return e}function Br(e,t){e&&Object.assign(e.style,t)}const Yd={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},cv={position:"fixed"},Hk=c.forwardRef(function(t,n){const{anchor:o,className:r,render:s,positionMethod:i,side:a,align:l,sideOffset:u,alignOffset:d,collisionBoundary:p="clipping-ancestors",collisionPadding:f,arrowPadding:y,sticky:m,disableAnchorTracking:g,alignItemWithTrigger:h=!0,collisionAvoidance:b=Zu,style:v,...w}=t,{store:x,listRef:S,labelsRef:R,alignItemWithTriggerActiveRef:E,selectedItemTextRef:k,valuesRef:M,initialValueRef:C,popupRef:O,setValue:I,floatingContext:D}=qt(),N=Ee(x,Ce.open),P=Ee(x,Ce.mounted),z=Ee(x,Ce.modal),L=Ee(x,Ce.value),A=Ee(x,Ce.openMethod),F=Ee(x,Ce.positionerElement),T=Ee(x,Ce.triggerElement),_=Ee(x,Ce.isItemEqualToValue),j=Ee(x,Ce.transitionStatus),$=c.useRef(null),U=c.useRef(null),[Y,V]=c.useState(h),Q=P&&Y&&A!=="touch";!P&&Y!==h&&V(h),c.useImperativeHandle(E,()=>Q),Ad((Q||z)&&N,A==="touch",F,T);const H=Pa({anchor:o,floatingRootContext:D,positionMethod:i,mounted:P,side:a,sideOffset:u,align:l,alignOffset:d,arrowPadding:y,collisionBoundary:p,collisionPadding:f,sticky:m,disableAnchorTracking:g??Q,collisionAvoidance:b,keepMounted:!0}),G=Q?"none":H.side,ue=Q?cv:H.positionerStyles,ne={open:N,side:G,align:H.align,anchorHidden:H.anchorHidden};re(()=>{x.set("popupSide",H.side)},[x,H.side]);const te=x.useStateSetter("positionerElement"),J=Ta(t,ne,{styles:ue,transitionStatus:j,props:w,refs:[n,te],hidden:!P,inert:!N}),ee=c.useRef(0),ie=le(ae=>{if(M.current.length===0)return;const he=ee.current;if(ee.current=ae.size,ae.size===he)return;const oe=Re(Rt);if(he!==0&&!x.state.multiple&&L!==null&&Cr(M.current,L,_)===-1){const de=C.current,fe=de!=null&&Cr(M.current,de,_)!==-1?de:null;I(fe,oe),fe===null&&(x.set("selectedIndex",null),k.current=null)}if(he!==0&&x.state.multiple&&Array.isArray(L)){const ge=L.filter(de=>Cr(M.current,de,_)!==-1);ge.length!==L.length&&(I(ge,oe),ge.length===0&&(x.set("selectedIndex",null),k.current=null))}if(N&&Q){x.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const ge={height:""};Br(F,ge),Br(O.current,ge)}}),xe=c.useMemo(()=>({...H,side:G,alignItemWithTriggerActive:Q,setControlledAlignItemWithTrigger:V,scrollUpArrowRef:$,scrollDownArrowRef:U}),[H,G,Q,V]);return K.jsx(gs,{elementsRef:S,labelsRef:R,onMapChange:ie,children:K.jsxs(Gd.Provider,{value:xe,children:[P&&z&&K.jsx(Ma,{inert:hs(!N),cutout:T}),J]})})}),ur="base-ui-disable-scrollbar",Vo={className:ur,getElement(e){return K.jsx("style",{nonce:e,href:ur,precedence:"base-ui:low",children:`.${ur}{scrollbar-width:none}.${ur}::-webkit-scrollbar{display:none}`})}},lv=c.createContext(void 0),uv={disableStyleElements:!1};function Da(){return c.useContext(lv)??uv}const dv={...Xr,...Gt},jk=c.forwardRef(function(t,n){const{render:o,className:r,style:s,finalFocus:i,...a}=t,{store:l,popupRef:u,onOpenChangeComplete:d,setOpen:p,valueRef:f,firstItemTextRef:y,selectedItemTextRef:m,multiple:g,handleScrollArrowVisibility:h,scrollHandlerRef:b,listRef:v,highlightItemOnHover:w,floatingContext:x}=qt(),{side:S,align:R,alignItemWithTriggerActive:E,isPositioned:k,setControlledAlignItemWithTrigger:M}=Aa(),C=Ca()!=null,O=bo(),{nonce:I,disableStyleElements:D}=Da(),N=Ee(l,Ce.id),P=Ee(l,Ce.open),z=Ee(l,Ce.openMethod),L=Ee(l,Ce.mounted),A=Ee(l,Ce.popupProps),F=Ee(l,Ce.transitionStatus),T=Ee(l,Ce.triggerElement),_=Ee(l,Ce.positionerElement),j=Ee(l,Ce.listElement),$=c.useRef(!1),U=c.useRef(!1),Y=c.useRef({}),V=io(),Q=le(ne=>{if(!_||!u.current||!U.current)return;const te=_.style.top==="0px",J=_.style.bottom==="0px";if($.current||!E||!te&&!J){h(ne);return}const ee=dl(_),ie=Io(_.getBoundingClientRect().height,"y",ee),xe=Te(_),ae=He(_),he=ae.getComputedStyle(_),oe=parseFloat(he.marginTop),ge=parseFloat(he.marginBottom),de=ul(ae.getComputedStyle(u.current)),ce=Math.min(xe.documentElement.clientHeight-oe-ge,de),fe=ne.scrollTop,B=dr(ne);let q=null;const se=be=>{_.style.height=`${be}px`},Z=te?B-fe:fe,X=Math.min(ie+Z,ce);if(Z<=Ot){const be=hn(Z,0,ce-ie);be>0&&se(ie+be),ne.scrollTop=te?B:0,ce-(ie+be)<=Ot&&($.current=!0),h(ne);return}if(ce-X>Ot)q=te?1/0:0;else if(J&&fe<B){const be=ie+Z-ce;q=fe-(Z-be)}const pe=Math.ceil(X);if(pe!==0&&se(pe),q!=null){const be=hn(q,0,dr(ne));Math.abs(ne.scrollTop-be)>Ot&&(ne.scrollTop=be)}pe>=ce-Ot&&($.current=!0),h(ne)});c.useImperativeHandle(b,()=>Q,[Q]),kt({open:P,ref:u,onComplete(){P&&(d==null||d(!0))}});const H={open:P,transitionStatus:F,side:S,align:R};re(()=>{!_||!u.current||Object.keys(Y.current).length||(Y.current={top:_.style.top||"0",left:_.style.left||"0",right:_.style.right,height:_.style.height,bottom:_.style.bottom,minHeight:_.style.minHeight,maxHeight:_.style.maxHeight,marginTop:_.style.marginTop,marginBottom:_.style.marginBottom})},[u,_]),re(()=>{P||E||(U.current=!1,$.current=!1,Br(_,Y.current))},[P,E,_,u]),re(()=>{var J,ee;const ne=u.current;if(!P||!T||!_||!ne||E&&!k||l.state.transitionStatus==="ending")return;if(U.current=!0,ne.style.removeProperty("--transform-origin"),!E){V.request(()=>h(j||ne));return}const te=fv(ne);try{let ie=m.current;ie!=null&&ie.isConnected||(ie=!Ce.hasSelectedValue(l.state)&&((J=y.current)!=null&&J.isConnected)?y.current:null);const xe=f.current,ae=He(_),he=ae.getComputedStyle(_),oe=ae.getComputedStyle(ne),ge=Te(T),de=dl(T),ce=fr(T.getBoundingClientRect(),de),fe=fr(_.getBoundingClientRect(),de),B=ce.height,q=j||ne,se=q.scrollHeight,Z=parseFloat(oe.borderBottomWidth),X=parseFloat(he.marginTop)||10,pe=parseFloat(he.marginBottom)||10,be=parseFloat(he.minHeight)||100,Le=ul(oe),Ue=5,qe=5,st=20,_e=ge.documentElement.clientHeight-X-pe,Je=ge.documentElement.clientWidth,ct=_e-ce.bottom+B;let Se,je=O==="rtl"?ce.right-fe.width:ce.left,Ye=0;if(ie&&xe){const lt=fr(xe.getBoundingClientRect(),de);Se=fr(ie.getBoundingClientRect(),de),je=fe.left+(O==="rtl"?lt.right-Se.right:lt.left-Se.left);const ht=lt.top-ce.top+lt.height/2;Ye=Se.top-fe.top+Se.height/2-ht}const Be=ct+Ye+pe+Z;let Xe=Math.min(_e,Be);const pt=_e-X-pe,we=Be-Xe,Ae=Je-qe;_.style.left=`${hn(je,Ue,Ae-fe.width)}px`,_.style.height=`${Xe}px`,_.style.maxHeight="none",_.style.marginTop=`${X}px`,_.style.marginBottom=`${pe}px`,ne.style.height="100%";const Qe=dr(q),tt=we>=Qe-Ot;tt&&(Xe=Math.min(_e,fe.height)-(we-Qe));const yt=ce.top<st||ce.bottom>_e-st||Math.ceil(Xe)+Ot<Math.min(se,be),bt=(((ee=ae.visualViewport)==null?void 0:ee.scale)??1)!==1&&Yt;if(yt||bt){Br(_,Y.current),M(!1);return}const Xt=Math.max(be,Xe);if(tt){const lt=Math.max(0,_e-Be);_.style.top=fe.height>=pt?"0":`${lt}px`,_.style.height=`${Xe}px`,q.scrollTop=dr(q)}else _.style.bottom="0",q.scrollTop=we;if(Se){const lt=fe.top,ht=fe.height,Pe=Se.top+Se.height/2,ze=hn(ht>0?(Pe-lt)/ht*100:50,0,100);ne.style.setProperty("--transform-origin",`50% ${ze}%`)}(Xt===_e||Xe>=Le)&&($.current=!0),h(q),w&&l.state.selectedIndex===null&&l.state.activeIndex===null&&v.current[0]!=null&&l.set("activeIndex",0)}finally{te()}},[l,P,_,T,f,y,m,u,h,E,M,V,j,v,w,O,k]),c.useEffect(()=>{if(!E||!_||!P)return;const ne=He(_);function te(J){p(!1,Re(jy,J))}return Me(ne,"resize",te)},[p,E,_,P]);const G={...j?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":g||void 0,id:`${N}-list`},onKeyDown(ne){C&&fs.has(ne.key)&&ne.stopPropagation()},onScroll(ne){j||Q(ne.currentTarget)},...E&&{style:j?{height:"100%"}:Yd},className:!j&&E?Vo.className:void 0},ue=ke("div",t,{ref:[n,u],state:H,stateAttributesMapping:dv,props:[A,G,ps(F),a]});return K.jsxs(c.Fragment,{children:[!D&&Vo.getElement(I),K.jsx(ua,{context:x,modal:!1,disabled:!L,openInteractionType:z,returnFocus:i,restoreFocus:!0,children:ue})]})});function ul(e){const t=e.maxHeight;return t.endsWith("px")&&parseFloat(t)||1/0}function dr(e){return Oa(e.scrollHeight,e.clientHeight)}function dl(e){return dd.getScale(e)}function Io(e,t,n){return e/n[t]}function fr(e,t){return Fo({x:Io(e.x,"x",t),y:Io(e.y,"y",t),width:Io(e.width,"x",t),height:Io(e.height,"y",t)})}const fl=[["transform","none"],["scale","1"],["translate","0 0"]];function fv(e){const{style:t}=e,n={};for(const[o,r]of fl)n[o]=t.getPropertyValue(o),t.setProperty(o,r,"important");return()=>{for(const[o]of fl){const r=n[o];r?t.setProperty(o,r):t.removeProperty(o)}}}const Bk=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{store:a,scrollHandlerRef:l,multiple:u}=qt(),{alignItemWithTriggerActive:d}=Aa(),p=Ee(a,Ce.hasScrollArrows),f=Ee(a,Ce.openMethod),m={id:`${Ee(a,Ce.id)}-list`,role:"listbox","aria-multiselectable":u||void 0,onScroll(h){var b;(b=l.current)==null||b.call(l,h.currentTarget)},...d&&{style:Yd},className:p&&f!=="touch"?Vo.className:void 0},g=a.useStateSetter("listElement");return ke("div",t,{ref:[n,g],props:[m,i]})}),qd=c.createContext(void 0);function Na(){const e=c.useContext(qd);if(!e)throw new Error(Ne(57));return e}const Wk=c.memo(c.forwardRef(function(t,n){const{render:o,className:r,style:s,value:i=null,label:a,disabled:l=!1,nativeButton:u=!1,...d}=t,p=c.useRef(null),f=yo({guess:!0,label:a,textRef:p}),{store:y,itemProps:m,setOpen:g,setValue:h,selectionRef:b,typingRef:v,valuesRef:w,multiple:x,selectedItemTextRef:S,disabled:R,readOnly:E}=qt(),k=R||l,M=Ee(y,Ce.isActive,f.index),C=Ee(y,Ce.open),O=Ee(y,Ce.isSelected,i),I=Ee(y,Ce.isSelectedByFocus,f.index),D=Ee(y,Ce.isItemEqualToValue),N=f.index,P=c.useRef(null);re(()=>{const V=w.current;return V[N]=i,()=>{delete V[N]}},[N,i,w]),re(()=>{const V=y.state.value;let Q=V;x&&Array.isArray(V)&&(Q=V.length>0?V[V.length-1]:void 0),Q!==void 0&&uo(i,Q,D)&&(y.set("selectedIndex",N),p.current&&(S.current=p.current))},[N,x,D,y,i,S]);const z=c.useRef("mouse"),L=c.useRef(!1),{getButtonProps:A,buttonRef:F}=Tt({disabled:k,focusableWhenDisabled:!0,native:u,composite:!0}),T={disabled:k,selected:O,highlighted:M};function _(V){if(R||E)return;const Q=y.state.value;if(x){const H=Array.isArray(Q)?Q:[],G=O?J1(H,i,D):[...H,i];h(G,Re(An,V))}else h(i,Re(An,V)),g(!1,Re(An,V))}function j(){b.current.dragY=0}const $={role:"option","aria-selected":O,tabIndex:C&&M?0:-1,onKeyDown(V){y.set("activeIndex",N),V.key===" "&&v.current&&V.preventDefault()},onClick(V){const Q=z.current!=="touch",H=V.nativeEvent.pointerType,G=Q&&Qi(V.nativeEvent)&&(H!==void 0||M),ue=Q&&!G&&!L.current;L.current=!1,!(k||ue)&&_(V.nativeEvent)},onPointerEnter(V){z.current=V.pointerType},onPointerMove(V){if(V.pointerType==="mouse"&&V.buttons===1){const Q=b.current;Q.dragY+=V.movementY,Q.dragY**2>=64&&(Q.allowUnselectedMouseUp=!0)}},onPointerDown(V){z.current=V.pointerType,L.current=!0,j()},onMouseUp(){var H;if(j(),k||z.current==="touch"||L.current)return;const V=!b.current.allowSelectedMouseUp&&O,Q=!b.current.allowUnselectedMouseUp&&!O;V||Q||(L.current=!0,(H=P.current)==null||H.click(),L.current=!1)}},U=ke("div",t,{ref:[F,n,f.ref,P],state:T,props:[m,$,d,A]}),Y=c.useMemo(()=>({selected:O,index:N,textRef:p,selectedByFocus:I}),[O,N,p,I]);return K.jsx(qd.Provider,{value:Y,children:U})})),Uk=c.forwardRef(function(t,n){const{selected:o}=Na();return t.keepMounted||o?K.jsx(pv,{...t,ref:n}):null}),pv=c.memo(c.forwardRef((e,t)=>{const{render:n,className:o,style:r,keepMounted:s,...i}=e,{selected:a}=Na(),l=c.useRef(null),{transitionStatus:u,setMounted:d}=ln(a),f=ke("span",e,{ref:[t,l],state:{selected:a,transitionStatus:u},props:[{"aria-hidden":!0,children:"✔️"},i],stateAttributesMapping:Gt});return kt({open:a,ref:l,onComplete(){a||d(!1)}}),f})),Gk=c.memo(c.forwardRef(function(t,n){const{index:o,textRef:r,selectedByFocus:s}=Na(),{firstItemTextRef:i,selectedItemTextRef:a}=qt(),{render:l,className:u,style:d,...p}=t,f=c.useCallback(m=>{m&&(o===0&&(i.current=m),s&&(a.current=m))},[i,a,o,s]);return ke("div",t,{ref:[f,n,r],props:p})})),Xd=c.forwardRef(function(t,n){const{render:o,className:r,style:s,direction:i,keepMounted:a,...l}=t,u=i==="up",{store:d,popupRef:p,listRef:f,handleScrollArrowVisibility:y,scrollArrowsMountedCountRef:m}=qt(),{side:g,scrollDownArrowRef:h,scrollUpArrowRef:b}=Aa(),v=u?Ce.scrollUpArrowVisible:Ce.scrollDownArrowVisible,w=Ee(d,v),x=Ee(d,Ce.openMethod),S=w&&x!=="touch",R=Ge(),E=u?b:h,{mounted:k,transitionStatus:M,setMounted:C}=ln(S);re(()=>(m.current+=1,d.set("hasScrollArrows",!0),()=>{m.current=Math.max(0,m.current-1),m.current===0&&d.set("hasScrollArrows",!1)}),[d,m]),kt({open:S,ref:E,onComplete(){S||C(!1)}});const D=ke("div",t,{ref:[n,E],state:{direction:i,visible:S,side:g,transitionStatus:M},props:[{"aria-hidden":!0,children:u?"▲":"▼",style:{position:"absolute"},onMouseMove(P){if(P.movementX===0&&P.movementY===0||R.isStarted())return;d.set("activeIndex",null);function z(){var j;const L=d.state.listElement??p.current;if(!L)return;d.set("activeIndex",null),y(L);const A=Oa(L.scrollHeight,L.clientHeight),F=fo(L.scrollTop,A),T=F===(u?0:A),_=f.current;if(F!==L.scrollTop&&(L.scrollTop=F),T){R.clear();return}if(_.length>0){const $=((j=E.current)==null?void 0:j.offsetHeight)||0;L.scrollTop=hv(_,u,F,L.clientHeight,$,A)}R.start(40,z)}R.start(40,z)},onMouseLeave(){R.clear()}},l],stateAttributesMapping:Gt});return k||a?D:null});function hv(e,t,n,o,r,s){if(t){let d=0;const p=n+r-Ot;for(let m=0;m<e.length;m+=1){const g=e[m];if(g&&g.offsetTop>=p){d=m;break}}const f=Math.max(0,d-1),y=e[f];return f<d&&y?fo(y.offsetTop-r,s):0}let i=e.length-1;const a=n+o-r+Ot;for(let d=0;d<e.length;d+=1){const p=e[d];if(p&&p.offsetTop+p.offsetHeight>a){i=Math.max(0,d-1);break}}const l=Math.min(e.length-1,i+1),u=e[l];return l>i&&u?fo(u.offsetTop+u.offsetHeight-o+r,s):s}const Yk=c.forwardRef(function(t,n){return K.jsx(Xd,{...t,ref:n,direction:"down"})}),qk=c.forwardRef(function(t,n){return K.jsx(Xd,{...t,ref:n,direction:"up"})}),gv=c.createContext(void 0),Xk=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,[a,l]=c.useState(),u=c.useMemo(()=>({labelId:a,setLabelId:l}),[a,l]),d=ke("div",t,{ref:n,props:[{role:"group","aria-labelledby":a},i]});return K.jsx(gv.Provider,{value:u,children:d})}),Kd=c.createContext(void 0);function Pn(e){const t=c.useContext(Kd);if(!e&&t===void 0)throw new Error(Ne(27));return t}const Kk=c.forwardRef(function(t,n){const{render:o,className:r,style:s,forceRender:i=!1,...a}=t,l=Pn(),u=l.useState("open"),d=l.useState("nested"),p=l.useState("mounted"),f=l.useState("transitionStatus");return ke("div",t,{state:{open:u,transitionStatus:f},ref:[l.context.backdropRef,n],stateAttributesMapping:ji,props:[{role:"presentation",hidden:!p,style:{userSelect:"none",WebkitUserSelect:"none"}},a],enabled:i||!d})}),Zk=c.forwardRef(function(t,n){const{render:o,className:r,style:s,disabled:i=!1,nativeButton:a=!0,...l}=t,u=Pn(),d=u.useState("open"),{getButtonProps:p,buttonRef:f}=Tt({disabled:i,native:a}),y={disabled:i};function m(g){d&&u.setOpen(!1,Re(Hy,g.nativeEvent))}return ke("button",t,{state:y,ref:[n,f],props:[{onClick:m},l,p]})}),Qk=c.forwardRef(function(t,n){const{render:o,className:r,style:s,id:i,...a}=t,l=Pn(),u=rt(i);return l.useSyncedValueWithCleanup("descriptionElementId",u),ke("p",t,{ref:n,props:[{id:u},a]})}),Zd=c.createContext(void 0);function mv(){const e=c.useContext(Zd);if(e===void 0)throw new Error(Ne(26));return e}const yv={...Xr,...Gt,nestedDialogOpen(e){return e?{"data-nested-dialog-open":""}:null}},Jk=c.forwardRef(function(t,n){const{render:o,className:r,style:s,finalFocus:i,initialFocus:a,...l}=t,u=Pn(),d=u.useState("descriptionElementId"),p=u.useState("disablePointerDismissal"),f=u.useState("floatingRootContext"),y=u.useState("popupProps"),m=u.useState("modal"),g=u.useState("mounted"),h=u.useState("nested"),b=u.useState("nestedOpenDialogCount"),v=u.useState("open"),w=u.useState("openMethod"),x=u.useState("titleElementId"),S=u.useState("transitionStatus"),R=u.useState("role"),E=f.useState("floatingId");mv(),kt({open:v,ref:u.context.popupRef,onComplete(){var D,N;v&&((N=(D=u.context).onOpenChangeComplete)==null||N.call(D,!0))}});const k=a===void 0?Bb(u.context.popupRef):a,M=b>0,C=u.useStateSetter("popupElement"),I=ke("div",t,{state:{open:v,nested:h,transitionStatus:S,nestedDialogOpen:M},props:[y,{id:E,"aria-labelledby":x,"aria-describedby":d,role:R,...us,hidden:!g,onKeyDown(D){fs.has(D.key)&&D.stopPropagation()},style:{"--nested-dialogs":b}},l],ref:[n,u.context.popupRef,C],stateAttributesMapping:yv});return K.jsx(ua,{context:f,openInteractionType:w,disabled:!g,closeOnFocusOut:!p,initialFocus:k,returnFocus:i,modal:m!==!1,restoreFocus:"popup",children:I})}),eE=c.forwardRef(function(t,n){const{keepMounted:o=!1,...r}=t,s=Pn(),i=s.useState("mounted"),a=s.useState("modal"),l=s.useState("open");return i||o?K.jsx(Zd.Provider,{value:o,children:K.jsxs(aa,{ref:n,...r,children:[i&&a===!0&&K.jsx(Ma,{ref:s.context.internalBackdropRef,inert:hs(!l)}),t.children]})}):null});function bv({store:e,parentContext:t,isDrawer:n}){const o=e.useState("open"),r=e.useState("disablePointerDismissal"),s=e.useState("modal"),i=e.useState("popupElement"),a=e.useState("floatingRootContext"),[l,u]=c.useState(0),[d,p]=c.useState(0),f=l===0,y=is(a,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:s==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(m){if(!e.context.outsidePressEnabledRef.current||"button"in m&&m.button!==0)return!1;if("touches"in m){if(m.type==="touchend"){if(m.changedTouches.length!==1||m.touches.length!==0)return!1}else if(m.touches.length!==1)return!1}const g=et(m);if(f&&!r){if(s){const h=e.context.internalBackdropRef.current,b=e.context.backdropRef.current;return h||b?h===g||b===g||ve(g,i)&&!(g!=null&&g.hasAttribute("data-base-ui-portal")):!0}return!0}return!1},escapeKey:f});return Od(o&&s===!0,i),e.useContextCallback("onNestedDialogOpen",(m,g)=>{u(m),p(g)}),re(()=>(t!=null&&t.onNestedDialogOpen&&(o?t.onNestedDialogOpen(l+1,d+(n?1:0)):t.onNestedDialogOpen(0,0)),()=>{t!=null&&t.onNestedDialogOpen&&o&&t.onNestedDialogOpen(0,0)}),[n,o,l,d,t]),va(e,{activeTriggerProps:y.reference,inactiveTriggerProps:y.trigger,popupProps:y.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}const vv={...Sa,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role};class xv extends Uo{constructor(n,o,r){const s=new Go,i=wv(n,s,o,r);super(i,Sv(s),vv);De(this,"setOpen",(n,o)=>{var s,i;if(o.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!n&&o.trigger==null&&this.state.activeTriggerId!=null&&(o.trigger=this.state.activeTriggerElement??void 0),(i=(s=this.context).onOpenChange)==null||i.call(s,n,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(n,o);const r={open:n};ga(r,n,o.trigger),this.update(r)})}}function wv(e,t,n,o=!1){const r={...xa(),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e};return r.floatingRootContext=vd(t,n,o),r}function Sv(e){return{popupRef:c.createRef(),backdropRef:c.createRef(),internalBackdropRef:c.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function Qd(e,t){const{children:n,open:o,defaultOpen:r=!1,onOpenChange:s,onOpenChangeComplete:i,disablePointerDismissal:a=!1,modal:l=!0,actionsRef:u,handle:d,triggerId:p,defaultTriggerId:f=null}=t,y=e==="drawer",m=e==="alert-dialog",g=m?!0:l,h=m||a,b=m?"alertdialog":"dialog",v=Pn(!0),w=v!=null,x={modal:g,disablePointerDismissal:h,nested:w,role:b},S=yd((O,I)=>new xv({open:r,openProp:o,activeTriggerId:f,triggerIdProp:p,...x},O,I),!0);S.useControlledProp("openProp",o),S.useControlledProp("triggerIdProp",p),S.useSyncedValues(x),S.useContextCallback("onOpenChange",s),S.useContextCallback("onOpenChangeComplete",i);const R=S.useState("open"),E=S.useState("mounted"),k=S.useState("payload");Gb(S,R),ya(S);const{forceUnmount:M}=ba(R,S);c.useImperativeHandle(u,()=>({unmount:M,close:()=>S.setOpen(!1,Re(Wi))}),[M,S]);const C=R||E;return K.jsxs(Kd.Provider,{value:S,children:[d&&K.jsx(ha,{handle:d,store:S}),C&&K.jsx(bv,{store:S,parentContext:v==null?void 0:v.context,isDrawer:y}),typeof n=="function"?n({payload:k}):n]})}function tE(e){return Qd("dialog",e)}const nE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,id:i,...a}=t,l=Pn(),u=rt(i);return l.useSyncedValueWithCleanup("titleElementId",u),ke("h2",t,{ref:n,props:[{id:u},a]})}),Rv=c.forwardRef(function(t,n){const{render:o,className:r,style:s,disabled:i=!1,nativeButton:a=!0,id:l,payload:u,handle:d,...p}=t,f=Pn(!0),m=Ra(d)??f;if(!m)throw new Error(Ne(79));const g=rt(l),h=m.useState("floatingRootContext"),b=m.useState("isOpenedByTrigger",g),v=m.useState("triggerPopupId",g),w=c.useRef(null),{registerTrigger:x,isMountedByThisTrigger:S}=ma(g,w,m,{payload:u}),{getButtonProps:R,buttonRef:E}=Tt({disabled:i,native:a}),k=da(h),M=_d(()=>m.select("open"),I=>{m.set("openMethod",I)}),C={disabled:i,open:b},O=m.useState("triggerProps",S);return ke("button",t,{state:C,ref:[E,n,x,w],props:[k.reference,O,M,{[Ku]:"",id:g,"aria-haspopup":"dialog","aria-expanded":b,"aria-controls":v},p,R],stateAttributesMapping:Hi})});function oE(e){return ke(e.defaultTagName??"div",e,e)}var kv=Object.defineProperty,xo=(e,t)=>kv(e,"name",{value:t,configurable:!0}),Jd=!!(typeof window<"u"&&window.document&&window.document.createElement);function Dn(e,t,{checkForDefaultPrevented:n=!0}={}){return xo(function(r){if(e==null||e(r),n===!1||!r||!r.defaultPrevented)return t==null?void 0:t(r)},"handleEvent")}xo(Dn,"composeEventHandlers");function Ev(e){var t;if(!Jd)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}xo(Ev,"getOwnerWindow");function mi(e){if(!Jd)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}xo(mi,"getOwnerDocument");function ef(e,t=!1){const{activeElement:n}=mi(e);if(!(n!=null&&n.nodeName))return null;if(tf(n)&&n.contentDocument)return ef(n.contentDocument.body,t);if(t){const o=n.getAttribute("aria-activedescendant");if(o){const r=mi(n).getElementById(o);if(r)return r}}return n}xo(ef,"getActiveElement");function tf(e){return e.tagName==="IFRAME"}xo(tf,"isFrame");var Cv=Object.defineProperty,La=(e,t)=>Cv(e,"name",{value:t,configurable:!0});function yi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}La(yi,"setRef");function nf(...e){return t=>{let n=!1;const o=e.map(r=>{const s=yi(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():yi(e[r],null)}}}}La(nf,"composeRefs");function wo(...e){return c.useCallback(nf(...e),e)}La(wo,"useComposedRefs");var Pv=Object.defineProperty,Ct=(e,t)=>Pv(e,"name",{value:t,configurable:!0});function Mv(e,t){const n=c.createContext(t);n.displayName=e+"Context";const o=Ct(s=>{const{children:i,...a}=s,l=c.useMemo(()=>a,Object.values(a));return K.jsx(n.Provider,{value:l,children:i})},"Provider");o.displayName=e+"Provider";function r(s,i={}){const{optional:a=!1}=i,l=c.useContext(n);if(l)return l;if(t!==void 0)return t;if(!a)throw new Error(`\`${s}\` must be used within \`${e}\``)}return Ct(r,"useContext"),[o,r]}Ct(Mv,"createContext");function of(e,t=[]){let n=[];function o(s,i){const a=c.createContext(i);a.displayName=s+"Context";const l=n.length;n=[...n,i];const u=Ct(p=>{var b;const{scope:f,children:y,...m}=p,g=((b=f==null?void 0:f[e])==null?void 0:b[l])||a,h=c.useMemo(()=>m,Object.values(m));return K.jsx(g.Provider,{value:h,children:y})},"Provider");u.displayName=s+"Provider";function d(p,f,y={}){var b;const{optional:m=!1}=y,g=((b=f==null?void 0:f[e])==null?void 0:b[l])||a,h=c.useContext(g);if(h)return h;if(i!==void 0)return i;if(!m)throw new Error(`\`${p}\` must be used within \`${s}\``)}return Ct(d,"useContext"),[u,d]}Ct(o,"createContext");const r=Ct(()=>{const s=n.map(i=>c.createContext(i));return Ct(function(a){const l=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])},"useScope")},"createScope");return r.scopeName=e,[o,rf(r,...t)]}Ct(of,"createContextScope");function rf(...e){const t=e[0];if(e.length===1)return t;const n=Ct(()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return Ct(function(s){const i=o.reduce((a,{useScope:l,scopeName:u})=>{const p=l(s)[`__scope${u}`];return{...a,...p}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}Ct(rf,"composeContextScopes");var po=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},Tv=Object.defineProperty,Iv=(e,t)=>Tv(e,"name",{value:t,configurable:!0}),Ov=mo[" useId ".trim().toString()]||(()=>{}),Av=0;function Pr(e){const[t,n]=c.useState(Ov());return po(()=>{e||n(o=>o??String(Av++))},[e]),e||(t?`radix-${t}`:"")}Iv(Pr,"useId");var Dv=Object.defineProperty,Nv=(e,t)=>Dv(e,"name",{value:t,configurable:!0}),pl=mo[" useEffectEvent ".trim().toString()],hl=mo[" useInsertionEffect ".trim().toString()];function sf(e){if(typeof pl=="function")return pl(e);const t=c.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof hl=="function"?hl(()=>{t.current=e}):po(()=>{t.current=e}),c.useMemo(()=>((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)}),[])}Nv(sf,"useEffectEvent");var Lv=Object.defineProperty,qo=(e,t)=>Lv(e,"name",{value:t,configurable:!0}),_v=mo[" useInsertionEffect ".trim().toString()]||po;function af({prop:e,defaultProp:t,onChange:n=qo(()=>{},"onChange"),caller:o}){const[r,s,i]=cf({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:r,u=c.useCallback(d=>{var p;if(a){const f=lf(d)?d(e):d;f!==e&&((p=i.current)==null||p.call(i,f))}else s(d)},[a,e,s,i]);return[l,u]}qo(af,"useControllableState");function cf({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),s=c.useRef(t);return _v(()=>{s.current=t},[t]),c.useEffect(()=>{var i;r.current!==n&&((i=s.current)==null||i.call(s,n),r.current=n)},[n,r]),[n,o,s]}qo(cf,"useUncontrolledState");function lf(e){return typeof e=="function"}qo(lf,"isFunction");var gl=Symbol("RADIX:SYNC_STATE");function Fv(e,t,n,o){const{prop:r,defaultProp:s,onChange:i,caller:a}=t,l=r!==void 0,u=sf(i),d=[{...n,state:s}];o&&d.push(o);const[p,f]=c.useReducer((h,b)=>{if(b.type===gl)return{...h,state:b.state};const v=e(h,b);return l&&!Object.is(v.state,h.state)&&u(v.state),v},...d),y=p.state,m=c.useRef(y);c.useEffect(()=>{m.current!==y&&(m.current=y,l||u(y))},[y,m,l]);const g=c.useMemo(()=>r!==void 0?{...p,state:r}:p,[p,r]);return c.useEffect(()=>{l&&!Object.is(r,p.state)&&f({type:gl,state:r})},[r,p.state,l]),[g,f]}qo(Fv,"useControllableStateReducer");var zv=Object.defineProperty,Ft=(e,t)=>zv(e,"name",{value:t,configurable:!0});function _a(e){const t=c.forwardRef((n,o)=>{let{children:r,...s}=n,i=null,a=!1;const l=[];bi(r)&&typeof pr=="function"&&(r=pr(r._payload)),c.Children.forEach(r,f=>{var y;if(pf(f)){a=!0;const m=f;let g="child"in m.props?m.props.child:m.props.children;bi(g)&&typeof pr=="function"&&(g=pr(g._payload)),i=$v(m,g),l.push((y=i==null?void 0:i.props)==null?void 0:y.children)}else l.push(f)}),i?i=c.cloneElement(i,void 0,l):!a&&c.Children.count(r)===1&&c.isValidElement(r)&&(i=r);const u=i?ff(i):void 0,d=wo(o,u);if(!i){if(r||r===0)throw new Error(a?Bv(e):jv(e));return r}const p=df(s,i.props??{});return i.type!==c.Fragment&&(p.ref=o?d:u),c.cloneElement(i,p)});return t.displayName=`${e}.Slot`,t}Ft(_a,"createSlot");var uf=Symbol.for("radix.slottable");function Vv(e){const t=Ft(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=uf,t}Ft(Vv,"createSlottable");var $v=Ft((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},"getSlottableElementFromSlottable");function df(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const l=s(...a);return r(...a),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}Ft(df,"mergeProps");function ff(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Ft(ff,"getElementRef");function pf(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===uf}Ft(pf,"isSlottable");var Hv=Symbol.for("react.lazy");function bi(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Hv&&"_payload"in e&&hf(e._payload)}Ft(bi,"isLazyComponent");function hf(e){return typeof e=="object"&&e!==null&&"then"in e}Ft(hf,"isPromiseLike");var jv=Ft(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Bv=Ft(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),pr=mo[" use ".trim().toString()],Wv=Object.defineProperty,Uv=(e,t)=>Wv(e,"name",{value:t,configurable:!0}),Gv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ss=Gv.reduce((e,t)=>{const n=_a(`Primitive.${t}`),o=c.forwardRef((r,s)=>{const{asChild:i,...a}=r,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),K.jsx(l,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function gf(e,t){e&&At.flushSync(()=>e.dispatchEvent(t))}Uv(gf,"dispatchDiscreteCustomEvent");var Yv=Object.defineProperty,qv=(e,t)=>Yv(e,"name",{value:t,configurable:!0});function ho(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)}),[])}qv(ho,"useCallbackRef");var Xv=Object.defineProperty,it=(e,t)=>Xv(e,"name",{value:t,configurable:!0}),vi="dismissableLayer.update",Kv="dismissableLayer.pointerDownOutside",Zv="dismissableLayer.focusOutside",ml,mf=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Qv=c.forwardRef(it(function(t,n){const{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:u,...d}=t,p=c.useContext(mf),[f,y]=c.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=c.useState({}),h=wo(n,y),b=Array.from(p.layers),[v]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),w=v?b.indexOf(v):-1,x=f?b.indexOf(f):-1,S=p.layersWithOutsidePointerEventsDisabled.size>0,R=x>=w,E=c.useRef(!1),k=bf(I=>{i==null||i(I),l==null||l(I),I.defaultPrevented||u==null||u()},{ownerDocument:m,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:E,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:c.useCallback(I=>{if(!(I instanceof Node))return!1;const D=[...p.branches].some(N=>N.contains(I));return R&&!D},[p.branches,R])}),M=vf(I=>{if(r&&E.current)return;const D=I.target;[...p.branches].some(P=>P.contains(D))||(a==null||a(I),l==null||l(I),I.defaultPrevented||u==null||u())},m),C=f?x===b.length-1:!1,O=ho(I=>{I.key==="Escape"&&(s==null||s(I),!I.defaultPrevented&&u&&(I.preventDefault(),u()))});return c.useEffect(()=>{if(C)return m.addEventListener("keydown",O,{capture:!0}),()=>m.removeEventListener("keydown",O,{capture:!0})},[m,C,O]),c.useEffect(()=>{if(f)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(ml=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(f)),p.layers.add(f),xi(),()=>{o&&(p.layersWithOutsidePointerEventsDisabled.delete(f),p.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=ml))}},[f,m,o,p]),c.useEffect(()=>()=>{f&&(p.layers.delete(f),p.layersWithOutsidePointerEventsDisabled.delete(f),xi())},[f,p]),c.useEffect(()=>{const I=it(()=>g({}),"handleUpdate");return document.addEventListener(vi,I),()=>document.removeEventListener(vi,I)},[]),K.jsx(Ss.div,{...d,ref:h,style:{pointerEvents:S?R?"auto":"none":void 0,...t.style},onFocusCapture:Dn(t.onFocusCapture,M.onFocusCapture),onBlurCapture:Dn(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Dn(t.onPointerDownCapture,k.onPointerDownCapture)})},"DismissableLayer"));function yf(){const e=c.useContext(mf),[t,n]=c.useState(null);return c.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}it(yf,"useDismissableLayerSurface");var Jv=it(()=>!0,"IS_TRUE");function bf(e,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:s,shouldHandlePointerDownOutside:i=Jv}=t,a=ho(e),l=c.useRef(!1),u=c.useRef(!1),d=c.useRef(new Map),p=c.useRef(()=>{});return c.useEffect(()=>{function f(){u.current=!1,r.current=!1,d.current.clear()}it(f,"resetOutsideInteraction");function y(){return Array.from(d.current.values()).some(Boolean)}it(y,"isOutsideInteractionIntercepted");function m(w){if(!u.current)return;const x=w.target;x instanceof Node&&[...s].some(R=>R.contains(x))||d.current.set(w.type,!0),w.type==="click"&&window.setTimeout(()=>{u.current&&p.current()},0)}it(m,"handleInteractionCapture");function g(w){u.current&&d.current.set(w.type,!1)}it(g,"handleInteractionBubble");const h=it(w=>{if(w.target&&!l.current){let x=function(){n.removeEventListener("click",p.current);const R=y();f(),R||Fa(Kv,a,S,{discrete:!0})};if(it(x,"handleAndDispatchPointerDownOutsideEvent"),!i(w.target)){n.removeEventListener("click",p.current),f(),l.current=!1;return}const S={originalEvent:w};u.current=!0,r.current=o&&w.button===0,d.current.clear(),!o||w.button!==0?x():(n.removeEventListener("click",p.current),p.current=x,n.addEventListener("click",p.current,{once:!0}))}else n.removeEventListener("click",p.current),f();l.current=!1},"handlePointerDown"),b=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const w of b)n.addEventListener(w,m,!0),n.addEventListener(w,g);const v=window.setTimeout(()=>{n.addEventListener("pointerdown",h)},0);return()=>{window.clearTimeout(v),n.removeEventListener("pointerdown",h),n.removeEventListener("click",p.current);for(const w of b)n.removeEventListener(w,m,!0),n.removeEventListener(w,g)}},[n,a,o,r,s,i]),{onPointerDownCapture:it(()=>l.current=!0,"onPointerDownCapture")}}it(bf,"usePointerDownOutside");function vf(e,t=globalThis==null?void 0:globalThis.document){const n=ho(e),o=c.useRef(!1);return c.useEffect(()=>{const r=it(s=>{s.target&&!o.current&&Fa(Zv,n,{originalEvent:s},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:it(()=>o.current=!0,"onFocusCapture"),onBlurCapture:it(()=>o.current=!1,"onBlurCapture")}}it(vf,"useFocusOutside");function xi(){const e=new CustomEvent(vi);document.dispatchEvent(e)}it(xi,"dispatchUpdate");function Fa(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?gf(r,s):r.dispatchEvent(s)}it(Fa,"handleAndDispatchCustomEvent");var ex=Object.defineProperty,gt=(e,t)=>ex(e,"name",{value:t,configurable:!0}),Bs="focusScope.autoFocusOnMount",Ws="focusScope.autoFocusOnUnmount",yl={bubbles:!1,cancelable:!0},tx=c.forwardRef(gt(function(t,n){const{loop:o=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...a}=t,[l,u]=c.useState(null),d=ho(s),p=ho(i),f=c.useRef(null),y=wo(n,u),m=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let h=function(x){if(m.paused||!l)return;const S=x.target;l.contains(S)?f.current=S:Qt(f.current,{select:!0})},b=function(x){if(m.paused||!l)return;const S=x.relatedTarget;S!==null&&(l.contains(S)||Qt(f.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const R of x)R.removedNodes.length>0&&Qt(l)};gt(h,"handleFocusIn"),gt(b,"handleFocusOut"),gt(v,"handleMutations"),document.addEventListener("focusin",h),document.addEventListener("focusout",b);const w=new MutationObserver(v);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",b),w.disconnect()}}},[r,l,m.paused]),c.useEffect(()=>{if(l){bl.add(m);const h=document.activeElement;if(!l.contains(h)){const v=new CustomEvent(Bs,yl);l.addEventListener(Bs,d),l.dispatchEvent(v),v.defaultPrevented||(xf(Ef(za(l)),{select:!0}),document.activeElement===h&&Qt(l))}return()=>{l.removeEventListener(Bs,d),setTimeout(()=>{const v=new CustomEvent(Ws,yl);l.addEventListener(Ws,p),l.dispatchEvent(v),v.defaultPrevented||Qt(h??document.body,{select:!0}),l.removeEventListener(Ws,p),bl.remove(m)},0)}}},[l,d,p,m]);const g=c.useCallback(h=>{if(!o&&!r||m.paused)return;const b=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,v=document.activeElement;if(b&&v){const w=h.currentTarget,[x,S]=wf(w);x&&S?!h.shiftKey&&v===S?(h.preventDefault(),o&&Qt(x,{select:!0})):h.shiftKey&&v===x&&(h.preventDefault(),o&&Qt(S,{select:!0})):v===w&&h.preventDefault()}},[o,r,m.paused]);return K.jsx(Ss.div,{tabIndex:-1,...a,ref:y,onKeyDown:g})},"FocusScope"));function xf(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Qt(o,{select:t}),document.activeElement!==n)return}gt(xf,"focusFirst");function wf(e){const t=za(e),n=wi(t,e),o=wi(t.reverse(),e);return[n,o]}gt(wf,"getTabbableEdges");function za(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:gt(o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}gt(za,"getTabbableCandidates");function wi(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const o of e)if(!(n?!o.checkVisibility({checkVisibilityCSS:!0}):Sf(o,{upTo:t})))return o}gt(wi,"findVisible");function Sf(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}gt(Sf,"isHidden");function Rf(e){return e instanceof HTMLInputElement&&"select"in e}gt(Rf,"isSelectableInput");function Qt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Rf(e)&&t&&e.select()}}gt(Qt,"focus");var bl=kf();function kf(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Si(e,t),e.unshift(t)},remove(t){var n;e=Si(e,t),(n=e[0])==null||n.resume()}}}gt(kf,"createFocusScopesStack");function Si(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}gt(Si,"arrayRemove");function Ef(e){return e.filter(t=>t.tagName!=="A")}gt(Ef,"removeLinks");var nx=Object.defineProperty,ox=(e,t)=>nx(e,"name",{value:t,configurable:!0}),rx=c.forwardRef(ox(function(t,n){var l;const{container:o,...r}=t,[s,i]=c.useState(!1);po(()=>i(!0),[]);const a=o||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?At.createPortal(K.jsx(Ss.div,{...r,ref:n}),a):null},"Portal")),sx=Object.defineProperty,rn=(e,t)=>sx(e,"name",{value:t,configurable:!0});function Cf(e,t){return c.useReducer((n,o)=>t[n][o]??n,e)}rn(Cf,"useStateMachine");var Va=rn(e=>{const{present:t,children:n}=e,o=Pf(t),r=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),s=Mf(o.ref,Tf(r));return typeof n=="function"||o.isPresent?c.cloneElement(r,{ref:s}):null},"Presence");function Pf(e){const[t,n]=c.useState(),o=c.useRef(null),r=c.useRef(e),s=c.useRef("none"),i=c.useRef(void 0),a=e?"mounted":"unmounted",[l,u]=Cf(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{l==="mounted"?(s.current=i.current??Kn(o.current),i.current=void 0):s.current="none"},[l]),po(()=>{const d=o.current,p=r.current;if(p!==e){const y=s.current,m=Kn(d);e?(i.current=m,u("MOUNT")):m==="none"||(d==null?void 0:d.display)==="none"?u("UNMOUNT"):u(p&&y!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),po(()=>{if(t){let d;const p=t.ownerDocument.defaultView??window,f=rn(m=>{const h=Kn(o.current).includes(CSS.escape(m.animationName));if(m.target===t&&h&&(u("ANIMATION_END"),!r.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",d=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},"handleAnimationEnd"),y=rn(m=>{m.target===t&&(s.current=Kn(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{p.clearTimeout(d),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:c.useCallback(d=>{if(d){const p=getComputedStyle(d);o.current=p,i.current=Kn(p)}else o.current=null;n(d)},[])}}rn(Pf,"usePresence");function Ri(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}rn(Ri,"setRef");function Mf(...e){const t=c.useRef(e);return t.current=e,c.useCallback(n=>{const o=t.current;let r=!1;const s=o.map(i=>{const a=Ri(i,n);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<s.length;i++){const a=s[i];typeof a=="function"?a():Ri(o[i],null)}}},[])}rn(Mf,"useStableComposedRefs");function Kn(e){return(e==null?void 0:e.animationName)||"none"}rn(Kn,"getAnimationName");function Tf(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}rn(Tf,"getElementRef");var ix=Object.defineProperty,$a=(e,t)=>ix(e,"name",{value:t,configurable:!0}),hr=0,Ht=null;function ax(e){return Ha(),e.children}$a(ax,"FocusGuards");function Ha(){c.useEffect(()=>{Ht||(Ht={start:ki(),end:ki()});const{start:e,end:t}=Ht;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),hr++,()=>{hr===1&&(Ht==null||Ht.start.remove(),Ht==null||Ht.end.remove(),Ht=null),hr=Math.max(0,hr-1)}},[])}$a(Ha,"useFocusGuards");function ki(){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}$a(ki,"createFocusGuard");var Bt=function(){return Bt=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Bt.apply(this,arguments)};function If(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function cx(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var Mr="right-scroll-bar-position",Tr="width-before-scroll-bar",lx="with-scroll-bars-hidden",ux="--removed-body-scroll-bar-size";function Us(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function dx(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var fx=typeof window<"u"?c.useLayoutEffect:c.useEffect,vl=new WeakMap;function px(e,t){var n=dx(null,function(o){return e.forEach(function(r){return Us(r,o)})});return fx(function(){var o=vl.get(n);if(o){var r=new Set(o),s=new Set(e),i=n.current;r.forEach(function(a){s.has(a)||Us(a,null)}),s.forEach(function(a){r.has(a)||Us(a,i)})}vl.set(n,e)},[e]),n}function hx(e){return e}function gx(e,t){t===void 0&&(t=hx);var n=[],o=!1,r={read:function(){if(o)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(s){var i=t(s,o);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(o=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){o=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var d=i;i=[],d.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return r}function mx(e){e===void 0&&(e={});var t=gx(null);return t.options=Bt({async:!0,ssr:!1},e),t}var Of=function(e){var t=e.sideCar,n=If(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return c.createElement(o,Bt({},n))};Of.isSideCarExport=!0;function yx(e,t){return e.useMedium(t),Of}var Af=mx(),Gs=function(){},Rs=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:Gs,onWheelCapture:Gs,onTouchMoveCapture:Gs}),r=o[0],s=o[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,f=e.sideCar,y=e.noRelative,m=e.noIsolation,g=e.inert,h=e.allowPinchZoom,b=e.as,v=b===void 0?"div":b,w=e.gapMode,x=If(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,R=px([n,t]),E=Bt(Bt({},x),r);return c.createElement(c.Fragment,null,d&&c.createElement(S,{sideCar:Af,removeScrollBar:u,shards:p,noRelative:y,noIsolation:m,inert:g,setCallbacks:s,allowPinchZoom:!!h,lockRef:n,gapMode:w}),i?c.cloneElement(c.Children.only(a),Bt(Bt({},E),{ref:R})):c.createElement(v,Bt({},E,{className:l,ref:R}),a))});Rs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Rs.classNames={fullWidth:Tr,zeroRight:Mr};var bx=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function vx(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=bx();return t&&e.setAttribute("nonce",t),e}function xx(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function wx(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Sx=function(){var e=0,t=null;return{add:function(n){e==0&&(t=vx())&&(xx(t,n),wx(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Rx=function(){var e=Sx();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Df=function(){var e=Rx(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},kx={left:0,top:0,right:0,gap:0},Ys=function(e){return parseInt(e||"",10)||0},Ex=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Ys(n),Ys(o),Ys(r)]},Cx=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return kx;var t=Ex(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Px=Df(),no="data-scroll-locked",Mx=function(e,t,n,o){var r=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
763
- .`.concat(lx,` {
777
+ */var Yc;function A1(){if(Yc)return $s;Yc=1;var e=eu(),t=hd();function n(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var o=typeof Object.is=="function"?Object.is:n,r=t.useSyncExternalStore,s=e.useRef,i=e.useEffect,a=e.useMemo,l=e.useDebugValue;return $s.useSyncExternalStoreWithSelector=function(u,d,p,f,y){var m=s(null);if(m.current===null){var g={hasValue:!1,value:null};m.current=g}else g=m.current;m=a(function(){function b(R){if(!v){if(v=!0,w=R,R=f(R),y!==void 0&&g.hasValue){var E=g.value;if(y(E,R))return x=E}return x=R}if(E=x,o(w,R))return E;var k=f(R);return y!==void 0&&y(E,k)?(w=R,E):(w=R,x=k)}var v=!1,w,x,S=p===void 0?null:p;return[function(){return b(d())},S===null?void 0:function(){return b(S())}]},[d,p,f,y]);var h=r(u,m[0],m[1]);return i(function(){g.hasValue=!0,g.value=h},[h]),l(h),h},$s}var qc;function D1(){return qc||(qc=1,Vs.exports=A1()),Vs.exports}var N1=D1();const ai=[];let ci;function L1(){return ci}function _1(e){ai.push(e)}function pa(e){const t=(n,o)=>{const r=at(F1).current;let s;try{ci=r;for(const i of ai)i.before(r);s=e(n,o);for(const i of ai)i.after(r);r.didInitialize=!0}finally{ci=void 0}return s};return t.displayName=e.displayName||e.name,t}function gd(e){return c.forwardRef(pa(e))}function F1(){return{didInitialize:!1}}const z1=Fi(19),V1=z1?H1:j1;function Ee(e,t,n,o,r){return V1(e,t,n,o,r)}function $1(e,t,n,o,r){const s=c.useCallback(()=>t(e.getSnapshot(),n,o,r),[e,t,n,o,r]);return cs.useSyncExternalStore(e.subscribe,s,s)}_1({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){const o=e.syncHooks[n],r=o.selector(o.store.state,o.a1,o.a2,o.a3);Object.is(o.value,r)||(t=!0,o.value=r)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{const n=new Set;for(const r of e.syncHooks)n.add(r.store);const o=[];for(const r of n)o.push(r.subscribe(t));return()=>{for(const r of o)r()}}),cs.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot))}});function H1(e,t,n,o,r){const s=L1();if(!s)return $1(e,t,n,o,r);const i=s.syncIndex;s.syncIndex+=1;let a;return s.didInitialize?(a=s.syncHooks[i],(a.store!==e||a.selector!==t||!Object.is(a.a1,n)||!Object.is(a.a2,o)||!Object.is(a.a3,r))&&(a.store!==e&&(s.didChangeStore=!0),a.store=e,a.selector=t,a.a1=n,a.a2=o,a.a3=r,a.value=t(e.getSnapshot(),n,o,r))):(a={store:e,selector:t,a1:n,a2:o,a3:r,value:t(e.getSnapshot(),n,o,r)},s.syncHooks.push(a)),a.value}function j1(e,t,n,o,r){return N1.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,n,o,r))}class B1{constructor(t){De(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));De(this,"getSnapshot",()=>this.state);this.state=t,this.listeners=new Set,this.updateTick=0}setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const o of this.listeners){if(n!==this.updateTick)return;o(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){const t={...this.state};this.setState(t)}use(t,n,o,r){return Ee(this,t,n,o,r)}}class Uo extends B1{constructor(t,n={},o){super(t),this.context=n,this.selectors=o}useSyncedValue(t,n){c.useDebugValue(t);const o=this;re(()=>{o.state[t]!==n&&o.set(t,n)},[o,t,n])}useSyncedValueWithCleanup(t,n){const o=this;re(()=>(o.state[t]!==n&&o.set(t,n),()=>{o.set(t,void 0)}),[o,t,n])}useSyncedValues(t){const n=this,o=Object.values(t);re(()=>{n.update(t)},[n,...o])}useControlledProp(t,n){c.useDebugValue(t);const o=this,r=n!==void 0;re(()=>{r&&!Object.is(o.state[t],n)&&o.setState({...o.state,[t]:n})},[o,t,n,r])}select(t,n,o,r){const s=this.selectors[t];return s(this.state,n,o,r)}useState(t,n,o,r){return c.useDebugValue(t),Ee(this,this.selectors[t],n,o,r)}useContextCallback(t,n){c.useDebugValue(t);const o=le(n??Ke);this.context[t]=o}useStateSetter(t){const n=c.useRef(void 0);return n.current===void 0&&(n.current=o=>{this.set(t,o)}),n.current}observe(t,n){let o;typeof t=="function"?o=t:o=this.selectors[t];let r=o(this.state);return n(r,r,this),this.subscribe(s=>{const i=o(s);if(!Object.is(r,i)){const a=r;r=i,n(i,a,this)}})}}function W1(){const[,e]=c.useState({});return c.useCallback(()=>{e({})},[])}const U1={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId};class ls extends Uo{constructor(n){const{syncOnly:o,nested:r,onOpenChange:s,triggerElements:i,...a}=n;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:s,dataRef:{current:{}},events:nd(),nested:r,triggerElements:i},U1);De(this,"syncOpenEvent",(n,o)=>{(!n||!this.state.open||o!=null&&sy(o))&&(this.context.dataRef.current.openEvent=n?o:void 0)});De(this,"dispatchOpenChange",(n,o)=>{this.syncOpenEvent(n,o.event);const r={open:n,reason:o.reason,nativeEvent:o.event,nested:this.context.nested,triggerElement:o.trigger};this.context.events.emit("openchange",r)});De(this,"setOpen",(n,o)=>{var r,s,i,a;if(this.syncOnly){(s=(r=this.context).onOpenChange)==null||s.call(r,n,o);return}this.dispatchOpenChange(n,o),(a=(i=this.context).onOpenChange)==null||a.call(i,n,o)});this.syncOnly=o}}function md(e){const{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:o,floatingId:r,nested:s,onOpenChange:i}=e,a=t.useState("open"),l=t.useState("activeTriggerElement"),u=t.useState(n?"popupElement":"positionerElement"),d=t.context.triggerElements,p=i,f=c.useRef(null);o===void 0&&f.current===null&&(f.current=new ls({open:a,transitionStatus:void 0,referenceElement:l,floatingElement:u,triggerElements:d,onOpenChange:p,floatingId:r,syncOnly:!0,nested:s}));const y=o??f.current;return t.useSyncedValue("floatingId",r),re(()=>{const m={open:a,floatingId:r,referenceElement:l,floatingElement:u};Oe(l)&&(m.domReferenceElement=l),y.state.positionReference===y.state.referenceElement&&(m.positionReference=l),y.update(m)},[a,r,l,u,y]),y.context.onOpenChange=p,y.context.nested=s,y}const us={tabIndex:-1,[ti]:""};function G1(e){return t=>t==="touch"?e.current:!0}function yd(e,t=!1){const n=bn(),o=En()!=null,r=at(()=>e(n,o)).current;return md({popupStore:r,treatPopupAsFloatingElement:t,floatingRootContext:r.state.floatingRootContext,floatingId:n,nested:o,onOpenChange:r.setOpen}),r}function ha({handle:e,store:t}){return re(()=>e.attachStore(t),[e,t]),null}function Y1(e,t){const n=c.useRef(null),o=c.useRef(null);return c.useCallback(r=>{if(e===void 0)return;let s=!1;if(n.current!==null){const i=n.current,a=o.current,l=t.context.triggerElements.getById(i);a&&l===a&&(t.context.triggerElements.delete(i),s=!0),n.current=null,o.current=null}if(r!==null&&(n.current=e,o.current=r,t.context.triggerElements.add(e,r),s=!0),s){const i=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==i&&t.set("triggerCount",i)}},[t,e])}function ga(e,t,n,o=!1){t?e.preventUnmountingOnClose=!1:o&&(e.preventUnmountingOnClose=!0);const r=(n==null?void 0:n.id)??null;(r||t)&&(e.activeTriggerId=r,e.activeTriggerElement=n??null)}function bd(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function q1(e,t,n,o={}){var d,p,f;const r=n.reason,s=r===ot,i=t&&r===Qn,a=!t&&(r===Rn||r===Jr),l=bd(n);if((p=(d=e.context).onOpenChange)==null||p.call(d,t,n),n.isCanceled)return;(f=o.onBeforeDispatch)==null||f.call(o),e.state.floatingRootContext.dispatchOpenChange(t,n);const u=()=>{const y={...o.extraState,open:t};i?y.instantType="focus":a?y.instantType="dismiss":s&&(y.instantType=void 0),ga(y,t,n.trigger,l()),e.update(y)};s?At.flushSync(u):u()}function ma(e,t,n,o){const r=n.useState("isMountedByTrigger",e),s=Y1(e,n),i=le(l=>{const u=n.select("open"),d=n.select("activeTriggerId");if(d===e){n.update({activeTriggerElement:l,...u?o:null});return}d==null&&u&&n.update({activeTriggerId:e,activeTriggerElement:l,...o})}),a=c.useCallback(l=>{s(l),l&&i(l)},[s,i]);return re(()=>{r&&n.update({activeTriggerElement:t.current,...o})},[r,n,t,...Object.values(o)]),{registerTrigger:a,isMountedByThisTrigger:r}}function ya(e,t={}){const{closeOnActiveTriggerUnmount:n=!1}=t,o=c.useRef(null),r=e.useState("open"),s=e.useState("triggerCount"),i=e.useState("activeTriggerId"),a=e.useState("activeTriggerElement");re(()=>{if(!r){o.current=null,e.state.triggerCount!==0&&e.set("triggerCount",0);return}const l=e.context.triggerElements.size,u={};e.state.triggerCount!==l&&(u.triggerCount=l);const d=e.select("activeTriggerId");let p=null;if(d){const f=e.context.triggerElements.getById(d);if(f)o.current=d,f!==e.state.activeTriggerElement&&(u.activeTriggerElement=f);else{for(const[y,m]of e.context.triggerElements.entries())if(m===e.state.activeTriggerElement){u.activeTriggerId=y,u.activeTriggerElement=m,o.current=y;break}u.activeTriggerId===void 0&&(o.current===d?p=d:o.current=null)}}else o.current=null;if(!p&&!d&&l===1){const f=e.context.triggerElements.entries().next();if(!f.done){const[y,m]=f.value;u.activeTriggerId=y,u.activeTriggerElement=m,o.current=y}}(u.triggerCount!==void 0||u.activeTriggerId!==void 0||u.activeTriggerElement!==void 0)&&e.update(u),p&&n&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===p&&!e.context.triggerElements.getById(p)){const f=Re(Rt);e.setOpen(!1,f),f.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,s,i,a,n])}function ba(e,t,n){const{mounted:o,setMounted:r,transitionStatus:s}=ln(e),i=t.useState("preventUnmountingOnClose"),a=e?!1:i;t.useSyncedValues({mounted:o,transitionStatus:s,preventUnmountingOnClose:a});const l=le(()=>{var u,d;r(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n==null||n(),(d=(u=t.context).onOpenChangeComplete)==null||d.call(u,!1)});return kt({enabled:o&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:s}}function va(e,t){e.useSyncedValues(t),re(()=>()=>{e.update({activeTriggerProps:We,inactiveTriggerProps:We,popupProps:We})},[e])}function X1(e,t){re(()=>{!t&&e.state.openMethod!==null&&e.set("openMethod",null)},[t,e]),re(()=>()=>{e.state.openMethod!==null&&e.set("openMethod",null)},[e])}class Go{constructor(){this.idMap=new Map}add(t,n){this.idMap.set(t,n)}delete(t){this.idMap.delete(t)}hasElement(t){for(const n of this.idMap.values())if(n===t)return!0;return!1}hasMatchingElement(t){for(const n of this.idMap.values())if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}function K1(){return new ls({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Go,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function xa(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:K1(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:We,inactiveTriggerProps:We,popupProps:We}}function vd(e,t,n=!1){return new ls({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}const Do=e=>e.triggerIdProp??e.activeTriggerId,wa=e=>e.openProp??e.open,Xc=e=>{var n;return(((n=e.popupElement)==null?void 0:n.id)??e.floatingId)||void 0};function xd(e,t){return t!==void 0&&wa(e)&&Do(e)===t}function Z1(e,t){return xd(e,t)?!0:t!==void 0&&wa(e)&&Do(e)==null&&e.triggerCount===1}const Sa={open:wa,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:Do,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:Xc,isTriggerActive:(e,t)=>t!==void 0&&Do(e)===t,isOpenedByTrigger:(e,t)=>xd(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Do(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>Z1(e,t)?Xc(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function Ra(e){const t=c.useCallback(o=>e===void 0?Ke:e.subscribeStore(o),[e]),n=c.useCallback(()=>e===void 0?void 0:e.store,[e]);return cs.useSyncExternalStore(t,n,()=>e==null?void 0:e.serverStore)}function J1(e){const{open:t=!1,onOpenChange:n,elements:o={}}=e,r=bn(),s=En()!=null,i=at(()=>new ls({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:o.reference??null,floatingElement:o.floating??null,triggerElements:new Go,floatingId:r,syncOnly:!1,nested:s})).current;return re(()=>{const a={open:t,floatingId:r};o.reference!==void 0&&(a.referenceElement=o.reference,a.domReferenceElement=Oe(o.reference)?o.reference:null),o.floating!==void 0&&(a.floatingElement=o.floating),i.update(a)},[t,r,o.reference,o.floating,i]),i.context.onOpenChange=n,i.context.nested=s,i}function Q1(e){return eb(e,e.rootContext)}function eb(e,t){const{nodeId:n,externalTree:o}=e,r=t.useState("referenceElement"),s=t.useState("floatingElement"),i=t.useState("domReferenceElement"),a=t.useState("open"),l=t.useState("floatingId"),[u,d]=c.useState(null),[p,f]=c.useState(void 0),[y,m]=c.useState(void 0),g=c.useRef(null),h=Cn(o),b=c.useMemo(()=>({reference:r,floating:s,domReference:i}),[r,s,i]),v=E1({...e,elements:{...b,...u&&{reference:u}}}),w=Oe(p)?p:null,x=y===void 0?t.state.floatingElement:y;t.useSyncedValue("referenceElement",p??null),t.useSyncedValue("domReferenceElement",p===void 0?i:w),t.useSyncedValue("floatingElement",x);const S=c.useCallback(O=>{const I=Oe(O)?{getBoundingClientRect:()=>O.getBoundingClientRect(),getClientRects:()=>O.getClientRects(),contextElement:O}:O;d(I),v.refs.setReference(I)},[v.refs]),R=c.useCallback(O=>{(Oe(O)||O===null)&&(g.current=O,f(O)),(Oe(v.refs.reference.current)||v.refs.reference.current===null||O!==null&&!Oe(O))&&v.refs.setReference(O)},[v.refs,f]),E=c.useCallback(O=>{m(O),v.refs.setFloating(O)},[v.refs]),k=c.useMemo(()=>({...v.refs,setReference:R,setFloating:E,setPositionReference:S,domReference:g}),[v.refs,R,E,S]),M=c.useMemo(()=>({...v.elements,domReference:i}),[v.elements,i]),C=c.useMemo(()=>({...v,dataRef:t.context.dataRef,open:a,onOpenChange:t.setOpen,events:t.context.events,floatingId:l,refs:k,elements:M,nodeId:n,rootStore:t}),[v,k,M,n,t,a,l]);return re(()=>{i&&(g.current=i)},[i]),re(()=>{t.context.dataRef.current.floatingContext=C;const O=h==null?void 0:h.nodesRef.current.find(I=>I.id===n);O&&(O.context=C)}),c.useMemo(()=>({...v,context:C,refs:k,elements:M,rootStore:t}),[v,k,M,C,t])}const Hs=Ui&&Yt;function wd(e,t={}){const{enabled:n=!0,delay:o}=t,r="rootStore"in e?e.rootStore:e,{events:s,dataRef:i}=r.context,a=c.useRef(!1),l=c.useRef(null),u=c.useRef(!0),d=Ge();c.useEffect(()=>{const f=r.select("domReferenceElement");if(!n)return;const y=He(f);function m(){const b=r.select("domReferenceElement");!r.select("open")&&Fe(b)&&b===dt(Te(b))&&(a.current=!0)}function g(){u.current=!0}function h(){u.current=!1}return Ut(Me(y,"blur",m),Hs&&Me(y,"keydown",g,!0),Hs&&Me(y,"pointerdown",h,!0))},[r,n]),c.useEffect(()=>{if(!n)return;function f(y){if(y.reason===Rn||y.reason===Jr){const m=r.select("domReferenceElement");Oe(m)&&(l.current=m,a.current=!0)}}return s.on("openchange",f),()=>{s.off("openchange",f)}},[s,n,r]);const p=c.useMemo(()=>{function f(){a.current=!1,l.current=null}return{onMouseLeave(){f()},onFocus(y){const m=y.currentTarget;if(a.current){if(l.current===m)return;f()}const g=et(y.nativeEvent);if(Oe(g)){if(Hs&&!y.relatedTarget){if(!u.current&&!rs(g))return}else if(!cy(g))return}const h=_r(y.relatedTarget,r.context.triggerElements),{nativeEvent:b,currentTarget:v}=y,w=typeof o=="function"?o():o;if(r.select("open")&&h||w===0||w===void 0){r.setOpen(!0,Re(Qn,b,v));return}d.start(w,()=>{a.current||r.setOpen(!0,Re(Qn,b,v))})},onBlur(y){f();const m=y.relatedTarget,g=y.nativeEvent,h=Oe(m)&&m.hasAttribute(zo("focus-guard"))&&m.getAttribute("data-type")==="outside";d.start(0,()=>{var x;const b=r.select("domReferenceElement"),v=dt(Te(b));!m&&v===b||ve((x=i.current.floatingContext)==null?void 0:x.refs.floating.current,v)||ve(b,v)||h||_r(m??v,r.context.triggerElements)||r.setOpen(!1,Re(Qn,g))})}}},[i,o,r,d]);return c.useMemo(()=>n?{reference:p,trigger:p}:{},[n,p])}class ka{constructor(){De(this,"dispose",()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()});De(this,"disposeEffect",()=>this.dispose);this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new _t,this.restTimeout=new _t,this.handleCloseOptions=void 0}static create(){return new ka}}const Hr=new WeakMap;function jr(e){var n,o,r;if(!e.performedPointerEventsMutation)return;const t=e.pointerEventsScopeElement;t&&Hr.get(t)===e&&((n=e.pointerEventsScopeElement)==null||n.style.removeProperty("pointer-events"),(o=e.pointerEventsReferenceElement)==null||o.style.removeProperty("pointer-events"),(r=e.pointerEventsFloatingElement)==null||r.style.removeProperty("pointer-events"),Hr.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Sd(e,t){const{scopeElement:n,referenceElement:o,floatingElement:r}=t,s=Hr.get(n);s&&s!==e&&jr(s),jr(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=o,e.pointerEventsFloatingElement=r,Hr.set(n,e),n.style.pointerEvents="none",o.style.pointerEvents="auto",r.style.pointerEvents="auto"}function Ea(e){const t=e.context.dataRef.current,n=at(()=>t.hoverInteractionState??ka.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=n),Xi(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function Rd(e,t={}){const{enabled:n=!0,closeDelay:o=0,nodeId:r}=t,s="rootStore"in e?e.rootStore:e,i=s.useState("open"),a=s.useState("floatingElement"),l=s.useState("domReferenceElement"),{dataRef:u}=s.context,d=Cn(),p=En(),f=Ea(s),y=Ge(),m=le(()=>{var b;return Nu((b=u.current.openEvent)==null?void 0:b.type,f.interactedInside)}),g=le(()=>{var b;return uy((b=u.current.openEvent)==null?void 0:b.type)}),h=le(()=>{jr(f)});re(()=>{i||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,h())},[i,f,h]),c.useEffect(()=>h,[h]),re(()=>{var b,v,w,x,S;if(n&&i&&(b=f.handleCloseOptions)!=null&&b.blockPointerEvents&&g()&&Oe(l)&&a){const R=l,E=a,k=Te(a),M=(w=(v=d==null?void 0:d.nodesRef.current.find(D=>D.id===p))==null?void 0:v.context)==null?void 0:w.elements.floating;M&&(M.style.pointerEvents="");const C=f.pointerEventsScopeElement!==E?f.pointerEventsScopeElement:null,O=M!==E?M:null,I=((S=(x=f.handleCloseOptions)==null?void 0:x.getScope)==null?void 0:S.call(x))??C??O??R.closest("[data-rootownerid]")??k.body;return Sd(f,{scopeElement:I,referenceElement:R,floatingElement:E}),()=>{h()}}},[n,i,l,a,f,g,d,p,h]),c.useEffect(()=>{if(!n)return;function b(){return!!(d&&p&&wn(d.nodesRef.current,p).length>0)}function v(k){const M=vn(o,"close",f.pointerType),C=()=>{s.setOpen(!1,Re(ot,k)),d==null||d.events.emit("floating.closed",k)};M?f.openChangeTimeout.start(M,C):(f.openChangeTimeout.clear(),C())}function w(k){const M=et(k);if(!ay(M)){f.interactedInside=!1;return}f.interactedInside=(M==null?void 0:M.closest("[aria-haspopup]"))!=null}function x(){f.openChangeTimeout.clear(),y.clear(),d==null||d.events.off("floating.closed",R),h()}function S(k){var I;if(b()&&d){d.events.on("floating.closed",R);return}if(_r(k.relatedTarget,s.context.triggerElements))return;const M=((I=u.current.floatingContext)==null?void 0:I.nodeId)??r,C=k.relatedTarget;if(!(d&&M&&Oe(C)&&wn(d.nodesRef.current,M,!1).some(D=>{var N;return ve((N=D.context)==null?void 0:N.elements.floating,C)}))){if(f.handler){f.handler(k);return}h(),g()&&!m()&&v(k)}}function R(k){!d||!p||b()||y.start(0,()=>{d.events.off("floating.closed",R),s.setOpen(!1,Re(ot,k)),d.events.emit("floating.closed",k)})}const E=a;return Ut(E&&Me(E,"mouseenter",x),E&&Me(E,"mouseleave",S),E&&Me(E,"pointerdown",w,!0),()=>{d==null||d.events.off("floating.closed",R)})},[n,a,s,u,o,r,g,m,h,f,d,p,y])}const tb={current:null};function kd(e,t={}){var z;const{enabled:n=!0,delay:o=0,handleClose:r=null,mouseOnly:s=!1,restMs:i=0,move:a=!0,triggerElementRef:l=tb,externalTree:u,isActiveTrigger:d=!0,getHandleCloseContext:p,isClosing:f,shouldOpen:y,guardStaleOpen:m=!1}=t,g="rootStore"in e?e.rootStore:e,{dataRef:h,events:b}=g.context,v=Cn(u),w=Ea(g),x=c.useRef(!1),S=Ze(r),R=Ze(o),E=Ze(i),k=Ze(n),M=Ze(y),C=Ze(f),O=le(()=>{var L;return Nu((L=h.current.openEvent)==null?void 0:L.type,w.interactedInside)}),I=le(()=>{var L;return((L=M.current)==null?void 0:L.call(M))!==!1}),D=le((L,A,F)=>{const T=g.context.triggerElements;if(T.hasElement(A))return!L||!ve(L,A);if(!Oe(F))return!1;const _=F;return T.hasMatchingElement(j=>ve(j,_))&&(!L||!ve(L,_))}),N=le(()=>{if(!w.handler)return;Te(g.select("domReferenceElement")).removeEventListener("mousemove",w.handler),w.handler=void 0}),P=le(()=>{jr(w)});return d&&(w.handleCloseOptions=(z=S.current)==null?void 0:z.__options),c.useEffect(()=>N,[N]),c.useEffect(()=>{if(!n)return;function L(A){A.open?x.current=!1:(x.current=A.reason===ot,N(),w.openChangeTimeout.clear(),w.restTimeout.clear(),w.blockMouseMove=!0,w.restTimeoutPending=!1)}return b.on("openchange",L),()=>{b.off("openchange",L)}},[n,b,w,N]),c.useEffect(()=>{if(!n)return;function L($,U=!0){const Y=vn(R.current,"close",w.pointerType);Y?w.openChangeTimeout.start(Y,()=>{g.setOpen(!1,Re(ot,$)),v==null||v.events.emit("floating.closed",$)}):U&&(w.openChangeTimeout.clear(),g.setOpen(!1,Re(ot,$)),v==null||v.events.emit("floating.closed",$))}const A=l.current??(d?g.select("domReferenceElement"):null);if(!Oe(A))return;function F($){var he;if(w.openChangeTimeout.clear(),w.blockMouseMove=!1,s&&!mn(w.pointerType))return;const U=Ec(E.current),Y=vn(R.current,"open",w.pointerType),V=et($),J=$.currentTarget??null,H=g.select("domReferenceElement");let G=J;if(Oe(V)&&!g.context.triggerElements.hasElement(V)){for(const oe of g.context.triggerElements.elements())if(ve(oe,V)){G=oe;break}}Oe(J)&&Oe(H)&&!g.context.triggerElements.hasElement(J)&&ve(J,H)&&(G=H);const ue=G==null?!1:D(H,G,V),ne=g.select("open"),te=((he=C.current)==null?void 0:he.call(C))??g.select("transitionStatus")==="ending",Q=!ne&&te&&x.current,ee=!ue&&Oe(G)&&Oe(H)&&ve(H,G)&&Q,ie=U>0&&!Y,xe=ue&&(ne||Q)||ee,ae=!ne||ue;if(xe){I()&&g.setOpen(!0,Re(ot,$,G));return}ie||(Y?w.openChangeTimeout.start(Y,()=>{ae&&I()&&g.setOpen(!0,Re(ot,$,G))}):ae&&I()&&g.setOpen(!0,Re(ot,$,G)))}function T($){if(O()){P();return}N();const U=g.select("domReferenceElement"),Y=Te(U);w.restTimeout.clear(),w.restTimeoutPending=!1;const V=h.current.floatingContext??(p==null?void 0:p());if(_r($.relatedTarget,g.context.triggerElements))return;if(S.current&&V){g.select("open")||w.openChangeTimeout.clear();const H=l.current;w.handler=S.current({...V,tree:v,x:$.clientX,y:$.clientY,onClose(){P(),N(),k.current&&!O()&&H===g.select("domReferenceElement")&&L($,!0)}}),Y.addEventListener("mousemove",w.handler),w.handler($);return}(w.pointerType==="touch"?!ve(g.select("floatingElement"),$.relatedTarget):!0)&&L($)}function _($){ve(A,$.relatedTarget)||(w.openChangeTimeout.clear(),w.restTimeout.clear(),w.restTimeoutPending=!1)}const j=m?Me(A,"mouseout",_):void 0;return a?Ut(Me(A,"mousemove",F,{once:!0}),Me(A,"mouseenter",F),Me(A,"mouseleave",T),j):Ut(Me(A,"mouseenter",F),Me(A,"mouseleave",T),j)},[N,P,h,R,g,n,S,w,d,D,O,s,a,E,l,v,k,p,C,I,m]),c.useMemo(()=>{if(!n)return;function L(A){w.pointerType=A.pointerType}return{onPointerDown:L,onPointerEnter:L,onMouseMove(A){var V,J,H;const{nativeEvent:F}=A,T=A.currentTarget,_=g.select("domReferenceElement"),j=g.select("open"),$=D(_,T,A.target);if(s&&!mn(w.pointerType))return;if(j&&$&&((V=w.handleCloseOptions)!=null&&V.blockPointerEvents)){const G=g.select("floatingElement");if(G){const ue=((H=(J=w.handleCloseOptions)==null?void 0:J.getScope)==null?void 0:H.call(J))??T.ownerDocument.body;Sd(w,{scopeElement:ue,referenceElement:T,floatingElement:G})}}const U=Ec(E.current);if(j&&!$||U===0||!$&&w.restTimeoutPending&&A.movementX**2+A.movementY**2<2)return;w.restTimeout.clear();function Y(){if(w.restTimeoutPending=!1,O())return;const G=g.select("open");!w.blockMouseMove&&(!G||$)&&I()&&g.setOpen(!0,Re(ot,F,T))}w.pointerType==="touch"?At.flushSync(()=>{Y()}):$&&j?Y():(w.restTimeoutPending=!0,w.restTimeout.start(U,Y))}}},[n,w,O,D,s,g,E,I])}const nb="Escape";function Kc(e){return Yt&&e.movementX===0&&e.movementY===0}function ds(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function rr(e,t){return ds(t,e===Du||e===ea,e===ns||e===os)}function js(e,t,n){return ds(t,e===ea,n?e===ns:e===os)||e==="Enter"||e===" "||e===""}function ob(e,t,n){return ds(t,n?e===ns:e===os,e===ea)}function rb(e,t,n,o){const r=n?e===os:e===ns,s=e===Du;return t==="both"||t==="horizontal"&&o?e===nb:ds(t,r,s)}function Ed(e,t){const{listRef:n,activeIndex:o,onNavigate:r=()=>{},enabled:s=!0,selectedIndex:i=null,allowEscape:a=!1,loopFocus:l=!1,nested:u=!1,rtl:d=!1,virtual:p=!1,focusItemOnOpen:f="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:m=!0,disabledIndices:g=void 0,orientation:h="vertical",parentOrientation:b,id:v,resetOnPointerLeave:w=!0,externalTree:x,grid:S}=t,R=S!=null,E="rootStore"in e?e.rootStore:e,k=E.useState("open"),M=E.useState("floatingElement"),C=E.useState("domReferenceElement"),O=E.context.dataRef,I=Fr(M),D=ni(C),N=Ze(I),P=En(),z=Cn(x),L=c.useRef(f),A=c.useRef(i??-1),F=c.useRef(null),T=c.useRef(!0),_=le(B=>{r(A.current===-1?null:A.current,B)}),j=c.useRef(!!M),$=c.useRef(k),U=c.useRef(!1),Y=c.useRef(!1),V=c.useRef(null),J=Ze(g),H=Ze(k),G=Ze(i),ue=Ze(w),ne=io(),te=io(),Q=le(()=>{function B(X){p?z==null||z.events.emit("virtualfocus",X):V.current=kr(X,{sync:U.current,preventScroll:!0})}const q=n.current[A.current],se=Y.current;q&&B(q),(U.current?X=>X():X=>ne.request(X))(()=>{var be;const X=n.current[A.current]||q;if(!X)return;q||B(X),oe&&(se||!T.current)&&((be=X.scrollIntoView)==null||be.call(X,{block:"nearest",inline:"nearest"}))})});re(()=>{O.current.orientation=h},[O,h]),re(()=>{s&&(k&&M?(A.current=i??-1,L.current&&i!=null&&(Y.current=!0,_())):j.current&&(A.current=-1,_()))},[s,k,M,i,_]),re(()=>{if(s){if(!k){U.current=!1;return}if(M)if(o==null){if(U.current=!1,G.current!=null)return;if(j.current&&(A.current=-1,Q()),(!$.current||!j.current)&&L.current&&(F.current!=null||L.current===!0&&F.current==null)){let B=0;const q=()=>{n.current[0]==null?(B<2&&(B?Z=>te.request(Z):queueMicrotask)(q),B+=1):(A.current=F.current==null||js(F.current,h,d)||u?Rr(n):ri(n),F.current=null,_())};q()}}else Ao(n.current,o)||(A.current=o,Q(),Y.current=!1)}},[s,k,M,o,G,u,n,h,d,_,Q,te]),re(()=>{var X,pe;if(!s||M||!z||p||!j.current)return;const B=z.nodesRef.current,q=(pe=(X=B.find(be=>be.id===P))==null?void 0:X.context)==null?void 0:pe.elements.floating,se=dt(Te(C??q??null)),Z=B.some(be=>be.context&&ve(be.context.elements.floating,se));q&&!Z&&T.current&&q.focus({preventScroll:!0})},[s,M,C,z,P,p]),re(()=>{$.current=k,j.current=!!M}),re(()=>{k||(F.current=null,L.current=f)},[k,f]);const ee=o!=null,ie=le(B=>{if(!H.current)return;const q=n.current.indexOf(B.currentTarget);q!==-1&&(A.current!==q||o!==q)&&(A.current=q,_(B))}),xe=le(()=>{var B,q,se;return b??((se=(q=(B=z==null?void 0:z.nodesRef.current.find(Z=>Z.id===P))==null?void 0:B.context)==null?void 0:q.dataRef)==null?void 0:se.current.orientation)}),ae=le(()=>Rr(n,J.current)),he=le(B=>{if(T.current=!1,U.current=!0,B.which===229||!H.current&&B.currentTarget===N.current)return;if(u&&rb(B.key,h,d,R)){rr(B.key,xe())||It(B),E.setOpen(!1,Re(Qs,B.nativeEvent)),Fe(C)&&(p?z==null||z.events.emit("virtualfocus",C):C.focus());return}const q=A.current,se=Rr(n,g),Z=ri(n,g);if(D||(B.key==="Home"&&(It(B),A.current=se,_(B)),B.key==="End"&&(It(B),A.current=Z,_(B))),S!=null){const X=S(B,A.current,n,h,l,d,g,se,Z);if(X!=null&&(A.current=X,_(B)),h==="both")return}if(rr(B.key,h)){if(It(B),k&&!p&&dt(B.currentTarget.ownerDocument)===B.currentTarget){A.current=js(B.key,h,d)?se:Z,_(B);return}js(B.key,h,d)?l?q>=Z?a&&q!==n.current.length?A.current=-1:(U.current=!1,A.current=se):A.current=Qt(n.current,{startingIndex:q,disabledIndices:g}):A.current=Math.min(Z,Qt(n.current,{startingIndex:q,disabledIndices:g})):l?q<=se?a&&q!==-1?A.current=n.current.length:(U.current=!1,A.current=Z):A.current=Qt(n.current,{startingIndex:q,decrement:!0,disabledIndices:g}):A.current=Math.max(se,Qt(n.current,{startingIndex:q,decrement:!0,disabledIndices:g})),Ao(n.current,A.current)&&(A.current=-1),_(B)}}),oe=c.useMemo(()=>({onFocus(q){U.current=!0,ie(q)},onClick:({currentTarget:q})=>q.focus({preventScroll:!0}),onMouseMove(q){Kc(q)||(U.current=!0,Y.current=!1,y&&ie(q))},onPointerLeave(q){var Z;if(!H.current||!T.current||q.pointerType==="touch")return;U.current=!0;const se=q.relatedTarget;if(!(!y||n.current.includes(se))&&ue.current&&((Z=V.current)==null||Z.call(V),V.current=null,A.current=-1,_(q),!p)){const X=N.current,pe=dt(Te(X));X&&ve(X,pe)&&X.focus({preventScroll:!0})}}}),[ie,H,N,y,n,_,ue,p]),ge=c.useMemo(()=>p&&k&&ee&&{"aria-activedescendant":`${v}-${o}`},[p,k,ee,v,o]),de=c.useMemo(()=>({"aria-orientation":h==="both"?void 0:h,...D?{}:ge,onKeyDown(B){if(B.key==="Tab"&&B.shiftKey&&k&&!p){const q=et(B.nativeEvent);if(q&&!ve(N.current,q))return;It(B),E.setOpen(!1,Re(Nn,B.nativeEvent)),Fe(C)&&C.focus();return}he(B)},onPointerMove(B){Kc(B)||(T.current=!0)}}),[ge,he,N,h,D,E,k,p,C]),ce=c.useMemo(()=>{function B(Z){E.setOpen(!0,Re(Qs,Z.nativeEvent,Z.currentTarget))}function q(Z){f==="auto"&&Ji(Z.nativeEvent)&&(L.current=!p)}function se(Z){L.current=f,f==="auto"&&Qi(Z.nativeEvent)&&(L.current=!0)}return{onKeyDown(Z){const X=E.select("open");T.current=!1;const pe=Z.key.startsWith("Arrow"),be=ob(Z.key,xe(),d),Le=rr(Z.key,h),Ue=(u?be:Le)||Z.key==="Enter"||Z.key.trim()==="";if(p&&X)return he(Z);if(!(!X&&!m&&pe)){if(Ue){const qe=rr(Z.key,xe());F.current=u&&qe?null:Z.key}if(u){be&&(It(Z),X?(A.current=ae(),_(Z)):B(Z));return}Le&&(G.current!=null&&(A.current=G.current),It(Z),!X&&m?B(Z):he(Z),X&&_(Z))}},onFocus(Z){E.select("open")&&!p&&(A.current=-1,_(Z))},onPointerDown:se,onPointerEnter:se,onMouseDown:q,onClick:q}},[he,f,ae,u,_,E,m,h,xe,d,G,p]),fe=c.useMemo(()=>({...ge,...ce}),[ge,ce]);return c.useMemo(()=>s?{reference:fe,floating:de,item:oe,trigger:ce}:{},[s,fe,de,ce,oe])}function Cd(e,t){const{listRef:n,elementsRef:o,activeIndex:r,onMatch:s,disabledIndices:i,onTyping:a,enabled:l=!0,resetMs:u=750,selectedIndex:d=null}=t,p="rootStore"in e?e.rootStore:e,f=p.useState("open"),y=Ge(),m=c.useRef(""),g=c.useRef(d??r??-1),h=c.useRef(null),b=le(x=>{function S(N){return o==null?void 0:o.current[N]}function R(N){const P=S(N);return P&&!ss(P)||P!=null&&P.matches(":disabled")?!1:i==null||!Vr(Nt,N,i)}function E(N,P,z=0){if(N.length===0)return-1;const L=(z%N.length+N.length)%N.length,A=P.toLowerCase();for(let F=0;F<N.length;F+=1){const T=(L+F)%N.length,_=N[T];if(!(!(_!=null&&_.toLowerCase().startsWith(A))||!R(T)))return T}return-1}const k=n.current;if(m.current.length>0&&x.key===" "&&(It(x),a==null||a(!0)),m.current.length>0&&m.current[0]!==" "&&E(k,m.current)===-1&&x.key!==" "&&(a==null||a(!1)),k==null||x.key.length!==1||x.ctrlKey||x.metaKey||x.altKey)return;f&&x.key!==" "&&(It(x),a==null||a(!0));const M=m.current==="";M&&(g.current=d??r??-1),k.every((N,P)=>{var z,L;return N&&R(P)?((z=N[0])==null?void 0:z.toLowerCase())!==((L=N[1])==null?void 0:L.toLowerCase()):!0})&&m.current===x.key&&(m.current="",g.current=h.current),m.current+=x.key,y.start(u,()=>{m.current="",g.current=h.current,a==null||a(!1)});const I=((M?d??r??-1:g.current)??0)+1,D=E(k,m.current,I);D!==-1?(s==null||s(D),h.current=D):x.key!==" "&&(m.current="",a==null||a(!1))}),v=le(x=>{const S=x.relatedTarget,R=p.select("domReferenceElement"),E=p.select("floatingElement");ve(R,S)||ve(E,S)||(y.clear(),m.current="",g.current=h.current,a==null||a(!1))});re(()=>{!f&&d!==null||(y.clear(),h.current=null,m.current!==""&&(m.current=""))},[f,d,y]);const w=c.useMemo(()=>({onKeyDown:b,onBlur:v}),[b,v]);return c.useMemo(()=>l?{reference:w,floating:w}:{},[l,w])}const Zc=.1,sb=Zc*Zc,Ve=.5;function sr(e,t,n,o,r,s){return o>=t!=s>=t&&e<=(r-n)*(t-o)/(s-o)+n}function ir(e,t,n,o,r,s,i,a,l,u){let d=!1;return sr(e,t,n,o,r,s)&&(d=!d),sr(e,t,r,s,i,a)&&(d=!d),sr(e,t,i,a,l,u)&&(d=!d),sr(e,t,l,u,n,o)&&(d=!d),d}function ib(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function ar(e,t,n,o,r,s){const i=Math.min(n,r),a=Math.max(n,r),l=Math.min(o,s),u=Math.max(o,s);return e>=i&&e<=a&&t>=l&&t<=u}function Pd(e={}){const{blockPointerEvents:t=!1}=e,n=new _t,o=({x:r,y:s,placement:i,elements:a,onClose:l,nodeId:u,tree:d})=>{const p=i==null?void 0:i.split("-")[0];let f=!1,y=null,m=null,g=typeof performance<"u"?performance.now():0;function h(v,w){const x=performance.now(),S=x-g;if(y===null||m===null||S===0)return y=v,m=w,g=x,!1;const R=v-y,E=w-m,k=R*R+E*E,M=S*S*sb;return y=v,m=w,g=x,k<M}function b(){n.clear(),l()}return function(w){n.clear();const x=a.domReference,S=a.floating;if(!x||!S||p==null||r==null||s==null)return;const{clientX:R,clientY:E}=w,k=et(w),M=w.type==="mouseleave",C=ve(S,k),O=ve(x,k);if(C&&(f=!0,!M))return;if(O&&(f=!1,!M)){f=!0;return}if(M&&Oe(w.relatedTarget)&&ve(S,w.relatedTarget))return;function I(){return!!(d&&wn(d.nodesRef.current,u).length>0)}function D(){I()||b()}if(I())return;const N=x.getBoundingClientRect(),P=S.getBoundingClientRect(),z=r>P.right-P.width/2,L=s>P.bottom-P.height/2,A=P.width>N.width,F=P.height>N.height,T=(A?N:P).left,_=(A?N:P).right,j=(F?N:P).top,$=(F?N:P).bottom;if(p==="top"&&s>=N.bottom-1||p==="bottom"&&s<=N.top+1||p==="left"&&r>=N.right-1||p==="right"&&r<=N.left+1){D();return}let U=!1;switch(p){case"top":U=ar(R,E,T,N.top+1,_,P.bottom-1);break;case"bottom":U=ar(R,E,T,P.top+1,_,N.bottom-1);break;case"left":U=ar(R,E,P.right-1,$,N.left+1,j);break;case"right":U=ar(R,E,N.right-1,$,P.left+1,j);break}if(U)return;if(f&&!ib(R,E,N)){D();return}if(!M&&h(R,E)){D();return}let Y=!1;switch(p){case"top":{const V=A?Ve/2:Ve*4,J=A||z?r+V:r-V,H=A?r-V:z?r+V:r-V,G=s+Ve+1,ue=z||A?P.bottom-Ve:P.top,ne=z?A?P.bottom-Ve:P.top:P.bottom-Ve;Y=ir(R,E,J,G,H,G,P.left,ue,P.right,ne);break}case"bottom":{const V=A?Ve/2:Ve*4,J=A||z?r+V:r-V,H=A?r-V:z?r+V:r-V,G=s-Ve,ue=z||A?P.top+Ve:P.bottom,ne=z?A?P.top+Ve:P.bottom:P.top+Ve;Y=ir(R,E,J,G,H,G,P.left,ue,P.right,ne);break}case"left":{const V=F?Ve/2:Ve*4,J=F||L?s+V:s-V,H=F?s-V:L?s+V:s-V,G=r+Ve+1,ue=L||F?P.right-Ve:P.left,ne=L?F?P.right-Ve:P.left:P.right-Ve;Y=ir(R,E,ue,P.top,ne,P.bottom,G,J,G,H);break}case"right":{const V=F?Ve/2:Ve*4,J=F||L?s+V:s-V,H=F?s-V:L?s+V:s-V,G=r-Ve,ue=L||F?P.left+Ve:P.right,ne=L?F?P.left+Ve:P.right:P.left+Ve;Y=ir(R,E,G,J,G,H,ue,P.top,ne,P.bottom);break}}Y?f||n.start(40,D):D()}};return o.__options={...e,blockPointerEvents:t},o}const ab=c.createContext(void 0);function Ca(e){return c.useContext(ab)}const li="ArrowUp",ui="ArrowDown",di="ArrowLeft",fi="ArrowRight",pi="Home",hi="End",fs=new Set([li,ui,di,fi,pi,hi]),cb="Shift",lb=[cb,"Control","Alt","Meta"];function ub(e){return Fe(e)&&e.tagName==="INPUT"}function Jc(e){return!!(ub(e)&&e.selectionStart!=null||Fe(e)&&e.tagName==="TEXTAREA")}function Qc(e,t,n,o){if(!e||!t||!t.scrollTo)return;let r=e.scrollLeft,s=e.scrollTop;const i=e.clientWidth<e.scrollWidth,a=e.clientHeight<e.scrollHeight;if(i&&o!=="vertical"){const l=el(e,t,"left"),u=cr(e),d=cr(t);n==="ltr"&&(l+t.offsetWidth+d.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight?r=l+t.offsetWidth+d.scrollMarginRight-e.clientWidth+u.scrollPaddingRight:l-d.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft&&(r=l-d.scrollMarginLeft-u.scrollPaddingLeft)),n==="rtl"&&(l-d.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft?r=l-d.scrollMarginLeft-u.scrollPaddingLeft:l+t.offsetWidth+d.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight&&(r=l+t.offsetWidth+d.scrollMarginRight-e.clientWidth+u.scrollPaddingRight))}if(a&&o!=="horizontal"){const l=el(e,t,"top"),u=cr(e),d=cr(t);l-d.scrollMarginTop<e.scrollTop+u.scrollPaddingTop?s=l-d.scrollMarginTop-u.scrollPaddingTop:l+t.offsetHeight+d.scrollMarginBottom>e.scrollTop+e.clientHeight-u.scrollPaddingBottom&&(s=l+t.offsetHeight+d.scrollMarginBottom-e.clientHeight+u.scrollPaddingBottom)}e.scrollTo({left:r,top:s,behavior:"auto"})}function el(e,t,n){const o=n==="left"?"offsetLeft":"offsetTop";let r=0;for(;t.offsetParent&&(r+=t[o],t.offsetParent!==e);)t=t.offsetParent;return r}function cr(e){const t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function ps(e){return e==="starting"?_y:We}const Nk=c.forwardRef(function(t,n){const{render:o,className:r,style:s,finalFocus:i,...a}=t,{store:l}=cn(),{side:u,align:d}=qr(),p=Ca()!=null,f=l.useState("open"),y=l.useState("transitionStatus"),m=l.useState("popupProps"),g=l.useState("mounted"),h=l.useState("instantType"),b=l.useState("activeTriggerElement"),v=l.useState("parent"),w=l.useState("lastOpenChangeReason"),x=l.useState("rootId"),S=l.useState("floatingRootContext"),R=l.useState("floatingTreeRoot"),E=l.useState("closeDelay"),k=l.useState("hoverEnabled"),M=l.useState("disabled"),C=l.useState("openMethod"),O=v.type==="context-menu";kt({open:f,ref:l.context.popupRef,onComplete(){var z,L;f&&((L=(z=l.context).onOpenChangeComplete)==null||L.call(z,!0))}}),c.useEffect(()=>{function z(L){l.setOpen(!1,Re(L.reason,L.domEvent))}return R.events.on("close",z),()=>{R.events.off("close",z)}},[R.events,l]),Rd(S,{enabled:k&&!M&&!O&&v.type!=="menubar",closeDelay:E});const I=l.useStateSetter("popupElement"),D={transitionStatus:y,side:u,align:d,open:f,nested:v.type==="menu",instant:h},N=ke("div",t,{state:D,ref:[n,l.context.popupRef,I],stateAttributesMapping:ji,props:[m,{onKeyDown(z){p&&fs.has(z.key)&&z.stopPropagation()}},ps(y),a,{"data-rootownerid":x}]});let P=v.type===void 0||O;return(b||v.type==="menubar"&&w!==Zr)&&(P=!0),K.jsx(ua,{context:S,openInteractionType:C,modal:O,disabled:!g,returnFocus:i===void 0?P:i,initialFocus:v.type!=="menu",restoreFocus:!0,externalTree:v.type!=="menubar"?R:void 0,previousFocusableElement:b,nextFocusableElement:v.type===void 0?l.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:v.type===void 0?l.context.beforeContentFocusGuardRef:void 0,children:N})}),Md=c.createContext(void 0);function db(){const e=c.useContext(Md);if(e===void 0)throw new Error(Ne(32));return e}const Lk=c.forwardRef(function(t,n){const{keepMounted:o=!1,...r}=t,{store:s}=cn();return s.useState("mounted")||o?K.jsx(Md.Provider,{value:o,children:K.jsx(aa,{ref:n,...r})}):null});function hs(e){return Fi(19)?e:e?"true":void 0}const fb=c.createContext(void 0);function bo(){const e=c.useContext(fb);return(e==null?void 0:e.direction)??"ltr"}const pb=e=>({name:"arrow",options:e,async fn(t){var F,T;const{x:n,y:o,placement:r,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:d=0,offsetParent:p="real"}=xn(e,t)||{};if(u==null)return{};const f=zu(d),y={x:n,y:o},m=ra(r),g=oa(m),h=await i.getDimensions(u),b=m==="y",v=b?"top":"left",w=b?"bottom":"right",x=b?"clientHeight":"clientWidth",S=s.reference[g]+s.reference[m]-y[m]-s.floating[g],R=y[m]-s.reference[m],E=p==="real"?await((F=i.getOffsetParent)==null?void 0:F.call(i,u)):a.floating;let k=a.floating[x]||s.floating[g];(!k||!await((T=i.isElement)==null?void 0:T.call(i,E)))&&(k=a.floating[x]||s.floating[g]);const M=S/2-R/2,C=k/2-h[g]/2-1,O=Math.min(f[v],C),I=Math.min(f[w],C),D=O,N=k-h[g]-I,P=k/2-h[g]/2+M,z=Fu(D,P,N),L=!l.arrow&&kn(r)!=null&&P!==z&&s.reference[g]/2-(P<D?O:I)-h[g]/2<0,A=L?P<D?P-D:P-N:0;return{[m]:y[m]+A,data:{[m]:z,centerOffset:P-z-A,...L&&{alignmentOffset:A}},reset:L}}}),hb=(e,t)=>({...pb(e),options:[e,t]}),gb={name:"hide",async fn(e){const{width:t,height:n,x:o,y:r}=e.rects.reference,s=t===0&&n===0&&o===0&&r===0,i=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:i.top-n>=0||i.right-t>=0||i.bottom-n>=0||i.left-t>=0||s}}}},mb={sideX:"left",sideY:"top"},tl="--available-width",nl="--available-height";function Td(e,t,n){const o=e==="inline-start"||e==="inline-end";return{top:"top",right:o?n?"inline-start":"inline-end":"right",bottom:"bottom",left:o?n?"inline-end":"inline-start":"left"}[t]}function ol(e,t,n){const{rects:o,placement:r}=e;return{side:Td(t,Mt(r),n),align:kn(r)||"center",anchor:{width:o.reference.width,height:o.reference.height},positioner:{width:o.floating.width,height:o.floating.height}}}function Pa(e){return yb(e,Q1)}function yb(e,t){var Xe,pt;const{anchor:n,positionMethod:o="absolute",side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:a=0,collisionBoundary:l,collisionPadding:u=5,sticky:d=!1,arrowPadding:p=5,disableAnchorTracking:f=!1,inline:y,keepMounted:m=!1,floatingRootContext:g,mounted:h,collisionAvoidance:b,shift:v,nodeId:w,adaptiveOrigin:x,lazyFlip:S=!1,externalTree:R}=e,[E,k]=c.useState(null);!h&&E!==null&&k(null);const M=b.side||"flip",C=b.align||"flip",O=b.fallbackAxisSide||"end",I=(v==null?void 0:v.crossAxis)??!1,D=v==null?void 0:v.rootBoundary,N=typeof n=="function"?n:void 0,P=le(N),z=N?P:n,L=Ze(n),A=Ze(h),T=bo()==="rtl",_=E||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":T?"left":"right","inline-start":T?"right":"left"}[r],j=i==="center"?_:`${_}-${i}`;let $=u;typeof $=="number"?$={top:$,right:$,bottom:$,left:$}:$&&($={top:$.top||0,right:$.right||0,bottom:$.bottom||0,left:$.left||0});const U=1,Y=r==="bottom"?U:0,V=r==="top"?U:0,J=r==="right"?U:0,H=r==="left"?U:0,G={boundary:l==="clipping-ancestors"?"clippingAncestors":l,padding:$},ue=c.useRef(null),ne=Ze(s),te=Ze(a),Q=typeof s!="function"?s:0,ee=typeof a!="function"?a:0,ie=[];y&&ie.push(y),ie.push(C1(we=>{const Ae=ol(we,r,T),Je=typeof ne.current=="function"?ne.current(Ae):ne.current,tt=typeof te.current=="function"?te.current(Ae):te.current;return{mainAxis:Je,crossAxis:tt,alignmentAxis:tt}},[Q,ee,T,r]));const xe=C==="none"&&M!=="shift",ae=!xe&&(d||I||M==="shift"),he=M==="none"?null:T1({...G,padding:{top:$.top+U+Y,right:$.right+U+H,bottom:$.bottom+U+V,left:$.left+U+J},mainAxis:!I&&M==="flip",crossAxis:C==="flip"?"alignment":!1,fallbackAxisSideDirection:O}),oe=xe?null:P1({...G,rootBoundary:D,mainAxis:C!=="none",crossAxis:ae,limiter:d||I?void 0:M1(we=>{if(!ue.current)return{};const{width:Ae,height:Je}=ue.current.getBoundingClientRect(),tt=Pt(Mt(we.placement)),yt=tt==="y"?Ae:Je,bt=tt==="y"?$.left+$.right:$.top+$.bottom;return{offset:yt/2+bt/2}})},[G,d,I,D,$,C]);M==="shift"||C==="shift"||i==="center"?ie.push(oe,he):ie.push(he,oe),ie.push(I1({...G,apply({elements:{floating:we},availableWidth:Ae,availableHeight:Je,rects:tt}){if(!A.current)return;const yt=we.style;yt.setProperty(tl,`${Ae}px`),yt.setProperty(nl,`${Je}px`);const bt=He(we).devicePixelRatio||1,{x:Xt,y:lt,width:ht,height:Pe}=tt.reference,ze=(Math.round((Xt+ht)*bt)-Math.round(Xt*bt))/bt,wt=(Math.round((lt+Pe)*bt)-Math.round(lt*bt))/bt;yt.setProperty("--anchor-width",`${ze}px`),yt.setProperty("--anchor-height",`${wt}px`)}}),hb(we=>({element:ue.current||Te(we.elements.floating).createElement("div"),padding:p,offsetParent:"floating"}),[p]),{name:"transformOrigin",fn(we){var tc,nc,oc;const{elements:Ae,middlewareData:Je,placement:tt,rects:yt,y:bt}=we,Xt=Mt(tt),lt=Pt(Xt),ht=ue.current,Pe=((tc=Je.arrow)==null?void 0:tc.x)||0,ze=((nc=Je.arrow)==null?void 0:nc.y)||0,wt=(ht==null?void 0:ht.clientWidth)||0,zt=(ht==null?void 0:ht.clientHeight)||0,Et=Pe+wt/2,Vt=ze+zt/2,Ko=Math.abs(((oc=Je.shift)==null?void 0:oc.y)||0),So=yt.reference.height/2,Mn=typeof s=="function"?s(ol(we,r,T)):s,Zo=Ko>Mn,Tp={top:`${Et}px calc(100% + ${Mn}px)`,bottom:`${Et}px ${-Mn}px`,left:`calc(100% + ${Mn}px) ${Vt}px`,right:`${-Mn}px ${Vt}px`}[Xt],Ip=`${Et}px ${yt.reference.y+So-bt}px`;return Ae.floating.style.setProperty("--transform-origin",ae&&lt==="y"&&Zo?Ip:Tp),{}}},gb,x),re(()=>{!h&&g&&g.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,g]);const ge=c.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:de,elements:ce,x:fe,y:B,middlewareData:q,update:se,placement:Z,context:X,isPositioned:pe,floatingStyles:be}=t({rootContext:g,open:m?h:void 0,placement:j,middleware:ie,strategy:o,whileElementsMounted:m?void 0:(...we)=>Bc(...we,ge),nodeId:w,externalTree:R}),{sideX:Le,sideY:Ue}=q.adaptiveOrigin||mb,qe=pe?o:"fixed",st=c.useMemo(()=>{let we;return pe?x?we={position:qe,[Le]:fe,[Ue]:B}:we={...be,position:qe}:we={position:qe,top:0,left:0},we[tl]="100vw",we[nl]="100vh",pe||(we.opacity=0),we},[x,qe,Le,fe,Ue,B,be,pe]),_e=c.useRef(null);re(()=>{if(!h)return;const we=L.current,Ae=typeof we=="function"?we():we,tt=(rl(Ae)?Ae.current:Ae)||null||null;tt!==_e.current&&(de.setPositionReference(tt),_e.current=tt)},[h,de,z,L]),c.useEffect(()=>{if(!h)return;const we=L.current;typeof we!="function"&&rl(we)&&we.current!==_e.current&&(de.setPositionReference(we.current),_e.current=we.current)},[h,de,z,L]),c.useEffect(()=>{if(m&&h&&ce.reference&&ce.floating)return Bc(ce.reference,ce.floating,se,ge)},[m,h,ce,se,ge]);const Qe=Mt(Z),ct=Td(r,Qe,T),Se=kn(Z)||"center",je=!!((Xe=q.hide)!=null&&Xe.referenceHidden);re(()=>{S&&h&&pe&&Qe!==_&&k(Qe)},[S,h,pe,Qe,_]);const Ye=c.useMemo(()=>{var we,Ae;return{position:"absolute",top:(we=q.arrow)==null?void 0:we.y,left:(Ae=q.arrow)==null?void 0:Ae.x}},[q.arrow]),Be=((pt=q.arrow)==null?void 0:pt.centerOffset)!==0;return c.useMemo(()=>({positionerStyles:st,arrowStyles:Ye,arrowRef:ue,arrowUncentered:Be,side:ct,align:Se,physicalSide:Qe,anchorHidden:je,refs:de,context:X,isPositioned:pe,update:se}),[st,Ye,ue,Be,ct,Se,Qe,je,de,X,pe,se])}function rl(e){return e!=null&&"current"in e}function gs(e){const{children:t,elementsRef:n,labelsRef:o,onMapChange:r}=e,s=le(r),[,i]=c.useState(!1),a=at(vb).current,l=at(bb).current,u=c.useRef(0),d=c.useRef(!0),p=c.useRef([]),f=c.useRef(null),y=le(()=>{d.current||(d.current=!0,i(S=>!S))}),m=le((S,R)=>{l.set(S,R),y()}),g=le(S=>{l.delete(S),y()}),h=le(S=>{const R=new Map;return n.current.length=0,o&&(o.current.length=0),S.forEach(E=>{var k,M;R.set(E.element,{...E.registration.metadata??{},index:E.index}),n.current[E.index]=E.element,o&&(o.current[E.index]=E.registration.label!==void 0?E.registration.label:((M=(k=E.registration.textRef)==null?void 0:k.current)==null?void 0:M.textContent)??E.element.textContent)}),u.current=n.current.length,R});function b(S){var k;if((k=f.current)==null||k.disconnect(),f.current=null,typeof MutationObserver!="function"||S.length<2)return;const R=new MutationObserver(M=>{if(!Sb(M))return;let C=null;for(const O of S)if(O.isConnected){if(C&&Id(C,O)>0){R.disconnect(),y();return}C=O}});f.current=R;const E=new Set;for(let M=1;M<S.length;M+=1){const C=wb(S[M-1],S[M]);C&&E.add(C)}E.forEach(M=>R.observe(M,{childList:!0}))}const v=le(()=>{const[S,R]=xb(l),E=h(S);b(R),p.current=S,d.current=!1,a.forEach(k=>k(E)),s(E)});re(()=>(d.current||h(p.current),()=>{n.current=[],o&&(o.current=[])}),[n,o,h]),re(()=>{d.current&&v()}),re(()=>()=>{var S;(S=f.current)==null||S.disconnect(),d.current=!0},[]);const w=le(S=>(a.add(S),()=>{a.delete(S)})),x=c.useMemo(()=>({register:m,unregister:g,subscribeMapChange:w,nextIndexRef:u}),[m,g,w,u]);return K.jsx(Ou.Provider,{value:x,children:t})}function bb(){return new Map}function vb(){return new Set}function xb(e){const t=new Set,n=[],o=[];e.forEach((s,i)=>{if(!i.isConnected)return;const a=s.index,l={index:a??-1,element:i,registration:s};a===null?o.push(l):a>=0&&(t.add(a),n.push(l))});let r=0;return o.sort((s,i)=>Id(s.element,i.element)),o.forEach(s=>{for(;t.has(r);)r+=1;s.index=r,n.push(s),r+=1}),t.size>0&&n.sort((s,i)=>s.index-i.index),[n,o.map(s=>s.element)]}function wb(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function Sb(e){for(const t of e)for(let n=0;n<t.removedNodes.length;n+=1)if(t.removedNodes[n].isConnected)return!0;return!1}function Id(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}const Ma=c.forwardRef(function(t,n){const{cutout:o,...r}=t;let s;if(o){const i=o.getBoundingClientRect();s=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${i.left}px ${i.top}px,${i.left}px ${i.bottom}px,${i.right}px ${i.bottom}px,${i.right}px ${i.top}px,${i.left}px ${i.top}px)`}return K.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...r,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:s}})});function Ta(e,t,{styles:n,transitionStatus:o,props:r,refs:s,hidden:i,inert:a=!1}){const l={...n};return a&&(l.pointerEvents="none"),ke("div",e,{state:t,ref:s,props:[{role:"presentation",hidden:i,style:l},ps(o),r],stateAttributesMapping:Xr})}let sl={},il={},al="";function ms(e,t){return jo(e)?e:t}function cl(e,t,n){return/hidden|clip/.test(e.getComputedStyle(ms(t,n)).overflowY)}function Rb(e){if(typeof document>"u")return!1;const t=Te(e);return He(t).innerWidth-t.documentElement.clientWidth>0}function kb(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const n=Te(e),o=n.documentElement,r=n.body,s=ms(o,r),i=s.style.overflowY,a=o.style.scrollbarGutter;o.style.scrollbarGutter="stable",s.style.overflowY="scroll";const l=s.offsetWidth;s.style.overflowY="hidden";const u=s.offsetWidth;return s.style.overflowY=i,o.style.scrollbarGutter=a,l===u}function Eb(e){const t=Te(e),n=t.documentElement,o=t.body,r=ms(n,o),s={overflowY:r.style.overflowY,overflowX:r.style.overflowX};return Object.assign(r.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(r.style,s)}}function Cb(e){var y;const t=Te(e),n=t.documentElement,o=t.body,r=He(n);let s=0,i=0,a=!1;const l=vt.create();if(Yt&&(((y=r.visualViewport)==null?void 0:y.scale)??1)!==1)return()=>{};function u(){const m=r.getComputedStyle(n),g=r.getComputedStyle(o),v=(m.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";s=n.scrollTop,i=n.scrollLeft,sl={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},al=n.style.scrollBehavior,il={position:o.style.position,height:o.style.height,width:o.style.width,boxSizing:o.style.boxSizing,overflowY:o.style.overflowY,overflowX:o.style.overflowX,scrollBehavior:o.style.scrollBehavior};const w=n.scrollHeight>n.clientHeight,x=n.scrollWidth>n.clientWidth,S=m.overflowY==="scroll"||g.overflowY==="scroll",R=m.overflowX==="scroll"||g.overflowX==="scroll",E=Math.max(0,r.innerWidth-o.clientWidth),k=Math.max(0,r.innerHeight-o.clientHeight),M=parseFloat(g.marginTop)+parseFloat(g.marginBottom),C=parseFloat(g.marginLeft)+parseFloat(g.marginRight),O=ms(n,o);if(a=kb(e),a){n.style.scrollbarGutter=v,O.style.overflowY="hidden",O.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:v,overflowY:"hidden",overflowX:"hidden"}),(w||S)&&(n.style.overflowY="scroll"),(x||R)&&(n.style.overflowX="scroll"),Object.assign(o.style,{position:"relative",height:M||k?`calc(100dvh - ${M+k}px)`:"100dvh",width:C||E?`calc(100vw - ${C+E}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),o.scrollTop=s,o.scrollLeft=i,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function d(){Object.assign(n.style,sl),Object.assign(o.style,il),a||(n.scrollTop=s,n.scrollLeft=i,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=al)}function p(){d(),l.request(u)}u();const f=Me(r,"resize",p);return()=>{l.cancel(),d(),typeof r.removeEventListener=="function"&&f()}}class Pb{constructor(){De(this,"lockCount",0);De(this,"restore",null);De(this,"timeoutLock",_t.create());De(this,"timeoutUnlock",_t.create());De(this,"release",()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)});De(this,"unlock",()=>{var t;this.lockCount===0&&this.restore&&((t=this.restore)==null||t.call(this),this.restore=null)})}acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}lock(t){if(this.lockCount===0||this.restore!==null)return;const n=Te(t),o=n.documentElement,r=n.body,s=He(o);if(cl(s,o,r)){const a=new s.MutationObserver(()=>{cl(s,o,r)||(a.disconnect(),this.restore=null,this.lock(t))}),l={attributes:!0};a.observe(o,l),a.observe(r,l),this.restore=()=>a.disconnect();return}const i=es||!Rb(t);this.restore=i?Eb(t):Cb(t)}}const Mb=new Pb;function Od(e=!0,t=null){re(()=>{if(e)return Mb.acquire(t)},[e,t])}const Tb=20;function Ad(e,t,n,o){const[r,s]=c.useState(!1);re(()=>{if(!e||!t||n==null){s(!1);return}const i=Te(n).documentElement.clientWidth,a=n.offsetWidth;s(i>0&&a>0&&a>=i-Tb)},[e,t,n]),Od(e&&(!t||r),o)}const _k=c.forwardRef(function(t,n){var ge;const{anchor:o,positionMethod:r="absolute",className:s,render:i,side:a,align:l,sideOffset:u=0,alignOffset:d=0,collisionBoundary:p="clipping-ancestors",collisionPadding:f=5,arrowPadding:y=5,sticky:m=!1,disableAnchorTracking:g=!1,collisionAvoidance:h=Zu,style:b,...v}=t,{store:w}=cn(),x=db(),S=Kr(!0),R=w.useState("parent"),E=w.useState("floatingRootContext"),k=w.useState("floatingTreeRoot"),M=w.useState("mounted"),C=w.useState("open"),O=w.useState("modal"),I=w.useState("openMethod"),D=w.useState("activeTriggerElement"),N=w.useState("transitionStatus"),P=w.useState("positionerElement"),z=w.useState("instantType"),L=w.useState("adaptiveOrigin"),A=w.useState("lastOpenChangeReason"),F=w.useState("floatingNodeId"),T=w.useState("floatingParentNodeId"),_=E.useState("domReferenceElement"),j=c.useRef(null),$=Ki(P);let U=o,Y=u,V=d,J=l,H=h;R.type==="context-menu"&&(U=o??((ge=R.context)==null?void 0:ge.anchor),J=J??"start",!a&&J!=="center"&&(V=t.alignOffset??2,Y=t.sideOffset??-5));let G=a,ue=J;R.type==="menu"?(G=G??"inline-end",ue=ue??"start",H=t.collisionAvoidance??Ju):R.type==="menubar"&&(G=G??(R.context.orientation==="vertical"?"inline-end":"bottom"),ue=ue??"start");const ne=R.type==="context-menu",te=Pa({anchor:U,floatingRootContext:E,positionMethod:S?"fixed":r,mounted:M,side:G,sideOffset:Y,align:ue,alignOffset:V,arrowPadding:ne?0:y,collisionBoundary:p,collisionPadding:f,sticky:m,nodeId:F,keepMounted:x,disableAnchorTracking:g,collisionAvoidance:H,shift:ne?{crossAxis:!("side"in H&&H.side==="flip"),rootBoundary:"layoutViewport"}:void 0,externalTree:k,adaptiveOrigin:L});c.useEffect(()=>{function de(ce){ce.open&&(ce.parentNodeId===F&&w.set("hoverEnabled",!1),ce.nodeId!==F&&ce.parentNodeId===w.select("floatingParentNodeId")&&w.setOpen(!1,Re(To)))}return k.events.on("menuopenchange",de),()=>{k.events.off("menuopenchange",de)}},[w,k.events,F]),c.useEffect(()=>{if(w.select("floatingParentNodeId")==null)return;function de(ce){if(ce.open||ce.nodeId!==w.select("floatingParentNodeId"))return;const fe=ce.reason??To;w.setOpen(!1,Re(fe))}return k.events.on("menuopenchange",de),()=>{k.events.off("menuopenchange",de)}},[k.events,w]);const Q=Ge();c.useEffect(()=>{C||Q.clear()},[C,Q]),c.useEffect(()=>{function de(ce){if(!(!C||ce.nodeId!==w.select("floatingParentNodeId")))if(ce.target&&D&&D!==ce.target){const fe=w.select("closeDelay");fe>0?Q.isStarted()||Q.start(fe,()=>{w.setOpen(!1,Re(To))}):w.setOpen(!1,Re(To))}else Q.clear()}return k.events.on("itemhover",de),()=>{k.events.off("itemhover",de)}},[k.events,C,D,w,Q]),c.useEffect(()=>{const de={open:C,nodeId:F,parentNodeId:T,reason:w.select("lastOpenChangeReason")};k.events.emit("menuopenchange",de)},[k.events,C,w,F,T]),re(()=>{const de=_,ce=j.current;if(de&&(j.current=de),ce&&de&&de!==ce){w.set("instantType",void 0);const fe=new AbortController;return $(()=>{w.set("instantType","trigger-change")},fe.signal),()=>{fe.abort()}}},[_,$,w]);const ee={open:C,side:te.side,align:te.align,anchorHidden:te.anchorHidden,nested:R.type==="menu",instant:z},ie=R.type==="menubar"&&R.context.modal;Ad(C&&(ie||O&&A!==ot),I==="touch",P,D);const ae=Ta(t,ee,{styles:te.positionerStyles,transitionStatus:N,props:v,refs:[n,w.useStateSetter("positionerElement")],hidden:!M,inert:!C}),he=M&&R.type!=="menu"&&(R.type!=="menubar"&&O&&A!==ot||R.type==="menubar"&&R.context.modal);let oe=null;return R.type==="menubar"?oe=R.context.contentElement:R.type===void 0&&(oe=D),K.jsxs(Pu.Provider,{value:te,children:[he&&K.jsx(Ma,{ref:R.type==="context-menu"||R.type==="nested-context-menu"?R.context.internalBackdropRef:null,inert:hs(!C),cutout:oe}),K.jsx(Vy,{id:F,children:K.jsx(gs,{elementsRef:w.context.itemDomElements,labelsRef:w.context.itemLabels,children:ae})})]})}),Dd=c.createContext(void 0);function Ib(){const e=c.useContext(Dd);if(e===void 0)throw new Error(Ne(34));return e}const Fk=c.memo(c.forwardRef(function(t,n){const{render:o,className:r,value:s,defaultValue:i,onValueChange:a,disabled:l=!1,style:u,"aria-labelledby":d,...p}=t,[f,y]=c.useState(void 0),[m,g]=Lt({controlled:s,default:i,name:"MenuRadioGroup"}),h=le((x,S)=>{a==null||a(x,S),!S.isCanceled&&g(x)}),v=ke("div",t,{state:{disabled:l},ref:n,props:{role:"group","aria-labelledby":d??f,"aria-disabled":l||void 0,...p}}),w=c.useMemo(()=>({value:m,setValue:h,disabled:l}),[m,h,l]);return K.jsx(Zi.Provider,{value:y,children:K.jsx(Dd.Provider,{value:w,children:v})})})),Nd=c.createContext(void 0);function Ob(){const e=c.useContext(Nd);if(e===void 0)throw new Error(Ne(35));return e}const zk=c.forwardRef(function(t,n){const{render:o,className:r,id:s,label:i,nativeButton:a=!1,disabled:l=!1,closeOnClick:u=!1,value:d,style:p,...f}=t,y=yo({guess:!0,label:i}),m=qr(!0),g=rt(s),{store:h}=cn(),b=h.useState("isActive",y.index),v=h.useState("itemProps"),{value:w,setValue:x,disabled:S}=Ib(),R=h.useState("disabled"),E=l||S||R,k=w===d,{getItemProps:M,itemRef:C}=qi({closeOnClick:u,disabled:E,highlighted:b,id:g,store:h,nativeButton:a,nodeId:m==null?void 0:m.context.nodeId,itemMetadata:Yi}),O=c.useMemo(()=>({disabled:E,highlighted:b,checked:k}),[E,b,k]);function I(N){const P=Re(An,N.nativeEvent,void 0,{preventUnmountOnClose:Ke});x(d,P)}const D=ke("div",t,{state:O,stateAttributesMapping:ts,props:[v,{role:"menuitemradio","aria-checked":k,onClick:I},f,M],ref:[C,n,y.ref]});return K.jsx(Nd.Provider,{value:O,children:D})}),Vk=c.forwardRef(function(t,n){const{render:o,className:r,style:s,keepMounted:i=!1,...a}=t,l=Ob(),u=c.useRef(null),{transitionStatus:d,mounted:p,setMounted:f}=ln(l.checked);kt({open:l.checked,ref:u,onComplete(){l.checked||f(!1)}});const y={checked:l.checked,disabled:l.disabled,highlighted:l.highlighted,transitionStatus:d};return ke("span",t,{state:y,stateAttributesMapping:ts,ref:[n,u],props:{"aria-hidden":!0,...a},enabled:i||p})}),Ab=c.createContext(null);function Ld(e){return c.useContext(Ab)}function Db(e){const t=c.useRef(""),n=c.useCallback(r=>{r.defaultPrevented||(t.current=r.pointerType,e(r,r.pointerType))},[e]);return{onClick:c.useCallback(r=>{if(r.detail===0){e(r,"keyboard");return}"pointerType"in r?e(r,r.pointerType):e(r,t.current),t.current=""},[e]),onPointerDown:n}}function ys(e,t){const n=c.useRef(e),o=le(t);re(()=>{n.current!==e&&o(n.current),n.current=e},[e,o])}function _d(e,t){const n=le((s,i)=>{(typeof e=="function"?e():e)||t(i||(es?"touch":""))}),{onClick:o,onPointerDown:r}=Db(n);return c.useMemo(()=>({onClick:o,onPointerDown:r}),[o,r])}function Fd(e){const[t,n]=c.useState(null),o=_d(e,n);return ys(e,r=>{r&&!e&&n(null)}),c.useMemo(()=>({openMethod:t,triggerProps:o}),[t,o])}const Nb={...Sa,disabled:e=>e.parent.type==="menubar"&&e.parent.context.disabled||e.disabled,modal:e=>(e.parent.type===void 0||e.parent.type==="context-menu")&&(e.modal??!0),openMethod:e=>e.openMethod,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>e.parent.type==="menu"?e.parent.store.select("rootId"):e.parent.type!==void 0?e.parent.context.rootId:e.rootId,activeIndex:e=>e.activeIndex,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>e.parent.type==="menu"?e.parent.store.select("floatingTreeRoot"):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type==="menu")return e.parent.store.select("keyboardEventRelay")}};class Lb extends Uo{constructor(n){super({...Fb(),...n},_b(),Nb);De(this,"unsubscribeParentListener",null);this.unsubscribeParentListener=this.observe("parent",o=>{var r;if((r=this.unsubscribeParentListener)==null||r.call(this),o.type==="menu"){let s=o.store.select("rootId"),i=o.store.select("floatingTreeRoot"),a=o.store.select("keyboardEventRelay");this.unsubscribeParentListener=o.store.subscribe(()=>{const l=o.store.select("rootId"),u=o.store.select("floatingTreeRoot"),d=o.store.select("keyboardEventRelay");s===l&&i===u&&a===d||(s=l,i=u,a=d,this.notifyAll())}),this.context.allowMouseUpTriggerRef=o.store.context.allowMouseUpTriggerRef;return}o.type!==void 0&&(this.context.allowMouseUpTriggerRef=o.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(n,o){this.state.floatingRootContext.context.events.emit("setOpen",{open:n,eventDetails:o})}}function _b(){return{positionerRef:c.createRef(),popupRef:c.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:c.createRef(),beforeContentFocusGuardRef:c.createRef(),onOpenChangeComplete:void 0,triggerElements:new Go}}function Fb(){return{...xa(),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new ca,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:We,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0}}const zb=c.createContext(void 0);function Vb(){return c.useContext(zb)}const $b=pa(function(t){const{children:n,open:o,onOpenChange:r,onOpenChangeComplete:s,defaultOpen:i=!1,disabled:a=!1,modal:l,loopFocus:u=!0,orientation:d="vertical",actionsRef:p,closeParentOnEsc:f=!1,handle:y,triggerId:m,defaultTriggerId:g=null,highlightItemOnHover:h=!0}=t,b=Kr(!0),v=cn(!0),w=Ld(!0),x=Vb(),S=c.useMemo(()=>x&&v?{type:"menu",store:v.store}:w?{type:"menubar",context:w}:b&&!v?{type:"context-menu",context:b}:{type:void 0},[b,v,w,x]),R=Hb({open:i,openProp:o,activeTriggerId:g,triggerIdProp:m,parent:S});R.useControlledProp("openProp",o),R.useControlledProp("triggerIdProp",m),R.useContextCallback("onOpenChangeComplete",s);const E=bn(),k=bn(),M=R.useState("floatingTreeRoot"),C=sd(M),O=En(),I=R.useState("open"),D=R.useState("activeTriggerElement"),N=R.useState("positionerElement"),P=R.useState("hoverEnabled"),z=R.useState("disabled"),L=R.useState("lastOpenChangeReason"),A=R.useState("parent"),F=R.useState("activeIndex"),T=R.useState("payload"),_=R.useState("floatingParentNodeId"),j=c.useRef(null),$=c.useRef(A.type!=="context-menu"),U=Ge(),Y=c.useRef(!0),V=Ge(),J=_!=null,{openMethod:H,triggerProps:G}=Fd(I);R.useSyncedValues({disabled:a,highlightItemOnHover:h,modal:A.type===void 0?l:void 0,openMethod:H,rootId:E}),ya(R);const{forceUnmount:ue}=ba(I,R,()=>{R.set("allowMouseEnter",!1)});re(()=>{b&&!v?R.update({parent:{type:"context-menu",context:b},floatingNodeId:C,floatingParentNodeId:O}):v&&R.update({floatingNodeId:C,floatingParentNodeId:O})},[b,v,C,O,R]),c.useEffect(()=>{if(I||(j.current=null),A.type==="context-menu"){if(!I){U.clear(),$.current=!1;return}U.start(500,()=>{$.current=!0})}},[U,I,A.type]),re(()=>{!I&&!P&&R.set("hoverEnabled",!0)},[I,P,R]);const ne=le((X,pe)=>{const be=pe.reason;if(!X&&!R.select("open")||I===X&&pe.trigger===D&&L===be)return;const Le=bd(pe);if(!X&&pe.trigger==null&&(pe.trigger=D??void 0),r==null||r(X,pe),pe.isCanceled)return;R.state.floatingRootContext.dispatchOpenChange(X,pe);const Ue=pe.event;if(X===!1&&(Ue==null?void 0:Ue.type)==="click"&&Ue.pointerType==="touch"&&!Y.current)return;X&&be===Qn?(Y.current=!1,V.start(300,()=>{Y.current=!0})):(Y.current=!0,V.clear());const qe=(be===Rn||be===An)&&Ue.detail===0,st=!X&&(be===Jr||be==null),_e={open:X,openChangeReason:be};j.current=pe.event,ga(_e,X,pe.trigger,Le()),R.update(_e),A.type==="menubar"&&(be===Qn||be===Nn||be===ot||be===Qs||be===To)?R.set("instantType","group"):qe||st?R.set("instantType",qe?"click":"dismiss"):R.set("instantType",void 0)}),te=md({popupStore:R,floatingId:k,nested:O!=null,onOpenChange:ne}),Q=te.context.events;re(()=>{const X=({open:pe,eventDetails:be})=>ne(pe,be);return Q.on("setOpen",X),()=>{Q==null||Q.off("setOpen",X)}},[Q,ne]);const ee=c.useCallback(()=>{R.setOpen(!1,Re(Wi))},[R]);c.useImperativeHandle(p,()=>({unmount:ue,close:ee}),[ue,ee]);let ie;A.type==="context-menu"&&(ie=A.context),c.useImperativeHandle(ie==null?void 0:ie.positionerRef,()=>N,[N]),c.useImperativeHandle(ie==null?void 0:ie.actionsRef,()=>({setOpen:ne}),[ne]);const xe=is(te,{enabled:!z,bubbles:{escapeKey:f&&A.type==="menu"},outsidePress(){var X;return A.type!=="context-menu"||((X=j.current)==null?void 0:X.type)==="contextmenu"?!0:$.current},externalTree:J?M:void 0}),ae=bo(),he=c.useCallback(X=>{R.select("activeIndex")!==X&&R.set("activeIndex",X)},[R]),oe=Ed(te,{enabled:!z,listRef:R.context.itemDomElements,activeIndex:F,nested:A.type!==void 0,loopFocus:u,orientation:d,parentOrientation:A.type==="menubar"?A.context.orientation:void 0,rtl:ae==="rtl",disabledIndices:Nt,onNavigate:he,openOnArrowKeyDown:A.type!=="context-menu",externalTree:J?M:void 0,focusItemOnHover:h}),ge=c.useCallback(X=>{R.context.typingRef.current=X},[R]),de=Cd(te,{enabled:!z,listRef:R.context.itemLabels,elementsRef:R.context.itemDomElements,activeIndex:F,resetMs:Ny,onMatch:X=>{I&&X!==F&&R.set("activeIndex",X)},onTyping:ge}),ce=c.useMemo(()=>{const X=St(de.reference,oe.reference,xe.reference,{onMouseMove(){R.set("allowMouseEnter",!0)}},G);return X["aria-haspopup"]="menu",X["aria-expanded"]=I,X},[R,de.reference,oe.reference,xe.reference,G,I]),fe=c.useMemo(()=>{const X=St(oe.trigger,xe.trigger,G);return X["aria-haspopup"]="menu",X["aria-expanded"]=!1,X},[oe.trigger,xe.trigger,G]),B=c.useMemo(()=>St(us,{id:k,role:"menu","aria-labelledby":D==null?void 0:D.id,onMouseMove(){R.set("allowMouseEnter",!0),A.type==="menu"&&R.set("hoverEnabled",!1)},onClick(){R.select("hoverEnabled")&&R.set("hoverEnabled",!1)},onKeyDown(X){const pe=R.select("keyboardEventRelay");pe&&!X.isPropagationStopped()&&pe(X)}},de.floating,oe.floating,xe.floating),[D,k,A.type,R,de.floating,oe.floating,xe.floating]),q=oe.item??We;va(R,{floatingRootContext:te,activeTriggerProps:ce,inactiveTriggerProps:fe,popupProps:B,itemProps:q});const se=c.useMemo(()=>({store:R,parent:S}),[R,S]),Z=K.jsxs($i.Provider,{value:se,children:[y&&K.jsx(ha,{handle:y,store:R}),typeof n=="function"?n({payload:T}):n]});return A.type===void 0||A.type==="context-menu"?K.jsx($y,{externalTree:M,children:Z}):Z});function Hb(e){return at(()=>new Lb(e)).current}const lr=5;function zd(e,t){const n=jb(t);return e.clientX>=n.left-lr&&e.clientX<=n.right+lr&&e.clientY>=n.top-lr&&e.clientY<=n.bottom+lr}function jb(e){const t=e.getBoundingClientRect(),n=He(e);if(Gi)return t;const o=n.getComputedStyle(e,"::before"),r=n.getComputedStyle(e,"::after");if(!(o.content!=="none"||r.content!=="none"))return t;const i=parseFloat(o.width)||0,a=parseFloat(o.height)||0,l=parseFloat(r.width)||0,u=parseFloat(r.height)||0,d=Math.max(t.width,i,l),p=Math.max(t.height,a,u),f=d-t.width,y=p-t.height;return{left:t.left-f/2,right:t.right+f/2,top:t.top-y/2,bottom:t.bottom+y/2}}function Vd(e={}){const{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:o}=Yr(),{ref:r,index:s}=yo(e),i=n===s,a=c.useRef(null),l=Dt(r,a);return{compositeProps:{tabIndex:i?0:-1,onFocus(){o(s)},onMouseMove(){const d=a.current;if(!t||!d)return;const p=d.hasAttribute("disabled")||d.ariaDisabled==="true";!i&&!p&&d.focus()}},compositeRef:l,index:s}}function $d(e){const{render:t,className:n,style:o,state:r=We,props:s=Nt,refs:i=Nt,metadata:a,stateAttributesMapping:l,tag:u="div",...d}=e,{compositeProps:p,compositeRef:f}=Vd({metadata:a});return ke(u,e,{state:r,ref:[f,...i],props:[p,...s,d],stateAttributesMapping:l})}function Ia(e){if(Fe(e)&&e.hasAttribute("data-rootownerid"))return e.getAttribute("data-rootownerid");if(!en(e))return Ia(on(e))}function Bb(e,t){const n=c.useRef(null);function o(s){At.flushSync(()=>{e.setOpen(!1,Re(Nn,s.nativeEvent,s.currentTarget))});const i=Iy(n.current);i==null||i.focus()}function r(s){var a;const i=e.select("positionerElement");if(i&&eo(s,i))(a=e.context.beforeContentFocusGuardRef.current)==null||a.focus();else{At.flushSync(()=>{e.setOpen(!1,Re(Nn,s.nativeEvent,s.currentTarget))});let l=Ty(e.context.triggerFocusTargetRef.current||t.current);for(;l!==null&&ve(i,l);){const u=l;if(l=ia(l),l===u)break}l==null||l.focus()}}return{preFocusGuardRef:n,handlePreFocusGuardFocus:o,handleFocusTargetFocus:r}}function Wb(e){const{enabled:t=!0,mouseDownAction:n,open:o}=e,r=c.useRef(!1);return c.useMemo(()=>t?{onMouseDown:s=>{(n==="open"&&!o||n==="close"&&o)&&(r.current=!0,Te(s.currentTarget).addEventListener("click",()=>{r.current=!1},{once:!0}))},onClick:s=>{r.current&&(r.current=!1,s.preventBaseUIHandler())}}:We,[t,n,o])}const $k=gd(function(t,n){const{render:o,className:r,style:s,disabled:i=!1,nativeButton:a=!0,id:l,openOnHover:u,delay:d=100,closeDelay:p=0,handle:f,payload:y,...m}=t,g=cn(!0),b=Ra(f)??(g==null?void 0:g.store);if(!b)throw new Error(Ne(85));const v=rt(l),w=b.useState("isTriggerActive",v),x=b.useState("floatingRootContext"),S=b.useState("isOpenedByTrigger",v),R=b.useState("triggerPopupId",v),E=c.useRef(null),k=Gb(),M=Yr(!0),C=Cn(),O=c.useMemo(()=>C??new ca,[C]),I=sd(O),D=En(),{registerTrigger:N,isMountedByThisTrigger:P}=ma(v,E,b,{payload:y,closeDelay:p,parent:k,floatingTreeRoot:O,floatingNodeId:I,floatingParentNodeId:D,keyboardEventRelay:M==null?void 0:M.relayKeyboardEvent}),z=k.type==="menubar",L=b.useState("disabled"),A=i||L||z&&k.context.disabled,{getButtonProps:F,buttonRef:T}=Tt({disabled:A,native:a});c.useEffect(()=>{!S&&k.type===void 0&&(b.context.allowMouseUpTriggerRef.current=!1)},[b,S,k.type]);const _=c.useRef(null),j=Ge(),$=le(ge=>{if(!_.current)return;j.clear(),b.context.allowMouseUpTriggerRef.current=!1;const de=ge.target;ve(_.current,de)||ve(b.select("positionerElement"),de)||de===_.current||de!=null&&Ia(de)===b.select("rootId")||zd(ge,_.current)||O.events.emit("close",{domEvent:ge,reason:Bi})});c.useEffect(()=>{S&&b.select("lastOpenChangeReason")===ot&&Te(_.current).addEventListener("mouseup",$,{once:!0})},[S,$,b]);const U=z&&k.context.hasSubmenuOpen,V=kd(x,{enabled:(u??U)&&!A&&(!z||U&&!P),handleClose:Pd({blockPointerEvents:!z}),mouseOnly:!0,move:!1,restMs:k.type===void 0?d:void 0,delay:{close:p},triggerElementRef:E,externalTree:O,isActiveTrigger:w,isClosing:()=>b.select("transitionStatus")==="ending"}),J=Ub(S,b.select("lastOpenChangeReason")),H=da(x,{enabled:!A,event:S&&z?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:k.type===void 0?J:!1}),G=wd(x,{enabled:!A&&U}),ue=Wb({open:S,enabled:z,mouseDownAction:"open"}),ne=c.useMemo(()=>St(G.reference,H.reference),[G.reference,H.reference]),te=b.useState("triggerProps",P),{preFocusGuardRef:Q,handlePreFocusGuardFocus:ee,handleFocusTargetFocus:ie}=Bb(b,E),xe={disabled:A,open:S},ae=[_,n,T,N,E],he=[ne,V??We,te,{"aria-haspopup":"menu","aria-controls":R,id:v,onMouseDown:ge=>{if(b.select("open"))return;j.start(200,()=>{b.context.allowMouseUpTriggerRef.current=!0}),Te(ge.currentTarget).addEventListener("mouseup",$,{once:!0})}},z?{role:"menuitem"}:{},ue,m,F],oe=ke("button",t,{enabled:!z,stateAttributesMapping:Lr,state:xe,ref:ae,props:he});return z?K.jsx($d,{tag:"button",render:o,className:r,style:s,state:xe,refs:ae,props:he,stateAttributesMapping:Lr}):S?K.jsxs(c.Fragment,{children:[K.jsx(ao,{ref:Q,onFocus:ee},`${v}-pre-focus-guard`),K.jsx(c.Fragment,{children:oe},v),K.jsx(ao,{ref:b.context.triggerFocusTargetRef,onFocus:ie},`${v}-post-focus-guard`)]}):K.jsx(c.Fragment,{children:oe},v)});function Ub(e,t){const n=Ge(),[o,r]=c.useState(!1);return re(()=>{e&&t===ot?(r(!0),n.start(Ly,()=>{r(!1)})):e||(n.clear(),r(!1))},[e,t,n]),o}function Gb(){const e=Ld();return c.useMemo(()=>e?{type:"menubar",context:e}:{type:void 0},[e])}function Yb(e){const[t,n]=c.useState({current:e,previous:null});return Object.is(e,t.current)||n({current:e,previous:t.current}),t.previous}function ll(e){const t=xt(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Fe(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o;return(lo(n)!==s||lo(o)!==i)&&(n=s,o=i),{width:n,height:o}}const Hk=c.forwardRef(function(t,n){const{className:o,render:r,orientation:s="horizontal",style:i,...a}=t;return ke("div",t,{state:{orientation:s},ref:n,props:[{role:"separator","aria-orientation":s},a]})});function Hd(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}function qb(e){const t=c.useRef(!0);t.current&&(t.current=!1,e())}const jd=c.createContext(null);function qt(){const e=c.useContext(jd);if(e===null)throw new Error(Ne(60));return e}const Xb={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Kb={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},Zb={disabled:!1,...Kb},bs={valid(e){return e===null?null:e?{"data-valid":""}:{"data-invalid":""}}},Jb={invalid:void 0,name:void 0,validityData:{state:Xb,errors:[],error:"",value:"",initialValue:null},setValidityData:Ke,disabled:void 0,setTouched:Ke,setDirty:Ke,setFilled:Ke,setFocused:Ke,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:Zb,registerFieldControl:Ke,validation:{getValidationProps:(e,t=We)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:Ke,getInputControl:()=>null,commit:async()=>{},change:Ke}},Qb=c.createContext(Jb);function vo(e=!0){const t=c.useContext(Qb);if(t.setValidityData===Ke&&!e)throw new Error(Ne(28));return t}function vs(e,t,n,o,r=!0,s){const{registerFieldControl:i}=vo(),a=at(()=>Symbol());re(()=>{const l=a.current;if(!r){i(l,void 0);return}i(l,{controlRef:e,getValue:o,id:t,name:s,value:n})},[e,r,o,t,s,i,a,n]),re(()=>{const l=a.current;return()=>{i(l,void 0)}},[i,a])}const ev=c.createContext({controlId:void 0,registerControlId:Ke,labelId:void 0,setLabelId:Ke,messageIds:[],setMessageIds:Ke,getDescriptionProps:e=>e});function Yo(){return c.useContext(ev)}function xs(e={}){const{id:t,implicit:n=!1,controlRef:o}=e,{controlId:r,registerControlId:s}=Yo(),i=rt(t),a=n?r:void 0,l=at(()=>Symbol()),u=c.useRef(!1),d=c.useRef(t!=null),p=le(()=>{!u.current||s===Ke||(u.current=!1,s(l.current,void 0))});return re(()=>{if(s===Ke)return;let f;if(n){const y=o==null?void 0:o.current;Oe(y)&&y.closest("label")!=null?f=t??null:f=a??i}else if(t!=null)d.current=!0,f=t;else if(d.current)f=i;else{p();return}if(f===void 0){p();return}u.current=!0,s(l.current,f)},[t,o,a,s,n,i,l,p]),c.useEffect(()=>p,[p]),r??i}const tv=(e,t)=>Object.is(e,t);function uo(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function Cr(e,t,n){return!e||e.length===0?-1:e.findIndex(o=>o===void 0?!1:uo(o,t,n))}function nv(e,t,n){return e.filter(o=>!uo(t,o,n))}function gi(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function Bd(e){return e!=null&&e.length>0&&typeof e[0]=="object"&&e[0]!=null&&"items"in e[0]}function ov(e){if(!Array.isArray(e))return e!=null&&"null"in e;const t=e;if(Bd(t)){for(const n of t)for(const o of n.items)if(o&&o.value==null&&o.label!=null)return!0;return!1}for(const n of t)if(n&&n.value==null&&n.label!=null)return!0;return!1}function Wd(e,t){if(t&&e!=null)return t(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return gi(e)}function Xn(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?gi(e.value):gi(e)}function Ud(e,t,n){function o(){return Wd(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e=="object"&&"label"in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??o();if(Array.isArray(t)){const r=t,s=Bd(r)?r.flatMap(i=>i.items):r;if(e==null||typeof e!="object"){const i=s.find(a=>a.value===e);return i&&i.label!=null?i.label:o()}if("value"in e){const i=s.find(a=>a&&a.value===e.value);if(i&&i.label!=null)return i.label}}return o()}function rv(e,t,n){return e.reduce((o,r,s)=>(s>0&&o.push(", "),o.push(K.jsx(c.Fragment,{children:Ud(r,t,n)},s)),o),[])}const Ce={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{const{value:t,multiple:n,itemToStringValue:o}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:Xn(t,o)!==""},hasNullItemLabel:(e,t)=>t?ov(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{const n=e.isItemEqualToValue,o=e.value;return e.multiple?Array.isArray(o)&&o.some(r=>uo(t,r,n)):uo(t,o,n)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows},sv=c.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Ke,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function ws(){return c.useContext(sv)}function iv(e,t,n=(o,r)=>o===r){return e.length===t.length&&e.every((o,r)=>n(o,t[r]))}function hn(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Ot=1;function Oa(e,t){return Math.max(0,e-t)}function fo(e,t){if(t<=0)return 0;const n=hn(e,0,t),o=n,r=t-n,s=o<=Ot,i=r<=Ot;return s&&i?o<=r?0:t:s?0:i?t:n}function jk(e){const{id:t,value:n,defaultValue:o=null,onValueChange:r,open:s,defaultOpen:i=!1,onOpenChange:a,name:l,form:u,autoComplete:d,disabled:p=!1,readOnly:f=!1,required:y=!1,modal:m=!0,actionsRef:g,inputRef:h,onOpenChangeComplete:b,items:v,multiple:w=!1,itemToStringLabel:x,itemToStringValue:S,isItemEqualToValue:R=tv,highlightItemOnHover:E=!0,children:k}=e,{clearErrors:M}=ws(),{setDirty:C,setTouched:O,setFocused:I,validityData:D,setFilled:N,name:P,disabled:z,validation:L,validationMode:A}=vo(),F=xs({id:t}),T=z||p,_=P??l,[j,$]=Lt({controlled:n,default:w?o??Nt:o,name:"Select",state:"value"}),[U,Y]=Lt({controlled:s,default:i,name:"Select",state:"open"}),V=c.useRef([]),J=c.useRef([]),H=c.useRef(null),G=c.useRef(null),ue=c.useRef(0),ne=c.useRef(null),te=c.useRef([]),Q=c.useRef(!1),ee=c.useRef(null),ie=c.useRef(null),xe=c.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),ae=c.useRef(!1),{mounted:he,setMounted:oe,transitionStatus:ge}=ln(U),{openMethod:de,triggerProps:ce}=Fd(U),fe=at(()=>new Uo({id:F,labelId:void 0,modal:m,multiple:w,itemToStringLabel:x,itemToStringValue:S,isItemEqualToValue:R,value:j,open:U,mounted:he,transitionStatus:ge,items:v,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,B=Ee(fe,Ce.activeIndex),q=Ee(fe,Ce.selectedIndex),se=Ee(fe,Ce.triggerElement),Z=Ee(fe,Ce.positionerElement),X=Yb(de),pe=de??X,be=c.useMemo(()=>w?"":Xn(j,S),[w,j,S]),Le=c.useMemo(()=>w&&Array.isArray(j)?j.map(Pe=>Xn(Pe,S)):Xn(j,S),[w,j,S]),Ue=Ze(se),qe=le(()=>Le);vs(Ue,F,j,qe,!T,l);const st=c.useRef(j),_e=w?Array.isArray(j)&&j.length>0:j!=null&&be!=="";re(()=>{N(_e)},[_e,N]),re(function(){let ze=j,wt=!1;if(w){const Vt=Array.isArray(j)?j:[];wt=Vt.length===0,ze=Vt[Vt.length-1]}const zt=wt?-1:Cr(te.current,ze,R),Et=zt===-1?null:zt;Et===null&&(ie.current=null),!U&&fe.set("selectedIndex",Et)},[w,U,j,R,fe]);function Qe(Pe){const ze=D.initialValue;return Array.isArray(Pe)&&Array.isArray(ze)?!iv(Pe,ze,(wt,zt)=>uo(wt,zt,R)):Pe!==ze}ys(j,()=>{M(_),C(Qe(j)),L.change(j)});const ct=le((Pe,ze)=>{a==null||a(Pe,ze),!ze.isCanceled&&(Y(Pe),!Pe&&(ze.reason===Nn||ze.reason===Zr)&&(O(!0),I(!1),A==="onBlur"&&L.commit(j)))}),Se=le(()=>{oe(!1),fe.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),b==null||b(!1)});kt({enabled:!g,open:U,ref:H,onComplete(){U||Se()}}),c.useImperativeHandle(g,()=>({unmount:Se}),[Se]);const je=le((Pe,ze)=>{r==null||r(Pe,ze),!ze.isCanceled&&$(Pe)}),Ye=le(Pe=>{const ze=Oa(Pe.scrollHeight,Pe.clientHeight),wt=fo(Pe.scrollTop,ze),zt=wt>0,Et=wt<ze;fe.set("scrollUpArrowVisible",zt),fe.set("scrollDownArrowVisible",Et)}),Be=J1({open:U,onOpenChange:ct,elements:{reference:se,floating:Z}}),Xe=da(Be,{enabled:!f&&!T,event:"mousedown"}),pt=is(Be),we=Ed(Be,{enabled:!f&&!T,listRef:V,activeIndex:B,selectedIndex:q,disabledIndices:Nt,onNavigate(Pe){Pe===null&&!U||fe.set("activeIndex",Pe)},focusItemOnHover:E}),Ae=Cd(Be,{enabled:!f&&!T&&(U||!w),listRef:J,activeIndex:B,selectedIndex:q,disabledIndices:Pe=>Hd(V.current[Pe]),onMatch(Pe){U?fe.set("activeIndex",Pe):je(te.current[Pe],Re(Rt))},onTyping(Pe){Q.current=Pe}}),Je=c.useMemo(()=>St(Ae.reference,we.reference,pt.reference,Xe.reference,ce),[Xe.reference,Ae.reference,we.reference,pt.reference,ce]),tt=c.useMemo(()=>St(us,Ae.floating,we.floating,pt.floating),[Ae.floating,we.floating,pt.floating]),yt=we.item??We;qb(()=>{fe.update({popupProps:tt,triggerProps:Je})}),fe.useSyncedValues({id:F,modal:m,multiple:w,value:j,open:U,mounted:he,transitionStatus:ge,popupProps:tt,triggerProps:Je,items:v,itemToStringLabel:x,itemToStringValue:S,isItemEqualToValue:R,openMethod:pe});const bt=c.useMemo(()=>({store:fe,floatingContext:Be,required:y,disabled:T,readOnly:f,multiple:w,highlightItemOnHover:E,setValue:je,setOpen:ct,listRef:V,popupRef:H,scrollHandlerRef:G,handleScrollArrowVisibility:Ye,scrollArrowsMountedCountRef:ue,itemProps:yt,valueRef:ne,valuesRef:te,labelsRef:J,typingRef:Q,selectionRef:xe,firstItemTextRef:ee,selectedItemTextRef:ie,validation:L,onOpenChangeComplete:b,alignItemWithTriggerActiveRef:ae,initialValueRef:st}),[fe,Be,y,T,f,w,E,je,ct,yt,L,b,Ye]),Xt=Dt(h,L.inputRef),lt=w?void 0:_,ht=c.useMemo(()=>!w||!Array.isArray(j)||!_?null:j.map(Pe=>{const ze=Xn(Pe,S);return K.jsx("input",{type:"hidden",form:u,name:_,value:ze,disabled:T},ze)}),[w,j,u,_,S,T]);return K.jsxs(jd.Provider,{value:bt,children:[k,K.jsx("input",{...L.getValidationProps(T,{onFocus(){var Pe;(Pe=fe.state.triggerElement)==null||Pe.focus({focusVisible:!0})},onChange(Pe){if(Pe.nativeEvent.defaultPrevented||T||f)return;const ze=Pe.currentTarget.value,wt=Re(Rt,Pe.nativeEvent);function zt(){if(w)return;const Et=ze.toLowerCase();let Vt=te.current.findIndex(So=>Xn(So,S).toLowerCase()===Et||Wd(So,x).toLowerCase()===Et);Vt===-1&&(Vt=te.current.findIndex((So,Mn)=>{const Zo=J.current[Mn];return Zo!=null&&Zo.toLowerCase()===Et}));const Ko=te.current[Vt];Ko!=null&&je(Ko,wt)}fe.set("forceMount",!0),queueMicrotask(zt)}}),id:F&&lt==null?`${F}-hidden-input`:void 0,form:u,name:lt,autoComplete:d,value:be,disabled:T,required:y&&!(w&&_e),readOnly:f,ref:Xt,style:_?ta:Bo,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),ht]})}function av(e,t){return e??t}const cv=400,lv={...Lr,...bs,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},Bk=c.forwardRef(function(t,n){var Q;const{render:o,className:r,id:s,disabled:i=!1,nativeButton:a=!0,style:l,...u}=t,{setTouched:d,setFocused:p,validationMode:f,state:y,disabled:m}=vo(),{labelId:g}=Yo(),{store:h,setOpen:b,selectionRef:v,validation:w,readOnly:x,required:S,alignItemWithTriggerActiveRef:R,disabled:E}=qt(),k=m||E||i,M=Ee(h,Ce.open),C=Ee(h,Ce.mounted),O=Ee(h,Ce.value),I=Ee(h,Ce.triggerProps),D=Ee(h,Ce.positionerElement),N=Ee(h,Ce.listElement),P=Ee(h,Ce.popupSide),z=Ee(h,Ce.id),L=Ee(h,Ce.labelId),A=Ee(h,Ce.hasSelectedValue),F=C&&D?P:null,T=s??z,_=av(g,L);xs({id:T});const j=Ze(D),$=c.useRef(null),{getButtonProps:U,buttonRef:Y}=Tt({disabled:k,native:a}),V=h.useStateSetter("triggerElement"),J=Ge(),H=Ge(),G=Ge();c.useEffect(()=>{if(M)return G.start(cv,()=>{v.current.allowUnselectedMouseUp=!0,v.current.allowSelectedMouseUp=!0}),()=>{G.clear()};v.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},H.clear()},[M,v,H,G]);const ue=St(I,{id:T,role:"combobox","aria-expanded":M,"aria-haspopup":"listbox","aria-controls":M?(N==null?void 0:N.id)??((Q=Fr(D))==null?void 0:Q.id):void 0,"aria-labelledby":_,"aria-readonly":x||void 0,"aria-required":S||void 0,tabIndex:k?-1:0,onFocus(ee){p(!0),M&&R.current&&b(!1,Re(Rt,ee.nativeEvent)),J.start(0,()=>{h.set("forceMount",!0)})},onBlur(ee){ve(D,ee.relatedTarget)||(d(!0),p(!1),f==="onBlur"&&w.commit(O))},onMouseDown(ee){if(M)return;const ie=Te(ee.currentTarget);function xe(ae){if(!$.current)return;const he=ae.target;ve($.current,he)||ve(j.current,he)||zd(ae,$.current)||b(!1,Re(Bi,ae))}H.start(0,()=>{ie.addEventListener("mouseup",xe,{once:!0})})}},u,U),ne=w.getValidationProps(k,ue);ne.role="combobox";const te={...y,open:M,disabled:k,value:O,readOnly:x,popupSide:F,placeholder:!A};return ke("button",t,{ref:[n,$,Y,V],state:te,stateAttributesMapping:lv,props:ne})}),uv={value:()=>null},Wk=c.forwardRef(function(t,n){const{className:o,render:r,children:s,placeholder:i,style:a,...l}=t,{store:u,valueRef:d}=qt(),p=Ee(u,Ce.value),f=Ee(u,Ce.items),y=Ee(u,Ce.itemToStringLabel),m=Ee(u,Ce.hasSelectedValue),g=!m&&i!=null&&s==null,h=Ee(u,Ce.hasNullItemLabel,g),b={value:p,placeholder:!m};let v=null;return typeof s=="function"?v=s(p):s!=null?v=s:g&&!h?v=i:Array.isArray(p)?v=rv(p,f,y):v=Ud(p,f,y),ke("span",t,{state:b,ref:[n,d],props:[{children:v},l],stateAttributesMapping:uv})}),Uk=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{store:a}=qt(),u={open:Ee(a,Ce.open)};return ke("span",t,{state:u,ref:n,props:[{"aria-hidden":!0,children:"▼"},i],stateAttributesMapping:Hi})}),Gk=c.forwardRef(function(t,n){const{store:o}=qt(),r=Ee(o,Ce.mounted),s=Ee(o,Ce.forceMount);return r||s?K.jsx(aa,{ref:n,...t}):null}),Gd=c.createContext(void 0);function Aa(){const e=c.useContext(Gd);if(!e)throw new Error(Ne(59));return e}function Br(e,t){e&&Object.assign(e.style,t)}const Yd={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},dv={position:"fixed"},Yk=c.forwardRef(function(t,n){const{anchor:o,className:r,render:s,positionMethod:i,side:a,align:l,sideOffset:u,alignOffset:d,collisionBoundary:p="clipping-ancestors",collisionPadding:f,arrowPadding:y,sticky:m,disableAnchorTracking:g,alignItemWithTrigger:h=!0,collisionAvoidance:b=Zu,style:v,...w}=t,{store:x,listRef:S,labelsRef:R,alignItemWithTriggerActiveRef:E,selectedItemTextRef:k,valuesRef:M,initialValueRef:C,popupRef:O,setValue:I,floatingContext:D}=qt(),N=Ee(x,Ce.open),P=Ee(x,Ce.mounted),z=Ee(x,Ce.modal),L=Ee(x,Ce.value),A=Ee(x,Ce.openMethod),F=Ee(x,Ce.positionerElement),T=Ee(x,Ce.triggerElement),_=Ee(x,Ce.isItemEqualToValue),j=Ee(x,Ce.transitionStatus),$=c.useRef(null),U=c.useRef(null),[Y,V]=c.useState(h),J=P&&Y&&A!=="touch";!P&&Y!==h&&V(h),c.useImperativeHandle(E,()=>J),Ad((J||z)&&N,A==="touch",F,T);const H=Pa({anchor:o,floatingRootContext:D,positionMethod:i,mounted:P,side:a,sideOffset:u,align:l,alignOffset:d,arrowPadding:y,collisionBoundary:p,collisionPadding:f,sticky:m,disableAnchorTracking:g??J,collisionAvoidance:b,keepMounted:!0}),G=J?"none":H.side,ue=J?dv:H.positionerStyles,ne={open:N,side:G,align:H.align,anchorHidden:H.anchorHidden};re(()=>{x.set("popupSide",H.side)},[x,H.side]);const te=x.useStateSetter("positionerElement"),Q=Ta(t,ne,{styles:ue,transitionStatus:j,props:w,refs:[n,te],hidden:!P,inert:!N}),ee=c.useRef(0),ie=le(ae=>{if(M.current.length===0)return;const he=ee.current;if(ee.current=ae.size,ae.size===he)return;const oe=Re(Rt);if(he!==0&&!x.state.multiple&&L!==null&&Cr(M.current,L,_)===-1){const de=C.current,fe=de!=null&&Cr(M.current,de,_)!==-1?de:null;I(fe,oe),fe===null&&(x.set("selectedIndex",null),k.current=null)}if(he!==0&&x.state.multiple&&Array.isArray(L)){const ge=L.filter(de=>Cr(M.current,de,_)!==-1);ge.length!==L.length&&(I(ge,oe),ge.length===0&&(x.set("selectedIndex",null),k.current=null))}if(N&&J){x.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const ge={height:""};Br(F,ge),Br(O.current,ge)}}),xe=c.useMemo(()=>({...H,side:G,alignItemWithTriggerActive:J,setControlledAlignItemWithTrigger:V,scrollUpArrowRef:$,scrollDownArrowRef:U}),[H,G,J,V]);return K.jsx(gs,{elementsRef:S,labelsRef:R,onMapChange:ie,children:K.jsxs(Gd.Provider,{value:xe,children:[P&&z&&K.jsx(Ma,{inert:hs(!N),cutout:T}),Q]})})}),ur="base-ui-disable-scrollbar",Vo={className:ur,getElement(e){return K.jsx("style",{nonce:e,href:ur,precedence:"base-ui:low",children:`.${ur}{scrollbar-width:none}.${ur}::-webkit-scrollbar{display:none}`})}},fv=c.createContext(void 0),pv={disableStyleElements:!1};function Da(){return c.useContext(fv)??pv}const hv={...Xr,...Gt},qk=c.forwardRef(function(t,n){const{render:o,className:r,style:s,finalFocus:i,...a}=t,{store:l,popupRef:u,onOpenChangeComplete:d,setOpen:p,valueRef:f,firstItemTextRef:y,selectedItemTextRef:m,multiple:g,handleScrollArrowVisibility:h,scrollHandlerRef:b,listRef:v,highlightItemOnHover:w,floatingContext:x}=qt(),{side:S,align:R,alignItemWithTriggerActive:E,isPositioned:k,setControlledAlignItemWithTrigger:M}=Aa(),C=Ca()!=null,O=bo(),{nonce:I,disableStyleElements:D}=Da(),N=Ee(l,Ce.id),P=Ee(l,Ce.open),z=Ee(l,Ce.openMethod),L=Ee(l,Ce.mounted),A=Ee(l,Ce.popupProps),F=Ee(l,Ce.transitionStatus),T=Ee(l,Ce.triggerElement),_=Ee(l,Ce.positionerElement),j=Ee(l,Ce.listElement),$=c.useRef(!1),U=c.useRef(!1),Y=c.useRef({}),V=io(),J=le(ne=>{if(!_||!u.current||!U.current)return;const te=_.style.top==="0px",Q=_.style.bottom==="0px";if($.current||!E||!te&&!Q){h(ne);return}const ee=dl(_),ie=Io(_.getBoundingClientRect().height,"y",ee),xe=Te(_),ae=He(_),he=ae.getComputedStyle(_),oe=parseFloat(he.marginTop),ge=parseFloat(he.marginBottom),de=ul(ae.getComputedStyle(u.current)),ce=Math.min(xe.documentElement.clientHeight-oe-ge,de),fe=ne.scrollTop,B=dr(ne);let q=null;const se=be=>{_.style.height=`${be}px`},Z=te?B-fe:fe,X=Math.min(ie+Z,ce);if(Z<=Ot){const be=hn(Z,0,ce-ie);be>0&&se(ie+be),ne.scrollTop=te?B:0,ce-(ie+be)<=Ot&&($.current=!0),h(ne);return}if(ce-X>Ot)q=te?1/0:0;else if(Q&&fe<B){const be=ie+Z-ce;q=fe-(Z-be)}const pe=Math.ceil(X);if(pe!==0&&se(pe),q!=null){const be=hn(q,0,dr(ne));Math.abs(ne.scrollTop-be)>Ot&&(ne.scrollTop=be)}pe>=ce-Ot&&($.current=!0),h(ne)});c.useImperativeHandle(b,()=>J,[J]),kt({open:P,ref:u,onComplete(){P&&(d==null||d(!0))}});const H={open:P,transitionStatus:F,side:S,align:R};re(()=>{!_||!u.current||Object.keys(Y.current).length||(Y.current={top:_.style.top||"0",left:_.style.left||"0",right:_.style.right,height:_.style.height,bottom:_.style.bottom,minHeight:_.style.minHeight,maxHeight:_.style.maxHeight,marginTop:_.style.marginTop,marginBottom:_.style.marginBottom})},[u,_]),re(()=>{P||E||(U.current=!1,$.current=!1,Br(_,Y.current))},[P,E,_,u]),re(()=>{var Q,ee;const ne=u.current;if(!P||!T||!_||!ne||E&&!k||l.state.transitionStatus==="ending")return;if(U.current=!0,ne.style.removeProperty("--transform-origin"),!E){V.request(()=>h(j||ne));return}const te=gv(ne);try{let ie=m.current;ie!=null&&ie.isConnected||(ie=!Ce.hasSelectedValue(l.state)&&((Q=y.current)!=null&&Q.isConnected)?y.current:null);const xe=f.current,ae=He(_),he=ae.getComputedStyle(_),oe=ae.getComputedStyle(ne),ge=Te(T),de=dl(T),ce=fr(T.getBoundingClientRect(),de),fe=fr(_.getBoundingClientRect(),de),B=ce.height,q=j||ne,se=q.scrollHeight,Z=parseFloat(oe.borderBottomWidth),X=parseFloat(he.marginTop)||10,pe=parseFloat(he.marginBottom)||10,be=parseFloat(he.minHeight)||100,Le=ul(oe),Ue=5,qe=5,st=20,_e=ge.documentElement.clientHeight-X-pe,Qe=ge.documentElement.clientWidth,ct=_e-ce.bottom+B;let Se,je=O==="rtl"?ce.right-fe.width:ce.left,Ye=0;if(ie&&xe){const lt=fr(xe.getBoundingClientRect(),de);Se=fr(ie.getBoundingClientRect(),de),je=fe.left+(O==="rtl"?lt.right-Se.right:lt.left-Se.left);const ht=lt.top-ce.top+lt.height/2;Ye=Se.top-fe.top+Se.height/2-ht}const Be=ct+Ye+pe+Z;let Xe=Math.min(_e,Be);const pt=_e-X-pe,we=Be-Xe,Ae=Qe-qe;_.style.left=`${hn(je,Ue,Ae-fe.width)}px`,_.style.height=`${Xe}px`,_.style.maxHeight="none",_.style.marginTop=`${X}px`,_.style.marginBottom=`${pe}px`,ne.style.height="100%";const Je=dr(q),tt=we>=Je-Ot;tt&&(Xe=Math.min(_e,fe.height)-(we-Je));const yt=ce.top<st||ce.bottom>_e-st||Math.ceil(Xe)+Ot<Math.min(se,be),bt=(((ee=ae.visualViewport)==null?void 0:ee.scale)??1)!==1&&Yt;if(yt||bt){Br(_,Y.current),M(!1);return}const Xt=Math.max(be,Xe);if(tt){const lt=Math.max(0,_e-Be);_.style.top=fe.height>=pt?"0":`${lt}px`,_.style.height=`${Xe}px`,q.scrollTop=dr(q)}else _.style.bottom="0",q.scrollTop=we;if(Se){const lt=fe.top,ht=fe.height,Pe=Se.top+Se.height/2,ze=hn(ht>0?(Pe-lt)/ht*100:50,0,100);ne.style.setProperty("--transform-origin",`50% ${ze}%`)}(Xt===_e||Xe>=Le)&&($.current=!0),h(q),w&&l.state.selectedIndex===null&&l.state.activeIndex===null&&v.current[0]!=null&&l.set("activeIndex",0)}finally{te()}},[l,P,_,T,f,y,m,u,h,E,M,V,j,v,w,O,k]),c.useEffect(()=>{if(!E||!_||!P)return;const ne=He(_);function te(Q){p(!1,Re(U0,Q))}return Me(ne,"resize",te)},[p,E,_,P]);const G={...j?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":g||void 0,id:`${N}-list`},onKeyDown(ne){C&&fs.has(ne.key)&&ne.stopPropagation()},onScroll(ne){j||J(ne.currentTarget)},...E&&{style:j?{height:"100%"}:Yd},className:!j&&E?Vo.className:void 0},ue=ke("div",t,{ref:[n,u],state:H,stateAttributesMapping:hv,props:[A,G,ps(F),a]});return K.jsxs(c.Fragment,{children:[!D&&Vo.getElement(I),K.jsx(ua,{context:x,modal:!1,disabled:!L,openInteractionType:z,returnFocus:i,restoreFocus:!0,children:ue})]})});function ul(e){const t=e.maxHeight;return t.endsWith("px")&&parseFloat(t)||1/0}function dr(e){return Oa(e.scrollHeight,e.clientHeight)}function dl(e){return dd.getScale(e)}function Io(e,t,n){return e/n[t]}function fr(e,t){return Fo({x:Io(e.x,"x",t),y:Io(e.y,"y",t),width:Io(e.width,"x",t),height:Io(e.height,"y",t)})}const fl=[["transform","none"],["scale","1"],["translate","0 0"]];function gv(e){const{style:t}=e,n={};for(const[o,r]of fl)n[o]=t.getPropertyValue(o),t.setProperty(o,r,"important");return()=>{for(const[o]of fl){const r=n[o];r?t.setProperty(o,r):t.removeProperty(o)}}}const Xk=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{store:a,scrollHandlerRef:l,multiple:u}=qt(),{alignItemWithTriggerActive:d}=Aa(),p=Ee(a,Ce.hasScrollArrows),f=Ee(a,Ce.openMethod),m={id:`${Ee(a,Ce.id)}-list`,role:"listbox","aria-multiselectable":u||void 0,onScroll(h){var b;(b=l.current)==null||b.call(l,h.currentTarget)},...d&&{style:Yd},className:p&&f!=="touch"?Vo.className:void 0},g=a.useStateSetter("listElement");return ke("div",t,{ref:[n,g],props:[m,i]})}),qd=c.createContext(void 0);function Na(){const e=c.useContext(qd);if(!e)throw new Error(Ne(57));return e}const Kk=c.memo(c.forwardRef(function(t,n){const{render:o,className:r,style:s,value:i=null,label:a,disabled:l=!1,nativeButton:u=!1,...d}=t,p=c.useRef(null),f=yo({guess:!0,label:a,textRef:p}),{store:y,itemProps:m,setOpen:g,setValue:h,selectionRef:b,typingRef:v,valuesRef:w,multiple:x,selectedItemTextRef:S,disabled:R,readOnly:E}=qt(),k=R||l,M=Ee(y,Ce.isActive,f.index),C=Ee(y,Ce.open),O=Ee(y,Ce.isSelected,i),I=Ee(y,Ce.isSelectedByFocus,f.index),D=Ee(y,Ce.isItemEqualToValue),N=f.index,P=c.useRef(null);re(()=>{const V=w.current;return V[N]=i,()=>{delete V[N]}},[N,i,w]),re(()=>{const V=y.state.value;let J=V;x&&Array.isArray(V)&&(J=V.length>0?V[V.length-1]:void 0),J!==void 0&&uo(i,J,D)&&(y.set("selectedIndex",N),p.current&&(S.current=p.current))},[N,x,D,y,i,S]);const z=c.useRef("mouse"),L=c.useRef(!1),{getButtonProps:A,buttonRef:F}=Tt({disabled:k,focusableWhenDisabled:!0,native:u,composite:!0}),T={disabled:k,selected:O,highlighted:M};function _(V){if(R||E)return;const J=y.state.value;if(x){const H=Array.isArray(J)?J:[],G=O?nv(H,i,D):[...H,i];h(G,Re(An,V))}else h(i,Re(An,V)),g(!1,Re(An,V))}function j(){b.current.dragY=0}const $={role:"option","aria-selected":O,tabIndex:C&&M?0:-1,onKeyDown(V){y.set("activeIndex",N),V.key===" "&&v.current&&V.preventDefault()},onClick(V){const J=z.current!=="touch",H=V.nativeEvent.pointerType,G=J&&Ji(V.nativeEvent)&&(H!==void 0||M),ue=J&&!G&&!L.current;L.current=!1,!(k||ue)&&_(V.nativeEvent)},onPointerEnter(V){z.current=V.pointerType},onPointerMove(V){if(V.pointerType==="mouse"&&V.buttons===1){const J=b.current;J.dragY+=V.movementY,J.dragY**2>=64&&(J.allowUnselectedMouseUp=!0)}},onPointerDown(V){z.current=V.pointerType,L.current=!0,j()},onMouseUp(){var H;if(j(),k||z.current==="touch"||L.current)return;const V=!b.current.allowSelectedMouseUp&&O,J=!b.current.allowUnselectedMouseUp&&!O;V||J||(L.current=!0,(H=P.current)==null||H.click(),L.current=!1)}},U=ke("div",t,{ref:[F,n,f.ref,P],state:T,props:[m,$,d,A]}),Y=c.useMemo(()=>({selected:O,index:N,textRef:p,selectedByFocus:I}),[O,N,p,I]);return K.jsx(qd.Provider,{value:Y,children:U})})),Zk=c.forwardRef(function(t,n){const{selected:o}=Na();return t.keepMounted||o?K.jsx(mv,{...t,ref:n}):null}),mv=c.memo(c.forwardRef((e,t)=>{const{render:n,className:o,style:r,keepMounted:s,...i}=e,{selected:a}=Na(),l=c.useRef(null),{transitionStatus:u,setMounted:d}=ln(a),f=ke("span",e,{ref:[t,l],state:{selected:a,transitionStatus:u},props:[{"aria-hidden":!0,children:"✔️"},i],stateAttributesMapping:Gt});return kt({open:a,ref:l,onComplete(){a||d(!1)}}),f})),Jk=c.memo(c.forwardRef(function(t,n){const{index:o,textRef:r,selectedByFocus:s}=Na(),{firstItemTextRef:i,selectedItemTextRef:a}=qt(),{render:l,className:u,style:d,...p}=t,f=c.useCallback(m=>{m&&(o===0&&(i.current=m),s&&(a.current=m))},[i,a,o,s]);return ke("div",t,{ref:[f,n,r],props:p})})),Xd=c.forwardRef(function(t,n){const{render:o,className:r,style:s,direction:i,keepMounted:a,...l}=t,u=i==="up",{store:d,popupRef:p,listRef:f,handleScrollArrowVisibility:y,scrollArrowsMountedCountRef:m}=qt(),{side:g,scrollDownArrowRef:h,scrollUpArrowRef:b}=Aa(),v=u?Ce.scrollUpArrowVisible:Ce.scrollDownArrowVisible,w=Ee(d,v),x=Ee(d,Ce.openMethod),S=w&&x!=="touch",R=Ge(),E=u?b:h,{mounted:k,transitionStatus:M,setMounted:C}=ln(S);re(()=>(m.current+=1,d.set("hasScrollArrows",!0),()=>{m.current=Math.max(0,m.current-1),m.current===0&&d.set("hasScrollArrows",!1)}),[d,m]),kt({open:S,ref:E,onComplete(){S||C(!1)}});const D=ke("div",t,{ref:[n,E],state:{direction:i,visible:S,side:g,transitionStatus:M},props:[{"aria-hidden":!0,children:u?"▲":"▼",style:{position:"absolute"},onMouseMove(P){if(P.movementX===0&&P.movementY===0||R.isStarted())return;d.set("activeIndex",null);function z(){var j;const L=d.state.listElement??p.current;if(!L)return;d.set("activeIndex",null),y(L);const A=Oa(L.scrollHeight,L.clientHeight),F=fo(L.scrollTop,A),T=F===(u?0:A),_=f.current;if(F!==L.scrollTop&&(L.scrollTop=F),T){R.clear();return}if(_.length>0){const $=((j=E.current)==null?void 0:j.offsetHeight)||0;L.scrollTop=yv(_,u,F,L.clientHeight,$,A)}R.start(40,z)}R.start(40,z)},onMouseLeave(){R.clear()}},l],stateAttributesMapping:Gt});return k||a?D:null});function yv(e,t,n,o,r,s){if(t){let d=0;const p=n+r-Ot;for(let m=0;m<e.length;m+=1){const g=e[m];if(g&&g.offsetTop>=p){d=m;break}}const f=Math.max(0,d-1),y=e[f];return f<d&&y?fo(y.offsetTop-r,s):0}let i=e.length-1;const a=n+o-r+Ot;for(let d=0;d<e.length;d+=1){const p=e[d];if(p&&p.offsetTop+p.offsetHeight>a){i=Math.max(0,d-1);break}}const l=Math.min(e.length-1,i+1),u=e[l];return l>i&&u?fo(u.offsetTop+u.offsetHeight-o+r,s):s}const Qk=c.forwardRef(function(t,n){return K.jsx(Xd,{...t,ref:n,direction:"down"})}),eE=c.forwardRef(function(t,n){return K.jsx(Xd,{...t,ref:n,direction:"up"})}),bv=c.createContext(void 0),tE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,[a,l]=c.useState(),u=c.useMemo(()=>({labelId:a,setLabelId:l}),[a,l]),d=ke("div",t,{ref:n,props:[{role:"group","aria-labelledby":a},i]});return K.jsx(bv.Provider,{value:u,children:d})}),Kd=c.createContext(void 0);function Pn(e){const t=c.useContext(Kd);if(!e&&t===void 0)throw new Error(Ne(27));return t}const nE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,forceRender:i=!1,...a}=t,l=Pn(),u=l.useState("open"),d=l.useState("nested"),p=l.useState("mounted"),f=l.useState("transitionStatus");return ke("div",t,{state:{open:u,transitionStatus:f},ref:[l.context.backdropRef,n],stateAttributesMapping:ji,props:[{role:"presentation",hidden:!p,style:{userSelect:"none",WebkitUserSelect:"none"}},a],enabled:i||!d})}),oE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,disabled:i=!1,nativeButton:a=!0,...l}=t,u=Pn(),d=u.useState("open"),{getButtonProps:p,buttonRef:f}=Tt({disabled:i,native:a}),y={disabled:i};function m(g){d&&u.setOpen(!1,Re(W0,g.nativeEvent))}return ke("button",t,{state:y,ref:[n,f],props:[{onClick:m},l,p]})}),rE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,id:i,...a}=t,l=Pn(),u=rt(i);return l.useSyncedValueWithCleanup("descriptionElementId",u),ke("p",t,{ref:n,props:[{id:u},a]})}),Zd=c.createContext(void 0);function vv(){const e=c.useContext(Zd);if(e===void 0)throw new Error(Ne(26));return e}const xv={...Xr,...Gt,nestedDialogOpen(e){return e?{"data-nested-dialog-open":""}:null}},sE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,finalFocus:i,initialFocus:a,...l}=t,u=Pn(),d=u.useState("descriptionElementId"),p=u.useState("disablePointerDismissal"),f=u.useState("floatingRootContext"),y=u.useState("popupProps"),m=u.useState("modal"),g=u.useState("mounted"),h=u.useState("nested"),b=u.useState("nestedOpenDialogCount"),v=u.useState("open"),w=u.useState("openMethod"),x=u.useState("titleElementId"),S=u.useState("transitionStatus"),R=u.useState("role"),E=f.useState("floatingId");vv(),kt({open:v,ref:u.context.popupRef,onComplete(){var D,N;v&&((N=(D=u.context).onOpenChangeComplete)==null||N.call(D,!0))}});const k=a===void 0?G1(u.context.popupRef):a,M=b>0,C=u.useStateSetter("popupElement"),I=ke("div",t,{state:{open:v,nested:h,transitionStatus:S,nestedDialogOpen:M},props:[y,{id:E,"aria-labelledby":x,"aria-describedby":d,role:R,...us,hidden:!g,onKeyDown(D){fs.has(D.key)&&D.stopPropagation()},style:{"--nested-dialogs":b}},l],ref:[n,u.context.popupRef,C],stateAttributesMapping:xv});return K.jsx(ua,{context:f,openInteractionType:w,disabled:!g,closeOnFocusOut:!p,initialFocus:k,returnFocus:i,modal:m!==!1,restoreFocus:"popup",children:I})}),iE=c.forwardRef(function(t,n){const{keepMounted:o=!1,...r}=t,s=Pn(),i=s.useState("mounted"),a=s.useState("modal"),l=s.useState("open");return i||o?K.jsx(Zd.Provider,{value:o,children:K.jsxs(aa,{ref:n,...r,children:[i&&a===!0&&K.jsx(Ma,{ref:s.context.internalBackdropRef,inert:hs(!l)}),t.children]})}):null});function wv({store:e,parentContext:t,isDrawer:n}){const o=e.useState("open"),r=e.useState("disablePointerDismissal"),s=e.useState("modal"),i=e.useState("popupElement"),a=e.useState("floatingRootContext"),[l,u]=c.useState(0),[d,p]=c.useState(0),f=l===0,y=is(a,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:s==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(m){if(!e.context.outsidePressEnabledRef.current||"button"in m&&m.button!==0)return!1;if("touches"in m){if(m.type==="touchend"){if(m.changedTouches.length!==1||m.touches.length!==0)return!1}else if(m.touches.length!==1)return!1}const g=et(m);if(f&&!r){if(s){const h=e.context.internalBackdropRef.current,b=e.context.backdropRef.current;return h||b?h===g||b===g||ve(g,i)&&!(g!=null&&g.hasAttribute("data-base-ui-portal")):!0}return!0}return!1},escapeKey:f});return Od(o&&s===!0,i),e.useContextCallback("onNestedDialogOpen",(m,g)=>{u(m),p(g)}),re(()=>(t!=null&&t.onNestedDialogOpen&&(o?t.onNestedDialogOpen(l+1,d+(n?1:0)):t.onNestedDialogOpen(0,0)),()=>{t!=null&&t.onNestedDialogOpen&&o&&t.onNestedDialogOpen(0,0)}),[n,o,l,d,t]),va(e,{activeTriggerProps:y.reference,inactiveTriggerProps:y.trigger,popupProps:y.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}const Sv={...Sa,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role};class Rv extends Uo{constructor(n,o,r){const s=new Go,i=kv(n,s,o,r);super(i,Ev(s),Sv);De(this,"setOpen",(n,o)=>{var s,i;if(o.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!n&&o.trigger==null&&this.state.activeTriggerId!=null&&(o.trigger=this.state.activeTriggerElement??void 0),(i=(s=this.context).onOpenChange)==null||i.call(s,n,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(n,o);const r={open:n};ga(r,n,o.trigger),this.update(r)})}}function kv(e,t,n,o=!1){const r={...xa(),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e};return r.floatingRootContext=vd(t,n,o),r}function Ev(e){return{popupRef:c.createRef(),backdropRef:c.createRef(),internalBackdropRef:c.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function Jd(e,t){const{children:n,open:o,defaultOpen:r=!1,onOpenChange:s,onOpenChangeComplete:i,disablePointerDismissal:a=!1,modal:l=!0,actionsRef:u,handle:d,triggerId:p,defaultTriggerId:f=null}=t,y=e==="drawer",m=e==="alert-dialog",g=m?!0:l,h=m||a,b=m?"alertdialog":"dialog",v=Pn(!0),w=v!=null,x={modal:g,disablePointerDismissal:h,nested:w,role:b},S=yd((O,I)=>new Rv({open:r,openProp:o,activeTriggerId:f,triggerIdProp:p,...x},O,I),!0);S.useControlledProp("openProp",o),S.useControlledProp("triggerIdProp",p),S.useSyncedValues(x),S.useContextCallback("onOpenChange",s),S.useContextCallback("onOpenChangeComplete",i);const R=S.useState("open"),E=S.useState("mounted"),k=S.useState("payload");X1(S,R),ya(S);const{forceUnmount:M}=ba(R,S);c.useImperativeHandle(u,()=>({unmount:M,close:()=>S.setOpen(!1,Re(Wi))}),[M,S]);const C=R||E;return K.jsxs(Kd.Provider,{value:S,children:[d&&K.jsx(ha,{handle:d,store:S}),C&&K.jsx(wv,{store:S,parentContext:v==null?void 0:v.context,isDrawer:y}),typeof n=="function"?n({payload:k}):n]})}function aE(e){return Jd("dialog",e)}const cE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,id:i,...a}=t,l=Pn(),u=rt(i);return l.useSyncedValueWithCleanup("titleElementId",u),ke("h2",t,{ref:n,props:[{id:u},a]})}),Cv=c.forwardRef(function(t,n){const{render:o,className:r,style:s,disabled:i=!1,nativeButton:a=!0,id:l,payload:u,handle:d,...p}=t,f=Pn(!0),m=Ra(d)??f;if(!m)throw new Error(Ne(79));const g=rt(l),h=m.useState("floatingRootContext"),b=m.useState("isOpenedByTrigger",g),v=m.useState("triggerPopupId",g),w=c.useRef(null),{registerTrigger:x,isMountedByThisTrigger:S}=ma(g,w,m,{payload:u}),{getButtonProps:R,buttonRef:E}=Tt({disabled:i,native:a}),k=da(h),M=_d(()=>m.select("open"),I=>{m.set("openMethod",I)}),C={disabled:i,open:b},O=m.useState("triggerProps",S);return ke("button",t,{state:C,ref:[E,n,x,w],props:[k.reference,O,M,{[Ku]:"",id:g,"aria-haspopup":"dialog","aria-expanded":b,"aria-controls":v},p,R],stateAttributesMapping:Hi})});function lE(e){return ke(e.defaultTagName??"div",e,e)}var Pv=Object.defineProperty,xo=(e,t)=>Pv(e,"name",{value:t,configurable:!0}),Qd=!!(typeof window<"u"&&window.document&&window.document.createElement);function Dn(e,t,{checkForDefaultPrevented:n=!0}={}){return xo(function(r){if(e==null||e(r),n===!1||!r||!r.defaultPrevented)return t==null?void 0:t(r)},"handleEvent")}xo(Dn,"composeEventHandlers");function Mv(e){var t;if(!Qd)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}xo(Mv,"getOwnerWindow");function mi(e){if(!Qd)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}xo(mi,"getOwnerDocument");function ef(e,t=!1){const{activeElement:n}=mi(e);if(!(n!=null&&n.nodeName))return null;if(tf(n)&&n.contentDocument)return ef(n.contentDocument.body,t);if(t){const o=n.getAttribute("aria-activedescendant");if(o){const r=mi(n).getElementById(o);if(r)return r}}return n}xo(ef,"getActiveElement");function tf(e){return e.tagName==="IFRAME"}xo(tf,"isFrame");var Tv=Object.defineProperty,La=(e,t)=>Tv(e,"name",{value:t,configurable:!0});function yi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}La(yi,"setRef");function nf(...e){return t=>{let n=!1;const o=e.map(r=>{const s=yi(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():yi(e[r],null)}}}}La(nf,"composeRefs");function wo(...e){return c.useCallback(nf(...e),e)}La(wo,"useComposedRefs");var Iv=Object.defineProperty,Ct=(e,t)=>Iv(e,"name",{value:t,configurable:!0});function Ov(e,t){const n=c.createContext(t);n.displayName=e+"Context";const o=Ct(s=>{const{children:i,...a}=s,l=c.useMemo(()=>a,Object.values(a));return K.jsx(n.Provider,{value:l,children:i})},"Provider");o.displayName=e+"Provider";function r(s,i={}){const{optional:a=!1}=i,l=c.useContext(n);if(l)return l;if(t!==void 0)return t;if(!a)throw new Error(`\`${s}\` must be used within \`${e}\``)}return Ct(r,"useContext"),[o,r]}Ct(Ov,"createContext");function of(e,t=[]){let n=[];function o(s,i){const a=c.createContext(i);a.displayName=s+"Context";const l=n.length;n=[...n,i];const u=Ct(p=>{var b;const{scope:f,children:y,...m}=p,g=((b=f==null?void 0:f[e])==null?void 0:b[l])||a,h=c.useMemo(()=>m,Object.values(m));return K.jsx(g.Provider,{value:h,children:y})},"Provider");u.displayName=s+"Provider";function d(p,f,y={}){var b;const{optional:m=!1}=y,g=((b=f==null?void 0:f[e])==null?void 0:b[l])||a,h=c.useContext(g);if(h)return h;if(i!==void 0)return i;if(!m)throw new Error(`\`${p}\` must be used within \`${s}\``)}return Ct(d,"useContext"),[u,d]}Ct(o,"createContext");const r=Ct(()=>{const s=n.map(i=>c.createContext(i));return Ct(function(a){const l=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])},"useScope")},"createScope");return r.scopeName=e,[o,rf(r,...t)]}Ct(of,"createContextScope");function rf(...e){const t=e[0];if(e.length===1)return t;const n=Ct(()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return Ct(function(s){const i=o.reduce((a,{useScope:l,scopeName:u})=>{const p=l(s)[`__scope${u}`];return{...a,...p}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}Ct(rf,"composeContextScopes");var po=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},Av=Object.defineProperty,Dv=(e,t)=>Av(e,"name",{value:t,configurable:!0}),Nv=mo[" useId ".trim().toString()]||(()=>{}),Lv=0;function Pr(e){const[t,n]=c.useState(Nv());return po(()=>{e||n(o=>o??String(Lv++))},[e]),e||(t?`radix-${t}`:"")}Dv(Pr,"useId");var _v=Object.defineProperty,Fv=(e,t)=>_v(e,"name",{value:t,configurable:!0}),pl=mo[" useEffectEvent ".trim().toString()],hl=mo[" useInsertionEffect ".trim().toString()];function sf(e){if(typeof pl=="function")return pl(e);const t=c.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof hl=="function"?hl(()=>{t.current=e}):po(()=>{t.current=e}),c.useMemo(()=>((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)}),[])}Fv(sf,"useEffectEvent");var zv=Object.defineProperty,qo=(e,t)=>zv(e,"name",{value:t,configurable:!0}),Vv=mo[" useInsertionEffect ".trim().toString()]||po;function af({prop:e,defaultProp:t,onChange:n=qo(()=>{},"onChange"),caller:o}){const[r,s,i]=cf({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:r,u=c.useCallback(d=>{var p;if(a){const f=lf(d)?d(e):d;f!==e&&((p=i.current)==null||p.call(i,f))}else s(d)},[a,e,s,i]);return[l,u]}qo(af,"useControllableState");function cf({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),s=c.useRef(t);return Vv(()=>{s.current=t},[t]),c.useEffect(()=>{var i;r.current!==n&&((i=s.current)==null||i.call(s,n),r.current=n)},[n,r]),[n,o,s]}qo(cf,"useUncontrolledState");function lf(e){return typeof e=="function"}qo(lf,"isFunction");var gl=Symbol("RADIX:SYNC_STATE");function $v(e,t,n,o){const{prop:r,defaultProp:s,onChange:i,caller:a}=t,l=r!==void 0,u=sf(i),d=[{...n,state:s}];o&&d.push(o);const[p,f]=c.useReducer((h,b)=>{if(b.type===gl)return{...h,state:b.state};const v=e(h,b);return l&&!Object.is(v.state,h.state)&&u(v.state),v},...d),y=p.state,m=c.useRef(y);c.useEffect(()=>{m.current!==y&&(m.current=y,l||u(y))},[y,m,l]);const g=c.useMemo(()=>r!==void 0?{...p,state:r}:p,[p,r]);return c.useEffect(()=>{l&&!Object.is(r,p.state)&&f({type:gl,state:r})},[r,p.state,l]),[g,f]}qo($v,"useControllableStateReducer");var Hv=Object.defineProperty,Ft=(e,t)=>Hv(e,"name",{value:t,configurable:!0});function _a(e){const t=c.forwardRef((n,o)=>{let{children:r,...s}=n,i=null,a=!1;const l=[];bi(r)&&typeof pr=="function"&&(r=pr(r._payload)),c.Children.forEach(r,f=>{var y;if(pf(f)){a=!0;const m=f;let g="child"in m.props?m.props.child:m.props.children;bi(g)&&typeof pr=="function"&&(g=pr(g._payload)),i=Bv(m,g),l.push((y=i==null?void 0:i.props)==null?void 0:y.children)}else l.push(f)}),i?i=c.cloneElement(i,void 0,l):!a&&c.Children.count(r)===1&&c.isValidElement(r)&&(i=r);const u=i?ff(i):void 0,d=wo(o,u);if(!i){if(r||r===0)throw new Error(a?Gv(e):Uv(e));return r}const p=df(s,i.props??{});return i.type!==c.Fragment&&(p.ref=o?d:u),c.cloneElement(i,p)});return t.displayName=`${e}.Slot`,t}Ft(_a,"createSlot");var uf=Symbol.for("radix.slottable");function jv(e){const t=Ft(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=uf,t}Ft(jv,"createSlottable");var Bv=Ft((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},"getSlottableElementFromSlottable");function df(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const l=s(...a);return r(...a),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}Ft(df,"mergeProps");function ff(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Ft(ff,"getElementRef");function pf(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===uf}Ft(pf,"isSlottable");var Wv=Symbol.for("react.lazy");function bi(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Wv&&"_payload"in e&&hf(e._payload)}Ft(bi,"isLazyComponent");function hf(e){return typeof e=="object"&&e!==null&&"then"in e}Ft(hf,"isPromiseLike");var Uv=Ft(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Gv=Ft(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),pr=mo[" use ".trim().toString()],Yv=Object.defineProperty,qv=(e,t)=>Yv(e,"name",{value:t,configurable:!0}),Xv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ss=Xv.reduce((e,t)=>{const n=_a(`Primitive.${t}`),o=c.forwardRef((r,s)=>{const{asChild:i,...a}=r,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),K.jsx(l,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function gf(e,t){e&&At.flushSync(()=>e.dispatchEvent(t))}qv(gf,"dispatchDiscreteCustomEvent");var Kv=Object.defineProperty,Zv=(e,t)=>Kv(e,"name",{value:t,configurable:!0});function ho(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)}),[])}Zv(ho,"useCallbackRef");var Jv=Object.defineProperty,it=(e,t)=>Jv(e,"name",{value:t,configurable:!0}),vi="dismissableLayer.update",Qv="dismissableLayer.pointerDownOutside",ex="dismissableLayer.focusOutside",ml,mf=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),tx=c.forwardRef(it(function(t,n){const{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:u,...d}=t,p=c.useContext(mf),[f,y]=c.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=c.useState({}),h=wo(n,y),b=Array.from(p.layers),[v]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),w=v?b.indexOf(v):-1,x=f?b.indexOf(f):-1,S=p.layersWithOutsidePointerEventsDisabled.size>0,R=x>=w,E=c.useRef(!1),k=bf(I=>{i==null||i(I),l==null||l(I),I.defaultPrevented||u==null||u()},{ownerDocument:m,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:E,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:c.useCallback(I=>{if(!(I instanceof Node))return!1;const D=[...p.branches].some(N=>N.contains(I));return R&&!D},[p.branches,R])}),M=vf(I=>{if(r&&E.current)return;const D=I.target;[...p.branches].some(P=>P.contains(D))||(a==null||a(I),l==null||l(I),I.defaultPrevented||u==null||u())},m),C=f?x===b.length-1:!1,O=ho(I=>{I.key==="Escape"&&(s==null||s(I),!I.defaultPrevented&&u&&(I.preventDefault(),u()))});return c.useEffect(()=>{if(C)return m.addEventListener("keydown",O,{capture:!0}),()=>m.removeEventListener("keydown",O,{capture:!0})},[m,C,O]),c.useEffect(()=>{if(f)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(ml=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(f)),p.layers.add(f),xi(),()=>{o&&(p.layersWithOutsidePointerEventsDisabled.delete(f),p.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=ml))}},[f,m,o,p]),c.useEffect(()=>()=>{f&&(p.layers.delete(f),p.layersWithOutsidePointerEventsDisabled.delete(f),xi())},[f,p]),c.useEffect(()=>{const I=it(()=>g({}),"handleUpdate");return document.addEventListener(vi,I),()=>document.removeEventListener(vi,I)},[]),K.jsx(Ss.div,{...d,ref:h,style:{pointerEvents:S?R?"auto":"none":void 0,...t.style},onFocusCapture:Dn(t.onFocusCapture,M.onFocusCapture),onBlurCapture:Dn(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Dn(t.onPointerDownCapture,k.onPointerDownCapture)})},"DismissableLayer"));function yf(){const e=c.useContext(mf),[t,n]=c.useState(null);return c.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}it(yf,"useDismissableLayerSurface");var nx=it(()=>!0,"IS_TRUE");function bf(e,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:s,shouldHandlePointerDownOutside:i=nx}=t,a=ho(e),l=c.useRef(!1),u=c.useRef(!1),d=c.useRef(new Map),p=c.useRef(()=>{});return c.useEffect(()=>{function f(){u.current=!1,r.current=!1,d.current.clear()}it(f,"resetOutsideInteraction");function y(){return Array.from(d.current.values()).some(Boolean)}it(y,"isOutsideInteractionIntercepted");function m(w){if(!u.current)return;const x=w.target;x instanceof Node&&[...s].some(R=>R.contains(x))||d.current.set(w.type,!0),w.type==="click"&&window.setTimeout(()=>{u.current&&p.current()},0)}it(m,"handleInteractionCapture");function g(w){u.current&&d.current.set(w.type,!1)}it(g,"handleInteractionBubble");const h=it(w=>{if(w.target&&!l.current){let x=function(){n.removeEventListener("click",p.current);const R=y();f(),R||Fa(Qv,a,S,{discrete:!0})};if(it(x,"handleAndDispatchPointerDownOutsideEvent"),!i(w.target)){n.removeEventListener("click",p.current),f(),l.current=!1;return}const S={originalEvent:w};u.current=!0,r.current=o&&w.button===0,d.current.clear(),!o||w.button!==0?x():(n.removeEventListener("click",p.current),p.current=x,n.addEventListener("click",p.current,{once:!0}))}else n.removeEventListener("click",p.current),f();l.current=!1},"handlePointerDown"),b=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const w of b)n.addEventListener(w,m,!0),n.addEventListener(w,g);const v=window.setTimeout(()=>{n.addEventListener("pointerdown",h)},0);return()=>{window.clearTimeout(v),n.removeEventListener("pointerdown",h),n.removeEventListener("click",p.current);for(const w of b)n.removeEventListener(w,m,!0),n.removeEventListener(w,g)}},[n,a,o,r,s,i]),{onPointerDownCapture:it(()=>l.current=!0,"onPointerDownCapture")}}it(bf,"usePointerDownOutside");function vf(e,t=globalThis==null?void 0:globalThis.document){const n=ho(e),o=c.useRef(!1);return c.useEffect(()=>{const r=it(s=>{s.target&&!o.current&&Fa(ex,n,{originalEvent:s},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:it(()=>o.current=!0,"onFocusCapture"),onBlurCapture:it(()=>o.current=!1,"onBlurCapture")}}it(vf,"useFocusOutside");function xi(){const e=new CustomEvent(vi);document.dispatchEvent(e)}it(xi,"dispatchUpdate");function Fa(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?gf(r,s):r.dispatchEvent(s)}it(Fa,"handleAndDispatchCustomEvent");var ox=Object.defineProperty,gt=(e,t)=>ox(e,"name",{value:t,configurable:!0}),Bs="focusScope.autoFocusOnMount",Ws="focusScope.autoFocusOnUnmount",yl={bubbles:!1,cancelable:!0},rx=c.forwardRef(gt(function(t,n){const{loop:o=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...a}=t,[l,u]=c.useState(null),d=ho(s),p=ho(i),f=c.useRef(null),y=wo(n,u),m=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let h=function(x){if(m.paused||!l)return;const S=x.target;l.contains(S)?f.current=S:Jt(f.current,{select:!0})},b=function(x){if(m.paused||!l)return;const S=x.relatedTarget;S!==null&&(l.contains(S)||Jt(f.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const R of x)R.removedNodes.length>0&&Jt(l)};gt(h,"handleFocusIn"),gt(b,"handleFocusOut"),gt(v,"handleMutations"),document.addEventListener("focusin",h),document.addEventListener("focusout",b);const w=new MutationObserver(v);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",b),w.disconnect()}}},[r,l,m.paused]),c.useEffect(()=>{if(l){bl.add(m);const h=document.activeElement;if(!l.contains(h)){const v=new CustomEvent(Bs,yl);l.addEventListener(Bs,d),l.dispatchEvent(v),v.defaultPrevented||(xf(Ef(za(l)),{select:!0}),document.activeElement===h&&Jt(l))}return()=>{l.removeEventListener(Bs,d),setTimeout(()=>{const v=new CustomEvent(Ws,yl);l.addEventListener(Ws,p),l.dispatchEvent(v),v.defaultPrevented||Jt(h??document.body,{select:!0}),l.removeEventListener(Ws,p),bl.remove(m)},0)}}},[l,d,p,m]);const g=c.useCallback(h=>{if(!o&&!r||m.paused)return;const b=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,v=document.activeElement;if(b&&v){const w=h.currentTarget,[x,S]=wf(w);x&&S?!h.shiftKey&&v===S?(h.preventDefault(),o&&Jt(x,{select:!0})):h.shiftKey&&v===x&&(h.preventDefault(),o&&Jt(S,{select:!0})):v===w&&h.preventDefault()}},[o,r,m.paused]);return K.jsx(Ss.div,{tabIndex:-1,...a,ref:y,onKeyDown:g})},"FocusScope"));function xf(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Jt(o,{select:t}),document.activeElement!==n)return}gt(xf,"focusFirst");function wf(e){const t=za(e),n=wi(t,e),o=wi(t.reverse(),e);return[n,o]}gt(wf,"getTabbableEdges");function za(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:gt(o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}gt(za,"getTabbableCandidates");function wi(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const o of e)if(!(n?!o.checkVisibility({checkVisibilityCSS:!0}):Sf(o,{upTo:t})))return o}gt(wi,"findVisible");function Sf(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}gt(Sf,"isHidden");function Rf(e){return e instanceof HTMLInputElement&&"select"in e}gt(Rf,"isSelectableInput");function Jt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Rf(e)&&t&&e.select()}}gt(Jt,"focus");var bl=kf();function kf(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Si(e,t),e.unshift(t)},remove(t){var n;e=Si(e,t),(n=e[0])==null||n.resume()}}}gt(kf,"createFocusScopesStack");function Si(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}gt(Si,"arrayRemove");function Ef(e){return e.filter(t=>t.tagName!=="A")}gt(Ef,"removeLinks");var sx=Object.defineProperty,ix=(e,t)=>sx(e,"name",{value:t,configurable:!0}),ax=c.forwardRef(ix(function(t,n){var l;const{container:o,...r}=t,[s,i]=c.useState(!1);po(()=>i(!0),[]);const a=o||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?At.createPortal(K.jsx(Ss.div,{...r,ref:n}),a):null},"Portal")),cx=Object.defineProperty,rn=(e,t)=>cx(e,"name",{value:t,configurable:!0});function Cf(e,t){return c.useReducer((n,o)=>t[n][o]??n,e)}rn(Cf,"useStateMachine");var Va=rn(e=>{const{present:t,children:n}=e,o=Pf(t),r=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),s=Mf(o.ref,Tf(r));return typeof n=="function"||o.isPresent?c.cloneElement(r,{ref:s}):null},"Presence");function Pf(e){const[t,n]=c.useState(),o=c.useRef(null),r=c.useRef(e),s=c.useRef("none"),i=c.useRef(void 0),a=e?"mounted":"unmounted",[l,u]=Cf(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{l==="mounted"?(s.current=i.current??Kn(o.current),i.current=void 0):s.current="none"},[l]),po(()=>{const d=o.current,p=r.current;if(p!==e){const y=s.current,m=Kn(d);e?(i.current=m,u("MOUNT")):m==="none"||(d==null?void 0:d.display)==="none"?u("UNMOUNT"):u(p&&y!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),po(()=>{if(t){let d;const p=t.ownerDocument.defaultView??window,f=rn(m=>{const h=Kn(o.current).includes(CSS.escape(m.animationName));if(m.target===t&&h&&(u("ANIMATION_END"),!r.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",d=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},"handleAnimationEnd"),y=rn(m=>{m.target===t&&(s.current=Kn(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{p.clearTimeout(d),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:c.useCallback(d=>{if(d){const p=getComputedStyle(d);o.current=p,i.current=Kn(p)}else o.current=null;n(d)},[])}}rn(Pf,"usePresence");function Ri(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}rn(Ri,"setRef");function Mf(...e){const t=c.useRef(e);return t.current=e,c.useCallback(n=>{const o=t.current;let r=!1;const s=o.map(i=>{const a=Ri(i,n);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<s.length;i++){const a=s[i];typeof a=="function"?a():Ri(o[i],null)}}},[])}rn(Mf,"useStableComposedRefs");function Kn(e){return(e==null?void 0:e.animationName)||"none"}rn(Kn,"getAnimationName");function Tf(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}rn(Tf,"getElementRef");var lx=Object.defineProperty,$a=(e,t)=>lx(e,"name",{value:t,configurable:!0}),hr=0,Ht=null;function ux(e){return Ha(),e.children}$a(ux,"FocusGuards");function Ha(){c.useEffect(()=>{Ht||(Ht={start:ki(),end:ki()});const{start:e,end:t}=Ht;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),hr++,()=>{hr===1&&(Ht==null||Ht.start.remove(),Ht==null||Ht.end.remove(),Ht=null),hr=Math.max(0,hr-1)}},[])}$a(Ha,"useFocusGuards");function ki(){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}$a(ki,"createFocusGuard");var Bt=function(){return Bt=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Bt.apply(this,arguments)};function If(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function dx(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var Mr="right-scroll-bar-position",Tr="width-before-scroll-bar",fx="with-scroll-bars-hidden",px="--removed-body-scroll-bar-size";function Us(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function hx(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var gx=typeof window<"u"?c.useLayoutEffect:c.useEffect,vl=new WeakMap;function mx(e,t){var n=hx(null,function(o){return e.forEach(function(r){return Us(r,o)})});return gx(function(){var o=vl.get(n);if(o){var r=new Set(o),s=new Set(e),i=n.current;r.forEach(function(a){s.has(a)||Us(a,null)}),s.forEach(function(a){r.has(a)||Us(a,i)})}vl.set(n,e)},[e]),n}function yx(e){return e}function bx(e,t){t===void 0&&(t=yx);var n=[],o=!1,r={read:function(){if(o)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(s){var i=t(s,o);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(o=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){o=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var d=i;i=[],d.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return r}function vx(e){e===void 0&&(e={});var t=bx(null);return t.options=Bt({async:!0,ssr:!1},e),t}var Of=function(e){var t=e.sideCar,n=If(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return c.createElement(o,Bt({},n))};Of.isSideCarExport=!0;function xx(e,t){return e.useMedium(t),Of}var Af=vx(),Gs=function(){},Rs=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:Gs,onWheelCapture:Gs,onTouchMoveCapture:Gs}),r=o[0],s=o[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,f=e.sideCar,y=e.noRelative,m=e.noIsolation,g=e.inert,h=e.allowPinchZoom,b=e.as,v=b===void 0?"div":b,w=e.gapMode,x=If(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,R=mx([n,t]),E=Bt(Bt({},x),r);return c.createElement(c.Fragment,null,d&&c.createElement(S,{sideCar:Af,removeScrollBar:u,shards:p,noRelative:y,noIsolation:m,inert:g,setCallbacks:s,allowPinchZoom:!!h,lockRef:n,gapMode:w}),i?c.cloneElement(c.Children.only(a),Bt(Bt({},E),{ref:R})):c.createElement(v,Bt({},E,{className:l,ref:R}),a))});Rs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Rs.classNames={fullWidth:Tr,zeroRight:Mr};var wx=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Sx(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=wx();return t&&e.setAttribute("nonce",t),e}function Rx(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function kx(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ex=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Sx())&&(Rx(t,n),kx(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Cx=function(){var e=Ex();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Df=function(){var e=Cx(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},Px={left:0,top:0,right:0,gap:0},Ys=function(e){return parseInt(e||"",10)||0},Mx=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Ys(n),Ys(o),Ys(r)]},Tx=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Px;var t=Mx(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Ix=Df(),no="data-scroll-locked",Ox=function(e,t,n,o){var r=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
778
+ .`.concat(fx,` {
764
779
  overflow: hidden `).concat(o,`;
765
780
  padding-right: `).concat(a,"px ").concat(o,`;
766
781
  }
@@ -794,9 +809,9 @@ var Op=Object.defineProperty;var rc=e=>{throw TypeError(e)};var Ap=(e,t,n)=>t in
794
809
  }
795
810
 
796
811
  body[`).concat(no,`] {
797
- `).concat(ux,": ").concat(a,`px;
812
+ `).concat(px,": ").concat(a,`px;
798
813
  }
799
- `)},xl=function(){var e=parseInt(document.body.getAttribute(no)||"0",10);return isFinite(e)?e:0},Tx=function(){c.useEffect(function(){return document.body.setAttribute(no,(xl()+1).toString()),function(){var e=xl()-1;e<=0?document.body.removeAttribute(no):document.body.setAttribute(no,e.toString())}},[])},Ix=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Tx();var s=c.useMemo(function(){return Cx(r)},[r]);return c.createElement(Px,{styles:Mx(s,!t,r,n?"":"!important")})},Ei=!1;if(typeof window<"u")try{var gr=Object.defineProperty({},"passive",{get:function(){return Ei=!0,!0}});window.addEventListener("test",gr,gr),window.removeEventListener("test",gr,gr)}catch{Ei=!1}var Bn=Ei?{passive:!1}:!1,Ox=function(e){return e.tagName==="TEXTAREA"},Nf=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ox(e)&&n[t]==="visible")},Ax=function(e){return Nf(e,"overflowY")},Dx=function(e){return Nf(e,"overflowX")},wl=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Lf(e,o);if(r){var s=_f(e,o),i=s[1],a=s[2];if(i>a)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},Nx=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},Lx=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Lf=function(e,t){return e==="v"?Ax(t):Dx(t)},_f=function(e,t){return e==="v"?Nx(t):Lx(t)},_x=function(e,t){return e==="h"&&t==="rtl"?-1:1},Fx=function(e,t,n,o,r){var s=_x(e,window.getComputedStyle(t).direction),i=s*o,a=n.target,l=t.contains(a),u=!1,d=i>0,p=0,f=0;do{if(!a)break;var y=_f(e,a),m=y[0],g=y[1],h=y[2],b=g-h-s*m;(m||b)&&Lf(e,a)&&(p+=b,f+=m);var v=a.parentNode;a=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&Math.abs(p)<1||!d&&Math.abs(f)<1)&&(u=!0),u},mr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Sl=function(e){return[e.deltaX,e.deltaY]},Rl=function(e){return e&&"current"in e?e.current:e},zx=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Vx=function(e){return`
814
+ `)},xl=function(){var e=parseInt(document.body.getAttribute(no)||"0",10);return isFinite(e)?e:0},Ax=function(){c.useEffect(function(){return document.body.setAttribute(no,(xl()+1).toString()),function(){var e=xl()-1;e<=0?document.body.removeAttribute(no):document.body.setAttribute(no,e.toString())}},[])},Dx=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Ax();var s=c.useMemo(function(){return Tx(r)},[r]);return c.createElement(Ix,{styles:Ox(s,!t,r,n?"":"!important")})},Ei=!1;if(typeof window<"u")try{var gr=Object.defineProperty({},"passive",{get:function(){return Ei=!0,!0}});window.addEventListener("test",gr,gr),window.removeEventListener("test",gr,gr)}catch{Ei=!1}var Bn=Ei?{passive:!1}:!1,Nx=function(e){return e.tagName==="TEXTAREA"},Nf=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Nx(e)&&n[t]==="visible")},Lx=function(e){return Nf(e,"overflowY")},_x=function(e){return Nf(e,"overflowX")},wl=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Lf(e,o);if(r){var s=_f(e,o),i=s[1],a=s[2];if(i>a)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},Fx=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},zx=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Lf=function(e,t){return e==="v"?Lx(t):_x(t)},_f=function(e,t){return e==="v"?Fx(t):zx(t)},Vx=function(e,t){return e==="h"&&t==="rtl"?-1:1},$x=function(e,t,n,o,r){var s=Vx(e,window.getComputedStyle(t).direction),i=s*o,a=n.target,l=t.contains(a),u=!1,d=i>0,p=0,f=0;do{if(!a)break;var y=_f(e,a),m=y[0],g=y[1],h=y[2],b=g-h-s*m;(m||b)&&Lf(e,a)&&(p+=b,f+=m);var v=a.parentNode;a=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&Math.abs(p)<1||!d&&Math.abs(f)<1)&&(u=!0),u},mr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Sl=function(e){return[e.deltaX,e.deltaY]},Rl=function(e){return e&&"current"in e?e.current:e},Hx=function(e,t){return e[0]===t[0]&&e[1]===t[1]},jx=function(e){return`
800
815
  .block-interactivity-`.concat(e,` {pointer-events: none;}
801
816
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
802
- `)},$x=0,Wn=[];function Hx(e){var t=c.useRef([]),n=c.useRef([0,0]),o=c.useRef(),r=c.useState($x++)[0],s=c.useState(Df)[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(r));var g=cx([e.lockRef.current],(e.shards||[]).map(Rl),!0).filter(Boolean);return g.forEach(function(h){return h.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),g.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(g,h){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var b=mr(g),v=n.current,w="deltaX"in g?g.deltaX:v[0]-b[0],x="deltaY"in g?g.deltaY:v[1]-b[1],S,R=g.target,E=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in g&&E==="h"&&R.type==="range")return!1;var k=window.getSelection(),M=k&&k.anchorNode,C=M?M===R||M.contains(R):!1;if(C)return!1;var O=wl(E,R);if(!O)return!0;if(O?S=E:(S=E==="v"?"h":"v",O=wl(E,R)),!O)return!1;if(!o.current&&"changedTouches"in g&&(w||x)&&(o.current=S),!S)return!0;var I=o.current||S;return Fx(I,h,g,I==="h"?w:x)},[]),l=c.useCallback(function(g){var h=g;if(!(!Wn.length||Wn[Wn.length-1]!==s)){var b="deltaY"in h?Sl(h):mr(h),v=t.current.filter(function(S){return S.name===h.type&&(S.target===h.target||h.target===S.shadowParent)&&zx(S.delta,b)})[0];if(v&&v.should){h.cancelable&&h.preventDefault();return}if(!v){var w=(i.current.shards||[]).map(Rl).filter(Boolean).filter(function(S){return S.contains(h.target)}),x=w.length>0?a(h,w[0]):!i.current.noIsolation;x&&h.cancelable&&h.preventDefault()}}},[]),u=c.useCallback(function(g,h,b,v){var w={name:g,delta:h,target:b,should:v,shadowParent:jx(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),d=c.useCallback(function(g){n.current=mr(g),o.current=void 0},[]),p=c.useCallback(function(g){u(g.type,Sl(g),g.target,a(g,e.lockRef.current))},[]),f=c.useCallback(function(g){u(g.type,mr(g),g.target,a(g,e.lockRef.current))},[]);c.useEffect(function(){return Wn.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Bn),document.addEventListener("touchmove",l,Bn),document.addEventListener("touchstart",d,Bn),function(){Wn=Wn.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,Bn),document.removeEventListener("touchmove",l,Bn),document.removeEventListener("touchstart",d,Bn)}},[]);var y=e.removeScrollBar,m=e.inert;return c.createElement(c.Fragment,null,m?c.createElement(s,{styles:Vx(r)}):null,y?c.createElement(Ix,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function jx(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Bx=yx(Af,Hx);var Ff=c.forwardRef(function(e,t){return c.createElement(Rs,Bt({},e,{ref:t,sideCar:Bx}))});Ff.classNames=Rs.classNames;var Wx=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Un=new WeakMap,yr=new WeakMap,br={},qs=0,zf=function(e){return e&&(e.host||zf(e.parentNode))},Ux=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=zf(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Gx=function(e,t,n,o){var r=Ux(t,Array.isArray(e)?e:[e]);br[n]||(br[n]=new WeakMap);var s=br[n],i=[],a=new Set,l=new Set(r),u=function(p){!p||a.has(p)||(a.add(p),u(p.parentNode))};r.forEach(u);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(f){if(a.has(f))d(f);else try{var y=f.getAttribute(o),m=y!==null&&y!=="false",g=(Un.get(f)||0)+1,h=(s.get(f)||0)+1;Un.set(f,g),s.set(f,h),i.push(f),g===1&&m&&yr.set(f,!0),h===1&&f.setAttribute(n,"true"),m||f.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",f,b)}})};return d(t),a.clear(),qs++,function(){i.forEach(function(p){var f=Un.get(p)-1,y=s.get(p)-1;Un.set(p,f),s.set(p,y),f||(yr.has(p)||p.removeAttribute(o),yr.delete(p)),y||p.removeAttribute(n)}),qs--,qs||(Un=new WeakMap,Un=new WeakMap,yr=new WeakMap,br={})}},Yx=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=Wx(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),Gx(o,r,n,"aria-hidden")):function(){return null}},qx=Object.defineProperty,un=(e,t)=>qx(e,"name",{value:t,configurable:!0}),ja="Dialog",[Vf,rE]=of(ja),[Xx,$n]=Vf(ja),sE=un(e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:i=!0}=e,a=c.useRef(null),l=c.useRef(null),[u,d]=af({prop:o,defaultProp:r??!1,onChange:s,caller:ja}),[p,f]=c.useState(0),[y,m]=c.useState(0);return K.jsx(Xx,{scope:t,triggerRef:a,contentRef:l,contentId:Pr(),titleId:Pr(),descriptionId:Pr(),titlePresent:p>0,descriptionPresent:y>0,setTitleCount:f,setDescriptionCount:m,open:u,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(g=>!g),[d]),modal:i,children:n})},"Dialog"),$f="DialogPortal",[Kx,Hf]=Vf($f,{forceMount:void 0}),iE=un(e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=$n($f,t);return K.jsx(Kx,{scope:t,forceMount:n,children:c.Children.map(o,i=>K.jsx(Va,{present:n||s.open,children:K.jsx(rx,{asChild:!0,container:r,children:i})}))})},"DialogPortal"),Ci="DialogOverlay",aE=c.forwardRef(un(function(t,n){const o=Hf(Ci,t.__scopeDialog),{forceMount:r=o.forceMount,...s}=t,i=$n(Ci,t.__scopeDialog);return i.modal?K.jsx(Va,{present:r||i.open,children:K.jsx(Qx,{...s,ref:n})}):null},"DialogOverlay")),Zx=_a("DialogOverlay.RemoveScroll"),Qx=c.forwardRef(un(function(t,n){const{__scopeDialog:o,...r}=t,s=$n(Ci,o),i=yf(),a=wo(n,i);return K.jsx(Ff,{as:Zx,allowPinchZoom:!0,shards:[s.contentRef],children:K.jsx(Ss.div,{"data-state":Ba(s.open),...r,ref:a,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),$o="DialogContent",cE=c.forwardRef(un(function(t,n){const o=Hf($o,t.__scopeDialog),{forceMount:r=o.forceMount,...s}=t,i=$n($o,t.__scopeDialog);return K.jsx(Va,{present:r||i.open,children:i.modal?K.jsx(Jx,{...s,ref:n}):K.jsx(e2,{...s,ref:n})})},"DialogContent")),Jx=c.forwardRef(un(function(t,n){const o=$n($o,t.__scopeDialog),r=c.useRef(null),s=wo(n,o.contentRef,r);return c.useEffect(()=>{const i=r.current;if(i)return Yx(i)},[]),K.jsx(jf,{...t,ref:s,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:Dn(t.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=o.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Dn(t.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:Dn(t.onFocusOutside,i=>i.preventDefault())})},"DialogContentModal")),e2=c.forwardRef(un(function(t,n){const o=$n($o,t.__scopeDialog),r=c.useRef(!1),s=c.useRef(!1);return K.jsx(jf,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,l;(a=t.onCloseAutoFocus)==null||a.call(t,i),i.defaultPrevented||(r.current||(l=o.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var u,d;(u=t.onInteractOutside)==null||u.call(t,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const a=i.target;((d=o.triggerRef.current)==null?void 0:d.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})},"DialogContentNonModal")),jf=c.forwardRef(un(function(t,n){const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...a}=t,l=$n($o,o);return Ha(),K.jsx(K.Fragment,{children:K.jsx(tx,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:K.jsx(Qv,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":Ba(l.open),...a,ref:n,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl"));function Ba(e){return e?"open":"closed"}un(Ba,"getState");function t2(e){const{open:t,defaultOpen:n,onOpenChange:o,disabled:r}=e,[s,i]=Lt({controlled:t,default:n,name:"Collapsible",state:"open"}),{mounted:a,setMounted:l,transitionStatus:u}=ln(s,!0,!0),d=rt(),[p,f]=c.useState(),y=p===null?void 0:p??d,m=le(g=>{const h=!s,b=Re(Rn,g.nativeEvent);o(h,b),!b.isCanceled&&i(h)});return c.useMemo(()=>({defaultPanelId:d,disabled:r,handleTrigger:m,mounted:a,open:s,panelId:y,setMounted:l,setOpen:i,setPanelIdState:f,transitionStatus:u}),[d,r,m,a,s,y,l,i,f,u])}const Bf=c.createContext(void 0);function Wf(){const e=c.useContext(Bf);if(e===void 0)throw new Error(Ne(15));return e}let Wa=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Nr.startingStyle]="startingStyle",e[e.endingStyle=Nr.endingStyle]="endingStyle",e})({}),n2=(function(e){return e.panelOpen="data-panel-open",e})({});const o2={[Wa.open]:""},r2={[Wa.closed]:""},s2={open(e){return e?{[n2.panelOpen]:""}:null}},i2={open(e){return e?o2:r2}},Uf={...i2,...Gt},lE=c.forwardRef(function(t,n){const{render:o,className:r,defaultOpen:s=!1,disabled:i=!1,onOpenChange:a,open:l,style:u,...d}=t,p=le(a),f=t2({open:l,defaultOpen:s,onOpenChange:p,disabled:i}),y=c.useMemo(()=>({open:f.open,disabled:f.disabled,transitionStatus:f.transitionStatus}),[f.open,f.disabled,f.transitionStatus]),m=c.useMemo(()=>({...f,onOpenChange:p,state:y}),[f,p,y]),g=ke("div",t,{state:y,ref:n,props:d,stateAttributesMapping:Uf});return K.jsx(Bf.Provider,{value:m,children:g})}),a2={...s2,...Gt},uE=c.forwardRef(function(t,n){const{panelId:o,open:r,handleTrigger:s,state:i,disabled:a}=Wf(),{className:l,disabled:u=a,render:d,nativeButton:p=!0,style:f,...y}=t,{getButtonProps:m,buttonRef:g}=Tt({disabled:u,focusableWhenDisabled:!0,native:p});return ke("button",t,{state:i,ref:[n,g],props:[{"aria-controls":r?o:void 0,"aria-expanded":r,onClick:s},y,m],stateAttributesMapping:a2})}),Po={height:void 0,width:void 0};function c2(e){const{externalRef:t,hiddenUntilFound:n,id:o,keepMounted:r,mounted:s,onOpenChange:i,open:a,setMounted:l,setOpen:u,transitionStatus:d}=e,p=c.useRef(null),f=c.useRef(null),[y,m]=c.useState(Po),g=c.useRef(Po),h=c.useRef(!1),b=c.useRef(a),v=c.useRef(!1),[w,x]=c.useState(!1),S=c.useRef(null),R=Dt(t,p),E=Ze(a),k=Ki(p),M=!a&&!s,C=w?"idle":d,O=a&&(b.current||v.current),I=!a&&s&&f.current==="css-animation"&&y.height===void 0&&y.width===void 0?g.current:y,D=n&&M&&f.current!=="css-animation",N=le((F,T=!0)=>{T&&(g.current=F),m(F)}),P=le(()=>{var F;(F=S.current)==null||F.call(S),S.current=null}),z=le(F=>{P(),S.current=()=>{S.current=null,F()}}),L=le(()=>{a&&s&&f.current==="css-animation"&&(v.current=!0)});re(()=>{!w||d==="starting"||x(!1)},[w,d]),c.useEffect(()=>()=>{L(),P()},[L,P]),re(()=>{const F=p.current;if(!F)return;!a&&S.current&&P();const T=l2(F,O);if(f.current=T,a&&d==="idle"&&b.current&&T==="css-animation"){g.current=Gn(F);return}if(a&&d==="starting"){const $=h.current;if(h.current=!1,T==="none"){N(Gn(F)),x(!0);return}if(T==="css-transition"){const V=u2(F);if(N(Gn(F)),!$)return V;const Q=vr(F,"transition-duration","0s");return z(Q),x(!0),V}N(Gn(F));const U=vr(F,"animation-name","none");if(!$){U();return}const Y=vr(F,"animation-duration","0s");U(),z(Y),x(!0);return}if(!a&&s&&(d==="idle"||d==="starting")){if(b.current=!1,v.current=!1,T==="none"){N(Po,!1),l(!1);return}N(Gn(F));return}if(d!=="ending")return;if(T==="none"){l(!1);return}const _=Gn(F);if(!(_.height>0||_.width>0)){l(!1);return}N(_),T==="css-animation"&&vr(F,"animation-name","none")()},[s,a,P,N,l,z,O,d]),kt({enabled:a&&s&&C==="idle",open:!0,ref:p,onComplete(){a&&N(Po,!1)}}),c.useEffect(()=>{if(a||!s||C!=="ending"||!p.current)return;const T=new AbortController;let _=-1;function j(){E.current||(l(!1),N(Po,!1))}return _=vt.request(()=>{k(j,T.signal)}),()=>{vt.cancel(_),T.abort()}},[E,s,a,C,k,N,l]),re(()=>{const F=p.current;!F||!n||!M||F.setAttribute("hidden","until-found")},[M,n]),c.useEffect(function(){const T=p.current;if(!T)return;function _(j){const $=Re(Rt,j);i(!0,$),!$.isCanceled&&(h.current=!0,u(!0))}return Me(T,"beforematch",_)},[i,u]);const A=r||n||s||a;return{height:I.height,props:{...D?{[Wa.startingStyle]:""}:void 0,hidden:M,id:o},ref:R,shouldPreventOpenAnimation:O,shouldRender:A,transitionStatus:C,width:I.width}}function Gn(e){return{height:e.scrollHeight,width:e.scrollWidth}}function l2(e,t){const n=He(e).getComputedStyle(e),o=(n.animationName.split(",").map(s=>s.trim()).some(s=>s!==""&&s!=="none")||t)&&kl(n.animationDuration),r=kl(n.transitionDuration);return o&&r||r?"css-transition":o?"css-animation":"none"}function kl(e){return e.split(",").map(t=>t.trim()).some(t=>t!==""&&Number.parseFloat(t)>0)}function vr(e,t,n){const o=e.style.getPropertyValue(t),r=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{if(o===""){e.style.removeProperty(t);return}e.style.setProperty(t,o,r)}}function u2(e){const t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(r=>{e.style.setProperty(r,"initial","important")});function n(){Object.entries(t).forEach(([r,s])=>{if(s===""){e.style.removeProperty(r);return}e.style.setProperty(r,s)})}const o=vt.request(n);return()=>{vt.cancel(o),n()}}let El=(function(e){return e.collapsiblePanelHeight="--collapsible-panel-height",e.collapsiblePanelWidth="--collapsible-panel-width",e})({});const dE=c.forwardRef(function(t,n){const{className:o,hiddenUntilFound:r,keepMounted:s,render:i,id:a,style:l,...u}=t,{defaultPanelId:d,mounted:p,onOpenChange:f,open:y,setMounted:m,setPanelIdState:g,setOpen:h,state:b,transitionStatus:v}=Wf(),w=r??!1,x=s??!1,S=a||void 0,R=S??d;re(()=>(g(L=>S??(L===null?void 0:L)),()=>{g(L=>L===S?null:L)}),[S,g]);const{height:E,props:k,ref:M,shouldPreventOpenAnimation:C,shouldRender:O,transitionStatus:I,width:D}=c2({externalRef:n,hiddenUntilFound:w,id:R,keepMounted:x,mounted:p,onOpenChange:f,open:y,setMounted:m,setOpen:h,transitionStatus:v}),N={...b,transitionStatus:I},P=du(l,N),z=ke("div",{...t,style:void 0},{state:N,ref:M,props:[k,{style:{[El.collapsiblePanelHeight]:E===void 0?"auto":`${E}px`,[El.collapsiblePanelWidth]:D===void 0?"auto":`${D}px`}},u,P?{style:P}:void 0,C?{style:{animationName:"none"}}:void 0],stateAttributesMapping:Uf});return O?z:null}),Gf=c.createContext(void 0);function ks(e){const t=c.useContext(Gf);if(t===void 0&&!e)throw new Error(Ne(72));return t}const d2={...Sa,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class f2 extends Uo{constructor(n,o,r){const s=new Go;super(p2(n,s,o,r),h2(s),d2);De(this,"setOpen",(n,o)=>{Ub(this,n,o,{extraState:{openChangeReason:o.reason}})})}cancelPendingOpen(n){this.state.floatingRootContext.dispatchOpenChange(!1,Re(Rn,n))}}function p2(e,t,n,o=!1){const r={...xa(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e};return r.floatingRootContext=vd(t,n,o),r}function h2(e){return{popupRef:c.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}const fE=pa(function(t){const{disabled:n=!1,defaultOpen:o=!1,open:r,disableHoverablePopup:s=!1,trackCursorAxis:i="none",actionsRef:a,onOpenChange:l,onOpenChangeComplete:u,handle:d,triggerId:p,defaultTriggerId:f=null,children:y}=t,m=yd((O,I)=>new f2({open:o,openProp:r,activeTriggerId:f,triggerIdProp:p},O,I));m.useControlledProp("openProp",r),m.useControlledProp("triggerIdProp",p),m.useContextCallback("onOpenChange",l),m.useContextCallback("onOpenChangeComplete",u);const g=m.useState("open"),h=!n&&g,b=m.useState("activeTriggerId"),v=m.useState("mounted"),w=m.useState("payload");m.useSyncedValues({trackCursorAxis:i,disableHoverablePopup:s,disabled:n}),ya(m,{closeOnActiveTriggerUnmount:!0});const{forceUnmount:x,transitionStatus:S}=ba(h,m),R=m.useState("isInstantPhase"),E=m.useState("instantType"),k=m.useState("lastOpenChangeReason"),M=c.useRef(null);re(()=>{g&&n&&m.setOpen(!1,Re(Tu))},[g,n,m]),re(()=>{S==="ending"&&k===Rt||S!=="ending"&&R?(E!=="delay"&&(M.current=E),m.set("instantType","delay")):M.current!==null&&(m.set("instantType",M.current),M.current=null)},[S,R,k,E,m]),re(()=>{h&&b==null&&m.set("payload",void 0)},[m,b,h]),c.useImperativeHandle(a,()=>({unmount:x,close:()=>m.setOpen(!1,Re(Wi))}),[x,m]);const C=h||v||!n&&i!=="none";return K.jsxs(Gf.Provider,{value:m,children:[d&&K.jsx(ha,{handle:d,store:m}),C&&K.jsx(g2,{store:m,disabled:n,trackCursorAxis:i}),typeof y=="function"?y({payload:w}):y]})});function g2({store:e,disabled:t,trackCursorAxis:n}){const o=e.useState("floatingRootContext"),r=is(o,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),s=H0(o,{enabled:!t&&n!=="none",axis:n==="none"?void 0:n}),i=c.useMemo(()=>St(s.reference,r.reference),[s.reference,r.reference]);return va(e,{activeTriggerProps:i,inactiveTriggerProps:i,popupProps:r.floating??We}),null}const Yf=c.createContext(void 0);function m2(){return c.useContext(Yf)}const Cl=600,qf="data-base-ui-tooltip-trigger";function Pl(e){if("composedPath"in e){const n=e.composedPath();for(let o=0;o<n.length;o+=1){const r=n[o];if(Oe(r))return r}}const t=e.target;return Oe(t)?t:null}function y2(e){let t=e;for(;t;){const n=t.closest(`[${qf}]`);if(n)return n;const o=t.getRootNode();t="host"in o&&Oe(o.host)?o.host:null}return null}const pE=gd(function(t,n){const{render:o,className:r,style:s,handle:i,payload:a,disabled:l,delay:u,closeOnClick:d=!0,closeDelay:p,id:f,...y}=t,m=ks(!0),h=Ra(i)??m;if(!h)throw new Error(Ne(82));const b=rt(f),v=h.useState("isTriggerActive",b),w=h.useState("isOpenedByTrigger",b),x=h.useState("floatingRootContext"),S=c.useRef(null),R=u??Cl,E=p??0,{registerTrigger:k,isMountedByThisTrigger:M}=ma(b,S,h,{payload:a,closeOnClick:d,closeDelay:E}),C=m2(),{delayRef:O,isInstantPhase:I,hasProvider:D}=u0(x,{open:w}),N=Ea(x);h.useSyncedValue("isInstantPhase",I);const P=h.useState("disabled"),z=l??P,L=Ze(z),A=h.useState("trackCursorAxis"),F=h.useState("disableHoverablePopup"),T=c.useRef(!1),_=Ge(),j=c.useRef(void 0);function $(){return D?vn(O.current,"open")===0?0:u??C??Cl:R}function U(J){const ee=S.current;if(!ee||!J)return!1;const ie=y2(J);return ie!==null&&ie!==ee&&ve(ee,ie)}function Y(J){const ee=U(J);return T.current=ee,ee&&(N.openChangeTimeout.clear(),N.restTimeout.clear(),N.restTimeoutPending=!1,_.clear()),ee}const V=kd(x,{enabled:!z,mouseOnly:!0,move:!1,handleClose:!F&&A!=="both"?Pd():null,restMs:$,delay(){return p==null&&D?{close:vn(O.current,"close")}:{close:E}},triggerElementRef:S,isActiveTrigger:v,isClosing:()=>h.select("transitionStatus")==="ending",shouldOpen(){return!T.current}}),Q=wd(x,{enabled:!z}).reference,H=J=>{const ee=T.current,ie=Pl(J),xe=Y(ie),ae=S.current,he=ae&&ie&&ve(ae,ie);if(xe&&h.select("open")&&h.select("lastOpenChangeReason")===ot){h.setOpen(!1,Re(ot,J));return}if(ee&&!xe&&he&&!L.current&&!h.select("open")&&ae&&mn(j.current)){const oe=()=>{!T.current&&!L.current&&!h.select("open")&&h.setOpen(!0,Re(ot,J,ae))},ge=$();ge===0?(_.clear(),oe()):_.start(ge,oe)}},G=h.useState("triggerProps",M);return ke("button",t,{state:{open:w},ref:[n,k,S],props:[V,Q,M||A!=="none"?G:void 0,{onMouseOver(J){H(J.nativeEvent)},onFocus(J){U(Pl(J.nativeEvent))&&J.preventBaseUIHandler()},onMouseLeave(){T.current=!1,_.clear(),j.current=void 0},onPointerEnter(J){j.current=J.pointerType},onPointerDown(J){j.current=J.pointerType,h.set("closeOnClick",d),d&&!h.select("open")&&h.cancelPendingOpen(J.nativeEvent)},onClick(J){d&&!h.select("open")&&h.cancelPendingOpen(J.nativeEvent)},id:b,"data-trigger-disabled":z?"":void 0,[qf]:z?void 0:""},y],stateAttributesMapping:Hi})}),Xf=c.createContext(void 0);function b2(){const e=c.useContext(Xf);if(e===void 0)throw new Error(Ne(70));return e}const v2=c.forwardRef(function(t,n){const{children:o,container:r,className:s,render:i,style:a,...l}=t,{node:u,subtree:d}=td({container:r,ref:n,componentProps:t,elementProps:l});return!d&&!u?null:K.jsxs(c.Fragment,{children:[d,u&&At.createPortal(o,u)]})}),hE=c.forwardRef(function(t,n){const{keepMounted:o=!1,...r}=t;return ks().useState("mounted")||o?K.jsx(Xf.Provider,{value:o,children:K.jsx(v2,{ref:n,...r})}):null}),Kf=c.createContext(void 0);function x2(){const e=c.useContext(Kf);if(e===void 0)throw new Error(Ne(71));return e}const gE=c.forwardRef(function(t,n){const{render:o,className:r,anchor:s,positionMethod:i="absolute",side:a="top",align:l="center",sideOffset:u=0,alignOffset:d=0,collisionBoundary:p="clipping-ancestors",collisionPadding:f=5,arrowPadding:y=5,sticky:m=!1,disableAnchorTracking:g=!1,collisionAvoidance:h=Qu,style:b,...v}=t,w=ks(),x=b2(),S=w.useState("open"),R=w.useState("mounted"),E=w.useState("trackCursorAxis"),k=w.useState("disableHoverablePopup"),M=w.useState("floatingRootContext"),C=w.useState("instantType"),O=w.useState("transitionStatus"),I=w.useState("adaptiveOrigin"),D=Pa({anchor:s,positionMethod:i,floatingRootContext:M,mounted:R,side:a,sideOffset:u,align:l,alignOffset:d,collisionBoundary:p,collisionPadding:f,sticky:m,arrowPadding:y,disableAnchorTracking:g,keepMounted:x,collisionAvoidance:h,adaptiveOrigin:I}),N=c.useMemo(()=>({open:S,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:E!=="none"?"tracking-cursor":C}),[S,D.side,D.align,D.anchorHidden,E,C]),P=Ta(t,N,{styles:D.positionerStyles,transitionStatus:O,props:v,refs:[n,w.useStateSetter("positionerElement")],hidden:!R,inert:!S||E==="both"||k});return K.jsx(Kf.Provider,{value:D,children:P})}),mE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,a=ks(),{side:l,align:u}=x2(),d=a.useState("open"),p=a.useState("instantType"),f=a.useState("transitionStatus"),y=a.useState("popupProps"),m=a.useState("floatingRootContext"),g=a.useState("disabled"),h=a.useState("closeDelay");kt({open:d,ref:a.context.popupRef,onComplete(){var x,S;d&&((S=(x=a.context).onOpenChangeComplete)==null||S.call(x,!0))}}),Rd(m,{enabled:!g,closeDelay:h});const b=a.useStateSetter("popupElement");return ke("div",t,{state:{open:d,side:l,align:u,instant:p,transitionStatus:f},ref:[n,a.context.popupRef,b],props:[us,y,ps(f),i],stateAttributesMapping:ji})}),yE=function(t){const{delay:n,closeDelay:o,timeout:r=400}=t,s=c.useMemo(()=>({open:n,close:o}),[n,o]);return K.jsx(Yf.Provider,{value:n,children:K.jsx(l0,{delay:s,timeoutMs:r,children:t.children})})};function Zf(e,t,n,o=!0,r){const[s,i]=c.useState(),a=rt(r?`${r}-label`:void 0),l=e??t??s;return re(()=>{const u=e||t||!o?void 0:w2(n.current,a);s!==u&&i(u)}),l}function w2(e,t){const n=S2(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function S2(e){if(!e)return;const t=e.parentElement;if(t&&t.tagName==="LABEL")return t;const n=e.id;if(n){const r=e.nextElementSibling;if(r&&r.htmlFor===n)return r}const o=e.labels;return o&&o[0]}const R2=c.createContext({disabled:!1});function k2(){return c.useContext(R2)}const E2=c.forwardRef(function(t,n){const{render:o,className:r,id:s,name:i,value:a,disabled:l=!1,onValueChange:u,defaultValue:d,autoFocus:p=!1,style:f,...y}=t,{state:m,name:g,disabled:h,setTouched:b,setDirty:v,validityData:w,setFocused:x,setFilled:S,validationMode:R,validation:E}=vo(),{clearErrors:k}=ws(),M=h||l,C=g??i,O={...m,disabled:M},{labelId:I}=Yo(),D=xs({id:s});re(()=>{var _;const T=a!=null;(_=E.inputRef.current)!=null&&_.value||T&&a!==""?S(!0):T&&a===""&&S(!1)},[E.inputRef,S,a]);const N=c.useRef(null);re(()=>{p&&N.current===dt(Te(N.current))&&x(!0)},[p,x]);const[P]=Lt({controlled:a,default:d,name:"FieldControl",state:"value"}),z=a!==void 0,L=z?P:void 0,A=le(()=>{var T;return(T=E.inputRef.current)==null?void 0:T.value});return vs(E.inputRef,D,L,A,!M,i),ke("input",t,{ref:[n,N],state:O,props:[{id:D,disabled:M,name:C,ref:E.inputRef,"aria-labelledby":I,autoFocus:p,...z?{value:L}:{defaultValue:d},onChange(T){const _=T.currentTarget.value;u==null||u(_,Re(Rt,T.nativeEvent)),v(_!==(w.initialValue??"")),S(_!==""),T.nativeEvent.defaultPrevented||(k(C),E.change(_))},onFocus(){x(!0)},onBlur(T){b(!0),x(!1),R==="onBlur"&&E.commit(T.currentTarget.value)},onKeyDown(T){T.currentTarget.tagName==="INPUT"&&T.key==="Enter"&&(b(!0),E.commit(T.currentTarget.value))}},y,T=>E.getValidationProps(M,T)],stateAttributesMapping:bs})}),bE=c.forwardRef(function(t,n){return K.jsx(E2,{ref:n,...t})});function Qf(e){return Array.isArray(e)?e.map(t=>Qf(t)).join(","):e==null?"":String(e)}const Ml=new Map;function C2(e,t){const n=JSON.stringify({locale:Qf(e),options:t}),o=Ml.get(n);if(o)return o;const r=new Intl.NumberFormat(e,t);return Ml.set(n,r),r}function Tl(e,t,n){return e==null?"":C2(t,n).format(e)}function P2(e,t,n){return(e-t)*100/(n-t)}const Jf=c.createContext(void 0);function ep(){const e=c.useContext(Jf);if(e===void 0)throw new Error(Ne(51));return e}const Ua={status(e){return{[`data-${e}`]:""}}},vE=c.forwardRef(function(t,n){const{format:o,getAriaValueText:r,locale:s,max:i=100,min:a=0,value:l,render:u,className:d,children:p,style:f,...y}=t,[m,g]=c.useState();let h="indeterminate",b=null,v=null,w="",x="indeterminate progress";if(l!=null&&Number.isFinite(l)){const M=P2(l,a,i);b=hn(Number.isNaN(M)?0:M,0,100),v=hn(l,a,i),h=v===i?"complete":"progressing",w=o?Tl(v,s,o):Tl(b/100,s,{style:"percent"}),x=w}const S=c.useMemo(()=>({status:h}),[h]),R={"aria-labelledby":m,"aria-valuemax":i,"aria-valuemin":a,"aria-valuenow":v??void 0,"aria-valuetext":r?r(w,l):x,role:"progressbar",children:K.jsxs(c.Fragment,{children:[p,K.jsx("span",{role:"presentation",style:Bo,children:"x"})]})},E=c.useMemo(()=>({formattedValue:w,percentageValue:b,setLabelId:g,state:S,value:l}),[w,b,g,S,l]),k=ke("div",t,{state:S,ref:n,props:[R,y],stateAttributesMapping:Ua});return K.jsx(Jf.Provider,{value:E,children:k})}),xE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{state:a}=ep();return ke("div",t,{state:a,ref:n,props:i,stateAttributesMapping:Ua})}),wE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{percentageValue:a,state:l}=ep(),u=a==null?{}:{insetInlineStart:0,height:"inherit",width:`${a}%`};return ke("div",t,{state:l,ref:n,props:[{style:u},i],stateAttributesMapping:Ua})}),tp=c.createContext(void 0);function Es(){const e=c.useContext(tp);if(e===void 0)throw new Error(Ne(53));return e}const M2=500,Pi=16;function gn(e,t,n){if(!e)return 0;const o=getComputedStyle(e),r=`${t}${n==="x"?"Inline":"Block"}`,s=parseFloat(o[`${r}Start`]);return n==="x"&&t==="margin"?s*2:s+parseFloat(o[`${r}End`])}const Yn=e=>t=>t?{[e]:""}:null,Ga={hasOverflowX:Yn("data-has-overflow-x"),hasOverflowY:Yn("data-has-overflow-y"),overflowXStart:Yn("data-overflow-x-start"),overflowXEnd:Yn("data-overflow-x-end"),overflowYStart:Yn("data-overflow-y-start"),overflowYEnd:Yn("data-overflow-y-end"),cornerHidden:()=>null},T2={x:0,y:0},Il={width:0,height:0},I2={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},O2={x:!0,y:!0,corner:!0},SE=c.forwardRef(function(t,n){const{render:o,className:r,overflowEdgeThreshold:s,style:i,...a}=t,{xStart:l,xEnd:u,yStart:d,yEnd:p}=A2(s),f=rt(),y=Ge(),m=Ge(),{nonce:g,disableStyleElements:h}=Da(),[b,v]=c.useState(!1),[w,x]=c.useState(!1),[S,R]=c.useState(!1),[E,k]=c.useState(!1),[M,C]=c.useState(!1),[O,I]=c.useState(Il),[D,N]=c.useState(Il),[P,z]=c.useState(I2),[L,A]=c.useState(O2),F=c.useRef(null),T=c.useRef(null),_=c.useRef(null),j=c.useRef(null),$=c.useRef(null),U=c.useRef(null),Y=c.useRef(null),V=c.useRef(null),Q=c.useRef(0),H=c.useRef(0),G=c.useRef(0),ue=c.useRef(0),ne=c.useRef("vertical"),te=c.useRef(T2),J=c.useRef(null);function ee(se){const Z=se?R:x,X=se?y:m;Z(!0),X.start(M2,()=>{Z(!1)})}const ie=le(se=>{const Z=se.x-te.current.x,X=se.y-te.current.y;te.current=se,X!==0&&ee(!0),Z!==0&&ee(!1)}),xe=le(()=>{const se=T.current;se&&J.current===null&&(J.current=se.style.scrollSnapType,se.style.scrollSnapType="none")}),ae=le(se=>{if(se.button!==0)return;if(V.current!==null){const pe=ne.current==="vertical"?$.current:U.current;if(pe!=null&&pe.hasPointerCapture(V.current))return}V.current=se.pointerId,Q.current=se.clientY,H.current=se.clientX,ne.current=se.currentTarget.getAttribute("data-orientation");const Z=T.current;Z&&(G.current=Z.scrollTop,ue.current=Z.scrollLeft,xe());const X=ne.current==="vertical"?$.current:U.current;X==null||X.setPointerCapture(se.pointerId)}),he=le(se=>{if(se.pointerId!==V.current)return;V.current=null,(ne.current==="vertical"?R:x)(!1),J.current!==null&&(T.current&&(T.current.style.scrollSnapType=J.current),J.current=null);const Z=ne.current==="vertical"?$.current:U.current;Z!=null&&Z.hasPointerCapture(se.pointerId)&&Z.releasePointerCapture(se.pointerId)}),oe=le(se=>{if(se.pointerId!==V.current)return;if(se.buttons%2===0){he(se);return}const Z=T.current;if(!Z)return;const X=ne.current==="vertical",pe=X?$.current:U.current,be=X?_.current:j.current;if(!pe||!be)return;const Le=X?"y":"x",Ue=gn(be,"padding",Le),qe=gn(pe,"margin",Le),st=X?pe.offsetHeight:pe.offsetWidth,Je=(X?be.offsetHeight:be.offsetWidth)-st-Ue-qe,ct=X?se.clientY-Q.current:se.clientX-H.current,Se=Je<=0?0:ct/Je,je=X?Z.scrollHeight:Z.scrollWidth,Ye=X?Z.clientHeight:Z.clientWidth,Xe=(X?G.current:ue.current)+Se*(je-Ye);X?Z.scrollTop=Xe:Z.scrollLeft=Xe,se.preventDefault(),ee(X)});function ge(se){k(se.pointerType==="touch")}function de(se){if(ge(se),se.pointerType!=="touch"){const Z=ve(F.current,se.target);v(Z)}}const ce=c.useMemo(()=>({scrolling:w||S,hasOverflowX:!L.x,hasOverflowY:!L.y,overflowXStart:P.xStart,overflowXEnd:P.xEnd,overflowYStart:P.yStart,overflowYEnd:P.yEnd,cornerHidden:L.corner}),[w,S,L.x,L.y,L.corner,P]),fe={role:"presentation",onPointerEnter:de,onPointerMove:de,onPointerDown:ge,onPointerLeave(){v(!1)},style:{position:"relative","--scroll-area-corner-height":`${O.height}px`,"--scroll-area-corner-width":`${O.width}px`}},B=ke("div",t,{state:ce,ref:[n,F],props:[fe,a],stateAttributesMapping:Ga}),q=c.useMemo(()=>({handlePointerDown:ae,handlePointerMove:oe,handlePointerUp:he,handleScroll:ie,disableViewportSnap:xe,cornerSize:O,setCornerSize:I,thumbSize:D,setThumbSize:N,hasMeasuredScrollbar:M,setHasMeasuredScrollbar:C,touchModality:E,cornerRef:Y,scrollingX:w,scrollingY:S,hovering:b,setHovering:v,viewportRef:T,scrollbarYRef:_,scrollbarXRef:j,thumbYRef:$,thumbXRef:U,rootId:f,hiddenState:L,setHiddenState:A,overflowEdges:P,setOverflowEdges:z,viewportState:ce,overflowEdgeThreshold:{xStart:l,xEnd:u,yStart:d,yEnd:p}}),[ae,oe,he,ie,xe,O,D,M,E,w,S,b,f,L,P,ce,l,u,d,p]);return K.jsxs(tp.Provider,{value:q,children:[!h&&Vo.getElement(g),B]})});function A2(e){const t=typeof e=="number"?{xStart:e,xEnd:e,yStart:e,yEnd:e}:e;return{xStart:Math.max(0,(t==null?void 0:t.xStart)||0),xEnd:Math.max(0,(t==null?void 0:t.xEnd)||0),yStart:Math.max(0,(t==null?void 0:t.yStart)||0),yEnd:Math.max(0,(t==null?void 0:t.yEnd)||0)}}const D2=c.createContext(void 0),np=["--scroll-area-overflow-x-start","--scroll-area-overflow-x-end","--scroll-area-overflow-y-start","--scroll-area-overflow-y-end"];let Ol=!1;function N2(){Ol||Yt||(typeof CSS<"u"&&"registerProperty"in CSS&&np.forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),Ol=!0)}const RE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{viewportRef:a,scrollbarYRef:l,scrollbarXRef:u,thumbYRef:d,thumbXRef:p,cornerRef:f,cornerSize:y,setCornerSize:m,setThumbSize:g,rootId:h,setHiddenState:b,hiddenState:v,setHasMeasuredScrollbar:w,handleScroll:x,touchModality:S,setHovering:R,setOverflowEdges:E,overflowEdgeThreshold:k,viewportState:M}=Es(),C=bo(),O=c.useRef(!0),I=c.useRef([NaN,NaN,NaN,NaN]),D=Ge(),N=Ge(),P=le(()=>{const T=a.current,_=l.current,j=u.current,$=d.current,U=p.current,Y=f.current;if(!T)return;const V=T.scrollHeight,Q=T.scrollWidth,H=T.clientHeight,G=T.clientWidth,ue=T.scrollTop,ne=T.scrollLeft,te=I.current,J=Number.isNaN(te[0]);if(te[0]=H,te[1]=V,te[2]=G,te[3]=Q,J&&w(!0),V===0||Q===0)return;const ee=L2(T),ie=ee.y,xe=ee.x,ae=G/Q,he=H/V,oe=Math.max(0,Q-G),ge=Math.max(0,V-H);let de=0,ce=0;xe||(de=fo(C==="rtl"?-ne:ne,oe),ce=oe-de);const fe=ie?0:fo(ue,ge),B=ie?0:ge-fe,q=xe?0:G,se=ie?0:H;let Z=0,X=0;!xe&&!ie&&(Z=(_==null?void 0:_.offsetWidth)||0,X=(j==null?void 0:j.offsetHeight)||0);const pe=y.width===0&&y.height===0,be=pe?Z:0,Le=pe?X:0,Ue=gn(j,"padding","x"),qe=gn(_,"padding","y"),st=gn(U,"margin","x"),_e=gn($,"margin","y"),Je=q-Ue-st,ct=se-qe-_e,Se=j?Math.min(j.offsetWidth-be,Je):Je,je=_?Math.min(_.offsetHeight-Le,ct):ct,Ye=Math.max(Pi,Se*ae),Be=Math.max(Pi,je*he);if(g(we=>xr(we,{width:Ye,height:Be})),_&&$){const we=_.offsetHeight-Be-qe-_e,Ae=Al($,"--scroll-area-thumb-height",ue,ge,V,Be,we);$.style.transform=`translate3d(0,${Ae}px,0)`}if(j&&U){const we=j.offsetWidth-Ye-Ue-st,Ae=C==="rtl"?-ne:ne,Qe=Al(U,"--scroll-area-thumb-width",Ae,oe,Q,Ye,we);U.style.transform=`translate3d(${C==="rtl"?-Qe:Qe}px,0,0)`}const Xe=[de,ce,fe,B];np.forEach((we,Ae)=>{T.style.setProperty(we,`${Xe[Ae]}px`)}),Y&&m(we=>xr(we,{width:Z,height:X})),b(we=>xr(we,ee));const pt={xStart:!xe&&de>k.xStart,xEnd:!xe&&ce>k.xEnd,yStart:!ie&&fe>k.yStart,yEnd:!ie&&B>k.yEnd};E(we=>xr(we,pt))});re(()=>{N2()},[]),re(()=>{queueMicrotask(P)},[P,v,C,k.xStart,k.xEnd,k.yStart,k.yEnd]),re(()=>{var T;(T=a.current)!=null&&T.matches(":hover")&&R(!0)},[a,R]),re(()=>{const T=a.current;if(typeof ResizeObserver>"u"||!T)return;let _=!1;const j=new ResizeObserver(()=>{if(!_){_=!0;const $=I.current;if($[0]===T.clientHeight&&$[1]===T.scrollHeight&&$[2]===T.clientWidth&&$[3]===T.scrollWidth)return}P()});return j.observe(T),N.start(0,()=>{const $=T.getAnimations({subtree:!0});$.length!==0&&Promise.allSettled($.map(U=>U.finished)).then(P).catch(()=>{})}),()=>{j.disconnect(),N.clear()}},[P,a,N]);function z(){O.current=!1}const L={role:"presentation",...h&&{"data-id":`${h}-viewport`},tabIndex:v.x&&v.y?-1:0,className:Vo.className,style:{overflow:"scroll"},onScroll(){a.current&&(P(),(S||!O.current)&&x({x:a.current.scrollLeft,y:a.current.scrollTop}),D.start(100,()=>{O.current=!0}))},onWheel:z,onPointerMove:z,onPointerEnter:z,onKeyDown:z},A=ke("div",t,{ref:[n,a],state:M,props:[L,i],stateAttributesMapping:Ga}),F=c.useMemo(()=>({computeThumbPosition:P}),[P]);return K.jsx(D2.Provider,{value:F,children:A})});function L2(e){const t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function xr(e,t){for(const n in t)if(e[n]!==t[n])return t;return e}function Al(e,t,n,o,r,s,i){const a=hn(n,0,o),l=n-a,u=Math.max(Pi,s*r/(r+Math.abs(l)));return e.style.setProperty(t,l?`${u}px`:""),(o?a/o*i:0)+(l>0?s-u:0)}const op=c.createContext(void 0);function _2(){const e=c.useContext(op);if(e===void 0)throw new Error(Ne(54));return e}const kE=c.forwardRef(function(t,n){const{render:o,className:r,orientation:s="vertical",keepMounted:i=!1,style:a,...l}=t,{hovering:u,scrollingX:d,scrollingY:p,hiddenState:f,scrollbarYRef:y,scrollbarXRef:m,viewportRef:g,thumbYRef:h,thumbXRef:b,handlePointerDown:v,handlePointerUp:w,handleScroll:x,disableViewportSnap:S,rootId:R,thumbSize:E,hasMeasuredScrollbar:k,viewportState:M}=Es(),C=s==="vertical",O={...M,hovering:u,scrolling:C?p:d,orientation:s},I=bo(),D=!k&&!i,N=C?f.y:f.x,P=i||!N;c.useEffect(()=>{if(!P)return;const A=g.current,F=C?y.current:m.current;if(!F)return;function T(_){if(!A||_.ctrlKey)return;const j=!C,$=j?"scrollLeft":"scrollTop",U=j?_.deltaX:_.deltaY;if(U===0)return;const Y=j?A.scrollWidth-A.clientWidth:A.scrollHeight-A.clientHeight,V=j&&I==="rtl"?-Y:0,Q=j&&I==="rtl"?0:Y,H=A[$];H<=V&&U<0||H>=Q&&U>0||(_.preventDefault(),A[$]=Math.min(Q,Math.max(V,H+U)),x({x:A.scrollLeft,y:A.scrollTop}))}return Me(F,"wheel",T,{passive:!1})},[I,x,C,m,y,P,g]);const z={...R&&{"data-id":`${R}-scrollbar`},onPointerDown(A){if(A.button!==0)return;const F=et(A.nativeEvent),T=C?h.current:b.current;if(T&&ve(T,F))return;const _=g.current;if(!_)return;const j=C?y.current:m.current;if(!T||!j)return;const $=C?"y":"x",U=gn(T,"margin",$),Y=gn(j,"padding",$),V=C?T.offsetHeight:T.offsetWidth,Q=j.getBoundingClientRect(),H=C?A.clientY-Q.top-V/2-Y+U/2:A.clientX-Q.left-V/2-Y+U/2,G=C?_.scrollHeight:_.scrollWidth,ue=C?_.clientHeight:_.clientWidth,te=(C?j.offsetHeight:j.offsetWidth)-V-Y-U;if(te<=0)return;const J=H/te,ee=G-ue;S(),C?_.scrollTop=J*ee:I==="rtl"?_.scrollLeft=-(1-J)*ee:_.scrollLeft=J*ee,x({x:_.scrollLeft,y:_.scrollTop}),v(A)},onPointerUp:w,onPointerCancel:w,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",visibility:D?"hidden":void 0,...C?{top:0,bottom:"var(--scroll-area-corner-height)",insetInlineEnd:0,"--scroll-area-thumb-height":`${E.height}px`}:{insetInlineStart:0,insetInlineEnd:"var(--scroll-area-corner-width)",bottom:0,"--scroll-area-thumb-width":`${E.width}px`}}},L=ke("div",t,{ref:[n,C?y:m],state:O,props:[z,l],stateAttributesMapping:Ga});return P?K.jsx(op.Provider,{value:s,children:L}):null}),EE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{thumbYRef:a,thumbXRef:l,handlePointerDown:u,handlePointerMove:d,handlePointerUp:p,scrollingX:f,scrollingY:y,hasMeasuredScrollbar:m}=Es(),g=_2(),h=g==="vertical";return ke("div",t,{ref:[n,h?a:l],state:{scrolling:h?y:f,orientation:g},props:[{onPointerDown:u,onPointerMove:d,onPointerUp:p,onPointerCancel:p,style:{visibility:m?void 0:"hidden",...h?{height:"var(--scroll-area-thumb-height)"}:{width:"var(--scroll-area-thumb-width)"}}},i]})}),CE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{cornerRef:a,cornerSize:l,hiddenState:u}=Es(),d=ke("div",t,{ref:[n,a],props:[{style:{position:"absolute",bottom:0,insetInlineEnd:0,width:l.width,height:l.height}},i]});return u.corner?null:d}),rp=c.createContext(void 0);function Cs(){const e=c.useContext(rp);if(e===void 0)throw new Error(Ne(64));return e}const Xo={tabActivationDirection:e=>({"data-activation-direction":e})},PE=c.forwardRef(function(t,n){const{className:o,defaultValue:r=0,onValueChange:s,orientation:i="horizontal",render:a,value:l,style:u,...d}=t,p=t.defaultValue!==void 0,f=c.useRef([]),[y,m]=c.useState(()=>new Map),[g,h]=Lt({controlled:l,default:r,name:"Tabs",state:"value"}),b=l!==void 0,[v,w]=c.useState(()=>new Map),x=c.useRef(void 0),S=c.useCallback(H=>Mi(v,H),[v]),[R,E]=c.useState(()=>({previousValue:g,tabActivationDirection:"none"})),{previousValue:k,tabActivationDirection:M}=R;let C=M,O=!1;k!==g&&(C=Dl(k,g,i,v),O=k!=null&&g!=null&&S(g)==null);const I=O?k:g,D=k!==I||M!==C;re(()=>{D&&E({previousValue:I,tabActivationDirection:C})},[I,D,C]);const N=le((H,G)=>{const ue=Dl(g,H,i,v);G.activationDirection=ue,s==null||s(H,G),!G.isCanceled&&h(H)}),P=le((H,G)=>{s==null||s(H,Re(G,void 0,void 0,{activationDirection:"none"}))}),z=le((H,G)=>(m(ue=>{const ne=new Map(ue);return ne.set(H,G),ne}),()=>{m(ue=>{if(ue.get(H)!==G)return ue;const ne=new Map(ue);return ne.delete(H),ne})})),L=c.useCallback(H=>y.get(H),[y]),A=c.useCallback(H=>{for(const G of v.values())if(H===G.value)return G.id},[v]),F=c.useMemo(()=>({getTabElementBySelectedValue:S,getTabIdByPanelValue:A,getTabPanelIdByValue:L,onValueChange:N,orientation:i,registerMountedTabPanel:z,setTabMap:w,tabActivationDirection:C,value:g}),[S,A,L,N,i,z,w,C,g]),T=c.useMemo(()=>{for(const H of v.values())if(H.value===g)return H},[v,g]),_=c.useMemo(()=>{for(const H of v.values())if(!H.disabled)return H.value},[v]),j=c.useRef(!p),$=c.useRef(r),U=c.useRef(p),Y=c.useRef(!1);re(()=>{var te;if(b)return;function H(J,ee){h(J),E({previousValue:J,tabActivationDirection:"none"}),P(J,ee),j.current=!1}if(v.size===0){Y.current&&g!==null&&!((te=x.current)!=null&&te.isConnected)&&H(null,vc);return}Y.current=!0,x.current=v.keys().next().value;const G=T==null?void 0:T.disabled,ue=T==null&&g!==null;if(!G&&g===$.current&&(U.current=!1),U.current&&G&&g===$.current)return;const ne=j.current;if(G||ue){const J=_??null;if(g===J){j.current=!1;return}let ee=vc;ne?ee=xc:G&&(ee=Tu),H(J,ee);return}ne&&T!=null&&(P(g,xc),j.current=!1)},[_,b,P,T,h,v,g]);const Q=ke("div",t,{state:{orientation:i,tabActivationDirection:C},ref:n,props:d,stateAttributesMapping:Xo});return K.jsx(rp.Provider,{value:F,children:K.jsx(gs,{elementsRef:f,children:Q})})});function Mi(e,t){for(const[n,o]of e.entries())if(t===o.value)return n;return null}function Dl(e,t,n,o){if(e==null||t==null)return"none";const[r,s,i]=n==="horizontal"?["left","left","right"]:["top","up","down"],a=Mi(o,e),l=Mi(o,t);if(a==null||l==null)return a!==l&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?t>e?i:s:"none";const u=a.getBoundingClientRect()[r],d=l.getBoundingClientRect()[r];return d<u?s:d>u?i:"none"}const sp="data-composite-item-active",ip=c.createContext(void 0);function ap(){const e=c.useContext(ip);if(e===void 0)throw new Error(Ne(65));return e}const ME=c.forwardRef(function(t,n){const{className:o,disabled:r=!1,render:s,value:i,id:a,nativeButton:l=!0,style:u,...d}=t,{value:p,getTabPanelIdByValue:f,onValueChange:y,orientation:m,tabActivationDirection:g}=Cs(),{activateOnFocus:h,registerTabResizeObserverElement:b,tabsListElement:v}=ap(),{highlightedIndex:w,onHighlightedIndexChange:x}=Yr(),S=rt(a),R=c.useMemo(()=>({disabled:r,id:S,value:i}),[r,S,i]),{compositeProps:E,compositeRef:k,index:M}=Vd({metadata:R}),C=i===p,O=c.useRef(!1),I=c.useRef(null),D=le(Y=>{var V;(V=I.current)==null||V.call(I),I.current=Y?b(Y):null});re(()=>{if(O.current){O.current=!1;return}if(!(C&&M>-1&&w!==M))return;const Y=v;if(Y!=null){const V=dt(Te(Y));if(V&&ve(Y,V))return}r||x(M)},[C,M,w,x,r,v]);const{getButtonProps:N,buttonRef:P}=Tt({disabled:r,native:l,focusableWhenDisabled:!0}),z=f(i),L=c.useRef(!1),A=c.useRef(!1);function F(Y){y(i,Re(Rt,Y.nativeEvent,void 0,{activationDirection:"none"}))}function T(Y){C||r||F(Y)}function _(Y){C||r||h&&(!L.current||A.current)&&F(Y)}function j(Y){if(C||r)return;L.current=!0,A.current=Y.button===0;const V=Te(Y.currentTarget);function Q(){L.current=!1,A.current=!1,V.removeEventListener("pointerup",Q),V.removeEventListener("pointercancel",Q)}V.addEventListener("pointerup",Q),V.addEventListener("pointercancel",Q)}return ke("button",t,{state:{disabled:r,active:C,orientation:m,tabActivationDirection:g},ref:[n,P,k,D],props:[E,{role:"tab","aria-controls":z,"aria-selected":C,id:S,onClick:T,onFocus:_,onPointerDown:j,[sp]:C?"":void 0,onKeyDownCapture(){O.current=!0}},d,N],stateAttributesMapping:Xo})}),F2="";function z2(){return Ke}function V2(){return!1}function $2(){return!0}function H2(){return cs.useSyncExternalStore(z2,V2,$2)}function j2(e){const{script:t}=e,{nonce:n}=Da();return H2()?K.jsx("script",{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var Nl;const B2={...Xo,activeTabPosition:()=>null,activeTabSize:()=>null},TE=c.forwardRef(function(t,n){const{className:o,render:r,renderBeforeHydration:s=!1,style:i,...a}=t,{getTabElementBySelectedValue:l,orientation:u,tabActivationDirection:d,value:p}=Cs(),{tabsListElement:f,registerIndicatorUpdateListener:y}=ap(),m=Hb();c.useEffect(()=>y(m),[y,m]);let g=0,h=0,b=0,v=0,w=0,x=0,S=!1;if(p!=null&&f!=null){const I=l(p);if(I!=null){S=!0;const{width:D,height:N}=ll(I),{width:P,height:z}=ll(f),L=I.getBoundingClientRect(),A=f.getBoundingClientRect(),F=P>0?A.width/P:1,T=z>0?A.height/z:1;if(F>Number.EPSILON&&T>Number.EPSILON){const j=L.left-A.left,$=L.top-A.top;g=j/F+f.scrollLeft-f.clientLeft,b=$/T+f.scrollTop-f.clientTop}else g=I.offsetLeft,b=I.offsetTop;w=D,x=N,h=f.scrollWidth-g-w,v=f.scrollHeight-b-x}}const R=S?{left:g,right:h,top:b,bottom:v}:null,E=S?{width:w,height:x}:null,k=S?{"--active-tab-left":`${g}px`,"--active-tab-right":`${h}px`,"--active-tab-top":`${b}px`,"--active-tab-bottom":`${v}px`,"--active-tab-width":`${w}px`,"--active-tab-height":`${x}px`}:void 0,M=S&&w>0&&x>0,O=ke("span",t,{state:{orientation:u,activeTabPosition:R,activeTabSize:E,tabActivationDirection:d},ref:n,props:[{role:"presentation",style:k,hidden:!M},a,{suppressHydrationWarning:!0}],stateAttributesMapping:B2});return p==null?null:K.jsxs(c.Fragment,{children:[O,s&&(Nl||(Nl=K.jsx(j2,{script:F2})))]})}),W2={...Xo,...Gt},IE=c.forwardRef(function(t,n){const{className:o,value:r,render:s,keepMounted:i=!1,style:a,...l}=t,{value:u,getTabIdByPanelValue:d,orientation:p,tabActivationDirection:f,registerMountedTabPanel:y}=Cs(),m=rt(),{ref:g,index:h}=yo(),b=r===u,{mounted:v,transitionStatus:w,setMounted:x}=ln(b),S=!v,R=d(r),E={hidden:S,orientation:p,tabActivationDirection:f,transitionStatus:w},k=c.useRef(null),M=ke("div",t,{state:E,ref:[n,g,k],props:[{"aria-labelledby":R,hidden:S,id:m,role:"tabpanel",tabIndex:b?0:-1,inert:hs(!b),"data-index":h},l],stateAttributesMapping:W2});return kt({open:b,ref:k,onComplete(){b||x(!1)}}),re(()=>{if(!(m==null||S&&!i))return y(r,m)},[S,i,r,m,y]),i||v?M:null}),U2=[];function G2(e){const{loopFocus:t=!0,orientation:n="both",grid:o,onLoop:r,direction:s,highlightedIndex:i,onHighlightedIndexChange:a,rootRef:l,enableHomeAndEndKeys:u=!1,stopEventPropagation:d,disabledIndices:p,modifierKeys:f=U2}=e,[y,m]=c.useState(0),g=o!=null,h=c.useRef(null),b=Dt(h,l),v=c.useRef([]),w=c.useRef(!1),x=i??y,S=le((C,O=!1)=>{if((a??m)(C),O){const I=v.current[C];Jc(h.current,I,s,n)}}),R=le(C=>{var N;if(C.size===0||w.current)return;w.current=!0;const O=Array.from(C.keys()),I=O.find(P=>P==null?void 0:P.hasAttribute(sp))??null,D=I?((N=C.get(I))==null?void 0:N.index)??-1:-1;if(D!==-1)S(D);else if(Vr(O,x,p)){const P=Jt(O,{disabledIndices:p});Ao(O,P)||S(P)}Jc(h.current,I,s,n)});re(()=>{if(p==null||i!=null||!w.current)return;const C=v.current;if(Vr(C,x,p)){const O=Jt(C,{disabledIndices:p});Ao(C,O)||S(O)}},[p,i,x,v,S]);const E=le((C,O,I)=>r?r(C,O,I,v):I),k=le(C=>{const O=C.key===pi||C.key===hi;if(!fs.has(C.key)||!u&&O||Y2(C,f)||!h.current)return;const D=s==="rtl",N=D?di:fi,P=D?fi:di,z=n==="vertical"?ui:N,L=n==="vertical"?li:P,A=et(C.nativeEvent);if(A!=null&&Qc(A)&&!Hd(A)){const U=A.selectionStart,Y=A.selectionEnd,V=A.value;if(U==null||C.shiftKey||U!==Y||C.key!==L&&U<V.length||C.key!==z&&U>0)return}let F=x;const T=Rr(v,p),_=ri(v,p);o!=null&&(F=o({disabledIndices:p,elementsRef:v,event:C,highlightedIndex:x,loopFocus:t,maxIndex:_,minIndex:T,onLoop:E,orientation:n,rtl:D}));const j=n!=="vertical"&&C.key===N||n!=="horizontal"&&C.key===ui,$=n!=="vertical"&&C.key===P||n!=="horizontal"&&C.key===li;u&&(C.key===pi?F=T:C.key===hi&&(F=_)),F===x&&(j||$)&&(t&&F===_&&j?(F=T,r&&(F=r(C,x,F,v))):t&&F===T&&$?(F=_,r&&(F=r(C,x,F,v))):F=Jt(v.current,{startingIndex:F,decrement:$,disabledIndices:p})),F!==x&&!Ao(v.current,F)&&(d&&C.stopPropagation(),(g||O||j||$)&&C.preventDefault(),S(F,!0),queueMicrotask(()=>{var U;(U=v.current[F])==null||U.focus()}))});return{props:{ref:b,onFocus(C){const O=h.current,I=et(C.nativeEvent);!O||I==null||!Qc(I)||I.setSelectionRange(0,I.value.length)},onKeyDown:k},highlightedIndex:x,onHighlightedIndexChange:S,elementsRef:v,onMapChange:R,relayKeyboardEvent:k}}function Y2(e,t){for(const n of i1)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function cp(e){const{render:t,className:n,style:o,refs:r=Nt,props:s=Nt,state:i=We,stateAttributesMapping:a,highlightedIndex:l,onHighlightedIndexChange:u,orientation:d,grid:p,loopFocus:f,onLoop:y,enableHomeAndEndKeys:m,onMapChange:g,stopEventPropagation:h=!0,rootRef:b,disabledIndices:v,modifierKeys:w,highlightItemOnHover:x=!1,tag:S="div",...R}=e,E=bo(),{props:k,highlightedIndex:M,onHighlightedIndexChange:C,elementsRef:O,onMapChange:I,relayKeyboardEvent:D}=G2({grid:p,loopFocus:f,onLoop:y,orientation:d,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:b,stopEventPropagation:h,enableHomeAndEndKeys:m,direction:E,disabledIndices:v,modifierKeys:w}),N=ke(S,e,{state:i,ref:r,props:[k,...s,R],stateAttributesMapping:a}),P=c.useMemo(()=>({highlightedIndex:M,onHighlightedIndexChange:C,highlightItemOnHover:x,relayKeyboardEvent:D}),[M,C,x,D]);return K.jsx(cu.Provider,{value:P,children:K.jsx(gs,{elementsRef:O,onMapChange:z=>{g==null||g(z),I(z)},children:N})})}const OE=c.forwardRef(function(t,n){const{activateOnFocus:o=!1,className:r,loopFocus:s=!0,render:i,style:a,...l}=t,{orientation:u,setTabMap:d,tabActivationDirection:p}=Cs(),[f,y]=c.useState(0),[m,g]=c.useState(null),h=c.useRef(new Set),b=c.useRef(new Set),v=c.useRef(null);re(()=>{if(typeof ResizeObserver>"u")return;const k=new ResizeObserver(()=>{h.current.forEach(M=>{M()})});return v.current=k,m&&k.observe(m),b.current.forEach(M=>{k.observe(M)}),()=>{k.disconnect(),v.current=null}},[m]);const w=le(k=>(h.current.add(k),()=>{h.current.delete(k)})),x=le(k=>{var M;return b.current.add(k),(M=v.current)==null||M.observe(k),()=>{var C;b.current.delete(k),(C=v.current)==null||C.unobserve(k)}}),S={orientation:u,tabActivationDirection:p},R={"aria-orientation":u==="vertical"?"vertical":void 0,role:"tablist"},E=c.useMemo(()=>({activateOnFocus:o,registerIndicatorUpdateListener:w,registerTabResizeObserverElement:x,tabsListElement:m}),[o,w,x,m]);return K.jsx(ip.Provider,{value:E,children:K.jsx(cp,{render:i,className:r,style:a,state:S,refs:[n,g],props:[R,l],stateAttributesMapping:Xo,highlightedIndex:f,enableHomeAndEndKeys:!0,loopFocus:s,orientation:u,onHighlightedIndexChange:y,onMapChange:d,disabledIndices:Nt})})});function AE(e){return Qd("alert-dialog",e)}const DE=Rv;function q2(e){if(!e)return null;for(const t of e.elements){const n=t.tagName;if(n==="BUTTON"||n==="INPUT"){const o=t;if(o.type==="submit")return o}}return null}function lp(e){return{checked(t){return e.indeterminate?{}:t?{"data-checked":""}:{"data-unchecked":""}},...bs}}const X2=c.createContext(void 0);function K2(){return c.useContext(X2)}const up=c.createContext(void 0);function Z2(){const e=c.useContext(up);if(e===void 0)throw new Error(Ne(14));return e}const Q2="data-parent",NE=c.forwardRef(function(t,n){const{checked:o,className:r,defaultChecked:s=!1,"aria-labelledby":i,disabled:a=!1,form:l,id:u,indeterminate:d=!1,inputRef:p,name:f,onCheckedChange:y,parent:m=!1,readOnly:g=!1,render:h,required:b=!1,uncheckedValue:v,value:w,nativeButton:x=!1,style:S,...R}=t,{clearErrors:E}=ws(),{disabled:k,name:M,setDirty:C,setFilled:O,setFocused:I,setTouched:D,state:N,validationMode:P,validityData:z,validation:L}=vo(),A=k2(),{labelId:F,controlId:T,registerControlId:_,getDescriptionProps:j}=Yo(),$=K2(),U=($==null?void 0:$.allValues)===void 0?void 0:$.parent,Y=U!==void 0,V=k||A.disabled||($==null?void 0:$.disabled)||a,Q=M??f,H=w??Q,G=rt(),ue=rt();let ne=u||T;Y&&(m?ne=ue:H!==void 0?ne=`${U.id}-${H}`:ne||(ne=ue));let te={};Y&&(m?te=U.getParentProps():H!==void 0&&(te=U.getChildProps(H)));const{checked:J=o,indeterminate:ee=d,onCheckedChange:ie,...xe}=te,ae=$==null?void 0:$.value,he=c.useRef(null),oe=at(()=>Symbol()),ge=c.useRef(!1),{getButtonProps:de,buttonRef:ce}=Tt({disabled:V,native:x}),fe=($==null?void 0:$.validation)??L,[B,q]=Lt({controlled:H!==void 0&&ae!==void 0&&!m?ae.includes(H):J,default:s,name:"Checkbox",state:"checked"}),se=Y?!!J:B,Z=Y&&ee||d;re(()=>{_!==Ke&&(ge.current=!0,_(oe.current,ne))},[ne,_,oe]),c.useEffect(()=>{const Se=oe.current;return()=>{!ge.current||_===Ke||(ge.current=!1,_(Se,void 0))}},[_,oe]),vs(he,G,B,void 0,!$&&!V,f);const X=c.useRef(null),pe=fe.registerInput,be=$?H:void 0,Le=c.useCallback(Se=>pe(Se,{controlRef:he,value:be}),[pe,be]),Ue=Dt(p,X,m?void 0:Le),qe=Zf(i,F,X,!x,ne??void 0);re(()=>{X.current&&(X.current.indeterminate=Z,B&&O(!0))},[B,Z,O]),ys(B,()=>{$||(E(Q),O(B),C(B!==z.initialValue),fe.change(B))});const st=St({checked:B,disabled:V,form:l,name:m?void 0:Q,id:x?void 0:ne??void 0,required:b,ref:Ue,style:Q?ta:Bo,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(Se){if(Se.nativeEvent.defaultPrevented)return;if(g){Se.preventDefault();return}const je=Se.currentTarget.checked,Ye=Re(Rt,Se.nativeEvent);if(y==null||y(je,Ye),!Ye.isCanceled&&(ie==null||ie(je,Ye),!Ye.isCanceled&&(q(je),H!==void 0&&$!==void 0&&!m&&!Y))){const Be=je?[...$.value,H]:$.value.filter(Xe=>Xe!==H);$.setValue(Be,Ye)}},onClick(Se){Se.stopPropagation()},onFocus(){var Se;(Se=he.current)==null||Se.focus()}},w!==void 0?{value:($?B&&w:w)||""}:We,j,Se=>fe.getValidationProps(V,Se));c.useEffect(()=>{if(!U||H===void 0)return;const Se=U.disabledStatesRef.current;return Se.set(H,V),()=>{Se.delete(H)}},[U,V,H]);const _e=c.useMemo(()=>({...N,checked:se,disabled:V,readOnly:g,required:b,indeterminate:Z}),[N,se,V,g,b,Z]),Je=lp(_e),ct=ke("span",t,{state:_e,ref:[ce,he,n],props:[{id:x?ne??void 0:G,role:"checkbox","aria-checked":Z?"mixed":se,"aria-readonly":g||void 0,"aria-required":b||void 0,"aria-labelledby":qe,[Q2]:m?"":void 0,onFocus(){V||I(!0)},onBlur(){const Se=X.current;Se&&(D(!0),I(!1),P==="onBlur"&&fe.commit($?ae:Se.checked))},onKeyDown(Se){var Ae;if(Se.key!=="Enter"||(Se.preventBaseUIHandler(),Se.defaultPrevented))return;const je=((Ae=X.current)==null?void 0:Ae.form)??null,Ye=Se.currentTarget,Be=Se.nativeEvent,Xe=Se.preventDefault,pt=Be.preventDefault;let we=!1;Se.preventDefault=()=>{we=!0,Xe.call(Se)},Be.preventDefault=()=>{we=!0,pt.call(Be)},pt.call(Be),He(Ye).queueMicrotask(()=>{var Qe;Se.preventDefault=Xe,Be.preventDefault=pt,we||(Qe=q2(je))==null||Qe.click()})},onClick(Se){if(g||V)return;Se.preventDefault();const je=X.current;je&&Qn(je,Se)}},R,xe,de,j,Se=>fe.getValidationProps(V,Se)],stateAttributesMapping:Je});return K.jsxs(up.Provider,{value:_e,children:[ct,!B&&!$&&Q&&!m&&v!==void 0&&K.jsx("input",{type:"hidden",form:l,name:Q,value:v,disabled:V}),K.jsx("input",{...st,suppressHydrationWarning:!0})]})}),LE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,keepMounted:i=!1,...a}=t,l=Z2(),u=l.checked||l.indeterminate,{mounted:d,transitionStatus:p,setMounted:f}=ln(u),y=c.useRef(null),m={...l,transitionStatus:p};kt({open:u,ref:y,onComplete(){u||f(!1)}});const h={...lp(l),...Gt},b=i||d,v=ke("span",t,{ref:[n,y],state:m,stateAttributesMapping:h,props:a});return b?v:null});function _E(e){const[t,n]=c.useState({getBoundingClientRect(){return DOMRect.fromRect({width:0,height:0,x:0,y:0})}}),o=c.useRef(null),r=c.useRef(null),s=c.useRef(null),i=c.useRef(null),a=c.useRef(!0),l=c.useRef(null),u=bn(),d=c.useMemo(()=>({anchor:t,setAnchor:n,actionsRef:s,backdropRef:o,internalBackdropRef:r,positionerRef:i,allowMouseUpTriggerRef:a,initialCursorPointRef:l,rootId:u}),[t,u]);return K.jsx(Mu.Provider,{value:d,children:K.jsx($i.Provider,{value:void 0,children:K.jsx(F1,{...e})})})}const Ll=500,FE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{setAnchor:a,actionsRef:l,internalBackdropRef:u,backdropRef:d,positionerRef:p,allowMouseUpTriggerRef:f,initialCursorPointRef:y,rootId:m}=Kr(!1),{store:g}=cn(!1),h=g.useState("open"),b=g.useState("disabled"),v=c.useRef(null),w=c.useRef(null),x=Ge(),S=Ge(),R=c.useRef(!1),E=c.useRef(null);function k(P,z,L){var F;const A=L.type.startsWith("touch");y.current={x:P,y:z},a({getBoundingClientRect(){return DOMRect.fromRect({width:A?10:0,height:A?10:0,x:P,y:z})}}),R.current=!1,(F=l.current)==null||F.setOpen(!0,Re(Rn,L)),S.start(Ll,()=>{R.current=!0})}function M(P){var A;if(b)return;f.current=!0,It(P),k(P.clientX,P.clientY,P.nativeEvent);const z=Te(v.current);(A=E.current)==null||A.abort();const L=new AbortController;E.current=L,z.addEventListener("mouseup",F=>{var _;if(f.current=!1,!R.current)return;S.clear(),R.current=!1;const T=et(F);ve(p.current,T)||m&&T&&Ia(T)===m||(_=l.current)==null||_.setOpen(!1,Re(Bi,F))},{once:!0,signal:L.signal})}function C(){x.clear(),w.current=null}function O(P){if(b){C();return}if(f.current=!1,P.touches.length!==1){C();return}P.stopPropagation();const z=P.touches[0],L={x:z.clientX,y:z.clientY};w.current=L,x.start(Ll,()=>{k(L.x,L.y,P.nativeEvent)})}function I(P){if(P.touches.length!==1){C();return}if(x.isStarted()&&w.current){const z=P.touches[0],L=10,A=Math.abs(z.clientX-w.current.x),F=Math.abs(z.clientY-w.current.y);(A>L||F>L)&&C()}}return c.useEffect(()=>()=>{var P;(P=E.current)==null||P.abort()},[]),c.useEffect(()=>{function P(L){if(b)return;const F=et(L);(ve(v.current,F)||ve(u.current,F)||ve(d.current,F))&&L.preventDefault()}const z=Te(v.current);return Me(z,"contextmenu",P)},[d,b,u]),ke("div",t,{state:{open:h},ref:[v,n],props:[{onContextMenu:M,onTouchStart:O,onTouchMove:I,onTouchEnd:C,onTouchCancel:C,style:{WebkitTouchCallout:"none"}},i],stateAttributesMapping:Lr})}),dp=c.createContext(void 0);function J2(){return c.useContext(dp)}const zE=c.forwardRef(function(t,n){const{className:o,defaultPressed:r=!1,disabled:s=!1,form:i,onPressedChange:a,pressed:l,render:u,type:d,value:p,nativeButton:f=!0,style:y,...m}=t,g=rt(p||void 0),h=J2(),b=(h==null?void 0:h.value)??[],v=h?void 0:r,w=(s||(h==null?void 0:h.disabled))??!1,[x,S]=Lt({controlled:h?g!==void 0&&b.indexOf(g)>-1:l,default:v,name:"Toggle",state:"pressed"}),{getButtonProps:R,buttonRef:E}=Tt({disabled:w,native:f}),k={disabled:w,pressed:x},M=[E,n],C=[{"aria-pressed":x,onClick(D){var z;const N=!x,P=Re(Rt,D.nativeEvent);a==null||a(N,P),!P.isCanceled&&(g&&((z=h==null?void 0:h.setGroupValue)==null||z.call(h,g,N,P)),!P.isCanceled&&S(N))}},m,R],O=ke("button",t,{enabled:!h,state:k,ref:M,props:C}),I=c.useMemo(()=>({disabled:w,focusableWhenDisabled:!1}),[w]);return h?K.jsx($d,{tag:"button",render:u,className:o,style:y,metadata:I,state:k,refs:M,props:C}):O}),ew=c.createContext(void 0);function tw(){return c.useContext(ew)}const VE=c.forwardRef(function(t,n){const{defaultValue:o,disabled:r=!1,loopFocus:s=!0,onValueChange:i,orientation:a="horizontal",multiple:l=!1,value:u,className:d,render:p,style:f,...y}=t,m=Ca(),g=tw(),h=u!==void 0||o!==void 0,b=((m==null?void 0:m.disabled)??!1)||((g==null?void 0:g.disabled)??!1)||r,[v,w]=Lt({controlled:u,default:u===void 0?o??Nt:void 0,name:"ToggleGroup",state:"value"}),x=le((M,C,O)=>{let I;l?(I=v.slice(),C?I.push(M):I.splice(v.indexOf(M),1)):I=C?[M]:[],i==null||i(I,O),!O.isCanceled&&w(I)}),S={disabled:b,multiple:l,orientation:a},R=c.useMemo(()=>({disabled:b,setGroupValue:x,value:v,isValueInitialized:h}),[b,x,v,h]),E={role:"group"},k=ke("div",t,{enabled:!!m,state:S,ref:n,props:[E,y]});return K.jsx(dp.Provider,{value:R,children:m?k:K.jsx(cp,{render:p,className:d,style:f,state:S,refs:[n],props:[E,y],loopFocus:s,enableHomeAndEndKeys:!0,orientation:a})})});function nw(e,t){const n=getComputedStyle(e),o=parseFloat(n.fontSize);return t*o}function ow(e,t){const n=getComputedStyle(e.ownerDocument.documentElement),o=parseFloat(n.fontSize);return t*o}function rw(e){return e/100*window.innerHeight}function sw(e){return e/100*window.innerWidth}function iw(e){switch(typeof e){case"number":return[e,"px"];case"string":{const t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function Oo({groupSize:e,panelElement:t,styleProp:n}){let o;const[r,s]=iw(n);switch(s){case"%":{o=r/100*e;break}case"px":{o=r;break}case"rem":{o=ow(t,r);break}case"em":{o=nw(t,r);break}case"vh":{o=rw(r);break}case"vw":{o=sw(r);break}}return o}function mt(e){return parseFloat(e.toFixed(3))}function go({group:e}){const{orientation:t,panels:n}=e;return n.reduce((o,r)=>(o+=t==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,o),0)}function Ti(e){const{panels:t}=e,n=go({group:e});return n===0?t.map(o=>({groupResizeBehavior:o.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:o.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:o.panelConstraints.disabled,minSize:0,maxSize:100,panelId:o.id})):t.map(o=>{const{element:r,panelConstraints:s}=o;let i=0;if(s.collapsedSize!==void 0){const d=Oo({groupSize:n,panelElement:r,styleProp:s.collapsedSize});i=mt(d/n*100)}let a;if(s.defaultSize!==void 0){const d=Oo({groupSize:n,panelElement:r,styleProp:s.defaultSize});a=mt(d/n*100)}let l=0;if(s.minSize!==void 0){const d=Oo({groupSize:n,panelElement:r,styleProp:s.minSize});l=mt(d/n*100)}let u=100;if(s.maxSize!==void 0){const d=Oo({groupSize:n,panelElement:r,styleProp:s.maxSize});u=mt(d/n*100)}return{groupResizeBehavior:s.groupResizeBehavior,collapsedSize:i,collapsible:s.collapsible===!0,defaultSize:a,disabled:s.disabled,minSize:l,maxSize:u,panelId:o.id}})}function $e(e,t="Assertion error"){if(!e)throw Error(t)}function Ii(e,t){return Array.from(t).sort(e==="horizontal"?aw:cw)}function aw(e,t){const n=e.element.offsetLeft-t.element.offsetLeft;return n!==0?n:e.element.offsetWidth-t.element.offsetWidth}function cw(e,t){const n=e.element.offsetTop-t.element.offsetTop;return n!==0?n:e.element.offsetHeight-t.element.offsetHeight}function fp(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function pp(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function lw({orientation:e,rects:t,targetRect:n}){const o={x:n.x+n.width/2,y:n.y+n.height/2};let r,s=Number.MAX_VALUE;for(const i of t){const{x:a,y:l}=pp(o,i),u=e==="horizontal"?a:l;u<s&&(s=u,r=i)}return $e(r,"No rect found"),r}let wr;function uw(){return wr===void 0&&(typeof matchMedia=="function"?wr=!!matchMedia("(pointer:coarse)").matches:wr=!1),wr}function hp(e){const{element:t,orientation:n,panels:o,separators:r}=e,s=Ii(n,Array.from(t.children).filter(fp).map(m=>({element:m}))).map(({element:m})=>m),i=[];let a=!1,l=!1,u=-1,d=-1,p=0,f,y=[];{let m=-1;for(const g of s)g.hasAttribute("data-panel")&&(m++,g.hasAttribute("data-disabled")||(p++,u===-1&&(u=m),d=m))}if(p>1){let m=-1;for(const g of s)if(g.hasAttribute("data-panel")){m++;const h=o.find(b=>b.element===g);if(h){if(f){const b=f.element.getBoundingClientRect(),v=g.getBoundingClientRect();let w;if(l){const x=n==="horizontal"?new DOMRect(b.right,b.top,0,b.height):new DOMRect(b.left,b.bottom,b.width,0),S=n==="horizontal"?new DOMRect(v.left,v.top,0,v.height):new DOMRect(v.left,v.top,v.width,0);switch(y.length){case 0:{w=[x,S];break}case 1:{const R=y[0],E=lw({orientation:n,rects:[b,v],targetRect:R.element.getBoundingClientRect()});w=[R,E===b?S:x];break}default:{w=y;break}}}else y.length?w=y:w=[n==="horizontal"?new DOMRect(b.right,v.top,v.left-b.right,v.height):new DOMRect(v.left,b.bottom,v.width,v.top-b.bottom)];for(const x of w){let S="width"in x?x:x.element.getBoundingClientRect();const R=uw()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(S.width<R){const k=R-S.width;S=new DOMRect(S.x-k/2,S.y,S.width+k,S.height)}if(S.height<R){const k=R-S.height;S=new DOMRect(S.x,S.y-k/2,S.width,S.height+k)}const E=m<=u||m>d;!a&&!E&&i.push({group:e,groupSize:go({group:e}),panels:[f,h],separator:"width"in x?void 0:x,rect:S}),a=!1}}l=!1,f=h,y=[]}}else if(g.hasAttribute("data-separator")){g.ariaDisabled!==null&&(a=!0);const h=r.find(b=>b.element===g);h?y.push(h):(f=void 0,y=[])}else l=!0}return i}var fn;class gp{constructor(){ic(this,fn,{})}addListener(t,n){const o=Ro(this,fn)[t];return o===void 0?Ro(this,fn)[t]=[n]:o.includes(n)||o.push(n),()=>{this.removeListener(t,n)}}emit(t,n){const o=Ro(this,fn)[t];if(o!==void 0)if(o.length===1)o[0].call(null,n);else{let r=!1,s=null;const i=Array.from(o);for(let a=0;a<i.length;a++){const l=i[a];try{l.call(null,n)}catch(u){s===null&&(r=!0,s=u)}}if(r)throw s}}removeAllListeners(){ac(this,fn,{})}removeListener(t,n){const o=Ro(this,fn)[t];if(o!==void 0){const r=o.indexOf(n);r>=0&&o.splice(r,1)}}}fn=new WeakMap;let oo={cursorFlags:0,state:"inactive"};const Ya=new gp;function _n(){return oo}function dw(e){return Ya.addListener("change",e)}function fw(e){const t=oo,n={...oo};n.cursorFlags=e,oo=n,Ya.emit("change",{prev:t,next:n})}function ro(e){const t=oo;oo=e,Ya.emit("change",{prev:t,next:e})}const pw=e=>e,Xs=()=>{},mp=1,yp=2,bp=4,vp=8,_l=3,Fl=12;let Sr;function zl(){return Sr===void 0&&(Sr=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(Sr=!0)),Sr}function hw({cursorFlags:e,groups:t,state:n}){let o=0,r=0;switch(n){case"active":case"hover":t.forEach(s=>{if(!s.mutableState.disableCursor)switch(s.orientation){case"horizontal":{o++;break}case"vertical":{r++;break}}})}if(!(o===0&&r===0)){switch(n){case"active":{if(e&&zl()){const s=(e&mp)!==0,i=(e&yp)!==0,a=(e&bp)!==0,l=(e&vp)!==0;if(s)return a?"se-resize":l?"ne-resize":"e-resize";if(i)return a?"sw-resize":l?"nw-resize":"w-resize";if(a)return"s-resize";if(l)return"n-resize"}break}}return zl()?o>0&&r>0?"move":o>0?"ew-resize":"ns-resize":o>0&&r>0?"grab":o>0?"col-resize":"row-resize"}}const Vl=new WeakMap;function qa(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:n}=Vl.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]));const o=_n();switch(o.state){case"active":case"hover":{const r=hw({cursorFlags:o.cursorFlags,groups:o.hitRegions.map(i=>i.group),state:o.state}),s=`*, *:hover {cursor: ${r} !important; }`;if(t===s)return;t=s,r?n.cssRules.length===0?n.insertRule(s):n.replaceSync(s):n.cssRules.length===1&&n.deleteRule(0);break}case"inactive":{t=void 0,n.cssRules.length===1&&n.deleteRule(0);break}}Vl.set(e,{prevStyle:t,styleSheet:n})}let Wt=new Map;const xp=new gp;function gw(e){Wt=new Map(Wt),Wt.delete(e)}function $l(e,t){for(const[n]of Wt)if(n.id===e)return n}function yn(e,t){for(const[n,o]of Wt)if(n.id===e)return o;if(t)throw Error(`Could not find data for Group with id ${e}`)}function Hn(){return Wt}function Xa(e,t){return xp.addListener("groupChange",n=>{n.group.id===e&&t(n)})}function sn(e,t,n){const o=Wt.get(e);Wt=new Map(Wt),Wt.set(e,t),xp.emit("groupChange",{group:e,isUserInteraction:(n==null?void 0:n.isUserInteraction)===!0,prev:o,next:t})}function wp(e){const t=_n();let n=!1;switch(t.state){case"active":ro({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(qa(e),n=!0,t.hitRegions.forEach(o=>{const r=yn(o.group.id,!0);sn(o.group,r,{isUserInteraction:!0})}))}return n}function Hl(e){e.defaultPrevented||wp(e.currentTarget)}function mw(e,t,n){let o,r={x:1/0,y:1/0};for(const s of t){const i=pp(n,s.rect);switch(e){case"horizontal":{i.x<=r.x&&(o=s,r=i);break}case"vertical":{i.y<=r.y&&(o=s,r=i);break}}}return o?{distance:r,hitRegion:o}:void 0}function yw(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function bw(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Wl(e),b:Wl(t)};let o;for(;n.a.at(-1)===n.b.at(-1);)o=n.a.pop(),n.b.pop();$e(o,"Stacking order can only be calculated for elements with a common ancestor");const r={a:Bl(jl(n.a)),b:Bl(jl(n.b))};if(r.a===r.b){const s=o.childNodes,i={a:n.a.at(-1),b:n.b.at(-1)};let a=s.length;for(;a--;){const l=s[a];if(l===i.a)return 1;if(l===i.b)return-1}}return Math.sign(r.a-r.b)}const vw=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function xw(e){const t=getComputedStyle(Sp(e)??e).display;return t==="flex"||t==="inline-flex"}function ww(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||xw(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||vw.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function jl(e){let t=e.length;for(;t--;){const n=e[t];if($e(n,"Missing node"),ww(n))return n}return null}function Bl(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Wl(e){const t=[];for(;e;)t.push(e),e=Sp(e);return t}function Sp(e){const{parentNode:t}=e;return yw(t)?t.host:t}function Sw(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function Rw({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!fp(n)||n.contains(e)||e.contains(n))return!0;if(bw(n,e)>0){let o=n;for(;o;){if(o.contains(e))return!0;if(Sw(o.getBoundingClientRect(),t))return!1;o=o.parentElement}}return!0}function Ka(e,t){const n=[];return t.forEach((o,r)=>{if(r.disabled)return;const s=hp(r),i=mw(r.orientation,s,{x:e.clientX,y:e.clientY});i&&i.distance.x<=0&&i.distance.y<=0&&Rw({groupElement:r.element,hitRegion:i.hitRegion.rect,pointerEventTarget:e.target})&&n.push(i.hitRegion)}),n}function kw(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function ft(e,t,n=0){return Math.abs(mt(e)-mt(t))<=n}function jt(e,t){return ft(e,t)?0:e>t?1:-1}function Zn({overrideDisabledPanels:e,panelConstraints:t,prevSize:n,size:o}){const{collapsedSize:r=0,collapsible:s,disabled:i,maxSize:a=100,minSize:l=0}=t;if(i&&!e)return n;if(jt(o,l)<0)if(s){const u=(r+l)/2;jt(o,u)<0?o=r:o=l}else o=l;return o=Math.min(a,o),o=mt(o),o}function Ho({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:o,prevLayout:r,trigger:s}){if(ft(e,0))return t;const i=s==="imperative-api",a=Object.values(t),l=Object.values(r),u=[...a],[d,p]=o;$e(d!=null,"Invalid first pivot index"),$e(p!=null,"Invalid second pivot index");let f=0;switch(s){case"keyboard":{{const g=e<0?p:d,h=n[g];$e(h,`Panel constraints not found for index ${g}`);const{collapsedSize:b=0,collapsible:v,minSize:w=0}=h;if(v){const x=a[g];if($e(x!=null,`Previous layout not found for panel index ${g}`),ft(x,b)){const S=w-x;jt(S,Math.abs(e))>0&&(e=e<0?0-S:S)}}}{const g=e<0?d:p,h=n[g];$e(h,`No panel constraints found for index ${g}`);const{collapsedSize:b=0,collapsible:v,minSize:w=0}=h;if(v){const x=a[g];if($e(x!=null,`Previous layout not found for panel index ${g}`),ft(x,w)){const S=x-b;jt(S,Math.abs(e))>0&&(e=e<0?0-S:S)}}}break}default:{const g=e<0?p:d,h=n[g];$e(h,`Panel constraints not found for index ${g}`);const b=a[g],{collapsible:v,collapsedSize:w,minSize:x}=h;if(v&&jt(b,x)<0)if(e>0){const S=x-w,R=S/2,E=b+e;jt(E,x)<0&&(e=jt(e,R)<=0?0:S)}else{const S=x-w,R=100-S/2,E=b-e;jt(E,x)<0&&(e=jt(100+e,R)>0?0:-S)}break}}{const g=e<0?1:-1;let h=e<0?p:d,b=0;for(;;){const w=a[h];$e(w!=null,`Previous layout not found for panel index ${h}`);const x=Zn({overrideDisabledPanels:i,panelConstraints:n[h],prevSize:w,size:100})-w;if(b+=x,h+=g,h<0||h>=n.length)break}const v=Math.min(Math.abs(e),Math.abs(b));e=e<0?0-v:v}{let g=e<0?d:p;for(;g>=0&&g<n.length;){const h=Math.abs(e)-Math.abs(f),b=a[g];$e(b!=null,`Previous layout not found for panel index ${g}`);const v=b-h,w=Zn({overrideDisabledPanels:i,panelConstraints:n[g],prevSize:b,size:v});if(!ft(b,w)&&(f+=b-w,u[g]=w,f.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?g--:g++}}if(kw(l,u))return r;{const g=e<0?p:d,h=a[g];$e(h!=null,`Previous layout not found for panel index ${g}`);const b=h+f,v=Zn({overrideDisabledPanels:i,panelConstraints:n[g],prevSize:h,size:b});if(u[g]=v,!ft(v,b)){let w=b-v,x=e<0?p:d;for(;x>=0&&x<n.length;){const S=u[x];$e(S!=null,`Previous layout not found for panel index ${x}`);const R=S+w,E=Zn({overrideDisabledPanels:i,panelConstraints:n[x],prevSize:S,size:R});if(ft(S,E)||(w-=E-S,u[x]=E),ft(w,0))break;e>0?x--:x++}}}const y=Object.values(u).reduce((g,h)=>h+g,0);if(!ft(y,100,.1))return r;const m=Object.keys(r);return u.reduce((g,h,b)=>(g[m[b]]=h,g),{})}function Fn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(t[n]===void 0||jt(e[n],t[n])!==0)return!1;return!0}function zn({layout:e,panelConstraints:t}){const n=Object.values(e),o=[...n],r=o.reduce((a,l)=>a+l,0);if(o.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${o.map(a=>`${a}%`).join(", ")}`);if(!ft(r,100)&&o.length>0)for(let a=0;a<t.length;a++){const l=o[a];$e(l!=null,`No layout data found for index ${a}`);const u=100/r*l;o[a]=u}let s=0;for(let a=0;a<t.length;a++){const l=n[a];$e(l!=null,`No layout data found for index ${a}`);const u=o[a];$e(u!=null,`No layout data found for index ${a}`);const d=Zn({overrideDisabledPanels:!0,panelConstraints:t[a],prevSize:l,size:u});u!=d&&(s+=u-d,o[a]=d)}if(!ft(s,0))for(let a=0;a<t.length;a++){const l=o[a];$e(l!=null,`No layout data found for index ${a}`);const u=l+s,d=Zn({overrideDisabledPanels:!0,panelConstraints:t[a],prevSize:l,size:u});if(l!==d&&(s-=d-l,o[a]=d,ft(s,0)))break}const i=Object.keys(e);return o.reduce((a,l,u)=>(a[i[u]]=l,a),{})}function Rp({groupId:e,panelId:t}){const n=()=>{const l=Hn();for(const[u,{defaultLayoutDeferred:d,derivedPanelConstraints:p,layout:f,groupSize:y,separatorToPanels:m}]of l)if(u.id===e)return{defaultLayoutDeferred:d,derivedPanelConstraints:p,group:u,groupSize:y,layout:f,separatorToPanels:m};throw Error(`Group ${e} not found`)},o=()=>{const l=n().derivedPanelConstraints.find(u=>u.panelId===t);if(l!==void 0)return l;throw Error(`Panel constraints not found for Panel ${t}`)},r=()=>{const l=n().group.panels.find(u=>u.id===t);if(l!==void 0)return l;throw Error(`Layout not found for Panel ${t}`)},s=()=>{const l=n().layout[t];if(l!==void 0)return l;throw Error(`Layout not found for Panel ${t}`)},i=({nextSize:l,panels:u,prevLayout:d,derivedPanelConstraints:p})=>{const f=s(),y=u.findIndex(h=>h.id===t),m=y===0,g=y===u.length-1;if(g&&l<f&&(m||u.slice(0,y).every((h,b)=>{const v=p[b];return(v==null?void 0:v.collapsible)&&ft(v.collapsedSize,d[v.panelId])}))){const h=u.slice(0,y).reduce((b,v)=>b+d[v.id],0);return{...d,[t]:mt(100-h)}}return Ho({delta:g?f-l:l-f,initialLayout:d,panelConstraints:p,pivotIndices:g?[y-1,y]:[y,y+1],prevLayout:d,trigger:"imperative-api"})},a=l=>{const u=s();if(l===u)return;const{defaultLayoutDeferred:d,derivedPanelConstraints:p,group:f,groupSize:y,layout:m,separatorToPanels:g}=n(),h=i({nextSize:l,panels:f.panels,prevLayout:m,derivedPanelConstraints:p}),b=zn({layout:h,panelConstraints:p});Fn(m,b)||sn(f,{defaultLayoutDeferred:d,derivedPanelConstraints:p,groupSize:y,layout:b,separatorToPanels:g})};return{collapse:()=>{const{collapsible:l,collapsedSize:u}=o(),{mutableValues:d}=r(),p=s();l&&p!==u&&(d.expandToSize=p,a(u))},expand:()=>{const{collapsible:l,collapsedSize:u,minSize:d}=o(),{mutableValues:p}=r(),f=s();if(l&&f===u){let y=p.expandToSize??d;y===0&&(y=1),a(y)}},getSize:()=>{const{group:l}=n(),u=s(),{element:d}=r(),p=l.orientation==="horizontal"?d.offsetWidth:d.offsetHeight;return{asPercentage:u,inPixels:p}},isCollapsed:()=>{const{collapsible:l,collapsedSize:u}=o(),d=s();return l&&ft(u,d)},resize:l=>{const{group:u}=n(),{element:d}=r(),p=go({group:u}),f=Oo({groupSize:p,panelElement:d,styleProp:l}),y=mt(f/p*100);a(y)}}}function Ul(e){if(e.defaultPrevented)return;const t=Hn();Ka(e,t).forEach(n=>{if(n.separator&&!n.separator.disableDoubleClick){const o=n.panels.find(r=>r.panelConstraints.defaultSize!==void 0);if(o){const r=o.panelConstraints.defaultSize,s=Rp({groupId:n.group.id,panelId:o.id});s&&r!==void 0&&(s.resize(r),e.preventDefault())}}})}function Ir(e){const t=Hn();for(const[n]of t)if(n.separators.some(o=>o.element===e))return n;throw Error("Could not find parent Group for separator element")}function kp({groupId:e}){const t=()=>{const n=Hn();for(const[o,r]of n)if(o.id===e)return{group:o,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){const{defaultLayoutDeferred:n,layout:o}=t();return n?{}:o},setLayout(n){const{defaultLayoutDeferred:o,derivedPanelConstraints:r,group:s,groupSize:i,layout:a,separatorToPanels:l}=t(),u=zn({layout:n,panelConstraints:r});return o?a:(Fn(a,u)||sn(s,{defaultLayoutDeferred:o,derivedPanelConstraints:r,groupSize:i,layout:u,separatorToPanels:l}),u)}}}function On(e,t){const n=Ir(e),o=yn(n.id,!0),r=n.separators.find(d=>d.element===e);$e(r,"Matching separator not found");const s=o.separatorToPanels.get(r);$e(s,"Matching panels not found");const i=s.map(d=>n.panels.indexOf(d)),a=kp({groupId:n.id}).getLayout(),l=Ho({delta:t,initialLayout:a,panelConstraints:o.derivedPanelConstraints,pivotIndices:i,prevLayout:a,trigger:"keyboard"}),u=zn({layout:l,panelConstraints:o.derivedPanelConstraints});Fn(a,u)||sn(n,{defaultLayoutDeferred:o.defaultLayoutDeferred,derivedPanelConstraints:o.derivedPanelConstraints,groupSize:o.groupSize,layout:u,separatorToPanels:o.separatorToPanels},{isUserInteraction:!0})}function Gl(e){if(e.defaultPrevented)return;const t=e.currentTarget,n=Ir(t);if(!n.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),n.orientation==="vertical"&&On(t,5);break}case"ArrowLeft":{e.preventDefault(),n.orientation==="horizontal"&&On(t,-5);break}case"ArrowRight":{e.preventDefault(),n.orientation==="horizontal"&&On(t,5);break}case"ArrowUp":{e.preventDefault(),n.orientation==="vertical"&&On(t,-5);break}case"End":{e.preventDefault(),On(t,100);break}case"Enter":{e.preventDefault();const o=Ir(t),r=yn(o.id,!0),{derivedPanelConstraints:s,layout:i,separatorToPanels:a}=r,l=o.separators.find(f=>f.element===t);$e(l,"Matching separator not found");const u=a.get(l);$e(u,"Matching panels not found");const d=u[0],p=s.find(f=>f.panelId===d.id);if($e(p,"Panel metadata not found"),p.collapsible){const f=i[d.id],y=p.collapsedSize===f?o.mutableState.expandedPanelSizes[d.id]??p.minSize:p.collapsedSize;On(t,y-f)}break}case"F6":{e.preventDefault();const o=Ir(t).separators.map(i=>i.element),r=Array.from(o).findIndex(i=>i===e.currentTarget);$e(r!==null,"Index not found");const s=e.shiftKey?r>0?r-1:o.length-1:r+1<o.length?r+1:0;o[s].focus({preventScroll:!0});break}case"Home":{e.preventDefault(),On(t,-100);break}}}function Yl(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const t=Hn(),n=Ka(e,t),o=new Map;let r=!1;n.forEach(s=>{s.separator&&(r||(r=!0,s.separator.element.focus({focusVisible:!1,preventScroll:!0})));const i=t.get(s.group);i&&o.set(s.group,i.layout)}),ro({cursorFlags:0,hitRegions:n,initialLayoutMap:o,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),n.length&&e.preventDefault()}function Ep({document:e,event:t,hitRegions:n,initialLayoutMap:o,mountedGroups:r,pointerDownAtPoint:s,prevCursorFlags:i}){let a=0;n.forEach(u=>{const{group:d,groupSize:p}=u,{orientation:f,panels:y}=d,{disableCursor:m}=d.mutableState;let g=0;s?f==="horizontal"?g=(t.clientX-s.x)/p*100:g=(t.clientY-s.y)/p*100:f==="horizontal"?g=t.clientX<0?-100:100:g=t.clientY<0?-100:100;const h=o.get(d),b=r.get(d);if(!h||!b)return;const{defaultLayoutDeferred:v,derivedPanelConstraints:w,groupSize:x,layout:S,separatorToPanels:R}=b;if(w&&S&&R){const E=Ho({delta:g,initialLayout:h,panelConstraints:w,pivotIndices:u.panels.map(k=>y.indexOf(k)),prevLayout:S,trigger:"mouse-or-touch"});if(Fn(E,S)){if(g!==0&&!m)switch(f){case"horizontal":{a|=g<0?mp:yp;break}case"vertical":{a|=g<0?bp:vp;break}}}else sn(u.group,{defaultLayoutDeferred:v,derivedPanelConstraints:w,groupSize:x,layout:E,separatorToPanels:R})}});let l=0;t.movementX===0?l|=i&_l:l|=a&_l,t.movementY===0?l|=i&Fl:l|=a&Fl,fw(l),qa(e)}function ql(e){const t=Hn(),n=_n();switch(n.state){case"active":Ep({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}}function Xl(e){var o,r;if(e.defaultPrevented)return;const t=_n(),n=Hn();switch(t.state){case"active":{if(e.buttons===0){ro({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(s=>{const i=yn(s.group.id,!0);sn(s.group,i,{isUserInteraction:!0})});return}for(const s of t.hitRegions)if(s.separator){const{element:i}=s.separator;(o=i.hasPointerCapture)!=null&&o.call(i,e.pointerId)||((r=i.setPointerCapture)==null||r.call(i,e.pointerId))}Ep({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break}default:{const s=Ka(e,n);s.length===0?t.state!=="inactive"&&ro({cursorFlags:0,state:"inactive"}):ro({cursorFlags:0,hitRegions:s,state:"hover"}),qa(e.currentTarget);break}}}function Kl(e){if(e.relatedTarget instanceof HTMLIFrameElement)switch(_n().state){case"hover":ro({cursorFlags:0,state:"inactive"})}}function Zl(e){e.defaultPrevented||e.pointerType==="mouse"&&e.button>0||wp(e.currentTarget)&&e.preventDefault()}function Ql(e){let t=0,n=0;const o={};for(const s of e)if(s.defaultSize!==void 0){t++;const i=mt(s.defaultSize);n+=i,o[s.panelId]=i}else o[s.panelId]=void 0;const r=e.length-t;if(r!==0){const s=mt((100-n)/r);for(const i of e)i.defaultSize===void 0&&(o[i.panelId]=s)}return o}function Ew(e,t,n){if(!n[0])return;const o=e.panels.find(l=>l.element===t);if(!o||!o.onResize)return;const r=go({group:e}),s=e.orientation==="horizontal"?o.element.offsetWidth:o.element.offsetHeight,i=o.mutableValues.prevSize,a={asPercentage:mt(s/r*100),inPixels:s};o.mutableValues.prevSize=a,o.onResize(a,o.id,i)}function Cw(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Pw({group:e,nextGroupSize:t,prevGroupSize:n,prevLayout:o}){if(n<=0||t<=0||n===t)return o;let r=0,s=0,i=!1;const a=new Map,l=[];for(const p of e.panels){const f=o[p.id]??0;switch(p.panelConstraints.groupResizeBehavior){case"preserve-pixel-size":{i=!0;const y=f/100*n,m=mt(y/t*100);a.set(p.id,m),r+=m;break}case"preserve-relative-size":default:{l.push(p.id),s+=f;break}}}if(!i||l.length===0)return o;const u=100-r,d={...o};if(a.forEach((p,f)=>{d[f]=p}),s>0)for(const p of l){const f=o[p]??0;d[p]=mt(f/s*u)}else{const p=mt(u/l.length);for(const f of l)d[f]=p}return d}function Mw(e,t){const n=e.map(r=>r.id),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n)if(!o.includes(r))return!1;return!0}const qn=new Map;function Tw(e){let t=!0;$e(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");const n=e.element.ownerDocument.defaultView.ResizeObserver,o=new Set,r=new Set,s=new n(m=>{for(const g of m){const{borderBoxSize:h,target:b}=g;if(b===e.element){if(t){const v=go({group:e});if(v===0)return;const w=yn(e.id);if(!w)return;const x=Ti(e),S=w.defaultLayoutDeferred?Ql(x):w.layout,R=Pw({group:e,nextGroupSize:v,prevGroupSize:w.groupSize,prevLayout:S}),E=zn({layout:R,panelConstraints:x});if(!w.defaultLayoutDeferred&&Fn(w.layout,E)&&Cw(w.derivedPanelConstraints,x)&&w.groupSize===v)return;sn(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:x,groupSize:v,layout:E,separatorToPanels:w.separatorToPanels})}}else Ew(e,b,h)}});s.observe(e.element),e.panels.forEach(m=>{$e(!o.has(m.id),`Panel ids must be unique; id "${m.id}" was used more than once`),o.add(m.id),m.onResize&&s.observe(m.element)});const i=go({group:e}),a=Ti(e),l=e.panels.map(({id:m})=>m).join(",");let u=e.mutableState.defaultLayout;u&&(Mw(e.panels,u)||(u=void 0));const d=e.mutableState.layouts[l]??u??Ql(a),p=zn({layout:d,panelConstraints:a}),f=e.element.ownerDocument;qn.set(f,(qn.get(f)??0)+1);const y=new Map;return hp(e).forEach(m=>{m.separator&&y.set(m.separator,m.panels)}),sn(e,{defaultLayoutDeferred:i===0,derivedPanelConstraints:a,groupSize:i,layout:p,separatorToPanels:y}),e.separators.forEach(m=>{$e(!r.has(m.id),`Separator ids must be unique; id "${m.id}" was used more than once`),r.add(m.id),m.element.addEventListener("keydown",Gl)}),qn.get(f)===1&&(f.addEventListener("contextmenu",Hl,!0),f.addEventListener("dblclick",Ul,!0),f.addEventListener("pointerdown",Yl,!0),f.addEventListener("pointerleave",ql),f.addEventListener("pointermove",Xl),f.addEventListener("pointerout",Kl),f.addEventListener("pointerup",Zl,!0)),function(){t=!1,qn.set(f,Math.max(0,(qn.get(f)??0)-1)),gw(e),e.separators.forEach(m=>{m.element.removeEventListener("keydown",Gl)}),qn.get(f)||(f.removeEventListener("contextmenu",Hl,!0),f.removeEventListener("dblclick",Ul,!0),f.removeEventListener("pointerdown",Yl,!0),f.removeEventListener("pointerleave",ql),f.removeEventListener("pointermove",Xl),f.removeEventListener("pointerout",Kl),f.removeEventListener("pointerup",Zl,!0)),s.disconnect()}}function Iw(){const[e,t]=c.useState({}),n=c.useCallback(()=>t({}),[]);return[e,n]}function Za(e){const t=c.useId();return`${e??t}`}const jn=typeof window<"u"?c.useLayoutEffect:c.useEffect;function No(e){const t=c.useRef(e);return jn(()=>{t.current=e},[e]),c.useCallback((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[t])}function Qa(...e){return No(t=>{e.forEach(n=>{if(n)switch(typeof n){case"function":{n(t);break}case"object":{n.current=t;break}}})})}function Ja(e){const t=c.useRef({...e});return jn(()=>{for(const n in e)t.current[n]=e[n]},[e]),t.current}const Cp=c.createContext(null);function Ow(e,t){const n=c.useRef({getLayout:()=>({}),setLayout:pw});c.useImperativeHandle(t,()=>n.current,[]),jn(()=>{Object.assign(n.current,kp({groupId:e}))})}function Aw({children:e,className:t,defaultLayout:n,disableCursor:o,disabled:r,elementRef:s,groupRef:i,id:a,onLayoutChange:l,onLayoutChanged:u,orientation:d="horizontal",resizeTargetMinimumSize:p={coarse:20,fine:10},style:f,...y}){const m=c.useRef({onLayoutChange:{},onLayoutChanged:{}}),g=No(O=>{Fn(m.current.onLayoutChange,O)||(m.current.onLayoutChange=O,l==null||l(O))}),h=No((O,I)=>{Fn(m.current.onLayoutChanged,O)||(m.current.onLayoutChanged=O,u==null||u(O,{isUserInteraction:I}))}),b=Za(a),v=c.useRef(null),[w,x]=Iw(),S=c.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:p,separators:[]}),R=Qa(v,s);Ow(b,i);const E=No((O,I)=>{const D=_n(),N=$l(O),P=yn(O);if(P){let z=!1;switch(D.state){case"active":{z=D.hitRegions.some(L=>L.group===N);break}}return{flexGrow:P.layout[I]??1,pointerEvents:z?"none":void 0}}if(n!=null&&n[I])return{flexGrow:n==null?void 0:n[I]}}),k=Ja({defaultLayout:n,disableCursor:o}),M=c.useMemo(()=>({get disableCursor(){return!!k.disableCursor},getPanelStyles:E,id:b,orientation:d,registerPanel:O=>{const I=S.current;return I.panels=Ii(d,[...I.panels,O]),x(),()=>{I.panels=I.panels.filter(D=>D!==O),x()}},registerSeparator:O=>{const I=S.current;return I.separators=Ii(d,[...I.separators,O]),x(),()=>{I.separators=I.separators.filter(D=>D!==O),x()}},updatePanelProps:(O,{disabled:I})=>{const D=S.current.panels.find(z=>z.id===O);D&&(D.panelConstraints.disabled=I);const N=$l(b),P=yn(b);N&&P&&sn(N,{...P,derivedPanelConstraints:Ti(N)})},updateSeparatorProps:(O,{disabled:I,disableDoubleClick:D})=>{const N=S.current.separators.find(P=>P.id===O);N&&(N.disabled=I,N.disableDoubleClick=D)}}),[E,b,x,d,k]),C=c.useRef(null);return jn(()=>{const O=v.current;if(O===null)return;const I=S.current;let D;if(k.defaultLayout!==void 0&&Object.keys(k.defaultLayout).length===I.panels.length){D={};for(const T of I.panels){const _=k.defaultLayout[T.id];_!==void 0&&(D[T.id]=_)}}const N={disabled:!!r,element:O,id:b,mutableState:{defaultLayout:D,disableCursor:!!k.disableCursor,expandedPanelSizes:S.current.lastExpandedPanelSizes,layouts:S.current.layouts},orientation:d,panels:I.panels,resizeTargetMinimumSize:I.resizeTargetMinimumSize,separators:I.separators};C.current=N;const P=Tw(N),{defaultLayoutDeferred:z,derivedPanelConstraints:L,layout:A}=yn(N.id,!0);!z&&L.length>0&&(g(A),h(A,!1));const F=Xa(b,T=>{const{defaultLayoutDeferred:_,derivedPanelConstraints:j,layout:$}=T.next;if(_||j.length===0)return;const U=N.panels.map(({id:V})=>V).join(",");N.mutableState.layouts[U]=$,j.forEach(V=>{if(V.collapsible){const{layout:Q}=T.prev??{};if(Q){const H=ft(V.collapsedSize,$[V.panelId]),G=ft(V.collapsedSize,Q[V.panelId]);H&&!G&&(N.mutableState.expandedPanelSizes[V.panelId]=Q[V.panelId])}}});const Y=_n().state!=="active";g($),Y&&h($,T.isUserInteraction)});return()=>{C.current=null,P(),F()}},[r,b,h,g,d,w,k]),c.useEffect(()=>{const O=C.current;O&&(O.mutableState.defaultLayout=n,O.mutableState.disableCursor=!!o)}),K.jsx(Cp.Provider,{value:M,children:K.jsx("div",{...y,className:t,"data-group":!0,"data-testid":b,id:b,ref:R,style:{height:"100%",width:"100%",overflow:"hidden",...f,display:"flex",flexDirection:d==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:d==="horizontal"?"pan-y":"pan-x"},children:e})})}Aw.displayName="Group";function ec(){const e=c.useContext(Cp);return $e(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function Dw(e,t){const{id:n}=ec(),o=c.useRef({collapse:Xs,expand:Xs,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:Xs});c.useImperativeHandle(t,()=>o.current,[]),jn(()=>{Object.assign(o.current,Rp({groupId:n,panelId:e}))})}function Nw({children:e,className:t,collapsedSize:n="0%",collapsible:o=!1,defaultSize:r,disabled:s,elementRef:i,groupResizeBehavior:a="preserve-relative-size",id:l,maxSize:u="100%",minSize:d="0%",onResize:p,panelRef:f,style:y,...m}){const g=!!l,h=Za(l),b=Ja({disabled:s}),v=c.useRef(null),w=Qa(v,i),{getPanelStyles:x,id:S,orientation:R,registerPanel:E,updatePanelProps:k}=ec(),M=p!==null,C=No((N,P,z)=>{p==null||p(N,l,z)});jn(()=>{const N=v.current;if(N!==null){const P={element:N,id:h,idIsStable:g,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:M?C:void 0,panelConstraints:{groupResizeBehavior:a,collapsedSize:n,collapsible:o,defaultSize:r,disabled:b.disabled,maxSize:u,minSize:d}};return E(P)}},[a,n,o,r,M,h,g,u,d,C,E,b]),c.useEffect(()=>{k(h,{disabled:s})},[s,h,k]),Dw(h,f);const O=()=>{const N=x(S,h);if(N)return JSON.stringify(N)},I=c.useSyncExternalStore(N=>Xa(S,N),O,O);let D;return I?D=JSON.parse(I):r!==void 0?D={flexGrow:void 0,flexShrink:void 0,flexBasis:r}:D={flexGrow:1},K.jsx("div",{...m,"data-disabled":s||void 0,"data-panel":!0,"data-testid":h,id:h,ref:w,style:{...Lw,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...D},children:K.jsx("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...y,touchAction:R==="horizontal"?"pan-y":"pan-x"},children:e})})}Nw.displayName="Panel";const Lw={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function _w({layout:e,panelConstraints:t,panelId:n,panelIndex:o}){let r,s;const i=e[n],a=t.find(l=>l.panelId===n);if(a){const l=a.maxSize,u=a.collapsible?a.collapsedSize:a.minSize,d=[o,o+1];s=zn({layout:Ho({delta:u-i,initialLayout:e,panelConstraints:t,pivotIndices:d,prevLayout:e}),panelConstraints:t})[n],r=zn({layout:Ho({delta:l-i,initialLayout:e,panelConstraints:t,pivotIndices:d,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:r,valueMin:s,valueNow:i}}function Fw({children:e,className:t,disabled:n,disableDoubleClick:o,elementRef:r,id:s,style:i,...a}){const l=Za(s),u=Ja({disabled:n,disableDoubleClick:o}),[d,p]=c.useState({}),[f,y]=c.useState("inactive"),[m,g]=c.useState(!1),h=c.useRef(null),b=Qa(h,r),{disableCursor:v,id:w,orientation:x,registerSeparator:S,updateSeparatorProps:R}=ec(),E=x==="horizontal"?"vertical":"horizontal";jn(()=>{const C=h.current;if(C!==null){const O={disabled:u.disabled,disableDoubleClick:u.disableDoubleClick,element:C,id:l},I=S(O),D=dw(P=>{y(P.next.state!=="inactive"&&P.next.hitRegions.some(z=>z.separator===O)?P.next.state:"inactive")}),N=Xa(w,P=>{const{derivedPanelConstraints:z,layout:L,separatorToPanels:A}=P.next,F=A.get(O);if(F){const T=F[0],_=F.indexOf(T);p(_w({layout:L,panelConstraints:z,panelId:T.id,panelIndex:_}))}});return()=>{D(),N(),I()}}},[w,l,S,u]),c.useEffect(()=>{R(l,{disabled:n,disableDoubleClick:o})},[n,o,l,R]);let k;n&&!v&&(k="not-allowed");let M;if(n)M="disabled";else switch(f){case"active":{M="active";break}default:m?M="focus":M=f}return K.jsx("div",{...a,"aria-controls":d.valueControls,"aria-disabled":n||void 0,"aria-orientation":E,"aria-valuemax":d.valueMax,"aria-valuemin":d.valueMin,"aria-valuenow":d.valueNow,children:e,className:t,"data-separator":M,"data-testid":l,id:l,onBlur:()=>g(!1),onFocus:()=>g(!0),ref:b,role:"separator",style:{flexBasis:"auto",cursor:k,...i,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:n?void 0:0})}Fw.displayName="Separator";const Pp=c.createContext(void 0);function zw(){const e=c.useContext(Pp);if(e===void 0)throw new Error(Ne(63));return e}const Mp={...bs,checked(e){return e?{"data-checked":""}:{"data-unchecked":""}}},$E=c.forwardRef(function(t,n){const{checked:o,className:r,defaultChecked:s,"aria-labelledby":i,form:a,id:l,inputRef:u,name:d,nativeButton:p=!1,onCheckedChange:f,readOnly:y=!1,required:m=!1,disabled:g=!1,render:h,uncheckedValue:b,value:v,style:w,...x}=t,{clearErrors:S}=ws(),{state:R,setTouched:E,setDirty:k,validityData:M,setFilled:C,setFocused:O,validationMode:I,disabled:D,name:N,validation:P}=vo(),{labelId:z}=Yo(),L=D||g,A=N??d,F=c.useRef(null),T=Dt(F,u,P.inputRef),_=c.useRef(null),j=rt(),$=xs({id:l,implicit:!1,controlRef:_}),U=p?void 0:$,[Y,V]=Lt({controlled:o,default:!!s,name:"Switch",state:"checked"});vs(_,j,Y,void 0,!L,d),re(()=>{F.current&&C(F.current.checked)},[C]),ys(Y,()=>{S(A),k(Y!==M.initialValue),C(Y),P.change(Y)});const{getButtonProps:Q,buttonRef:H}=Tt({disabled:L,native:p}),G=Zf(i,z,F,!p,U),ue={id:p?$:j,role:"switch","aria-checked":Y,"aria-readonly":y||void 0,"aria-required":m||void 0,"aria-labelledby":G,onFocus(){L||O(!0)},onBlur(){const ee=F.current;!ee||L||(E(!0),O(!1),I==="onBlur"&&P.commit(ee.checked))},onClick(ee){if(y||L)return;ee.preventDefault();const ie=F.current;ie&&Qn(ie,ee)}},ne={...P.getValidationProps(L),checked:Y,disabled:L,form:a,id:U,name:A,required:m,style:A?ta:Bo,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:T,onChange(ee){if(ee.nativeEvent.defaultPrevented)return;if(y){ee.preventDefault();return}const ie=ee.currentTarget.checked,xe=Re(Rt,ee.nativeEvent);f==null||f(ie,xe),!xe.isCanceled&&V(ie)},onClick(ee){ee.stopPropagation()},onFocus(){var ee;(ee=_.current)==null||ee.focus()},...v!==void 0?{value:v}:We},te=c.useMemo(()=>({...R,checked:Y,disabled:L,readOnly:y,required:m}),[R,Y,L,y,m]),J=ke("span",t,{state:te,ref:[n,_,H],props:[ue,x,Q,ee=>P.getValidationProps(L,ee)],stateAttributesMapping:Mp});return K.jsxs(Pp.Provider,{value:te,children:[J,!Y&&A&&b!==void 0&&K.jsx("input",{type:"hidden",form:a,name:A,value:b,disabled:L}),K.jsx("input",{...ne,suppressHydrationWarning:!0})]})}),HE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,a=zw();return ke("span",t,{state:a,ref:n,stateAttributesMapping:Mp,props:i})});export{PR as $,tk as A,rk as B,Jw as C,yS as D,RS as E,LS as F,$S as G,XS as H,FS as I,hS as J,eR as K,oR as L,yR as M,WR as N,Kw as O,DR as P,$E as Q,zR as R,HR as S,sk as T,HE as U,kS as V,ES as W,mk as X,pk as Y,vk as Z,fk as _,_S as a,Hk as a$,aR as a0,sS as a1,uS as a2,jS as a3,Qw as a4,gS as a5,gk as a6,pS as a7,IS as a8,Zw as a9,Ak as aA,F1 as aB,Nk as aC,Mk as aD,Ek as aE,Lk as aF,Ck as aG,Tk as aH,Ik as aI,Dk as aJ,Rk as aK,Ok as aL,kk as aM,US as aN,XR as aO,yk as aP,Wk as aQ,Gk as aR,Uk as aS,_k as aT,zk as aU,Fk as aV,jk as aW,Xk as aX,Vk as aY,Bk as aZ,$k as a_,xR as aa,Gw as ab,nR as ac,hk as ad,LR as ae,CS as af,Uw as ag,AR as ah,NS as ai,GS as aj,lk as ak,sR as al,cR as am,ck as an,YR as ao,uR as ap,aS as aq,iR as ar,Hw as as,Sk as at,Bm as au,xk as av,wk as aw,vR as ax,ZS as ay,Pk as az,ek as b,dS as b$,qk as b0,Yk as b1,eS as b2,tE as b3,Jk as b4,nE as b5,Qk as b6,eE as b7,Zk as b8,Kk as b9,nk as bA,jR as bB,rS as bC,bE as bD,vE as bE,xE as bF,wE as bG,AS as bH,OR as bI,MR as bJ,SE as bK,RE as bL,CE as bM,kE as bN,EE as bO,IE as bP,OE as bQ,PE as bR,ME as bS,TE as bT,AE as bU,DE as bV,NE as bW,LE as bX,KS as bY,mR as bZ,YS as b_,Rv as ba,uk as bb,vS as bc,St as bd,oE as be,Pr as bf,Ss as bg,sE as bh,iE as bi,aE as bj,cE as bk,nf as bl,IR as bm,OS as bn,dE as bo,lE as bp,uE as bq,QS as br,TR as bs,pE as bt,mE as bu,fE as bv,yE as bw,hE as bx,gE as by,NR as bz,FR as c,iS as c0,xS as c1,FE as c2,_E as c3,nS as c4,jw as c5,dk as c6,fS as c7,zE as c8,VE as c9,Fw as cA,Nw as cB,Aw as cC,ik as cD,hR as cE,bS as cF,qR as cG,rR as cH,lS as ca,bR as cb,qS as cc,TS as cd,MS as ce,HS as cf,KR as cg,VS as ch,cS as ci,Yw as cj,gR as ck,_R as cl,$R as cm,fR as cn,Bw as co,JS as cp,DS as cq,Ww as cr,Xw as cs,BS as ct,GR as cu,RR as cv,SS as cw,ER as cx,CR as cy,SR as cz,WS as d,PS as e,wS as f,BR as g,ok as h,JR as i,lR as j,bk as k,zS as l,ak as m,dR as n,VR as o,pR as p,mS as q,tR as r,qw as s,kR as t,ZR as u,oS as v,tS as w,wR as x,UR as y,QR as z};
817
+ `)},Bx=0,Wn=[];function Wx(e){var t=c.useRef([]),n=c.useRef([0,0]),o=c.useRef(),r=c.useState(Bx++)[0],s=c.useState(Df)[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(r));var g=dx([e.lockRef.current],(e.shards||[]).map(Rl),!0).filter(Boolean);return g.forEach(function(h){return h.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),g.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(g,h){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var b=mr(g),v=n.current,w="deltaX"in g?g.deltaX:v[0]-b[0],x="deltaY"in g?g.deltaY:v[1]-b[1],S,R=g.target,E=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in g&&E==="h"&&R.type==="range")return!1;var k=window.getSelection(),M=k&&k.anchorNode,C=M?M===R||M.contains(R):!1;if(C)return!1;var O=wl(E,R);if(!O)return!0;if(O?S=E:(S=E==="v"?"h":"v",O=wl(E,R)),!O)return!1;if(!o.current&&"changedTouches"in g&&(w||x)&&(o.current=S),!S)return!0;var I=o.current||S;return $x(I,h,g,I==="h"?w:x)},[]),l=c.useCallback(function(g){var h=g;if(!(!Wn.length||Wn[Wn.length-1]!==s)){var b="deltaY"in h?Sl(h):mr(h),v=t.current.filter(function(S){return S.name===h.type&&(S.target===h.target||h.target===S.shadowParent)&&Hx(S.delta,b)})[0];if(v&&v.should){h.cancelable&&h.preventDefault();return}if(!v){var w=(i.current.shards||[]).map(Rl).filter(Boolean).filter(function(S){return S.contains(h.target)}),x=w.length>0?a(h,w[0]):!i.current.noIsolation;x&&h.cancelable&&h.preventDefault()}}},[]),u=c.useCallback(function(g,h,b,v){var w={name:g,delta:h,target:b,should:v,shadowParent:Ux(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),d=c.useCallback(function(g){n.current=mr(g),o.current=void 0},[]),p=c.useCallback(function(g){u(g.type,Sl(g),g.target,a(g,e.lockRef.current))},[]),f=c.useCallback(function(g){u(g.type,mr(g),g.target,a(g,e.lockRef.current))},[]);c.useEffect(function(){return Wn.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Bn),document.addEventListener("touchmove",l,Bn),document.addEventListener("touchstart",d,Bn),function(){Wn=Wn.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,Bn),document.removeEventListener("touchmove",l,Bn),document.removeEventListener("touchstart",d,Bn)}},[]);var y=e.removeScrollBar,m=e.inert;return c.createElement(c.Fragment,null,m?c.createElement(s,{styles:jx(r)}):null,y?c.createElement(Dx,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ux(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Gx=xx(Af,Wx);var Ff=c.forwardRef(function(e,t){return c.createElement(Rs,Bt({},e,{ref:t,sideCar:Gx}))});Ff.classNames=Rs.classNames;var Yx=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Un=new WeakMap,yr=new WeakMap,br={},qs=0,zf=function(e){return e&&(e.host||zf(e.parentNode))},qx=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=zf(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Xx=function(e,t,n,o){var r=qx(t,Array.isArray(e)?e:[e]);br[n]||(br[n]=new WeakMap);var s=br[n],i=[],a=new Set,l=new Set(r),u=function(p){!p||a.has(p)||(a.add(p),u(p.parentNode))};r.forEach(u);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(f){if(a.has(f))d(f);else try{var y=f.getAttribute(o),m=y!==null&&y!=="false",g=(Un.get(f)||0)+1,h=(s.get(f)||0)+1;Un.set(f,g),s.set(f,h),i.push(f),g===1&&m&&yr.set(f,!0),h===1&&f.setAttribute(n,"true"),m||f.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",f,b)}})};return d(t),a.clear(),qs++,function(){i.forEach(function(p){var f=Un.get(p)-1,y=s.get(p)-1;Un.set(p,f),s.set(p,y),f||(yr.has(p)||p.removeAttribute(o),yr.delete(p)),y||p.removeAttribute(n)}),qs--,qs||(Un=new WeakMap,Un=new WeakMap,yr=new WeakMap,br={})}},Kx=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=Yx(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),Xx(o,r,n,"aria-hidden")):function(){return null}},Zx=Object.defineProperty,un=(e,t)=>Zx(e,"name",{value:t,configurable:!0}),ja="Dialog",[Vf,uE]=of(ja),[Jx,$n]=Vf(ja),dE=un(e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:i=!0}=e,a=c.useRef(null),l=c.useRef(null),[u,d]=af({prop:o,defaultProp:r??!1,onChange:s,caller:ja}),[p,f]=c.useState(0),[y,m]=c.useState(0);return K.jsx(Jx,{scope:t,triggerRef:a,contentRef:l,contentId:Pr(),titleId:Pr(),descriptionId:Pr(),titlePresent:p>0,descriptionPresent:y>0,setTitleCount:f,setDescriptionCount:m,open:u,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(g=>!g),[d]),modal:i,children:n})},"Dialog"),$f="DialogPortal",[Qx,Hf]=Vf($f,{forceMount:void 0}),fE=un(e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=$n($f,t);return K.jsx(Qx,{scope:t,forceMount:n,children:c.Children.map(o,i=>K.jsx(Va,{present:n||s.open,children:K.jsx(ax,{asChild:!0,container:r,children:i})}))})},"DialogPortal"),Ci="DialogOverlay",pE=c.forwardRef(un(function(t,n){const o=Hf(Ci,t.__scopeDialog),{forceMount:r=o.forceMount,...s}=t,i=$n(Ci,t.__scopeDialog);return i.modal?K.jsx(Va,{present:r||i.open,children:K.jsx(t2,{...s,ref:n})}):null},"DialogOverlay")),e2=_a("DialogOverlay.RemoveScroll"),t2=c.forwardRef(un(function(t,n){const{__scopeDialog:o,...r}=t,s=$n(Ci,o),i=yf(),a=wo(n,i);return K.jsx(Ff,{as:e2,allowPinchZoom:!0,shards:[s.contentRef],children:K.jsx(Ss.div,{"data-state":Ba(s.open),...r,ref:a,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),$o="DialogContent",hE=c.forwardRef(un(function(t,n){const o=Hf($o,t.__scopeDialog),{forceMount:r=o.forceMount,...s}=t,i=$n($o,t.__scopeDialog);return K.jsx(Va,{present:r||i.open,children:i.modal?K.jsx(n2,{...s,ref:n}):K.jsx(o2,{...s,ref:n})})},"DialogContent")),n2=c.forwardRef(un(function(t,n){const o=$n($o,t.__scopeDialog),r=c.useRef(null),s=wo(n,o.contentRef,r);return c.useEffect(()=>{const i=r.current;if(i)return Kx(i)},[]),K.jsx(jf,{...t,ref:s,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:Dn(t.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=o.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Dn(t.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:Dn(t.onFocusOutside,i=>i.preventDefault())})},"DialogContentModal")),o2=c.forwardRef(un(function(t,n){const o=$n($o,t.__scopeDialog),r=c.useRef(!1),s=c.useRef(!1);return K.jsx(jf,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,l;(a=t.onCloseAutoFocus)==null||a.call(t,i),i.defaultPrevented||(r.current||(l=o.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var u,d;(u=t.onInteractOutside)==null||u.call(t,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const a=i.target;((d=o.triggerRef.current)==null?void 0:d.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})},"DialogContentNonModal")),jf=c.forwardRef(un(function(t,n){const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...a}=t,l=$n($o,o);return Ha(),K.jsx(K.Fragment,{children:K.jsx(rx,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:K.jsx(tx,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":Ba(l.open),...a,ref:n,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl"));function Ba(e){return e?"open":"closed"}un(Ba,"getState");function r2(e){const{open:t,defaultOpen:n,onOpenChange:o,disabled:r}=e,[s,i]=Lt({controlled:t,default:n,name:"Collapsible",state:"open"}),{mounted:a,setMounted:l,transitionStatus:u}=ln(s,!0,!0),d=rt(),[p,f]=c.useState(),y=p===null?void 0:p??d,m=le(g=>{const h=!s,b=Re(Rn,g.nativeEvent);o(h,b),!b.isCanceled&&i(h)});return c.useMemo(()=>({defaultPanelId:d,disabled:r,handleTrigger:m,mounted:a,open:s,panelId:y,setMounted:l,setOpen:i,setPanelIdState:f,transitionStatus:u}),[d,r,m,a,s,y,l,i,f,u])}const Bf=c.createContext(void 0);function Wf(){const e=c.useContext(Bf);if(e===void 0)throw new Error(Ne(15));return e}let Wa=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Nr.startingStyle]="startingStyle",e[e.endingStyle=Nr.endingStyle]="endingStyle",e})({}),s2=(function(e){return e.panelOpen="data-panel-open",e})({});const i2={[Wa.open]:""},a2={[Wa.closed]:""},c2={open(e){return e?{[s2.panelOpen]:""}:null}},l2={open(e){return e?i2:a2}},Uf={...l2,...Gt},gE=c.forwardRef(function(t,n){const{render:o,className:r,defaultOpen:s=!1,disabled:i=!1,onOpenChange:a,open:l,style:u,...d}=t,p=le(a),f=r2({open:l,defaultOpen:s,onOpenChange:p,disabled:i}),y=c.useMemo(()=>({open:f.open,disabled:f.disabled,transitionStatus:f.transitionStatus}),[f.open,f.disabled,f.transitionStatus]),m=c.useMemo(()=>({...f,onOpenChange:p,state:y}),[f,p,y]),g=ke("div",t,{state:y,ref:n,props:d,stateAttributesMapping:Uf});return K.jsx(Bf.Provider,{value:m,children:g})}),u2={...c2,...Gt},mE=c.forwardRef(function(t,n){const{panelId:o,open:r,handleTrigger:s,state:i,disabled:a}=Wf(),{className:l,disabled:u=a,render:d,nativeButton:p=!0,style:f,...y}=t,{getButtonProps:m,buttonRef:g}=Tt({disabled:u,focusableWhenDisabled:!0,native:p});return ke("button",t,{state:i,ref:[n,g],props:[{"aria-controls":r?o:void 0,"aria-expanded":r,onClick:s},y,m],stateAttributesMapping:u2})}),Po={height:void 0,width:void 0};function d2(e){const{externalRef:t,hiddenUntilFound:n,id:o,keepMounted:r,mounted:s,onOpenChange:i,open:a,setMounted:l,setOpen:u,transitionStatus:d}=e,p=c.useRef(null),f=c.useRef(null),[y,m]=c.useState(Po),g=c.useRef(Po),h=c.useRef(!1),b=c.useRef(a),v=c.useRef(!1),[w,x]=c.useState(!1),S=c.useRef(null),R=Dt(t,p),E=Ze(a),k=Ki(p),M=!a&&!s,C=w?"idle":d,O=a&&(b.current||v.current),I=!a&&s&&f.current==="css-animation"&&y.height===void 0&&y.width===void 0?g.current:y,D=n&&M&&f.current!=="css-animation",N=le((F,T=!0)=>{T&&(g.current=F),m(F)}),P=le(()=>{var F;(F=S.current)==null||F.call(S),S.current=null}),z=le(F=>{P(),S.current=()=>{S.current=null,F()}}),L=le(()=>{a&&s&&f.current==="css-animation"&&(v.current=!0)});re(()=>{!w||d==="starting"||x(!1)},[w,d]),c.useEffect(()=>()=>{L(),P()},[L,P]),re(()=>{const F=p.current;if(!F)return;!a&&S.current&&P();const T=f2(F,O);if(f.current=T,a&&d==="idle"&&b.current&&T==="css-animation"){g.current=Gn(F);return}if(a&&d==="starting"){const $=h.current;if(h.current=!1,T==="none"){N(Gn(F)),x(!0);return}if(T==="css-transition"){const V=p2(F);if(N(Gn(F)),!$)return V;const J=vr(F,"transition-duration","0s");return z(J),x(!0),V}N(Gn(F));const U=vr(F,"animation-name","none");if(!$){U();return}const Y=vr(F,"animation-duration","0s");U(),z(Y),x(!0);return}if(!a&&s&&(d==="idle"||d==="starting")){if(b.current=!1,v.current=!1,T==="none"){N(Po,!1),l(!1);return}N(Gn(F));return}if(d!=="ending")return;if(T==="none"){l(!1);return}const _=Gn(F);if(!(_.height>0||_.width>0)){l(!1);return}N(_),T==="css-animation"&&vr(F,"animation-name","none")()},[s,a,P,N,l,z,O,d]),kt({enabled:a&&s&&C==="idle",open:!0,ref:p,onComplete(){a&&N(Po,!1)}}),c.useEffect(()=>{if(a||!s||C!=="ending"||!p.current)return;const T=new AbortController;let _=-1;function j(){E.current||(l(!1),N(Po,!1))}return _=vt.request(()=>{k(j,T.signal)}),()=>{vt.cancel(_),T.abort()}},[E,s,a,C,k,N,l]),re(()=>{const F=p.current;!F||!n||!M||F.setAttribute("hidden","until-found")},[M,n]),c.useEffect(function(){const T=p.current;if(!T)return;function _(j){const $=Re(Rt,j);i(!0,$),!$.isCanceled&&(h.current=!0,u(!0))}return Me(T,"beforematch",_)},[i,u]);const A=r||n||s||a;return{height:I.height,props:{...D?{[Wa.startingStyle]:""}:void 0,hidden:M,id:o},ref:R,shouldPreventOpenAnimation:O,shouldRender:A,transitionStatus:C,width:I.width}}function Gn(e){return{height:e.scrollHeight,width:e.scrollWidth}}function f2(e,t){const n=He(e).getComputedStyle(e),o=(n.animationName.split(",").map(s=>s.trim()).some(s=>s!==""&&s!=="none")||t)&&kl(n.animationDuration),r=kl(n.transitionDuration);return o&&r||r?"css-transition":o?"css-animation":"none"}function kl(e){return e.split(",").map(t=>t.trim()).some(t=>t!==""&&Number.parseFloat(t)>0)}function vr(e,t,n){const o=e.style.getPropertyValue(t),r=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{if(o===""){e.style.removeProperty(t);return}e.style.setProperty(t,o,r)}}function p2(e){const t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(r=>{e.style.setProperty(r,"initial","important")});function n(){Object.entries(t).forEach(([r,s])=>{if(s===""){e.style.removeProperty(r);return}e.style.setProperty(r,s)})}const o=vt.request(n);return()=>{vt.cancel(o),n()}}let El=(function(e){return e.collapsiblePanelHeight="--collapsible-panel-height",e.collapsiblePanelWidth="--collapsible-panel-width",e})({});const yE=c.forwardRef(function(t,n){const{className:o,hiddenUntilFound:r,keepMounted:s,render:i,id:a,style:l,...u}=t,{defaultPanelId:d,mounted:p,onOpenChange:f,open:y,setMounted:m,setPanelIdState:g,setOpen:h,state:b,transitionStatus:v}=Wf(),w=r??!1,x=s??!1,S=a||void 0,R=S??d;re(()=>(g(L=>S??(L===null?void 0:L)),()=>{g(L=>L===S?null:L)}),[S,g]);const{height:E,props:k,ref:M,shouldPreventOpenAnimation:C,shouldRender:O,transitionStatus:I,width:D}=d2({externalRef:n,hiddenUntilFound:w,id:R,keepMounted:x,mounted:p,onOpenChange:f,open:y,setMounted:m,setOpen:h,transitionStatus:v}),N={...b,transitionStatus:I},P=du(l,N),z=ke("div",{...t,style:void 0},{state:N,ref:M,props:[k,{style:{[El.collapsiblePanelHeight]:E===void 0?"auto":`${E}px`,[El.collapsiblePanelWidth]:D===void 0?"auto":`${D}px`}},u,P?{style:P}:void 0,C?{style:{animationName:"none"}}:void 0],stateAttributesMapping:Uf});return O?z:null}),Gf=c.createContext(void 0);function ks(e){const t=c.useContext(Gf);if(t===void 0&&!e)throw new Error(Ne(72));return t}const h2={...Sa,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class g2 extends Uo{constructor(n,o,r){const s=new Go;super(m2(n,s,o,r),y2(s),h2);De(this,"setOpen",(n,o)=>{q1(this,n,o,{extraState:{openChangeReason:o.reason}})})}cancelPendingOpen(n){this.state.floatingRootContext.dispatchOpenChange(!1,Re(Rn,n))}}function m2(e,t,n,o=!1){const r={...xa(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e};return r.floatingRootContext=vd(t,n,o),r}function y2(e){return{popupRef:c.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}const bE=pa(function(t){const{disabled:n=!1,defaultOpen:o=!1,open:r,disableHoverablePopup:s=!1,trackCursorAxis:i="none",actionsRef:a,onOpenChange:l,onOpenChangeComplete:u,handle:d,triggerId:p,defaultTriggerId:f=null,children:y}=t,m=yd((O,I)=>new g2({open:o,openProp:r,activeTriggerId:f,triggerIdProp:p},O,I));m.useControlledProp("openProp",r),m.useControlledProp("triggerIdProp",p),m.useContextCallback("onOpenChange",l),m.useContextCallback("onOpenChangeComplete",u);const g=m.useState("open"),h=!n&&g,b=m.useState("activeTriggerId"),v=m.useState("mounted"),w=m.useState("payload");m.useSyncedValues({trackCursorAxis:i,disableHoverablePopup:s,disabled:n}),ya(m,{closeOnActiveTriggerUnmount:!0});const{forceUnmount:x,transitionStatus:S}=ba(h,m),R=m.useState("isInstantPhase"),E=m.useState("instantType"),k=m.useState("lastOpenChangeReason"),M=c.useRef(null);re(()=>{g&&n&&m.setOpen(!1,Re(Tu))},[g,n,m]),re(()=>{S==="ending"&&k===Rt||S!=="ending"&&R?(E!=="delay"&&(M.current=E),m.set("instantType","delay")):M.current!==null&&(m.set("instantType",M.current),M.current=null)},[S,R,k,E,m]),re(()=>{h&&b==null&&m.set("payload",void 0)},[m,b,h]),c.useImperativeHandle(a,()=>({unmount:x,close:()=>m.setOpen(!1,Re(Wi))}),[x,m]);const C=h||v||!n&&i!=="none";return K.jsxs(Gf.Provider,{value:m,children:[d&&K.jsx(ha,{handle:d,store:m}),C&&K.jsx(b2,{store:m,disabled:n,trackCursorAxis:i}),typeof y=="function"?y({payload:w}):y]})});function b2({store:e,disabled:t,trackCursorAxis:n}){const o=e.useState("floatingRootContext"),r=is(o,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),s=Wy(o,{enabled:!t&&n!=="none",axis:n==="none"?void 0:n}),i=c.useMemo(()=>St(s.reference,r.reference),[s.reference,r.reference]);return va(e,{activeTriggerProps:i,inactiveTriggerProps:i,popupProps:r.floating??We}),null}const Yf=c.createContext(void 0);function v2(){return c.useContext(Yf)}const Cl=600,qf="data-base-ui-tooltip-trigger";function Pl(e){if("composedPath"in e){const n=e.composedPath();for(let o=0;o<n.length;o+=1){const r=n[o];if(Oe(r))return r}}const t=e.target;return Oe(t)?t:null}function x2(e){let t=e;for(;t;){const n=t.closest(`[${qf}]`);if(n)return n;const o=t.getRootNode();t="host"in o&&Oe(o.host)?o.host:null}return null}const vE=gd(function(t,n){const{render:o,className:r,style:s,handle:i,payload:a,disabled:l,delay:u,closeOnClick:d=!0,closeDelay:p,id:f,...y}=t,m=ks(!0),h=Ra(i)??m;if(!h)throw new Error(Ne(82));const b=rt(f),v=h.useState("isTriggerActive",b),w=h.useState("isOpenedByTrigger",b),x=h.useState("floatingRootContext"),S=c.useRef(null),R=u??Cl,E=p??0,{registerTrigger:k,isMountedByThisTrigger:M}=ma(b,S,h,{payload:a,closeOnClick:d,closeDelay:E}),C=v2(),{delayRef:O,isInstantPhase:I,hasProvider:D}=py(x,{open:w}),N=Ea(x);h.useSyncedValue("isInstantPhase",I);const P=h.useState("disabled"),z=l??P,L=Ze(z),A=h.useState("trackCursorAxis"),F=h.useState("disableHoverablePopup"),T=c.useRef(!1),_=Ge(),j=c.useRef(void 0);function $(){return D?vn(O.current,"open")===0?0:u??C??Cl:R}function U(Q){const ee=S.current;if(!ee||!Q)return!1;const ie=x2(Q);return ie!==null&&ie!==ee&&ve(ee,ie)}function Y(Q){const ee=U(Q);return T.current=ee,ee&&(N.openChangeTimeout.clear(),N.restTimeout.clear(),N.restTimeoutPending=!1,_.clear()),ee}const V=kd(x,{enabled:!z,mouseOnly:!0,move:!1,handleClose:!F&&A!=="both"?Pd():null,restMs:$,delay(){return p==null&&D?{close:vn(O.current,"close")}:{close:E}},triggerElementRef:S,isActiveTrigger:v,isClosing:()=>h.select("transitionStatus")==="ending",shouldOpen(){return!T.current}}),J=wd(x,{enabled:!z}).reference,H=Q=>{const ee=T.current,ie=Pl(Q),xe=Y(ie),ae=S.current,he=ae&&ie&&ve(ae,ie);if(xe&&h.select("open")&&h.select("lastOpenChangeReason")===ot){h.setOpen(!1,Re(ot,Q));return}if(ee&&!xe&&he&&!L.current&&!h.select("open")&&ae&&mn(j.current)){const oe=()=>{!T.current&&!L.current&&!h.select("open")&&h.setOpen(!0,Re(ot,Q,ae))},ge=$();ge===0?(_.clear(),oe()):_.start(ge,oe)}},G=h.useState("triggerProps",M);return ke("button",t,{state:{open:w},ref:[n,k,S],props:[V,J,M||A!=="none"?G:void 0,{onMouseOver(Q){H(Q.nativeEvent)},onFocus(Q){U(Pl(Q.nativeEvent))&&Q.preventBaseUIHandler()},onMouseLeave(){T.current=!1,_.clear(),j.current=void 0},onPointerEnter(Q){j.current=Q.pointerType},onPointerDown(Q){j.current=Q.pointerType,h.set("closeOnClick",d),d&&!h.select("open")&&h.cancelPendingOpen(Q.nativeEvent)},onClick(Q){d&&!h.select("open")&&h.cancelPendingOpen(Q.nativeEvent)},id:b,"data-trigger-disabled":z?"":void 0,[qf]:z?void 0:""},y],stateAttributesMapping:Hi})}),Xf=c.createContext(void 0);function w2(){const e=c.useContext(Xf);if(e===void 0)throw new Error(Ne(70));return e}const S2=c.forwardRef(function(t,n){const{children:o,container:r,className:s,render:i,style:a,...l}=t,{node:u,subtree:d}=td({container:r,ref:n,componentProps:t,elementProps:l});return!d&&!u?null:K.jsxs(c.Fragment,{children:[d,u&&At.createPortal(o,u)]})}),xE=c.forwardRef(function(t,n){const{keepMounted:o=!1,...r}=t;return ks().useState("mounted")||o?K.jsx(Xf.Provider,{value:o,children:K.jsx(S2,{ref:n,...r})}):null}),Kf=c.createContext(void 0);function R2(){const e=c.useContext(Kf);if(e===void 0)throw new Error(Ne(71));return e}const wE=c.forwardRef(function(t,n){const{render:o,className:r,anchor:s,positionMethod:i="absolute",side:a="top",align:l="center",sideOffset:u=0,alignOffset:d=0,collisionBoundary:p="clipping-ancestors",collisionPadding:f=5,arrowPadding:y=5,sticky:m=!1,disableAnchorTracking:g=!1,collisionAvoidance:h=Ju,style:b,...v}=t,w=ks(),x=w2(),S=w.useState("open"),R=w.useState("mounted"),E=w.useState("trackCursorAxis"),k=w.useState("disableHoverablePopup"),M=w.useState("floatingRootContext"),C=w.useState("instantType"),O=w.useState("transitionStatus"),I=w.useState("adaptiveOrigin"),D=Pa({anchor:s,positionMethod:i,floatingRootContext:M,mounted:R,side:a,sideOffset:u,align:l,alignOffset:d,collisionBoundary:p,collisionPadding:f,sticky:m,arrowPadding:y,disableAnchorTracking:g,keepMounted:x,collisionAvoidance:h,adaptiveOrigin:I}),N=c.useMemo(()=>({open:S,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:E!=="none"?"tracking-cursor":C}),[S,D.side,D.align,D.anchorHidden,E,C]),P=Ta(t,N,{styles:D.positionerStyles,transitionStatus:O,props:v,refs:[n,w.useStateSetter("positionerElement")],hidden:!R,inert:!S||E==="both"||k});return K.jsx(Kf.Provider,{value:D,children:P})}),SE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,a=ks(),{side:l,align:u}=R2(),d=a.useState("open"),p=a.useState("instantType"),f=a.useState("transitionStatus"),y=a.useState("popupProps"),m=a.useState("floatingRootContext"),g=a.useState("disabled"),h=a.useState("closeDelay");kt({open:d,ref:a.context.popupRef,onComplete(){var x,S;d&&((S=(x=a.context).onOpenChangeComplete)==null||S.call(x,!0))}}),Rd(m,{enabled:!g,closeDelay:h});const b=a.useStateSetter("popupElement");return ke("div",t,{state:{open:d,side:l,align:u,instant:p,transitionStatus:f},ref:[n,a.context.popupRef,b],props:[us,y,ps(f),i],stateAttributesMapping:ji})}),RE=function(t){const{delay:n,closeDelay:o,timeout:r=400}=t,s=c.useMemo(()=>({open:n,close:o}),[n,o]);return K.jsx(Yf.Provider,{value:n,children:K.jsx(fy,{delay:s,timeoutMs:r,children:t.children})})};function Zf(e,t,n,o=!0,r){const[s,i]=c.useState(),a=rt(r?`${r}-label`:void 0),l=e??t??s;return re(()=>{const u=e||t||!o?void 0:k2(n.current,a);s!==u&&i(u)}),l}function k2(e,t){const n=E2(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function E2(e){if(!e)return;const t=e.parentElement;if(t&&t.tagName==="LABEL")return t;const n=e.id;if(n){const r=e.nextElementSibling;if(r&&r.htmlFor===n)return r}const o=e.labels;return o&&o[0]}const C2=c.createContext({disabled:!1});function P2(){return c.useContext(C2)}const M2=c.forwardRef(function(t,n){const{render:o,className:r,id:s,name:i,value:a,disabled:l=!1,onValueChange:u,defaultValue:d,autoFocus:p=!1,style:f,...y}=t,{state:m,name:g,disabled:h,setTouched:b,setDirty:v,validityData:w,setFocused:x,setFilled:S,validationMode:R,validation:E}=vo(),{clearErrors:k}=ws(),M=h||l,C=g??i,O={...m,disabled:M},{labelId:I}=Yo(),D=xs({id:s});re(()=>{var _;const T=a!=null;(_=E.inputRef.current)!=null&&_.value||T&&a!==""?S(!0):T&&a===""&&S(!1)},[E.inputRef,S,a]);const N=c.useRef(null);re(()=>{p&&N.current===dt(Te(N.current))&&x(!0)},[p,x]);const[P]=Lt({controlled:a,default:d,name:"FieldControl",state:"value"}),z=a!==void 0,L=z?P:void 0,A=le(()=>{var T;return(T=E.inputRef.current)==null?void 0:T.value});return vs(E.inputRef,D,L,A,!M,i),ke("input",t,{ref:[n,N],state:O,props:[{id:D,disabled:M,name:C,ref:E.inputRef,"aria-labelledby":I,autoFocus:p,...z?{value:L}:{defaultValue:d},onChange(T){const _=T.currentTarget.value;u==null||u(_,Re(Rt,T.nativeEvent)),v(_!==(w.initialValue??"")),S(_!==""),T.nativeEvent.defaultPrevented||(k(C),E.change(_))},onFocus(){x(!0)},onBlur(T){b(!0),x(!1),R==="onBlur"&&E.commit(T.currentTarget.value)},onKeyDown(T){T.currentTarget.tagName==="INPUT"&&T.key==="Enter"&&(b(!0),E.commit(T.currentTarget.value))}},y,T=>E.getValidationProps(M,T)],stateAttributesMapping:bs})}),kE=c.forwardRef(function(t,n){return K.jsx(M2,{ref:n,...t})});function Jf(e){return Array.isArray(e)?e.map(t=>Jf(t)).join(","):e==null?"":String(e)}const Ml=new Map;function T2(e,t){const n=JSON.stringify({locale:Jf(e),options:t}),o=Ml.get(n);if(o)return o;const r=new Intl.NumberFormat(e,t);return Ml.set(n,r),r}function Tl(e,t,n){return e==null?"":T2(t,n).format(e)}function I2(e,t,n){return(e-t)*100/(n-t)}const Qf=c.createContext(void 0);function ep(){const e=c.useContext(Qf);if(e===void 0)throw new Error(Ne(51));return e}const Ua={status(e){return{[`data-${e}`]:""}}},EE=c.forwardRef(function(t,n){const{format:o,getAriaValueText:r,locale:s,max:i=100,min:a=0,value:l,render:u,className:d,children:p,style:f,...y}=t,[m,g]=c.useState();let h="indeterminate",b=null,v=null,w="",x="indeterminate progress";if(l!=null&&Number.isFinite(l)){const M=I2(l,a,i);b=hn(Number.isNaN(M)?0:M,0,100),v=hn(l,a,i),h=v===i?"complete":"progressing",w=o?Tl(v,s,o):Tl(b/100,s,{style:"percent"}),x=w}const S=c.useMemo(()=>({status:h}),[h]),R={"aria-labelledby":m,"aria-valuemax":i,"aria-valuemin":a,"aria-valuenow":v??void 0,"aria-valuetext":r?r(w,l):x,role:"progressbar",children:K.jsxs(c.Fragment,{children:[p,K.jsx("span",{role:"presentation",style:Bo,children:"x"})]})},E=c.useMemo(()=>({formattedValue:w,percentageValue:b,setLabelId:g,state:S,value:l}),[w,b,g,S,l]),k=ke("div",t,{state:S,ref:n,props:[R,y],stateAttributesMapping:Ua});return K.jsx(Qf.Provider,{value:E,children:k})}),CE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{state:a}=ep();return ke("div",t,{state:a,ref:n,props:i,stateAttributesMapping:Ua})}),PE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{percentageValue:a,state:l}=ep(),u=a==null?{}:{insetInlineStart:0,height:"inherit",width:`${a}%`};return ke("div",t,{state:l,ref:n,props:[{style:u},i],stateAttributesMapping:Ua})}),tp=c.createContext(void 0);function Es(){const e=c.useContext(tp);if(e===void 0)throw new Error(Ne(53));return e}const O2=500,Pi=16;function gn(e,t,n){if(!e)return 0;const o=getComputedStyle(e),r=`${t}${n==="x"?"Inline":"Block"}`,s=parseFloat(o[`${r}Start`]);return n==="x"&&t==="margin"?s*2:s+parseFloat(o[`${r}End`])}const Yn=e=>t=>t?{[e]:""}:null,Ga={hasOverflowX:Yn("data-has-overflow-x"),hasOverflowY:Yn("data-has-overflow-y"),overflowXStart:Yn("data-overflow-x-start"),overflowXEnd:Yn("data-overflow-x-end"),overflowYStart:Yn("data-overflow-y-start"),overflowYEnd:Yn("data-overflow-y-end"),cornerHidden:()=>null},A2={x:0,y:0},Il={width:0,height:0},D2={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},N2={x:!0,y:!0,corner:!0},ME=c.forwardRef(function(t,n){const{render:o,className:r,overflowEdgeThreshold:s,style:i,...a}=t,{xStart:l,xEnd:u,yStart:d,yEnd:p}=L2(s),f=rt(),y=Ge(),m=Ge(),{nonce:g,disableStyleElements:h}=Da(),[b,v]=c.useState(!1),[w,x]=c.useState(!1),[S,R]=c.useState(!1),[E,k]=c.useState(!1),[M,C]=c.useState(!1),[O,I]=c.useState(Il),[D,N]=c.useState(Il),[P,z]=c.useState(D2),[L,A]=c.useState(N2),F=c.useRef(null),T=c.useRef(null),_=c.useRef(null),j=c.useRef(null),$=c.useRef(null),U=c.useRef(null),Y=c.useRef(null),V=c.useRef(null),J=c.useRef(0),H=c.useRef(0),G=c.useRef(0),ue=c.useRef(0),ne=c.useRef("vertical"),te=c.useRef(A2),Q=c.useRef(null);function ee(se){const Z=se?R:x,X=se?y:m;Z(!0),X.start(O2,()=>{Z(!1)})}const ie=le(se=>{const Z=se.x-te.current.x,X=se.y-te.current.y;te.current=se,X!==0&&ee(!0),Z!==0&&ee(!1)}),xe=le(()=>{const se=T.current;se&&Q.current===null&&(Q.current=se.style.scrollSnapType,se.style.scrollSnapType="none")}),ae=le(se=>{if(se.button!==0)return;if(V.current!==null){const pe=ne.current==="vertical"?$.current:U.current;if(pe!=null&&pe.hasPointerCapture(V.current))return}V.current=se.pointerId,J.current=se.clientY,H.current=se.clientX,ne.current=se.currentTarget.getAttribute("data-orientation");const Z=T.current;Z&&(G.current=Z.scrollTop,ue.current=Z.scrollLeft,xe());const X=ne.current==="vertical"?$.current:U.current;X==null||X.setPointerCapture(se.pointerId)}),he=le(se=>{if(se.pointerId!==V.current)return;V.current=null,(ne.current==="vertical"?R:x)(!1),Q.current!==null&&(T.current&&(T.current.style.scrollSnapType=Q.current),Q.current=null);const Z=ne.current==="vertical"?$.current:U.current;Z!=null&&Z.hasPointerCapture(se.pointerId)&&Z.releasePointerCapture(se.pointerId)}),oe=le(se=>{if(se.pointerId!==V.current)return;if(se.buttons%2===0){he(se);return}const Z=T.current;if(!Z)return;const X=ne.current==="vertical",pe=X?$.current:U.current,be=X?_.current:j.current;if(!pe||!be)return;const Le=X?"y":"x",Ue=gn(be,"padding",Le),qe=gn(pe,"margin",Le),st=X?pe.offsetHeight:pe.offsetWidth,Qe=(X?be.offsetHeight:be.offsetWidth)-st-Ue-qe,ct=X?se.clientY-J.current:se.clientX-H.current,Se=Qe<=0?0:ct/Qe,je=X?Z.scrollHeight:Z.scrollWidth,Ye=X?Z.clientHeight:Z.clientWidth,Xe=(X?G.current:ue.current)+Se*(je-Ye);X?Z.scrollTop=Xe:Z.scrollLeft=Xe,se.preventDefault(),ee(X)});function ge(se){k(se.pointerType==="touch")}function de(se){if(ge(se),se.pointerType!=="touch"){const Z=ve(F.current,se.target);v(Z)}}const ce=c.useMemo(()=>({scrolling:w||S,hasOverflowX:!L.x,hasOverflowY:!L.y,overflowXStart:P.xStart,overflowXEnd:P.xEnd,overflowYStart:P.yStart,overflowYEnd:P.yEnd,cornerHidden:L.corner}),[w,S,L.x,L.y,L.corner,P]),fe={role:"presentation",onPointerEnter:de,onPointerMove:de,onPointerDown:ge,onPointerLeave(){v(!1)},style:{position:"relative","--scroll-area-corner-height":`${O.height}px`,"--scroll-area-corner-width":`${O.width}px`}},B=ke("div",t,{state:ce,ref:[n,F],props:[fe,a],stateAttributesMapping:Ga}),q=c.useMemo(()=>({handlePointerDown:ae,handlePointerMove:oe,handlePointerUp:he,handleScroll:ie,disableViewportSnap:xe,cornerSize:O,setCornerSize:I,thumbSize:D,setThumbSize:N,hasMeasuredScrollbar:M,setHasMeasuredScrollbar:C,touchModality:E,cornerRef:Y,scrollingX:w,scrollingY:S,hovering:b,setHovering:v,viewportRef:T,scrollbarYRef:_,scrollbarXRef:j,thumbYRef:$,thumbXRef:U,rootId:f,hiddenState:L,setHiddenState:A,overflowEdges:P,setOverflowEdges:z,viewportState:ce,overflowEdgeThreshold:{xStart:l,xEnd:u,yStart:d,yEnd:p}}),[ae,oe,he,ie,xe,O,D,M,E,w,S,b,f,L,P,ce,l,u,d,p]);return K.jsxs(tp.Provider,{value:q,children:[!h&&Vo.getElement(g),B]})});function L2(e){const t=typeof e=="number"?{xStart:e,xEnd:e,yStart:e,yEnd:e}:e;return{xStart:Math.max(0,(t==null?void 0:t.xStart)||0),xEnd:Math.max(0,(t==null?void 0:t.xEnd)||0),yStart:Math.max(0,(t==null?void 0:t.yStart)||0),yEnd:Math.max(0,(t==null?void 0:t.yEnd)||0)}}const _2=c.createContext(void 0),np=["--scroll-area-overflow-x-start","--scroll-area-overflow-x-end","--scroll-area-overflow-y-start","--scroll-area-overflow-y-end"];let Ol=!1;function F2(){Ol||Yt||(typeof CSS<"u"&&"registerProperty"in CSS&&np.forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),Ol=!0)}const TE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{viewportRef:a,scrollbarYRef:l,scrollbarXRef:u,thumbYRef:d,thumbXRef:p,cornerRef:f,cornerSize:y,setCornerSize:m,setThumbSize:g,rootId:h,setHiddenState:b,hiddenState:v,setHasMeasuredScrollbar:w,handleScroll:x,touchModality:S,setHovering:R,setOverflowEdges:E,overflowEdgeThreshold:k,viewportState:M}=Es(),C=bo(),O=c.useRef(!0),I=c.useRef([NaN,NaN,NaN,NaN]),D=Ge(),N=Ge(),P=le(()=>{const T=a.current,_=l.current,j=u.current,$=d.current,U=p.current,Y=f.current;if(!T)return;const V=T.scrollHeight,J=T.scrollWidth,H=T.clientHeight,G=T.clientWidth,ue=T.scrollTop,ne=T.scrollLeft,te=I.current,Q=Number.isNaN(te[0]);if(te[0]=H,te[1]=V,te[2]=G,te[3]=J,Q&&w(!0),V===0||J===0)return;const ee=z2(T),ie=ee.y,xe=ee.x,ae=G/J,he=H/V,oe=Math.max(0,J-G),ge=Math.max(0,V-H);let de=0,ce=0;xe||(de=fo(C==="rtl"?-ne:ne,oe),ce=oe-de);const fe=ie?0:fo(ue,ge),B=ie?0:ge-fe,q=xe?0:G,se=ie?0:H;let Z=0,X=0;!xe&&!ie&&(Z=(_==null?void 0:_.offsetWidth)||0,X=(j==null?void 0:j.offsetHeight)||0);const pe=y.width===0&&y.height===0,be=pe?Z:0,Le=pe?X:0,Ue=gn(j,"padding","x"),qe=gn(_,"padding","y"),st=gn(U,"margin","x"),_e=gn($,"margin","y"),Qe=q-Ue-st,ct=se-qe-_e,Se=j?Math.min(j.offsetWidth-be,Qe):Qe,je=_?Math.min(_.offsetHeight-Le,ct):ct,Ye=Math.max(Pi,Se*ae),Be=Math.max(Pi,je*he);if(g(we=>xr(we,{width:Ye,height:Be})),_&&$){const we=_.offsetHeight-Be-qe-_e,Ae=Al($,"--scroll-area-thumb-height",ue,ge,V,Be,we);$.style.transform=`translate3d(0,${Ae}px,0)`}if(j&&U){const we=j.offsetWidth-Ye-Ue-st,Ae=C==="rtl"?-ne:ne,Je=Al(U,"--scroll-area-thumb-width",Ae,oe,J,Ye,we);U.style.transform=`translate3d(${C==="rtl"?-Je:Je}px,0,0)`}const Xe=[de,ce,fe,B];np.forEach((we,Ae)=>{T.style.setProperty(we,`${Xe[Ae]}px`)}),Y&&m(we=>xr(we,{width:Z,height:X})),b(we=>xr(we,ee));const pt={xStart:!xe&&de>k.xStart,xEnd:!xe&&ce>k.xEnd,yStart:!ie&&fe>k.yStart,yEnd:!ie&&B>k.yEnd};E(we=>xr(we,pt))});re(()=>{F2()},[]),re(()=>{queueMicrotask(P)},[P,v,C,k.xStart,k.xEnd,k.yStart,k.yEnd]),re(()=>{var T;(T=a.current)!=null&&T.matches(":hover")&&R(!0)},[a,R]),re(()=>{const T=a.current;if(typeof ResizeObserver>"u"||!T)return;let _=!1;const j=new ResizeObserver(()=>{if(!_){_=!0;const $=I.current;if($[0]===T.clientHeight&&$[1]===T.scrollHeight&&$[2]===T.clientWidth&&$[3]===T.scrollWidth)return}P()});return j.observe(T),N.start(0,()=>{const $=T.getAnimations({subtree:!0});$.length!==0&&Promise.allSettled($.map(U=>U.finished)).then(P).catch(()=>{})}),()=>{j.disconnect(),N.clear()}},[P,a,N]);function z(){O.current=!1}const L={role:"presentation",...h&&{"data-id":`${h}-viewport`},tabIndex:v.x&&v.y?-1:0,className:Vo.className,style:{overflow:"scroll"},onScroll(){a.current&&(P(),(S||!O.current)&&x({x:a.current.scrollLeft,y:a.current.scrollTop}),D.start(100,()=>{O.current=!0}))},onWheel:z,onPointerMove:z,onPointerEnter:z,onKeyDown:z},A=ke("div",t,{ref:[n,a],state:M,props:[L,i],stateAttributesMapping:Ga}),F=c.useMemo(()=>({computeThumbPosition:P}),[P]);return K.jsx(_2.Provider,{value:F,children:A})});function z2(e){const t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function xr(e,t){for(const n in t)if(e[n]!==t[n])return t;return e}function Al(e,t,n,o,r,s,i){const a=hn(n,0,o),l=n-a,u=Math.max(Pi,s*r/(r+Math.abs(l)));return e.style.setProperty(t,l?`${u}px`:""),(o?a/o*i:0)+(l>0?s-u:0)}const op=c.createContext(void 0);function V2(){const e=c.useContext(op);if(e===void 0)throw new Error(Ne(54));return e}const IE=c.forwardRef(function(t,n){const{render:o,className:r,orientation:s="vertical",keepMounted:i=!1,style:a,...l}=t,{hovering:u,scrollingX:d,scrollingY:p,hiddenState:f,scrollbarYRef:y,scrollbarXRef:m,viewportRef:g,thumbYRef:h,thumbXRef:b,handlePointerDown:v,handlePointerUp:w,handleScroll:x,disableViewportSnap:S,rootId:R,thumbSize:E,hasMeasuredScrollbar:k,viewportState:M}=Es(),C=s==="vertical",O={...M,hovering:u,scrolling:C?p:d,orientation:s},I=bo(),D=!k&&!i,N=C?f.y:f.x,P=i||!N;c.useEffect(()=>{if(!P)return;const A=g.current,F=C?y.current:m.current;if(!F)return;function T(_){if(!A||_.ctrlKey)return;const j=!C,$=j?"scrollLeft":"scrollTop",U=j?_.deltaX:_.deltaY;if(U===0)return;const Y=j?A.scrollWidth-A.clientWidth:A.scrollHeight-A.clientHeight,V=j&&I==="rtl"?-Y:0,J=j&&I==="rtl"?0:Y,H=A[$];H<=V&&U<0||H>=J&&U>0||(_.preventDefault(),A[$]=Math.min(J,Math.max(V,H+U)),x({x:A.scrollLeft,y:A.scrollTop}))}return Me(F,"wheel",T,{passive:!1})},[I,x,C,m,y,P,g]);const z={...R&&{"data-id":`${R}-scrollbar`},onPointerDown(A){if(A.button!==0)return;const F=et(A.nativeEvent),T=C?h.current:b.current;if(T&&ve(T,F))return;const _=g.current;if(!_)return;const j=C?y.current:m.current;if(!T||!j)return;const $=C?"y":"x",U=gn(T,"margin",$),Y=gn(j,"padding",$),V=C?T.offsetHeight:T.offsetWidth,J=j.getBoundingClientRect(),H=C?A.clientY-J.top-V/2-Y+U/2:A.clientX-J.left-V/2-Y+U/2,G=C?_.scrollHeight:_.scrollWidth,ue=C?_.clientHeight:_.clientWidth,te=(C?j.offsetHeight:j.offsetWidth)-V-Y-U;if(te<=0)return;const Q=H/te,ee=G-ue;S(),C?_.scrollTop=Q*ee:I==="rtl"?_.scrollLeft=-(1-Q)*ee:_.scrollLeft=Q*ee,x({x:_.scrollLeft,y:_.scrollTop}),v(A)},onPointerUp:w,onPointerCancel:w,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",visibility:D?"hidden":void 0,...C?{top:0,bottom:"var(--scroll-area-corner-height)",insetInlineEnd:0,"--scroll-area-thumb-height":`${E.height}px`}:{insetInlineStart:0,insetInlineEnd:"var(--scroll-area-corner-width)",bottom:0,"--scroll-area-thumb-width":`${E.width}px`}}},L=ke("div",t,{ref:[n,C?y:m],state:O,props:[z,l],stateAttributesMapping:Ga});return P?K.jsx(op.Provider,{value:s,children:L}):null}),OE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{thumbYRef:a,thumbXRef:l,handlePointerDown:u,handlePointerMove:d,handlePointerUp:p,scrollingX:f,scrollingY:y,hasMeasuredScrollbar:m}=Es(),g=V2(),h=g==="vertical";return ke("div",t,{ref:[n,h?a:l],state:{scrolling:h?y:f,orientation:g},props:[{onPointerDown:u,onPointerMove:d,onPointerUp:p,onPointerCancel:p,style:{visibility:m?void 0:"hidden",...h?{height:"var(--scroll-area-thumb-height)"}:{width:"var(--scroll-area-thumb-width)"}}},i]})}),AE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{cornerRef:a,cornerSize:l,hiddenState:u}=Es(),d=ke("div",t,{ref:[n,a],props:[{style:{position:"absolute",bottom:0,insetInlineEnd:0,width:l.width,height:l.height}},i]});return u.corner?null:d}),rp=c.createContext(void 0);function Cs(){const e=c.useContext(rp);if(e===void 0)throw new Error(Ne(64));return e}const Xo={tabActivationDirection:e=>({"data-activation-direction":e})},DE=c.forwardRef(function(t,n){const{className:o,defaultValue:r=0,onValueChange:s,orientation:i="horizontal",render:a,value:l,style:u,...d}=t,p=t.defaultValue!==void 0,f=c.useRef([]),[y,m]=c.useState(()=>new Map),[g,h]=Lt({controlled:l,default:r,name:"Tabs",state:"value"}),b=l!==void 0,[v,w]=c.useState(()=>new Map),x=c.useRef(void 0),S=c.useCallback(H=>Mi(v,H),[v]),[R,E]=c.useState(()=>({previousValue:g,tabActivationDirection:"none"})),{previousValue:k,tabActivationDirection:M}=R;let C=M,O=!1;k!==g&&(C=Dl(k,g,i,v),O=k!=null&&g!=null&&S(g)==null);const I=O?k:g,D=k!==I||M!==C;re(()=>{D&&E({previousValue:I,tabActivationDirection:C})},[I,D,C]);const N=le((H,G)=>{const ue=Dl(g,H,i,v);G.activationDirection=ue,s==null||s(H,G),!G.isCanceled&&h(H)}),P=le((H,G)=>{s==null||s(H,Re(G,void 0,void 0,{activationDirection:"none"}))}),z=le((H,G)=>(m(ue=>{const ne=new Map(ue);return ne.set(H,G),ne}),()=>{m(ue=>{if(ue.get(H)!==G)return ue;const ne=new Map(ue);return ne.delete(H),ne})})),L=c.useCallback(H=>y.get(H),[y]),A=c.useCallback(H=>{for(const G of v.values())if(H===G.value)return G.id},[v]),F=c.useMemo(()=>({getTabElementBySelectedValue:S,getTabIdByPanelValue:A,getTabPanelIdByValue:L,onValueChange:N,orientation:i,registerMountedTabPanel:z,setTabMap:w,tabActivationDirection:C,value:g}),[S,A,L,N,i,z,w,C,g]),T=c.useMemo(()=>{for(const H of v.values())if(H.value===g)return H},[v,g]),_=c.useMemo(()=>{for(const H of v.values())if(!H.disabled)return H.value},[v]),j=c.useRef(!p),$=c.useRef(r),U=c.useRef(p),Y=c.useRef(!1);re(()=>{var te;if(b)return;function H(Q,ee){h(Q),E({previousValue:Q,tabActivationDirection:"none"}),P(Q,ee),j.current=!1}if(v.size===0){Y.current&&g!==null&&!((te=x.current)!=null&&te.isConnected)&&H(null,vc);return}Y.current=!0,x.current=v.keys().next().value;const G=T==null?void 0:T.disabled,ue=T==null&&g!==null;if(!G&&g===$.current&&(U.current=!1),U.current&&G&&g===$.current)return;const ne=j.current;if(G||ue){const Q=_??null;if(g===Q){j.current=!1;return}let ee=vc;ne?ee=xc:G&&(ee=Tu),H(Q,ee);return}ne&&T!=null&&(P(g,xc),j.current=!1)},[_,b,P,T,h,v,g]);const J=ke("div",t,{state:{orientation:i,tabActivationDirection:C},ref:n,props:d,stateAttributesMapping:Xo});return K.jsx(rp.Provider,{value:F,children:K.jsx(gs,{elementsRef:f,children:J})})});function Mi(e,t){for(const[n,o]of e.entries())if(t===o.value)return n;return null}function Dl(e,t,n,o){if(e==null||t==null)return"none";const[r,s,i]=n==="horizontal"?["left","left","right"]:["top","up","down"],a=Mi(o,e),l=Mi(o,t);if(a==null||l==null)return a!==l&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?t>e?i:s:"none";const u=a.getBoundingClientRect()[r],d=l.getBoundingClientRect()[r];return d<u?s:d>u?i:"none"}const sp="data-composite-item-active",ip=c.createContext(void 0);function ap(){const e=c.useContext(ip);if(e===void 0)throw new Error(Ne(65));return e}const NE=c.forwardRef(function(t,n){const{className:o,disabled:r=!1,render:s,value:i,id:a,nativeButton:l=!0,style:u,...d}=t,{value:p,getTabPanelIdByValue:f,onValueChange:y,orientation:m,tabActivationDirection:g}=Cs(),{activateOnFocus:h,registerTabResizeObserverElement:b,tabsListElement:v}=ap(),{highlightedIndex:w,onHighlightedIndexChange:x}=Yr(),S=rt(a),R=c.useMemo(()=>({disabled:r,id:S,value:i}),[r,S,i]),{compositeProps:E,compositeRef:k,index:M}=Vd({metadata:R}),C=i===p,O=c.useRef(!1),I=c.useRef(null),D=le(Y=>{var V;(V=I.current)==null||V.call(I),I.current=Y?b(Y):null});re(()=>{if(O.current){O.current=!1;return}if(!(C&&M>-1&&w!==M))return;const Y=v;if(Y!=null){const V=dt(Te(Y));if(V&&ve(Y,V))return}r||x(M)},[C,M,w,x,r,v]);const{getButtonProps:N,buttonRef:P}=Tt({disabled:r,native:l,focusableWhenDisabled:!0}),z=f(i),L=c.useRef(!1),A=c.useRef(!1);function F(Y){y(i,Re(Rt,Y.nativeEvent,void 0,{activationDirection:"none"}))}function T(Y){C||r||F(Y)}function _(Y){C||r||h&&(!L.current||A.current)&&F(Y)}function j(Y){if(C||r)return;L.current=!0,A.current=Y.button===0;const V=Te(Y.currentTarget);function J(){L.current=!1,A.current=!1,V.removeEventListener("pointerup",J),V.removeEventListener("pointercancel",J)}V.addEventListener("pointerup",J),V.addEventListener("pointercancel",J)}return ke("button",t,{state:{disabled:r,active:C,orientation:m,tabActivationDirection:g},ref:[n,P,k,D],props:[E,{role:"tab","aria-controls":z,"aria-selected":C,id:S,onClick:T,onFocus:_,onPointerDown:j,[sp]:C?"":void 0,onKeyDownCapture(){O.current=!0}},d,N],stateAttributesMapping:Xo})}),$2="";function H2(){return Ke}function j2(){return!1}function B2(){return!0}function W2(){return cs.useSyncExternalStore(H2,j2,B2)}function U2(e){const{script:t}=e,{nonce:n}=Da();return W2()?K.jsx("script",{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var Nl;const G2={...Xo,activeTabPosition:()=>null,activeTabSize:()=>null},LE=c.forwardRef(function(t,n){const{className:o,render:r,renderBeforeHydration:s=!1,style:i,...a}=t,{getTabElementBySelectedValue:l,orientation:u,tabActivationDirection:d,value:p}=Cs(),{tabsListElement:f,registerIndicatorUpdateListener:y}=ap(),m=W1();c.useEffect(()=>y(m),[y,m]);let g=0,h=0,b=0,v=0,w=0,x=0,S=!1;if(p!=null&&f!=null){const I=l(p);if(I!=null){S=!0;const{width:D,height:N}=ll(I),{width:P,height:z}=ll(f),L=I.getBoundingClientRect(),A=f.getBoundingClientRect(),F=P>0?A.width/P:1,T=z>0?A.height/z:1;if(F>Number.EPSILON&&T>Number.EPSILON){const j=L.left-A.left,$=L.top-A.top;g=j/F+f.scrollLeft-f.clientLeft,b=$/T+f.scrollTop-f.clientTop}else g=I.offsetLeft,b=I.offsetTop;w=D,x=N,h=f.scrollWidth-g-w,v=f.scrollHeight-b-x}}const R=S?{left:g,right:h,top:b,bottom:v}:null,E=S?{width:w,height:x}:null,k=S?{"--active-tab-left":`${g}px`,"--active-tab-right":`${h}px`,"--active-tab-top":`${b}px`,"--active-tab-bottom":`${v}px`,"--active-tab-width":`${w}px`,"--active-tab-height":`${x}px`}:void 0,M=S&&w>0&&x>0,O=ke("span",t,{state:{orientation:u,activeTabPosition:R,activeTabSize:E,tabActivationDirection:d},ref:n,props:[{role:"presentation",style:k,hidden:!M},a,{suppressHydrationWarning:!0}],stateAttributesMapping:G2});return p==null?null:K.jsxs(c.Fragment,{children:[O,s&&(Nl||(Nl=K.jsx(U2,{script:$2})))]})}),Y2={...Xo,...Gt},_E=c.forwardRef(function(t,n){const{className:o,value:r,render:s,keepMounted:i=!1,style:a,...l}=t,{value:u,getTabIdByPanelValue:d,orientation:p,tabActivationDirection:f,registerMountedTabPanel:y}=Cs(),m=rt(),{ref:g,index:h}=yo(),b=r===u,{mounted:v,transitionStatus:w,setMounted:x}=ln(b),S=!v,R=d(r),E={hidden:S,orientation:p,tabActivationDirection:f,transitionStatus:w},k=c.useRef(null),M=ke("div",t,{state:E,ref:[n,g,k],props:[{"aria-labelledby":R,hidden:S,id:m,role:"tabpanel",tabIndex:b?0:-1,inert:hs(!b),"data-index":h},l],stateAttributesMapping:Y2});return kt({open:b,ref:k,onComplete(){b||x(!1)}}),re(()=>{if(!(m==null||S&&!i))return y(r,m)},[S,i,r,m,y]),i||v?M:null}),q2=[];function X2(e){const{loopFocus:t=!0,orientation:n="both",grid:o,onLoop:r,direction:s,highlightedIndex:i,onHighlightedIndexChange:a,rootRef:l,enableHomeAndEndKeys:u=!1,stopEventPropagation:d,disabledIndices:p,modifierKeys:f=q2}=e,[y,m]=c.useState(0),g=o!=null,h=c.useRef(null),b=Dt(h,l),v=c.useRef([]),w=c.useRef(!1),x=i??y,S=le((C,O=!1)=>{if((a??m)(C),O){const I=v.current[C];Qc(h.current,I,s,n)}}),R=le(C=>{var N;if(C.size===0||w.current)return;w.current=!0;const O=Array.from(C.keys()),I=O.find(P=>P==null?void 0:P.hasAttribute(sp))??null,D=I?((N=C.get(I))==null?void 0:N.index)??-1:-1;if(D!==-1)S(D);else if(Vr(O,x,p)){const P=Qt(O,{disabledIndices:p});Ao(O,P)||S(P)}Qc(h.current,I,s,n)});re(()=>{if(p==null||i!=null||!w.current)return;const C=v.current;if(Vr(C,x,p)){const O=Qt(C,{disabledIndices:p});Ao(C,O)||S(O)}},[p,i,x,v,S]);const E=le((C,O,I)=>r?r(C,O,I,v):I),k=le(C=>{const O=C.key===pi||C.key===hi;if(!fs.has(C.key)||!u&&O||K2(C,f)||!h.current)return;const D=s==="rtl",N=D?di:fi,P=D?fi:di,z=n==="vertical"?ui:N,L=n==="vertical"?li:P,A=et(C.nativeEvent);if(A!=null&&Jc(A)&&!Hd(A)){const U=A.selectionStart,Y=A.selectionEnd,V=A.value;if(U==null||C.shiftKey||U!==Y||C.key!==L&&U<V.length||C.key!==z&&U>0)return}let F=x;const T=Rr(v,p),_=ri(v,p);o!=null&&(F=o({disabledIndices:p,elementsRef:v,event:C,highlightedIndex:x,loopFocus:t,maxIndex:_,minIndex:T,onLoop:E,orientation:n,rtl:D}));const j=n!=="vertical"&&C.key===N||n!=="horizontal"&&C.key===ui,$=n!=="vertical"&&C.key===P||n!=="horizontal"&&C.key===li;u&&(C.key===pi?F=T:C.key===hi&&(F=_)),F===x&&(j||$)&&(t&&F===_&&j?(F=T,r&&(F=r(C,x,F,v))):t&&F===T&&$?(F=_,r&&(F=r(C,x,F,v))):F=Qt(v.current,{startingIndex:F,decrement:$,disabledIndices:p})),F!==x&&!Ao(v.current,F)&&(d&&C.stopPropagation(),(g||O||j||$)&&C.preventDefault(),S(F,!0),queueMicrotask(()=>{var U;(U=v.current[F])==null||U.focus()}))});return{props:{ref:b,onFocus(C){const O=h.current,I=et(C.nativeEvent);!O||I==null||!Jc(I)||I.setSelectionRange(0,I.value.length)},onKeyDown:k},highlightedIndex:x,onHighlightedIndexChange:S,elementsRef:v,onMapChange:R,relayKeyboardEvent:k}}function K2(e,t){for(const n of lb)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function cp(e){const{render:t,className:n,style:o,refs:r=Nt,props:s=Nt,state:i=We,stateAttributesMapping:a,highlightedIndex:l,onHighlightedIndexChange:u,orientation:d,grid:p,loopFocus:f,onLoop:y,enableHomeAndEndKeys:m,onMapChange:g,stopEventPropagation:h=!0,rootRef:b,disabledIndices:v,modifierKeys:w,highlightItemOnHover:x=!1,tag:S="div",...R}=e,E=bo(),{props:k,highlightedIndex:M,onHighlightedIndexChange:C,elementsRef:O,onMapChange:I,relayKeyboardEvent:D}=X2({grid:p,loopFocus:f,onLoop:y,orientation:d,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:b,stopEventPropagation:h,enableHomeAndEndKeys:m,direction:E,disabledIndices:v,modifierKeys:w}),N=ke(S,e,{state:i,ref:r,props:[k,...s,R],stateAttributesMapping:a}),P=c.useMemo(()=>({highlightedIndex:M,onHighlightedIndexChange:C,highlightItemOnHover:x,relayKeyboardEvent:D}),[M,C,x,D]);return K.jsx(cu.Provider,{value:P,children:K.jsx(gs,{elementsRef:O,onMapChange:z=>{g==null||g(z),I(z)},children:N})})}const FE=c.forwardRef(function(t,n){const{activateOnFocus:o=!1,className:r,loopFocus:s=!0,render:i,style:a,...l}=t,{orientation:u,setTabMap:d,tabActivationDirection:p}=Cs(),[f,y]=c.useState(0),[m,g]=c.useState(null),h=c.useRef(new Set),b=c.useRef(new Set),v=c.useRef(null);re(()=>{if(typeof ResizeObserver>"u")return;const k=new ResizeObserver(()=>{h.current.forEach(M=>{M()})});return v.current=k,m&&k.observe(m),b.current.forEach(M=>{k.observe(M)}),()=>{k.disconnect(),v.current=null}},[m]);const w=le(k=>(h.current.add(k),()=>{h.current.delete(k)})),x=le(k=>{var M;return b.current.add(k),(M=v.current)==null||M.observe(k),()=>{var C;b.current.delete(k),(C=v.current)==null||C.unobserve(k)}}),S={orientation:u,tabActivationDirection:p},R={"aria-orientation":u==="vertical"?"vertical":void 0,role:"tablist"},E=c.useMemo(()=>({activateOnFocus:o,registerIndicatorUpdateListener:w,registerTabResizeObserverElement:x,tabsListElement:m}),[o,w,x,m]);return K.jsx(ip.Provider,{value:E,children:K.jsx(cp,{render:i,className:r,style:a,state:S,refs:[n,g],props:[R,l],stateAttributesMapping:Xo,highlightedIndex:f,enableHomeAndEndKeys:!0,loopFocus:s,orientation:u,onHighlightedIndexChange:y,onMapChange:d,disabledIndices:Nt})})});function zE(e){return Jd("alert-dialog",e)}const VE=Cv;function Z2(e){if(!e)return null;for(const t of e.elements){const n=t.tagName;if(n==="BUTTON"||n==="INPUT"){const o=t;if(o.type==="submit")return o}}return null}function lp(e){return{checked(t){return e.indeterminate?{}:t?{"data-checked":""}:{"data-unchecked":""}},...bs}}const J2=c.createContext(void 0);function Q2(){return c.useContext(J2)}const up=c.createContext(void 0);function ew(){const e=c.useContext(up);if(e===void 0)throw new Error(Ne(14));return e}const tw="data-parent",$E=c.forwardRef(function(t,n){const{checked:o,className:r,defaultChecked:s=!1,"aria-labelledby":i,disabled:a=!1,form:l,id:u,indeterminate:d=!1,inputRef:p,name:f,onCheckedChange:y,parent:m=!1,readOnly:g=!1,render:h,required:b=!1,uncheckedValue:v,value:w,nativeButton:x=!1,style:S,...R}=t,{clearErrors:E}=ws(),{disabled:k,name:M,setDirty:C,setFilled:O,setFocused:I,setTouched:D,state:N,validationMode:P,validityData:z,validation:L}=vo(),A=P2(),{labelId:F,controlId:T,registerControlId:_,getDescriptionProps:j}=Yo(),$=Q2(),U=($==null?void 0:$.allValues)===void 0?void 0:$.parent,Y=U!==void 0,V=k||A.disabled||($==null?void 0:$.disabled)||a,J=M??f,H=w??J,G=rt(),ue=rt();let ne=u||T;Y&&(m?ne=ue:H!==void 0?ne=`${U.id}-${H}`:ne||(ne=ue));let te={};Y&&(m?te=U.getParentProps():H!==void 0&&(te=U.getChildProps(H)));const{checked:Q=o,indeterminate:ee=d,onCheckedChange:ie,...xe}=te,ae=$==null?void 0:$.value,he=c.useRef(null),oe=at(()=>Symbol()),ge=c.useRef(!1),{getButtonProps:de,buttonRef:ce}=Tt({disabled:V,native:x}),fe=($==null?void 0:$.validation)??L,[B,q]=Lt({controlled:H!==void 0&&ae!==void 0&&!m?ae.includes(H):Q,default:s,name:"Checkbox",state:"checked"}),se=Y?!!Q:B,Z=Y&&ee||d;re(()=>{_!==Ke&&(ge.current=!0,_(oe.current,ne))},[ne,_,oe]),c.useEffect(()=>{const Se=oe.current;return()=>{!ge.current||_===Ke||(ge.current=!1,_(Se,void 0))}},[_,oe]),vs(he,G,B,void 0,!$&&!V,f);const X=c.useRef(null),pe=fe.registerInput,be=$?H:void 0,Le=c.useCallback(Se=>pe(Se,{controlRef:he,value:be}),[pe,be]),Ue=Dt(p,X,m?void 0:Le),qe=Zf(i,F,X,!x,ne??void 0);re(()=>{X.current&&(X.current.indeterminate=Z,B&&O(!0))},[B,Z,O]),ys(B,()=>{$||(E(J),O(B),C(B!==z.initialValue),fe.change(B))});const st=St({checked:B,disabled:V,form:l,name:m?void 0:J,id:x?void 0:ne??void 0,required:b,ref:Ue,style:J?ta:Bo,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(Se){if(Se.nativeEvent.defaultPrevented)return;if(g){Se.preventDefault();return}const je=Se.currentTarget.checked,Ye=Re(Rt,Se.nativeEvent);if(y==null||y(je,Ye),!Ye.isCanceled&&(ie==null||ie(je,Ye),!Ye.isCanceled&&(q(je),H!==void 0&&$!==void 0&&!m&&!Y))){const Be=je?[...$.value,H]:$.value.filter(Xe=>Xe!==H);$.setValue(Be,Ye)}},onClick(Se){Se.stopPropagation()},onFocus(){var Se;(Se=he.current)==null||Se.focus()}},w!==void 0?{value:($?B&&w:w)||""}:We,j,Se=>fe.getValidationProps(V,Se));c.useEffect(()=>{if(!U||H===void 0)return;const Se=U.disabledStatesRef.current;return Se.set(H,V),()=>{Se.delete(H)}},[U,V,H]);const _e=c.useMemo(()=>({...N,checked:se,disabled:V,readOnly:g,required:b,indeterminate:Z}),[N,se,V,g,b,Z]),Qe=lp(_e),ct=ke("span",t,{state:_e,ref:[ce,he,n],props:[{id:x?ne??void 0:G,role:"checkbox","aria-checked":Z?"mixed":se,"aria-readonly":g||void 0,"aria-required":b||void 0,"aria-labelledby":qe,[tw]:m?"":void 0,onFocus(){V||I(!0)},onBlur(){const Se=X.current;Se&&(D(!0),I(!1),P==="onBlur"&&fe.commit($?ae:Se.checked))},onKeyDown(Se){var Ae;if(Se.key!=="Enter"||(Se.preventBaseUIHandler(),Se.defaultPrevented))return;const je=((Ae=X.current)==null?void 0:Ae.form)??null,Ye=Se.currentTarget,Be=Se.nativeEvent,Xe=Se.preventDefault,pt=Be.preventDefault;let we=!1;Se.preventDefault=()=>{we=!0,Xe.call(Se)},Be.preventDefault=()=>{we=!0,pt.call(Be)},pt.call(Be),He(Ye).queueMicrotask(()=>{var Je;Se.preventDefault=Xe,Be.preventDefault=pt,we||(Je=Z2(je))==null||Je.click()})},onClick(Se){if(g||V)return;Se.preventDefault();const je=X.current;je&&Jn(je,Se)}},R,xe,de,j,Se=>fe.getValidationProps(V,Se)],stateAttributesMapping:Qe});return K.jsxs(up.Provider,{value:_e,children:[ct,!B&&!$&&J&&!m&&v!==void 0&&K.jsx("input",{type:"hidden",form:l,name:J,value:v,disabled:V}),K.jsx("input",{...st,suppressHydrationWarning:!0})]})}),HE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,keepMounted:i=!1,...a}=t,l=ew(),u=l.checked||l.indeterminate,{mounted:d,transitionStatus:p,setMounted:f}=ln(u),y=c.useRef(null),m={...l,transitionStatus:p};kt({open:u,ref:y,onComplete(){u||f(!1)}});const h={...lp(l),...Gt},b=i||d,v=ke("span",t,{ref:[n,y],state:m,stateAttributesMapping:h,props:a});return b?v:null});function jE(e){const[t,n]=c.useState({getBoundingClientRect(){return DOMRect.fromRect({width:0,height:0,x:0,y:0})}}),o=c.useRef(null),r=c.useRef(null),s=c.useRef(null),i=c.useRef(null),a=c.useRef(!0),l=c.useRef(null),u=bn(),d=c.useMemo(()=>({anchor:t,setAnchor:n,actionsRef:s,backdropRef:o,internalBackdropRef:r,positionerRef:i,allowMouseUpTriggerRef:a,initialCursorPointRef:l,rootId:u}),[t,u]);return K.jsx(Mu.Provider,{value:d,children:K.jsx($i.Provider,{value:void 0,children:K.jsx($b,{...e})})})}const Ll=500,BE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{setAnchor:a,actionsRef:l,internalBackdropRef:u,backdropRef:d,positionerRef:p,allowMouseUpTriggerRef:f,initialCursorPointRef:y,rootId:m}=Kr(!1),{store:g}=cn(!1),h=g.useState("open"),b=g.useState("disabled"),v=c.useRef(null),w=c.useRef(null),x=Ge(),S=Ge(),R=c.useRef(!1),E=c.useRef(null);function k(P,z,L){var F;const A=L.type.startsWith("touch");y.current={x:P,y:z},a({getBoundingClientRect(){return DOMRect.fromRect({width:A?10:0,height:A?10:0,x:P,y:z})}}),R.current=!1,(F=l.current)==null||F.setOpen(!0,Re(Rn,L)),S.start(Ll,()=>{R.current=!0})}function M(P){var A;if(b)return;f.current=!0,It(P),k(P.clientX,P.clientY,P.nativeEvent);const z=Te(v.current);(A=E.current)==null||A.abort();const L=new AbortController;E.current=L,z.addEventListener("mouseup",F=>{var _;if(f.current=!1,!R.current)return;S.clear(),R.current=!1;const T=et(F);ve(p.current,T)||m&&T&&Ia(T)===m||(_=l.current)==null||_.setOpen(!1,Re(Bi,F))},{once:!0,signal:L.signal})}function C(){x.clear(),w.current=null}function O(P){if(b){C();return}if(f.current=!1,P.touches.length!==1){C();return}P.stopPropagation();const z=P.touches[0],L={x:z.clientX,y:z.clientY};w.current=L,x.start(Ll,()=>{k(L.x,L.y,P.nativeEvent)})}function I(P){if(P.touches.length!==1){C();return}if(x.isStarted()&&w.current){const z=P.touches[0],L=10,A=Math.abs(z.clientX-w.current.x),F=Math.abs(z.clientY-w.current.y);(A>L||F>L)&&C()}}return c.useEffect(()=>()=>{var P;(P=E.current)==null||P.abort()},[]),c.useEffect(()=>{function P(L){if(b)return;const F=et(L);(ve(v.current,F)||ve(u.current,F)||ve(d.current,F))&&L.preventDefault()}const z=Te(v.current);return Me(z,"contextmenu",P)},[d,b,u]),ke("div",t,{state:{open:h},ref:[v,n],props:[{onContextMenu:M,onTouchStart:O,onTouchMove:I,onTouchEnd:C,onTouchCancel:C,style:{WebkitTouchCallout:"none"}},i],stateAttributesMapping:Lr})}),dp=c.createContext(void 0);function nw(){return c.useContext(dp)}const WE=c.forwardRef(function(t,n){const{className:o,defaultPressed:r=!1,disabled:s=!1,form:i,onPressedChange:a,pressed:l,render:u,type:d,value:p,nativeButton:f=!0,style:y,...m}=t,g=rt(p||void 0),h=nw(),b=(h==null?void 0:h.value)??[],v=h?void 0:r,w=(s||(h==null?void 0:h.disabled))??!1,[x,S]=Lt({controlled:h?g!==void 0&&b.indexOf(g)>-1:l,default:v,name:"Toggle",state:"pressed"}),{getButtonProps:R,buttonRef:E}=Tt({disabled:w,native:f}),k={disabled:w,pressed:x},M=[E,n],C=[{"aria-pressed":x,onClick(D){var z;const N=!x,P=Re(Rt,D.nativeEvent);a==null||a(N,P),!P.isCanceled&&(g&&((z=h==null?void 0:h.setGroupValue)==null||z.call(h,g,N,P)),!P.isCanceled&&S(N))}},m,R],O=ke("button",t,{enabled:!h,state:k,ref:M,props:C}),I=c.useMemo(()=>({disabled:w,focusableWhenDisabled:!1}),[w]);return h?K.jsx($d,{tag:"button",render:u,className:o,style:y,metadata:I,state:k,refs:M,props:C}):O}),ow=c.createContext(void 0);function rw(){return c.useContext(ow)}const UE=c.forwardRef(function(t,n){const{defaultValue:o,disabled:r=!1,loopFocus:s=!0,onValueChange:i,orientation:a="horizontal",multiple:l=!1,value:u,className:d,render:p,style:f,...y}=t,m=Ca(),g=rw(),h=u!==void 0||o!==void 0,b=((m==null?void 0:m.disabled)??!1)||((g==null?void 0:g.disabled)??!1)||r,[v,w]=Lt({controlled:u,default:u===void 0?o??Nt:void 0,name:"ToggleGroup",state:"value"}),x=le((M,C,O)=>{let I;l?(I=v.slice(),C?I.push(M):I.splice(v.indexOf(M),1)):I=C?[M]:[],i==null||i(I,O),!O.isCanceled&&w(I)}),S={disabled:b,multiple:l,orientation:a},R=c.useMemo(()=>({disabled:b,setGroupValue:x,value:v,isValueInitialized:h}),[b,x,v,h]),E={role:"group"},k=ke("div",t,{enabled:!!m,state:S,ref:n,props:[E,y]});return K.jsx(dp.Provider,{value:R,children:m?k:K.jsx(cp,{render:p,className:d,style:f,state:S,refs:[n],props:[E,y],loopFocus:s,enableHomeAndEndKeys:!0,orientation:a})})});function sw(e,t){const n=getComputedStyle(e),o=parseFloat(n.fontSize);return t*o}function iw(e,t){const n=getComputedStyle(e.ownerDocument.documentElement),o=parseFloat(n.fontSize);return t*o}function aw(e){return e/100*window.innerHeight}function cw(e){return e/100*window.innerWidth}function lw(e){switch(typeof e){case"number":return[e,"px"];case"string":{const t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function Oo({groupSize:e,panelElement:t,styleProp:n}){let o;const[r,s]=lw(n);switch(s){case"%":{o=r/100*e;break}case"px":{o=r;break}case"rem":{o=iw(t,r);break}case"em":{o=sw(t,r);break}case"vh":{o=aw(r);break}case"vw":{o=cw(r);break}}return o}function mt(e){return parseFloat(e.toFixed(3))}function go({group:e}){const{orientation:t,panels:n}=e;return n.reduce((o,r)=>(o+=t==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,o),0)}function Ti(e){const{panels:t}=e,n=go({group:e});return n===0?t.map(o=>({groupResizeBehavior:o.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:o.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:o.panelConstraints.disabled,minSize:0,maxSize:100,panelId:o.id})):t.map(o=>{const{element:r,panelConstraints:s}=o;let i=0;if(s.collapsedSize!==void 0){const d=Oo({groupSize:n,panelElement:r,styleProp:s.collapsedSize});i=mt(d/n*100)}let a;if(s.defaultSize!==void 0){const d=Oo({groupSize:n,panelElement:r,styleProp:s.defaultSize});a=mt(d/n*100)}let l=0;if(s.minSize!==void 0){const d=Oo({groupSize:n,panelElement:r,styleProp:s.minSize});l=mt(d/n*100)}let u=100;if(s.maxSize!==void 0){const d=Oo({groupSize:n,panelElement:r,styleProp:s.maxSize});u=mt(d/n*100)}return{groupResizeBehavior:s.groupResizeBehavior,collapsedSize:i,collapsible:s.collapsible===!0,defaultSize:a,disabled:s.disabled,minSize:l,maxSize:u,panelId:o.id}})}function $e(e,t="Assertion error"){if(!e)throw Error(t)}function Ii(e,t){return Array.from(t).sort(e==="horizontal"?uw:dw)}function uw(e,t){const n=e.element.offsetLeft-t.element.offsetLeft;return n!==0?n:e.element.offsetWidth-t.element.offsetWidth}function dw(e,t){const n=e.element.offsetTop-t.element.offsetTop;return n!==0?n:e.element.offsetHeight-t.element.offsetHeight}function fp(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function pp(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function fw({orientation:e,rects:t,targetRect:n}){const o={x:n.x+n.width/2,y:n.y+n.height/2};let r,s=Number.MAX_VALUE;for(const i of t){const{x:a,y:l}=pp(o,i),u=e==="horizontal"?a:l;u<s&&(s=u,r=i)}return $e(r,"No rect found"),r}let wr;function pw(){return wr===void 0&&(typeof matchMedia=="function"?wr=!!matchMedia("(pointer:coarse)").matches:wr=!1),wr}function hp(e){const{element:t,orientation:n,panels:o,separators:r}=e,s=Ii(n,Array.from(t.children).filter(fp).map(m=>({element:m}))).map(({element:m})=>m),i=[];let a=!1,l=!1,u=-1,d=-1,p=0,f,y=[];{let m=-1;for(const g of s)g.hasAttribute("data-panel")&&(m++,g.hasAttribute("data-disabled")||(p++,u===-1&&(u=m),d=m))}if(p>1){let m=-1;for(const g of s)if(g.hasAttribute("data-panel")){m++;const h=o.find(b=>b.element===g);if(h){if(f){const b=f.element.getBoundingClientRect(),v=g.getBoundingClientRect();let w;if(l){const x=n==="horizontal"?new DOMRect(b.right,b.top,0,b.height):new DOMRect(b.left,b.bottom,b.width,0),S=n==="horizontal"?new DOMRect(v.left,v.top,0,v.height):new DOMRect(v.left,v.top,v.width,0);switch(y.length){case 0:{w=[x,S];break}case 1:{const R=y[0],E=fw({orientation:n,rects:[b,v],targetRect:R.element.getBoundingClientRect()});w=[R,E===b?S:x];break}default:{w=y;break}}}else y.length?w=y:w=[n==="horizontal"?new DOMRect(b.right,v.top,v.left-b.right,v.height):new DOMRect(v.left,b.bottom,v.width,v.top-b.bottom)];for(const x of w){let S="width"in x?x:x.element.getBoundingClientRect();const R=pw()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(S.width<R){const k=R-S.width;S=new DOMRect(S.x-k/2,S.y,S.width+k,S.height)}if(S.height<R){const k=R-S.height;S=new DOMRect(S.x,S.y-k/2,S.width,S.height+k)}const E=m<=u||m>d;!a&&!E&&i.push({group:e,groupSize:go({group:e}),panels:[f,h],separator:"width"in x?void 0:x,rect:S}),a=!1}}l=!1,f=h,y=[]}}else if(g.hasAttribute("data-separator")){g.ariaDisabled!==null&&(a=!0);const h=r.find(b=>b.element===g);h?y.push(h):(f=void 0,y=[])}else l=!0}return i}var fn;class gp{constructor(){ic(this,fn,{})}addListener(t,n){const o=Ro(this,fn)[t];return o===void 0?Ro(this,fn)[t]=[n]:o.includes(n)||o.push(n),()=>{this.removeListener(t,n)}}emit(t,n){const o=Ro(this,fn)[t];if(o!==void 0)if(o.length===1)o[0].call(null,n);else{let r=!1,s=null;const i=Array.from(o);for(let a=0;a<i.length;a++){const l=i[a];try{l.call(null,n)}catch(u){s===null&&(r=!0,s=u)}}if(r)throw s}}removeAllListeners(){ac(this,fn,{})}removeListener(t,n){const o=Ro(this,fn)[t];if(o!==void 0){const r=o.indexOf(n);r>=0&&o.splice(r,1)}}}fn=new WeakMap;let oo={cursorFlags:0,state:"inactive"};const Ya=new gp;function _n(){return oo}function hw(e){return Ya.addListener("change",e)}function gw(e){const t=oo,n={...oo};n.cursorFlags=e,oo=n,Ya.emit("change",{prev:t,next:n})}function ro(e){const t=oo;oo=e,Ya.emit("change",{prev:t,next:e})}const mw=e=>e,Xs=()=>{},mp=1,yp=2,bp=4,vp=8,_l=3,Fl=12;let Sr;function zl(){return Sr===void 0&&(Sr=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(Sr=!0)),Sr}function yw({cursorFlags:e,groups:t,state:n}){let o=0,r=0;switch(n){case"active":case"hover":t.forEach(s=>{if(!s.mutableState.disableCursor)switch(s.orientation){case"horizontal":{o++;break}case"vertical":{r++;break}}})}if(!(o===0&&r===0)){switch(n){case"active":{if(e&&zl()){const s=(e&mp)!==0,i=(e&yp)!==0,a=(e&bp)!==0,l=(e&vp)!==0;if(s)return a?"se-resize":l?"ne-resize":"e-resize";if(i)return a?"sw-resize":l?"nw-resize":"w-resize";if(a)return"s-resize";if(l)return"n-resize"}break}}return zl()?o>0&&r>0?"move":o>0?"ew-resize":"ns-resize":o>0&&r>0?"grab":o>0?"col-resize":"row-resize"}}const Vl=new WeakMap;function qa(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:n}=Vl.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]));const o=_n();switch(o.state){case"active":case"hover":{const r=yw({cursorFlags:o.cursorFlags,groups:o.hitRegions.map(i=>i.group),state:o.state}),s=`*, *:hover {cursor: ${r} !important; }`;if(t===s)return;t=s,r?n.cssRules.length===0?n.insertRule(s):n.replaceSync(s):n.cssRules.length===1&&n.deleteRule(0);break}case"inactive":{t=void 0,n.cssRules.length===1&&n.deleteRule(0);break}}Vl.set(e,{prevStyle:t,styleSheet:n})}let Wt=new Map;const xp=new gp;function bw(e){Wt=new Map(Wt),Wt.delete(e)}function $l(e,t){for(const[n]of Wt)if(n.id===e)return n}function yn(e,t){for(const[n,o]of Wt)if(n.id===e)return o;if(t)throw Error(`Could not find data for Group with id ${e}`)}function Hn(){return Wt}function Xa(e,t){return xp.addListener("groupChange",n=>{n.group.id===e&&t(n)})}function sn(e,t,n){const o=Wt.get(e);Wt=new Map(Wt),Wt.set(e,t),xp.emit("groupChange",{group:e,isUserInteraction:(n==null?void 0:n.isUserInteraction)===!0,prev:o,next:t})}function wp(e){const t=_n();let n=!1;switch(t.state){case"active":ro({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(qa(e),n=!0,t.hitRegions.forEach(o=>{const r=yn(o.group.id,!0);sn(o.group,r,{isUserInteraction:!0})}))}return n}function Hl(e){e.defaultPrevented||wp(e.currentTarget)}function vw(e,t,n){let o,r={x:1/0,y:1/0};for(const s of t){const i=pp(n,s.rect);switch(e){case"horizontal":{i.x<=r.x&&(o=s,r=i);break}case"vertical":{i.y<=r.y&&(o=s,r=i);break}}}return o?{distance:r,hitRegion:o}:void 0}function xw(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function ww(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Wl(e),b:Wl(t)};let o;for(;n.a.at(-1)===n.b.at(-1);)o=n.a.pop(),n.b.pop();$e(o,"Stacking order can only be calculated for elements with a common ancestor");const r={a:Bl(jl(n.a)),b:Bl(jl(n.b))};if(r.a===r.b){const s=o.childNodes,i={a:n.a.at(-1),b:n.b.at(-1)};let a=s.length;for(;a--;){const l=s[a];if(l===i.a)return 1;if(l===i.b)return-1}}return Math.sign(r.a-r.b)}const Sw=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Rw(e){const t=getComputedStyle(Sp(e)??e).display;return t==="flex"||t==="inline-flex"}function kw(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||Rw(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||Sw.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function jl(e){let t=e.length;for(;t--;){const n=e[t];if($e(n,"Missing node"),kw(n))return n}return null}function Bl(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Wl(e){const t=[];for(;e;)t.push(e),e=Sp(e);return t}function Sp(e){const{parentNode:t}=e;return xw(t)?t.host:t}function Ew(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function Cw({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!fp(n)||n.contains(e)||e.contains(n))return!0;if(ww(n,e)>0){let o=n;for(;o;){if(o.contains(e))return!0;if(Ew(o.getBoundingClientRect(),t))return!1;o=o.parentElement}}return!0}function Ka(e,t){const n=[];return t.forEach((o,r)=>{if(r.disabled)return;const s=hp(r),i=vw(r.orientation,s,{x:e.clientX,y:e.clientY});i&&i.distance.x<=0&&i.distance.y<=0&&Cw({groupElement:r.element,hitRegion:i.hitRegion.rect,pointerEventTarget:e.target})&&n.push(i.hitRegion)}),n}function Pw(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function ft(e,t,n=0){return Math.abs(mt(e)-mt(t))<=n}function jt(e,t){return ft(e,t)?0:e>t?1:-1}function Zn({overrideDisabledPanels:e,panelConstraints:t,prevSize:n,size:o}){const{collapsedSize:r=0,collapsible:s,disabled:i,maxSize:a=100,minSize:l=0}=t;if(i&&!e)return n;if(jt(o,l)<0)if(s){const u=(r+l)/2;jt(o,u)<0?o=r:o=l}else o=l;return o=Math.min(a,o),o=mt(o),o}function Ho({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:o,prevLayout:r,trigger:s}){if(ft(e,0))return t;const i=s==="imperative-api",a=Object.values(t),l=Object.values(r),u=[...a],[d,p]=o;$e(d!=null,"Invalid first pivot index"),$e(p!=null,"Invalid second pivot index");let f=0;switch(s){case"keyboard":{{const g=e<0?p:d,h=n[g];$e(h,`Panel constraints not found for index ${g}`);const{collapsedSize:b=0,collapsible:v,minSize:w=0}=h;if(v){const x=a[g];if($e(x!=null,`Previous layout not found for panel index ${g}`),ft(x,b)){const S=w-x;jt(S,Math.abs(e))>0&&(e=e<0?0-S:S)}}}{const g=e<0?d:p,h=n[g];$e(h,`No panel constraints found for index ${g}`);const{collapsedSize:b=0,collapsible:v,minSize:w=0}=h;if(v){const x=a[g];if($e(x!=null,`Previous layout not found for panel index ${g}`),ft(x,w)){const S=x-b;jt(S,Math.abs(e))>0&&(e=e<0?0-S:S)}}}break}default:{const g=e<0?p:d,h=n[g];$e(h,`Panel constraints not found for index ${g}`);const b=a[g],{collapsible:v,collapsedSize:w,minSize:x}=h;if(v&&jt(b,x)<0)if(e>0){const S=x-w,R=S/2,E=b+e;jt(E,x)<0&&(e=jt(e,R)<=0?0:S)}else{const S=x-w,R=100-S/2,E=b-e;jt(E,x)<0&&(e=jt(100+e,R)>0?0:-S)}break}}{const g=e<0?1:-1;let h=e<0?p:d,b=0;for(;;){const w=a[h];$e(w!=null,`Previous layout not found for panel index ${h}`);const x=Zn({overrideDisabledPanels:i,panelConstraints:n[h],prevSize:w,size:100})-w;if(b+=x,h+=g,h<0||h>=n.length)break}const v=Math.min(Math.abs(e),Math.abs(b));e=e<0?0-v:v}{let g=e<0?d:p;for(;g>=0&&g<n.length;){const h=Math.abs(e)-Math.abs(f),b=a[g];$e(b!=null,`Previous layout not found for panel index ${g}`);const v=b-h,w=Zn({overrideDisabledPanels:i,panelConstraints:n[g],prevSize:b,size:v});if(!ft(b,w)&&(f+=b-w,u[g]=w,f.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?g--:g++}}if(Pw(l,u))return r;{const g=e<0?p:d,h=a[g];$e(h!=null,`Previous layout not found for panel index ${g}`);const b=h+f,v=Zn({overrideDisabledPanels:i,panelConstraints:n[g],prevSize:h,size:b});if(u[g]=v,!ft(v,b)){let w=b-v,x=e<0?p:d;for(;x>=0&&x<n.length;){const S=u[x];$e(S!=null,`Previous layout not found for panel index ${x}`);const R=S+w,E=Zn({overrideDisabledPanels:i,panelConstraints:n[x],prevSize:S,size:R});if(ft(S,E)||(w-=E-S,u[x]=E),ft(w,0))break;e>0?x--:x++}}}const y=Object.values(u).reduce((g,h)=>h+g,0);if(!ft(y,100,.1))return r;const m=Object.keys(r);return u.reduce((g,h,b)=>(g[m[b]]=h,g),{})}function Fn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(t[n]===void 0||jt(e[n],t[n])!==0)return!1;return!0}function zn({layout:e,panelConstraints:t}){const n=Object.values(e),o=[...n],r=o.reduce((a,l)=>a+l,0);if(o.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${o.map(a=>`${a}%`).join(", ")}`);if(!ft(r,100)&&o.length>0)for(let a=0;a<t.length;a++){const l=o[a];$e(l!=null,`No layout data found for index ${a}`);const u=100/r*l;o[a]=u}let s=0;for(let a=0;a<t.length;a++){const l=n[a];$e(l!=null,`No layout data found for index ${a}`);const u=o[a];$e(u!=null,`No layout data found for index ${a}`);const d=Zn({overrideDisabledPanels:!0,panelConstraints:t[a],prevSize:l,size:u});u!=d&&(s+=u-d,o[a]=d)}if(!ft(s,0))for(let a=0;a<t.length;a++){const l=o[a];$e(l!=null,`No layout data found for index ${a}`);const u=l+s,d=Zn({overrideDisabledPanels:!0,panelConstraints:t[a],prevSize:l,size:u});if(l!==d&&(s-=d-l,o[a]=d,ft(s,0)))break}const i=Object.keys(e);return o.reduce((a,l,u)=>(a[i[u]]=l,a),{})}function Rp({groupId:e,panelId:t}){const n=()=>{const l=Hn();for(const[u,{defaultLayoutDeferred:d,derivedPanelConstraints:p,layout:f,groupSize:y,separatorToPanels:m}]of l)if(u.id===e)return{defaultLayoutDeferred:d,derivedPanelConstraints:p,group:u,groupSize:y,layout:f,separatorToPanels:m};throw Error(`Group ${e} not found`)},o=()=>{const l=n().derivedPanelConstraints.find(u=>u.panelId===t);if(l!==void 0)return l;throw Error(`Panel constraints not found for Panel ${t}`)},r=()=>{const l=n().group.panels.find(u=>u.id===t);if(l!==void 0)return l;throw Error(`Layout not found for Panel ${t}`)},s=()=>{const l=n().layout[t];if(l!==void 0)return l;throw Error(`Layout not found for Panel ${t}`)},i=({nextSize:l,panels:u,prevLayout:d,derivedPanelConstraints:p})=>{const f=s(),y=u.findIndex(h=>h.id===t),m=y===0,g=y===u.length-1;if(g&&l<f&&(m||u.slice(0,y).every((h,b)=>{const v=p[b];return(v==null?void 0:v.collapsible)&&ft(v.collapsedSize,d[v.panelId])}))){const h=u.slice(0,y).reduce((b,v)=>b+d[v.id],0);return{...d,[t]:mt(100-h)}}return Ho({delta:g?f-l:l-f,initialLayout:d,panelConstraints:p,pivotIndices:g?[y-1,y]:[y,y+1],prevLayout:d,trigger:"imperative-api"})},a=l=>{const u=s();if(l===u)return;const{defaultLayoutDeferred:d,derivedPanelConstraints:p,group:f,groupSize:y,layout:m,separatorToPanels:g}=n(),h=i({nextSize:l,panels:f.panels,prevLayout:m,derivedPanelConstraints:p}),b=zn({layout:h,panelConstraints:p});Fn(m,b)||sn(f,{defaultLayoutDeferred:d,derivedPanelConstraints:p,groupSize:y,layout:b,separatorToPanels:g})};return{collapse:()=>{const{collapsible:l,collapsedSize:u}=o(),{mutableValues:d}=r(),p=s();l&&p!==u&&(d.expandToSize=p,a(u))},expand:()=>{const{collapsible:l,collapsedSize:u,minSize:d}=o(),{mutableValues:p}=r(),f=s();if(l&&f===u){let y=p.expandToSize??d;y===0&&(y=1),a(y)}},getSize:()=>{const{group:l}=n(),u=s(),{element:d}=r(),p=l.orientation==="horizontal"?d.offsetWidth:d.offsetHeight;return{asPercentage:u,inPixels:p}},isCollapsed:()=>{const{collapsible:l,collapsedSize:u}=o(),d=s();return l&&ft(u,d)},resize:l=>{const{group:u}=n(),{element:d}=r(),p=go({group:u}),f=Oo({groupSize:p,panelElement:d,styleProp:l}),y=mt(f/p*100);a(y)}}}function Ul(e){if(e.defaultPrevented)return;const t=Hn();Ka(e,t).forEach(n=>{if(n.separator&&!n.separator.disableDoubleClick){const o=n.panels.find(r=>r.panelConstraints.defaultSize!==void 0);if(o){const r=o.panelConstraints.defaultSize,s=Rp({groupId:n.group.id,panelId:o.id});s&&r!==void 0&&(s.resize(r),e.preventDefault())}}})}function Ir(e){const t=Hn();for(const[n]of t)if(n.separators.some(o=>o.element===e))return n;throw Error("Could not find parent Group for separator element")}function kp({groupId:e}){const t=()=>{const n=Hn();for(const[o,r]of n)if(o.id===e)return{group:o,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){const{defaultLayoutDeferred:n,layout:o}=t();return n?{}:o},setLayout(n){const{defaultLayoutDeferred:o,derivedPanelConstraints:r,group:s,groupSize:i,layout:a,separatorToPanels:l}=t(),u=zn({layout:n,panelConstraints:r});return o?a:(Fn(a,u)||sn(s,{defaultLayoutDeferred:o,derivedPanelConstraints:r,groupSize:i,layout:u,separatorToPanels:l}),u)}}}function On(e,t){const n=Ir(e),o=yn(n.id,!0),r=n.separators.find(d=>d.element===e);$e(r,"Matching separator not found");const s=o.separatorToPanels.get(r);$e(s,"Matching panels not found");const i=s.map(d=>n.panels.indexOf(d)),a=kp({groupId:n.id}).getLayout(),l=Ho({delta:t,initialLayout:a,panelConstraints:o.derivedPanelConstraints,pivotIndices:i,prevLayout:a,trigger:"keyboard"}),u=zn({layout:l,panelConstraints:o.derivedPanelConstraints});Fn(a,u)||sn(n,{defaultLayoutDeferred:o.defaultLayoutDeferred,derivedPanelConstraints:o.derivedPanelConstraints,groupSize:o.groupSize,layout:u,separatorToPanels:o.separatorToPanels},{isUserInteraction:!0})}function Gl(e){if(e.defaultPrevented)return;const t=e.currentTarget,n=Ir(t);if(!n.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),n.orientation==="vertical"&&On(t,5);break}case"ArrowLeft":{e.preventDefault(),n.orientation==="horizontal"&&On(t,-5);break}case"ArrowRight":{e.preventDefault(),n.orientation==="horizontal"&&On(t,5);break}case"ArrowUp":{e.preventDefault(),n.orientation==="vertical"&&On(t,-5);break}case"End":{e.preventDefault(),On(t,100);break}case"Enter":{e.preventDefault();const o=Ir(t),r=yn(o.id,!0),{derivedPanelConstraints:s,layout:i,separatorToPanels:a}=r,l=o.separators.find(f=>f.element===t);$e(l,"Matching separator not found");const u=a.get(l);$e(u,"Matching panels not found");const d=u[0],p=s.find(f=>f.panelId===d.id);if($e(p,"Panel metadata not found"),p.collapsible){const f=i[d.id],y=p.collapsedSize===f?o.mutableState.expandedPanelSizes[d.id]??p.minSize:p.collapsedSize;On(t,y-f)}break}case"F6":{e.preventDefault();const o=Ir(t).separators.map(i=>i.element),r=Array.from(o).findIndex(i=>i===e.currentTarget);$e(r!==null,"Index not found");const s=e.shiftKey?r>0?r-1:o.length-1:r+1<o.length?r+1:0;o[s].focus({preventScroll:!0});break}case"Home":{e.preventDefault(),On(t,-100);break}}}function Yl(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const t=Hn(),n=Ka(e,t),o=new Map;let r=!1;n.forEach(s=>{s.separator&&(r||(r=!0,s.separator.element.focus({focusVisible:!1,preventScroll:!0})));const i=t.get(s.group);i&&o.set(s.group,i.layout)}),ro({cursorFlags:0,hitRegions:n,initialLayoutMap:o,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),n.length&&e.preventDefault()}function Ep({document:e,event:t,hitRegions:n,initialLayoutMap:o,mountedGroups:r,pointerDownAtPoint:s,prevCursorFlags:i}){let a=0;n.forEach(u=>{const{group:d,groupSize:p}=u,{orientation:f,panels:y}=d,{disableCursor:m}=d.mutableState;let g=0;s?f==="horizontal"?g=(t.clientX-s.x)/p*100:g=(t.clientY-s.y)/p*100:f==="horizontal"?g=t.clientX<0?-100:100:g=t.clientY<0?-100:100;const h=o.get(d),b=r.get(d);if(!h||!b)return;const{defaultLayoutDeferred:v,derivedPanelConstraints:w,groupSize:x,layout:S,separatorToPanels:R}=b;if(w&&S&&R){const E=Ho({delta:g,initialLayout:h,panelConstraints:w,pivotIndices:u.panels.map(k=>y.indexOf(k)),prevLayout:S,trigger:"mouse-or-touch"});if(Fn(E,S)){if(g!==0&&!m)switch(f){case"horizontal":{a|=g<0?mp:yp;break}case"vertical":{a|=g<0?bp:vp;break}}}else sn(u.group,{defaultLayoutDeferred:v,derivedPanelConstraints:w,groupSize:x,layout:E,separatorToPanels:R})}});let l=0;t.movementX===0?l|=i&_l:l|=a&_l,t.movementY===0?l|=i&Fl:l|=a&Fl,gw(l),qa(e)}function ql(e){const t=Hn(),n=_n();switch(n.state){case"active":Ep({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}}function Xl(e){var o,r;if(e.defaultPrevented)return;const t=_n(),n=Hn();switch(t.state){case"active":{if(e.buttons===0){ro({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(s=>{const i=yn(s.group.id,!0);sn(s.group,i,{isUserInteraction:!0})});return}for(const s of t.hitRegions)if(s.separator){const{element:i}=s.separator;(o=i.hasPointerCapture)!=null&&o.call(i,e.pointerId)||((r=i.setPointerCapture)==null||r.call(i,e.pointerId))}Ep({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break}default:{const s=Ka(e,n);s.length===0?t.state!=="inactive"&&ro({cursorFlags:0,state:"inactive"}):ro({cursorFlags:0,hitRegions:s,state:"hover"}),qa(e.currentTarget);break}}}function Kl(e){if(e.relatedTarget instanceof HTMLIFrameElement)switch(_n().state){case"hover":ro({cursorFlags:0,state:"inactive"})}}function Zl(e){e.defaultPrevented||e.pointerType==="mouse"&&e.button>0||wp(e.currentTarget)&&e.preventDefault()}function Jl(e){let t=0,n=0;const o={};for(const s of e)if(s.defaultSize!==void 0){t++;const i=mt(s.defaultSize);n+=i,o[s.panelId]=i}else o[s.panelId]=void 0;const r=e.length-t;if(r!==0){const s=mt((100-n)/r);for(const i of e)i.defaultSize===void 0&&(o[i.panelId]=s)}return o}function Mw(e,t,n){if(!n[0])return;const o=e.panels.find(l=>l.element===t);if(!o||!o.onResize)return;const r=go({group:e}),s=e.orientation==="horizontal"?o.element.offsetWidth:o.element.offsetHeight,i=o.mutableValues.prevSize,a={asPercentage:mt(s/r*100),inPixels:s};o.mutableValues.prevSize=a,o.onResize(a,o.id,i)}function Tw(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Iw({group:e,nextGroupSize:t,prevGroupSize:n,prevLayout:o}){if(n<=0||t<=0||n===t)return o;let r=0,s=0,i=!1;const a=new Map,l=[];for(const p of e.panels){const f=o[p.id]??0;switch(p.panelConstraints.groupResizeBehavior){case"preserve-pixel-size":{i=!0;const y=f/100*n,m=mt(y/t*100);a.set(p.id,m),r+=m;break}case"preserve-relative-size":default:{l.push(p.id),s+=f;break}}}if(!i||l.length===0)return o;const u=100-r,d={...o};if(a.forEach((p,f)=>{d[f]=p}),s>0)for(const p of l){const f=o[p]??0;d[p]=mt(f/s*u)}else{const p=mt(u/l.length);for(const f of l)d[f]=p}return d}function Ow(e,t){const n=e.map(r=>r.id),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n)if(!o.includes(r))return!1;return!0}const qn=new Map;function Aw(e){let t=!0;$e(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");const n=e.element.ownerDocument.defaultView.ResizeObserver,o=new Set,r=new Set,s=new n(m=>{for(const g of m){const{borderBoxSize:h,target:b}=g;if(b===e.element){if(t){const v=go({group:e});if(v===0)return;const w=yn(e.id);if(!w)return;const x=Ti(e),S=w.defaultLayoutDeferred?Jl(x):w.layout,R=Iw({group:e,nextGroupSize:v,prevGroupSize:w.groupSize,prevLayout:S}),E=zn({layout:R,panelConstraints:x});if(!w.defaultLayoutDeferred&&Fn(w.layout,E)&&Tw(w.derivedPanelConstraints,x)&&w.groupSize===v)return;sn(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:x,groupSize:v,layout:E,separatorToPanels:w.separatorToPanels})}}else Mw(e,b,h)}});s.observe(e.element),e.panels.forEach(m=>{$e(!o.has(m.id),`Panel ids must be unique; id "${m.id}" was used more than once`),o.add(m.id),m.onResize&&s.observe(m.element)});const i=go({group:e}),a=Ti(e),l=e.panels.map(({id:m})=>m).join(",");let u=e.mutableState.defaultLayout;u&&(Ow(e.panels,u)||(u=void 0));const d=e.mutableState.layouts[l]??u??Jl(a),p=zn({layout:d,panelConstraints:a}),f=e.element.ownerDocument;qn.set(f,(qn.get(f)??0)+1);const y=new Map;return hp(e).forEach(m=>{m.separator&&y.set(m.separator,m.panels)}),sn(e,{defaultLayoutDeferred:i===0,derivedPanelConstraints:a,groupSize:i,layout:p,separatorToPanels:y}),e.separators.forEach(m=>{$e(!r.has(m.id),`Separator ids must be unique; id "${m.id}" was used more than once`),r.add(m.id),m.element.addEventListener("keydown",Gl)}),qn.get(f)===1&&(f.addEventListener("contextmenu",Hl,!0),f.addEventListener("dblclick",Ul,!0),f.addEventListener("pointerdown",Yl,!0),f.addEventListener("pointerleave",ql),f.addEventListener("pointermove",Xl),f.addEventListener("pointerout",Kl),f.addEventListener("pointerup",Zl,!0)),function(){t=!1,qn.set(f,Math.max(0,(qn.get(f)??0)-1)),bw(e),e.separators.forEach(m=>{m.element.removeEventListener("keydown",Gl)}),qn.get(f)||(f.removeEventListener("contextmenu",Hl,!0),f.removeEventListener("dblclick",Ul,!0),f.removeEventListener("pointerdown",Yl,!0),f.removeEventListener("pointerleave",ql),f.removeEventListener("pointermove",Xl),f.removeEventListener("pointerout",Kl),f.removeEventListener("pointerup",Zl,!0)),s.disconnect()}}function Dw(){const[e,t]=c.useState({}),n=c.useCallback(()=>t({}),[]);return[e,n]}function Za(e){const t=c.useId();return`${e??t}`}const jn=typeof window<"u"?c.useLayoutEffect:c.useEffect;function No(e){const t=c.useRef(e);return jn(()=>{t.current=e},[e]),c.useCallback((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[t])}function Ja(...e){return No(t=>{e.forEach(n=>{if(n)switch(typeof n){case"function":{n(t);break}case"object":{n.current=t;break}}})})}function Qa(e){const t=c.useRef({...e});return jn(()=>{for(const n in e)t.current[n]=e[n]},[e]),t.current}const Cp=c.createContext(null);function Nw(e,t){const n=c.useRef({getLayout:()=>({}),setLayout:mw});c.useImperativeHandle(t,()=>n.current,[]),jn(()=>{Object.assign(n.current,kp({groupId:e}))})}function Lw({children:e,className:t,defaultLayout:n,disableCursor:o,disabled:r,elementRef:s,groupRef:i,id:a,onLayoutChange:l,onLayoutChanged:u,orientation:d="horizontal",resizeTargetMinimumSize:p={coarse:20,fine:10},style:f,...y}){const m=c.useRef({onLayoutChange:{},onLayoutChanged:{}}),g=No(O=>{Fn(m.current.onLayoutChange,O)||(m.current.onLayoutChange=O,l==null||l(O))}),h=No((O,I)=>{Fn(m.current.onLayoutChanged,O)||(m.current.onLayoutChanged=O,u==null||u(O,{isUserInteraction:I}))}),b=Za(a),v=c.useRef(null),[w,x]=Dw(),S=c.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:p,separators:[]}),R=Ja(v,s);Nw(b,i);const E=No((O,I)=>{const D=_n(),N=$l(O),P=yn(O);if(P){let z=!1;switch(D.state){case"active":{z=D.hitRegions.some(L=>L.group===N);break}}return{flexGrow:P.layout[I]??1,pointerEvents:z?"none":void 0}}if(n!=null&&n[I])return{flexGrow:n==null?void 0:n[I]}}),k=Qa({defaultLayout:n,disableCursor:o}),M=c.useMemo(()=>({get disableCursor(){return!!k.disableCursor},getPanelStyles:E,id:b,orientation:d,registerPanel:O=>{const I=S.current;return I.panels=Ii(d,[...I.panels,O]),x(),()=>{I.panels=I.panels.filter(D=>D!==O),x()}},registerSeparator:O=>{const I=S.current;return I.separators=Ii(d,[...I.separators,O]),x(),()=>{I.separators=I.separators.filter(D=>D!==O),x()}},updatePanelProps:(O,{disabled:I})=>{const D=S.current.panels.find(z=>z.id===O);D&&(D.panelConstraints.disabled=I);const N=$l(b),P=yn(b);N&&P&&sn(N,{...P,derivedPanelConstraints:Ti(N)})},updateSeparatorProps:(O,{disabled:I,disableDoubleClick:D})=>{const N=S.current.separators.find(P=>P.id===O);N&&(N.disabled=I,N.disableDoubleClick=D)}}),[E,b,x,d,k]),C=c.useRef(null);return jn(()=>{const O=v.current;if(O===null)return;const I=S.current;let D;if(k.defaultLayout!==void 0&&Object.keys(k.defaultLayout).length===I.panels.length){D={};for(const T of I.panels){const _=k.defaultLayout[T.id];_!==void 0&&(D[T.id]=_)}}const N={disabled:!!r,element:O,id:b,mutableState:{defaultLayout:D,disableCursor:!!k.disableCursor,expandedPanelSizes:S.current.lastExpandedPanelSizes,layouts:S.current.layouts},orientation:d,panels:I.panels,resizeTargetMinimumSize:I.resizeTargetMinimumSize,separators:I.separators};C.current=N;const P=Aw(N),{defaultLayoutDeferred:z,derivedPanelConstraints:L,layout:A}=yn(N.id,!0);!z&&L.length>0&&(g(A),h(A,!1));const F=Xa(b,T=>{const{defaultLayoutDeferred:_,derivedPanelConstraints:j,layout:$}=T.next;if(_||j.length===0)return;const U=N.panels.map(({id:V})=>V).join(",");N.mutableState.layouts[U]=$,j.forEach(V=>{if(V.collapsible){const{layout:J}=T.prev??{};if(J){const H=ft(V.collapsedSize,$[V.panelId]),G=ft(V.collapsedSize,J[V.panelId]);H&&!G&&(N.mutableState.expandedPanelSizes[V.panelId]=J[V.panelId])}}});const Y=_n().state!=="active";g($),Y&&h($,T.isUserInteraction)});return()=>{C.current=null,P(),F()}},[r,b,h,g,d,w,k]),c.useEffect(()=>{const O=C.current;O&&(O.mutableState.defaultLayout=n,O.mutableState.disableCursor=!!o)}),K.jsx(Cp.Provider,{value:M,children:K.jsx("div",{...y,className:t,"data-group":!0,"data-testid":b,id:b,ref:R,style:{height:"100%",width:"100%",overflow:"hidden",...f,display:"flex",flexDirection:d==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:d==="horizontal"?"pan-y":"pan-x"},children:e})})}Lw.displayName="Group";function ec(){const e=c.useContext(Cp);return $e(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function _w(e,t){const{id:n}=ec(),o=c.useRef({collapse:Xs,expand:Xs,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:Xs});c.useImperativeHandle(t,()=>o.current,[]),jn(()=>{Object.assign(o.current,Rp({groupId:n,panelId:e}))})}function Fw({children:e,className:t,collapsedSize:n="0%",collapsible:o=!1,defaultSize:r,disabled:s,elementRef:i,groupResizeBehavior:a="preserve-relative-size",id:l,maxSize:u="100%",minSize:d="0%",onResize:p,panelRef:f,style:y,...m}){const g=!!l,h=Za(l),b=Qa({disabled:s}),v=c.useRef(null),w=Ja(v,i),{getPanelStyles:x,id:S,orientation:R,registerPanel:E,updatePanelProps:k}=ec(),M=p!==null,C=No((N,P,z)=>{p==null||p(N,l,z)});jn(()=>{const N=v.current;if(N!==null){const P={element:N,id:h,idIsStable:g,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:M?C:void 0,panelConstraints:{groupResizeBehavior:a,collapsedSize:n,collapsible:o,defaultSize:r,disabled:b.disabled,maxSize:u,minSize:d}};return E(P)}},[a,n,o,r,M,h,g,u,d,C,E,b]),c.useEffect(()=>{k(h,{disabled:s})},[s,h,k]),_w(h,f);const O=()=>{const N=x(S,h);if(N)return JSON.stringify(N)},I=c.useSyncExternalStore(N=>Xa(S,N),O,O);let D;return I?D=JSON.parse(I):r!==void 0?D={flexGrow:void 0,flexShrink:void 0,flexBasis:r}:D={flexGrow:1},K.jsx("div",{...m,"data-disabled":s||void 0,"data-panel":!0,"data-testid":h,id:h,ref:w,style:{...zw,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...D},children:K.jsx("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...y,touchAction:R==="horizontal"?"pan-y":"pan-x"},children:e})})}Fw.displayName="Panel";const zw={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function Vw({layout:e,panelConstraints:t,panelId:n,panelIndex:o}){let r,s;const i=e[n],a=t.find(l=>l.panelId===n);if(a){const l=a.maxSize,u=a.collapsible?a.collapsedSize:a.minSize,d=[o,o+1];s=zn({layout:Ho({delta:u-i,initialLayout:e,panelConstraints:t,pivotIndices:d,prevLayout:e}),panelConstraints:t})[n],r=zn({layout:Ho({delta:l-i,initialLayout:e,panelConstraints:t,pivotIndices:d,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:r,valueMin:s,valueNow:i}}function $w({children:e,className:t,disabled:n,disableDoubleClick:o,elementRef:r,id:s,style:i,...a}){const l=Za(s),u=Qa({disabled:n,disableDoubleClick:o}),[d,p]=c.useState({}),[f,y]=c.useState("inactive"),[m,g]=c.useState(!1),h=c.useRef(null),b=Ja(h,r),{disableCursor:v,id:w,orientation:x,registerSeparator:S,updateSeparatorProps:R}=ec(),E=x==="horizontal"?"vertical":"horizontal";jn(()=>{const C=h.current;if(C!==null){const O={disabled:u.disabled,disableDoubleClick:u.disableDoubleClick,element:C,id:l},I=S(O),D=hw(P=>{y(P.next.state!=="inactive"&&P.next.hitRegions.some(z=>z.separator===O)?P.next.state:"inactive")}),N=Xa(w,P=>{const{derivedPanelConstraints:z,layout:L,separatorToPanels:A}=P.next,F=A.get(O);if(F){const T=F[0],_=F.indexOf(T);p(Vw({layout:L,panelConstraints:z,panelId:T.id,panelIndex:_}))}});return()=>{D(),N(),I()}}},[w,l,S,u]),c.useEffect(()=>{R(l,{disabled:n,disableDoubleClick:o})},[n,o,l,R]);let k;n&&!v&&(k="not-allowed");let M;if(n)M="disabled";else switch(f){case"active":{M="active";break}default:m?M="focus":M=f}return K.jsx("div",{...a,"aria-controls":d.valueControls,"aria-disabled":n||void 0,"aria-orientation":E,"aria-valuemax":d.valueMax,"aria-valuemin":d.valueMin,"aria-valuenow":d.valueNow,children:e,className:t,"data-separator":M,"data-testid":l,id:l,onBlur:()=>g(!1),onFocus:()=>g(!0),ref:b,role:"separator",style:{flexBasis:"auto",cursor:k,...i,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:n?void 0:0})}$w.displayName="Separator";const Pp=c.createContext(void 0);function Hw(){const e=c.useContext(Pp);if(e===void 0)throw new Error(Ne(63));return e}const Mp={...bs,checked(e){return e?{"data-checked":""}:{"data-unchecked":""}}},GE=c.forwardRef(function(t,n){const{checked:o,className:r,defaultChecked:s,"aria-labelledby":i,form:a,id:l,inputRef:u,name:d,nativeButton:p=!1,onCheckedChange:f,readOnly:y=!1,required:m=!1,disabled:g=!1,render:h,uncheckedValue:b,value:v,style:w,...x}=t,{clearErrors:S}=ws(),{state:R,setTouched:E,setDirty:k,validityData:M,setFilled:C,setFocused:O,validationMode:I,disabled:D,name:N,validation:P}=vo(),{labelId:z}=Yo(),L=D||g,A=N??d,F=c.useRef(null),T=Dt(F,u,P.inputRef),_=c.useRef(null),j=rt(),$=xs({id:l,implicit:!1,controlRef:_}),U=p?void 0:$,[Y,V]=Lt({controlled:o,default:!!s,name:"Switch",state:"checked"});vs(_,j,Y,void 0,!L,d),re(()=>{F.current&&C(F.current.checked)},[C]),ys(Y,()=>{S(A),k(Y!==M.initialValue),C(Y),P.change(Y)});const{getButtonProps:J,buttonRef:H}=Tt({disabled:L,native:p}),G=Zf(i,z,F,!p,U),ue={id:p?$:j,role:"switch","aria-checked":Y,"aria-readonly":y||void 0,"aria-required":m||void 0,"aria-labelledby":G,onFocus(){L||O(!0)},onBlur(){const ee=F.current;!ee||L||(E(!0),O(!1),I==="onBlur"&&P.commit(ee.checked))},onClick(ee){if(y||L)return;ee.preventDefault();const ie=F.current;ie&&Jn(ie,ee)}},ne={...P.getValidationProps(L),checked:Y,disabled:L,form:a,id:U,name:A,required:m,style:A?ta:Bo,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:T,onChange(ee){if(ee.nativeEvent.defaultPrevented)return;if(y){ee.preventDefault();return}const ie=ee.currentTarget.checked,xe=Re(Rt,ee.nativeEvent);f==null||f(ie,xe),!xe.isCanceled&&V(ie)},onClick(ee){ee.stopPropagation()},onFocus(){var ee;(ee=_.current)==null||ee.focus()},...v!==void 0?{value:v}:We},te=c.useMemo(()=>({...R,checked:Y,disabled:L,readOnly:y,required:m}),[R,Y,L,y,m]),Q=ke("span",t,{state:te,ref:[n,_,H],props:[ue,x,J,ee=>P.getValidationProps(L,ee)],stateAttributesMapping:Mp});return K.jsxs(Pp.Provider,{value:te,children:[Q,!Y&&A&&b!==void 0&&K.jsx("input",{type:"hidden",form:a,name:A,value:b,disabled:L}),K.jsx("input",{...ne,suppressHydrationWarning:!0})]})}),YE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,a=Hw();return ke("span",t,{state:a,ref:n,stateAttributesMapping:Mp,props:i})});export{nS as $,ak as A,uk as B,rS as C,RS as D,PS as E,HS as F,GS as G,tR as H,BS as I,xS as J,iR as K,lR as L,RR as M,KR as N,tS as O,zR as P,qS as Q,WR as R,YR as S,lk as T,oS as U,wS as V,wk as W,Sk as X,vS as Y,Ek as Z,_S as _,jS as a,Gk as a$,CR as a0,Zw as a1,cR as a2,xk as a3,$R as a4,GE as a5,YE as a6,IS as a7,OS as a8,vk as a9,Dk as aA,zk as aB,$b as aC,$k as aD,Nk as aE,Ok as aF,Hk as aG,Lk as aH,_k as aI,Vk as aJ,Ak as aK,Tk as aL,Fk as aM,Ik as aN,ZS as aO,tk as aP,Rk as aQ,Kk as aR,Jk as aS,Zk as aT,jk as aU,Wk as aV,Bk as aW,qk as aX,tE as aY,Uk as aZ,Xk as a_,bk as aa,kS as ab,AR as ac,pR as ad,uS as ae,mS as af,AS as ag,Kw as ah,FR as ai,$S as aj,JS as ak,gk as al,dR as am,hR as an,hk as ao,QR as ap,mR as aq,fS as ar,fR as as,Ww as at,Mk as au,Gm as av,Ck as aw,Pk as ax,ER as ay,oR as az,jR as b,QS as b$,Yk as b0,eE as b1,Qk as b2,sS as b3,cE as b4,rE as b5,sE as b6,aE as b7,iE as b8,oE as b9,VR as bA,ck as bB,qR as bC,lS as bD,kE as bE,EE as bF,CE as bG,PE as bH,zS as bI,_R as bJ,DR as bK,ME as bL,TE as bM,AE as bN,IE as bO,OE as bP,_E as bQ,FE as bR,DE as bS,NE as bT,LE as bU,zE as bV,VE as bW,$E as bX,HE as bY,nR as bZ,SR as b_,nE as ba,Cv as bb,mk as bc,ES as bd,St as be,lE as bf,Pr as bg,Ss as bh,dE as bi,fE as bj,pE as bk,hE as bl,nf as bm,LR as bn,FS as bo,yE as bp,gE as bq,mE as br,rR as bs,NR as bt,vE as bu,SE as bv,bE as bw,RE as bx,xE as by,wE as bz,TS as c,yS as c0,dS as c1,CS as c2,BE as c3,jE as c4,aS as c5,Uw as c6,yk as c7,bS as c8,WE as c9,Fw as cA,Lw as cB,Yw as cC,hS as cD,qw as cE,BR as cF,OR as cG,fk as cH,xR as cI,ek as cJ,uR as cK,UE as ca,gS as cb,kR as cc,eR as cd,LS as ce,NS as cf,YS as cg,nk as ch,US as ci,pS as cj,Jw as ck,wR as cl,HR as cm,GR as cn,bR as co,Gw as cp,sR as cq,VS as cr,Xw as cs,eS as ct,XS as cu,JR as cv,TR as cw,MS as cx,MR as cy,$w as cz,XR as d,sk as e,gR as f,kk as g,WS as h,pk as i,yR as j,UR as k,DS as l,ik as m,KS as n,dk as o,vR as p,SS as q,aR as r,Qw as s,IR as t,ok as u,cS as v,iS as w,PR as x,ZR as y,rk as z};