blade-code 0.7.4 → 0.7.6

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 (77) hide show
  1. package/dist/blade.js +2 -2
  2. package/dist/chunk-10q3krvh.js +6 -0
  3. package/dist/chunk-1tzcptyb.js +3 -0
  4. package/dist/{chunk-erpgkabk.js → chunk-1y33d6xh.js} +1 -1
  5. package/dist/chunk-5accz8n9.js +1 -0
  6. package/dist/{chunk-kfg3vx5z.js → chunk-64x50qbc.js} +1 -1
  7. package/dist/chunk-8raa4q9y.js +1564 -0
  8. package/dist/chunk-ad19yrq6.js +1 -0
  9. package/dist/{chunk-4e2fzyf2.js → chunk-arwynrtf.js} +2 -2
  10. package/dist/chunk-bvn4e2vq.js +1 -0
  11. package/dist/{chunk-63dzf6hr.js → chunk-cadngkwr.js} +1 -1
  12. package/dist/{chunk-98jpdmgc.js → chunk-cdx3hp1r.js} +5 -5
  13. package/dist/{chunk-373pmz70.js → chunk-d9qh7bat.js} +1 -1
  14. package/dist/chunk-ebynn53v.js +26 -0
  15. package/dist/{chunk-cyxb6fxe.js → chunk-ezkbqmvd.js} +1 -1
  16. package/dist/{chunk-7mnefph6.js → chunk-fceeqn6k.js} +2 -2
  17. package/dist/{chunk-egavbybx.js → chunk-g60w2r7f.js} +2 -2
  18. package/dist/{chunk-k4behavv.js → chunk-h7qab07x.js} +1 -1
  19. package/dist/{chunk-bmcc85nj.js → chunk-jhzf05kz.js} +1 -1
  20. package/dist/chunk-k76q8cyc.js +151 -0
  21. package/dist/chunk-krrm6bjr.js +1 -0
  22. package/dist/{chunk-gjf2d2yg.js → chunk-m3hsaaq5.js} +1 -1
  23. package/dist/chunk-n2yq1wn8.js +9 -0
  24. package/dist/{chunk-rtn0rb16.js → chunk-npaj13y3.js} +2 -2
  25. package/dist/{chunk-byxazdwv.js → chunk-pf45ctn7.js} +1 -1
  26. package/dist/{chunk-cw125vv3.js → chunk-q6sj33v8.js} +1 -1
  27. package/dist/chunk-qedtzcp2.js +1 -0
  28. package/dist/{chunk-e21htmg4.js → chunk-qyfdt8h1.js} +1 -1
  29. package/dist/{chunk-38h3yh6z.js → chunk-r0hc7wad.js} +1 -1
  30. package/dist/chunk-rhvxr82g.js +2 -0
  31. package/dist/chunk-t6qek6xk.js +1 -0
  32. package/dist/{chunk-jf48kahn.js → chunk-ttf06k8y.js} +3 -3
  33. package/dist/chunk-tyjns370.js +1 -0
  34. package/dist/{chunk-3mhbped9.js → chunk-ve6bvba4.js} +36 -36
  35. package/dist/chunk-wdxbjvd5.js +2 -0
  36. package/dist/{chunk-b1d49byc.js → chunk-wg5nxtb2.js} +1 -1
  37. package/dist/{chunk-qxvp127d.js → chunk-wstkn75a.js} +1 -1
  38. package/dist/chunk-x4fx52e7.js +24 -0
  39. package/dist/chunk-xj63cr29.js +1 -0
  40. package/dist/{chunk-by93yn92.js → chunk-zmndvdgb.js} +1 -1
  41. package/dist/{chunk-pvxp2gzr.js → chunk-zr71r1z1.js} +1 -1
  42. package/dist/web/assets/{FilePreview-evNzCuVx.js → FilePreview-CbtOITD1.js} +1 -1
  43. package/dist/web/assets/{MarkdownRenderer-BQoiQTDd.js → MarkdownRenderer-CW8WpEw1.js} +1 -1
  44. package/dist/web/assets/McpModal-DnqrgBON.js +5 -0
  45. package/dist/web/assets/SettingsModal-CRNT-LCq.js +1 -0
  46. package/dist/web/assets/{SettingsStore-CfDjhOkS.js → SettingsStore-B2GIhfKs.js} +1 -1
  47. package/dist/web/assets/SkillsModal-COQMbIdT.js +1 -0
  48. package/dist/web/assets/{TerminalPanel-Cs16_6ew.js → TerminalPanel-dCMUvQaH.js} +1 -1
  49. package/dist/web/assets/index-21gV5nOE.css +1 -0
  50. package/dist/web/assets/index-Cnz-_jPt.js +10 -0
  51. package/dist/web/assets/{useRequest-BJp539HQ.js → useRequest-C7k7cDPD.js} +1 -1
  52. package/dist/web/assets/{vendor-icons-DlzC8I7m.js → vendor-icons-BKXQ7ALf.js} +75 -30
  53. package/dist/web/assets/{vendor-radix-CfxBc_4-.js → vendor-radix-2yBsoRqx.js} +2 -2
  54. package/dist/web/index.html +2 -2
  55. package/package.json +1 -1
  56. package/dist/chunk-1vngdr7p.js +0 -1
  57. package/dist/chunk-501my8nh.js +0 -6
  58. package/dist/chunk-5smacbk0.js +0 -24
  59. package/dist/chunk-6rszb7xd.js +0 -1534
  60. package/dist/chunk-aevyre2t.js +0 -1
  61. package/dist/chunk-b4hmtjec.js +0 -1
  62. package/dist/chunk-cqrg2pp7.js +0 -1
  63. package/dist/chunk-ctbhcw8h.js +0 -1
  64. package/dist/chunk-dftaxwg9.js +0 -1
  65. package/dist/chunk-gzc9n5d6.js +0 -2
  66. package/dist/chunk-jpry8h07.js +0 -1
  67. package/dist/chunk-n5rg9dbv.js +0 -151
  68. package/dist/chunk-pa364yr9.js +0 -1
  69. package/dist/chunk-rkhhzc4r.js +0 -26
  70. package/dist/chunk-w1zb8zac.js +0 -3
  71. package/dist/chunk-z7x21493.js +0 -7
  72. package/dist/web/assets/McpModal-BT9OivhK.js +0 -5
  73. package/dist/web/assets/SettingsModal-CDRcorCS.js +0 -1
  74. package/dist/web/assets/SkillsModal-DCPaqoOe.js +0 -1
  75. package/dist/web/assets/dialog-C8VDk-ma.js +0 -1
  76. package/dist/web/assets/index-9t-WxRrl.js +0 -10
  77. package/dist/web/assets/index-Bu13aXyE.css +0 -1
@@ -1,4 +1,4 @@
1
- import{r as n}from"./vendor-react-Dm1xU4bP.js";/**
1
+ import{r as c}from"./vendor-react-Dm1xU4bP.js";/**
2
2
  * @license lucide-react v0.300.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -8,12 +8,17 @@ import{r as n}from"./vendor-react-Dm1xU4bP.js";/**
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
- */const m=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),e=(a,c)=>{const h=n.forwardRef(({color:l="currentColor",size:t=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:o="",children:y,...k},p)=>n.createElement("svg",{ref:p,...x,width:t,height:t,stroke:l,strokeWidth:r?Number(s)*24/Number(t):s,className:["lucide",`lucide-${m(a)}`,o].join(" "),...k},[...c.map(([i,d])=>n.createElement(i,d)),...Array.isArray(y)?y:[y]]));return h.displayName=`${a}`,h};/**
11
+ */const m=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),e=(a,s)=>{const h=c.forwardRef(({color:r="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:k,className:l="",children:y,...o},i)=>c.createElement("svg",{ref:i,...x,width:t,height:t,stroke:r,strokeWidth:k?Number(n)*24/Number(t):n,className:["lucide",`lucide-${m(a)}`,l].join(" "),...o},[...s.map(([p,d])=>c.createElement(p,d)),...Array.isArray(y)?y:[y]]));return h.displayName=`${a}`,h};/**
12
12
  * @license lucide-react v0.300.0 - ISC
13
13
  *
14
14
  * This source code is licensed under the ISC license.
15
15
  * See the LICENSE file in the root directory of this source tree.
16
- */const M=e("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
16
+ */const M=e("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
17
+ * @license lucide-react v0.300.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const g=e("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
17
22
  * @license lucide-react v0.300.0 - ISC
18
23
  *
19
24
  * This source code is licensed under the ISC license.
@@ -33,134 +38,174 @@ import{r as n}from"./vendor-react-Dm1xU4bP.js";/**
33
38
  *
34
39
  * This source code is licensed under the ISC license.
35
40
  * See the LICENSE file in the root directory of this source tree.
36
- */const g=e("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);/**
41
+ */const C=e("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
42
+ * @license lucide-react v0.300.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */const q=e("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);/**
47
+ * @license lucide-react v0.300.0 - ISC
48
+ *
49
+ * This source code is licensed under the ISC license.
50
+ * See the LICENSE file in the root directory of this source tree.
51
+ */const L=e("Copy",[["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"}]]);/**
52
+ * @license lucide-react v0.300.0 - ISC
53
+ *
54
+ * This source code is licensed under the ISC license.
55
+ * See the LICENSE file in the root directory of this source tree.
56
+ */const j=e("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
57
+ * @license lucide-react v0.300.0 - ISC
58
+ *
59
+ * This source code is licensed under the ISC license.
60
+ * See the LICENSE file in the root directory of this source tree.
61
+ */const z=e("ExternalLink",[["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}],["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["line",{x1:"10",x2:"21",y1:"14",y2:"3",key:"18c3s4"}]]);/**
62
+ * @license lucide-react v0.300.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const H=e("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/**
67
+ * @license lucide-react v0.300.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */const b=e("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
72
+ * @license lucide-react v0.300.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */const S=e("FileCode",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["path",{d:"m10 13-2 2 2 2",key:"17smn8"}],["path",{d:"m14 17 2-2-2-2",key:"14mezr"}]]);/**
77
+ * @license lucide-react v0.300.0 - ISC
78
+ *
79
+ * This source code is licensed under the ISC license.
80
+ * See the LICENSE file in the root directory of this source tree.
81
+ */const V=e("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]);/**
37
82
  * @license lucide-react v0.300.0 - ISC
38
83
  *
39
84
  * This source code is licensed under the ISC license.
40
85
  * See the LICENSE file in the root directory of this source tree.
41
- */const q=e("Copy",[["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"}]]);/**
86
+ */const F=e("FolderOpen",[["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"}]]);/**
42
87
  * @license lucide-react v0.300.0 - ISC
43
88
  *
44
89
  * This source code is licensed under the ISC license.
45
90
  * See the LICENSE file in the root directory of this source tree.
46
- */const C=e("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
91
+ */const P=e("Folder",[["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"}]]);/**
47
92
  * @license lucide-react v0.300.0 - ISC
48
93
  *
49
94
  * This source code is licensed under the ISC license.
50
95
  * See the LICENSE file in the root directory of this source tree.
51
- */const L=e("ExternalLink",[["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}],["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["line",{x1:"10",x2:"21",y1:"14",y2:"3",key:"18c3s4"}]]);/**
96
+ */const T=e("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
52
97
  * @license lucide-react v0.300.0 - ISC
53
98
  *
54
99
  * This source code is licensed under the ISC license.
55
100
  * See the LICENSE file in the root directory of this source tree.
56
- */const j=e("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/**
101
+ */const A=e("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
57
102
  * @license lucide-react v0.300.0 - ISC
58
103
  *
59
104
  * This source code is licensed under the ISC license.
60
105
  * See the LICENSE file in the root directory of this source tree.
61
- */const z=e("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
106
+ */const E=e("GitFork",[["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"}]]);/**
62
107
  * @license lucide-react v0.300.0 - ISC
63
108
  *
64
109
  * This source code is licensed under the ISC license.
65
110
  * See the LICENSE file in the root directory of this source tree.
66
- */const H=e("FileCode",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["path",{d:"m10 13-2 2 2 2",key:"17smn8"}],["path",{d:"m14 17 2-2-2-2",key:"14mezr"}]]);/**
111
+ */const R=e("HelpCircle",[["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"}]]);/**
67
112
  * @license lucide-react v0.300.0 - ISC
68
113
  *
69
114
  * This source code is licensed under the ISC license.
70
115
  * See the LICENSE file in the root directory of this source tree.
71
- */const b=e("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]);/**
116
+ */const D=e("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
72
117
  * @license lucide-react v0.300.0 - ISC
73
118
  *
74
119
  * This source code is licensed under the ISC license.
75
120
  * See the LICENSE file in the root directory of this source tree.
76
- */const S=e("FolderOpen",[["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"}]]);/**
121
+ */const G=e("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
77
122
  * @license lucide-react v0.300.0 - ISC
78
123
  *
79
124
  * This source code is licensed under the ISC license.
80
125
  * See the LICENSE file in the root directory of this source tree.
81
- */const V=e("Folder",[["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"}]]);/**
126
+ */const Z=e("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);/**
82
127
  * @license lucide-react v0.300.0 - ISC
83
128
  *
84
129
  * This source code is licensed under the ISC license.
85
130
  * See the LICENSE file in the root directory of this source tree.
86
- */const E=e("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
131
+ */const O=e("Pause",[["rect",{width:"4",height:"16",x:"6",y:"4",key:"iffhe4"}],["rect",{width:"4",height:"16",x:"14",y:"4",key:"sjin7j"}]]);/**
87
132
  * @license lucide-react v0.300.0 - ISC
88
133
  *
89
134
  * This source code is licensed under the ISC license.
90
135
  * See the LICENSE file in the root directory of this source tree.
91
- */const A=e("HelpCircle",[["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"}]]);/**
136
+ */const $=e("Pencil",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
92
137
  * @license lucide-react v0.300.0 - ISC
93
138
  *
94
139
  * This source code is licensed under the ISC license.
95
140
  * See the LICENSE file in the root directory of this source tree.
96
- */const F=e("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
141
+ */const B=e("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]);/**
97
142
  * @license lucide-react v0.300.0 - ISC
98
143
  *
99
144
  * This source code is licensed under the ISC license.
100
145
  * See the LICENSE file in the root directory of this source tree.
101
- */const P=e("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
146
+ */const N=e("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
102
147
  * @license lucide-react v0.300.0 - ISC
103
148
  *
104
149
  * This source code is licensed under the ISC license.
105
150
  * See the LICENSE file in the root directory of this source tree.
106
- */const T=e("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);/**
151
+ */const U=e("RefreshCw",[["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"}]]);/**
107
152
  * @license lucide-react v0.300.0 - ISC
108
153
  *
109
154
  * This source code is licensed under the ISC license.
110
155
  * See the LICENSE file in the root directory of this source tree.
111
- */const R=e("Pencil",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
156
+ */const X=e("RotateCcw",[["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"}]]);/**
112
157
  * @license lucide-react v0.300.0 - ISC
113
158
  *
114
159
  * This source code is licensed under the ISC license.
115
160
  * See the LICENSE file in the root directory of this source tree.
116
- */const Z=e("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
161
+ */const I=e("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
117
162
  * @license lucide-react v0.300.0 - ISC
118
163
  *
119
164
  * This source code is licensed under the ISC license.
120
165
  * See the LICENSE file in the root directory of this source tree.
121
- */const D=e("RefreshCw",[["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"}]]);/**
166
+ */const K=e("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
122
167
  * @license lucide-react v0.300.0 - ISC
123
168
  *
124
169
  * This source code is licensed under the ISC license.
125
170
  * See the LICENSE file in the root directory of this source tree.
126
- */const O=e("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
171
+ */const W=e("Server",[["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"}]]);/**
127
172
  * @license lucide-react v0.300.0 - ISC
128
173
  *
129
174
  * This source code is licensed under the ISC license.
130
175
  * See the LICENSE file in the root directory of this source tree.
131
- */const $=e("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
176
+ */const J=e("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
132
177
  * @license lucide-react v0.300.0 - ISC
133
178
  *
134
179
  * This source code is licensed under the ISC license.
135
180
  * See the LICENSE file in the root directory of this source tree.
136
- */const B=e("Server",[["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"}]]);/**
181
+ */const Q=e("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/**
137
182
  * @license lucide-react v0.300.0 - ISC
138
183
  *
139
184
  * This source code is licensed under the ISC license.
140
185
  * See the LICENSE file in the root directory of this source tree.
141
- */const G=e("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
186
+ */const Y=e("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
142
187
  * @license lucide-react v0.300.0 - ISC
143
188
  *
144
189
  * This source code is licensed under the ISC license.
145
190
  * See the LICENSE file in the root directory of this source tree.
146
- */const N=e("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/**
191
+ */const _=e("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
147
192
  * @license lucide-react v0.300.0 - ISC
148
193
  *
149
194
  * This source code is licensed under the ISC license.
150
195
  * See the LICENSE file in the root directory of this source tree.
151
- */const X=e("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
196
+ */const e1=e("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
152
197
  * @license lucide-react v0.300.0 - ISC
153
198
  *
154
199
  * This source code is licensed under the ISC license.
155
200
  * See the LICENSE file in the root directory of this source tree.
156
- */const I=e("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
201
+ */const a1=e("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/**
157
202
  * @license lucide-react v0.300.0 - ISC
158
203
  *
159
204
  * This source code is licensed under the ISC license.
160
205
  * See the LICENSE file in the root directory of this source tree.
161
- */const K=e("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
206
+ */const t1=e("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
162
207
  * @license lucide-react v0.300.0 - ISC
163
208
  *
164
209
  * This source code is licensed under the ISC license.
165
210
  * See the LICENSE file in the root directory of this source tree.
166
- */const W=e("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);export{u as C,C as D,j as E,H as F,E as G,A as H,F as L,P as M,Z as P,D as R,N as S,I as T,W as X,B as a,G as b,M as c,R as d,K as e,g as f,b as g,T as h,w as i,X as j,$ as k,f as l,z as m,S as n,V as o,O as p,L as q,q as r};
211
+ */const y1=e("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);export{L as A,u as C,j as D,H as E,S as F,E as G,R as H,D as L,G as M,N as P,X as R,Q as S,e1 as T,y1 as X,W as a,J as b,g as c,$ as d,t1 as e,A as f,q as g,V as h,Z as i,w as j,Y as k,K as l,f as m,M as n,_ as o,O as p,B as q,C as r,T as s,a1 as t,b as u,F as v,P as w,U as x,I as y,z};
@@ -38,8 +38,8 @@ import{r as s,a as Xe,j as p,b as Pn,u as Rn,o as Tn,s as An,f as _n,c as On,d a
38
38
  `)},Ot=function(){var e=parseInt(document.body.getAttribute(J)||"0",10);return isFinite(e)?e:0},Pa=function(){s.useEffect(function(){return document.body.setAttribute(J,(Ot()+1).toString()),function(){var e=Ot()-1;e<=0?document.body.removeAttribute(J):document.body.setAttribute(J,e.toString())}},[])},Ra=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Pa();var a=s.useMemo(function(){return Ea(o)},[o]);return s.createElement(Sa,{styles:xa(a,!t,o,r?"":"!important")})},Ue=!1;if(typeof window<"u")try{var me=Object.defineProperty({},"passive",{get:function(){return Ue=!0,!0}});window.addEventListener("test",me,me),window.removeEventListener("test",me,me)}catch{Ue=!1}var q=Ue?{passive:!1}:!1,Ta=function(e){return e.tagName==="TEXTAREA"},mr=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Ta(e)&&r[t]==="visible")},Aa=function(e){return mr(e,"overflowY")},_a=function(e){return mr(e,"overflowX")},Nt=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=gr(e,n);if(o){var a=br(e,n),i=a[1],c=a[2];if(i>c)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Oa=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Na=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},gr=function(e,t){return e==="v"?Aa(t):_a(t)},br=function(e,t){return e==="v"?Oa(t):Na(t)},Ia=function(e,t){return e==="h"&&t==="rtl"?-1:1},Da=function(e,t,r,n,o){var a=Ia(e,window.getComputedStyle(t).direction),i=a*n,c=r.target,u=t.contains(c),l=!1,d=i>0,f=0,v=0;do{if(!c)break;var m=br(e,c),y=m[0],h=m[1],g=m[2],b=h-g-a*y;(y||b)&&gr(e,c)&&(f+=b,v+=y);var C=c.parentNode;c=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(d&&Math.abs(f)<1||!d&&Math.abs(v)<1)&&(l=!0),l},ge=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},It=function(e){return[e.deltaX,e.deltaY]},Dt=function(e){return e&&"current"in e?e.current:e},Ma=function(e,t){return e[0]===t[0]&&e[1]===t[1]},La=function(e){return`
39
39
  .block-interactivity-`.concat(e,` {pointer-events: none;}
40
40
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},ja=0,Q=[];function Fa(e){var t=s.useRef([]),r=s.useRef([0,0]),n=s.useRef(),o=s.useState(ja++)[0],a=s.useState(hr)[0],i=s.useRef(e);s.useEffect(function(){i.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=oa([e.lockRef.current],(e.shards||[]).map(Dt),!0).filter(Boolean);return h.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=s.useCallback(function(h,g){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var b=ge(h),C=r.current,w="deltaX"in h?h.deltaX:C[0]-b[0],E="deltaY"in h?h.deltaY:C[1]-b[1],x,R=h.target,S=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in h&&S==="h"&&R.type==="range")return!1;var T=window.getSelection(),A=T&&T.anchorNode,O=A?A===R||A.contains(R):!1;if(O)return!1;var I=Nt(S,R);if(!I)return!0;if(I?x=S:(x=S==="v"?"h":"v",I=Nt(S,R)),!I)return!1;if(!n.current&&"changedTouches"in h&&(w||E)&&(n.current=x),!x)return!0;var U=n.current||x;return Da(U,g,h,U==="h"?w:E)},[]),u=s.useCallback(function(h){var g=h;if(!(!Q.length||Q[Q.length-1]!==a)){var b="deltaY"in g?It(g):ge(g),C=t.current.filter(function(x){return x.name===g.type&&(x.target===g.target||g.target===x.shadowParent)&&Ma(x.delta,b)})[0];if(C&&C.should){g.cancelable&&g.preventDefault();return}if(!C){var w=(i.current.shards||[]).map(Dt).filter(Boolean).filter(function(x){return x.contains(g.target)}),E=w.length>0?c(g,w[0]):!i.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=s.useCallback(function(h,g,b,C){var w={name:h,delta:g,target:b,should:C,shadowParent:ka(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),d=s.useCallback(function(h){r.current=ge(h),n.current=void 0},[]),f=s.useCallback(function(h){l(h.type,It(h),h.target,c(h,e.lockRef.current))},[]),v=s.useCallback(function(h){l(h.type,ge(h),h.target,c(h,e.lockRef.current))},[]);s.useEffect(function(){return Q.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",u,q),document.addEventListener("touchmove",u,q),document.addEventListener("touchstart",d,q),function(){Q=Q.filter(function(h){return h!==a}),document.removeEventListener("wheel",u,q),document.removeEventListener("touchmove",u,q),document.removeEventListener("touchstart",d,q)}},[]);var m=e.removeScrollBar,y=e.inert;return s.createElement(s.Fragment,null,y?s.createElement(a,{styles:La(o)}):null,m?s.createElement(Ra,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ka(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const $a=pa(vr,Fa);var ot=s.forwardRef(function(e,t){return s.createElement(Ae,F({},e,{ref:t,sideCar:$a}))});ot.classNames=Ae.classNames;var _e="Popover",[yr]=H(_e,[Te]),ie=Te(),[Wa,V]=yr(_e),Cr=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,c=ie(t),u=s.useRef(null),[l,d]=s.useState(!1),[f,v]=se({prop:n,defaultProp:o??!1,onChange:a,caller:_e});return p.jsx(ir,{...c,children:p.jsx(Wa,{scope:t,contentId:Y(),triggerRef:u,open:f,onOpenChange:v,onOpenToggle:s.useCallback(()=>v(m=>!m),[v]),hasCustomAnchor:l,onCustomAnchorAdd:s.useCallback(()=>d(!0),[]),onCustomAnchorRemove:s.useCallback(()=>d(!1),[]),modal:i,children:r})})};Cr.displayName=_e;var wr="PopoverAnchor",Ba=s.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=V(wr,r),a=ie(r),{onCustomAnchorAdd:i,onCustomAnchorRemove:c}=o;return s.useEffect(()=>(i(),()=>c()),[i,c]),p.jsx(rt,{...a,...n,ref:t})});Ba.displayName=wr;var Er="PopoverTrigger",Sr=s.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=V(Er,r),a=ie(r),i=N(t,o.triggerRef),c=p.jsx(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ar(o.open),...n,ref:i,onClick:P(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:p.jsx(rt,{asChild:!0,...a,children:c})});Sr.displayName=Er;var at="PopoverPortal",[Ha,Va]=yr(at,{forceMount:void 0}),xr=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=V(at,t);return p.jsx(Ha,{scope:t,forceMount:r,children:p.jsx(M,{present:r||a.open,children:p.jsx(nt,{asChild:!0,container:o,children:n})})})};xr.displayName=at;var te="PopoverContent",Pr=s.forwardRef((e,t)=>{const r=Va(te,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=V(te,e.__scopePopover);return p.jsx(M,{present:n||a.open,children:a.modal?p.jsx(za,{...o,ref:t}):p.jsx(Ya,{...o,ref:t})})});Pr.displayName=te;var Ua=Yo("PopoverContent.RemoveScroll"),za=s.forwardRef((e,t)=>{const r=V(te,e.__scopePopover),n=s.useRef(null),o=N(t,n),a=s.useRef(!1);return s.useEffect(()=>{const i=n.current;if(i)return dr(i)},[]),p.jsx(ot,{as:Ua,allowPinchZoom:!0,children:p.jsx(Rr,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:P(e.onCloseAutoFocus,i=>{var c;i.preventDefault(),a.current||(c=r.triggerRef.current)==null||c.focus()}),onPointerDownOutside:P(e.onPointerDownOutside,i=>{const c=i.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,l=c.button===2||u;a.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:P(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),Ya=s.forwardRef((e,t)=>{const r=V(te,e.__scopePopover),n=s.useRef(!1),o=s.useRef(!1);return p.jsx(Rr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,c;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(c=r.triggerRef.current)==null||c.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var u,l;(u=e.onInteractOutside)==null||u.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((l=r.triggerRef.current)==null?void 0:l.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Rr=s.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:l,onInteractOutside:d,...f}=e,v=V(te,r),m=ie(r);return Kt(),p.jsx(Je,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:p.jsx(Re,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:l,onDismiss:()=>v.onOpenChange(!1),children:p.jsx(cr,{"data-state":Ar(v.open),role:"dialog",id:v.contentId,...m,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Tr="PopoverClose",Ga=s.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=V(Tr,r);return p.jsx(_.button,{type:"button",...n,ref:t,onClick:P(e.onClick,()=>o.onOpenChange(!1))})});Ga.displayName=Tr;var Xa="PopoverArrow",Ka=s.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=ie(r);return p.jsx(lr,{...o,...n,ref:t})});Ka.displayName=Xa;function Ar(e){return e?"open":"closed"}var ii=Cr,ci=Sr,li=xr,ui=Pr,Za=Symbol("radix.slottable");function qa(e){const t=({children:r})=>p.jsx(p.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Za,t}var Qa=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Ja="VisuallyHidden",_r=s.forwardRef((e,t)=>p.jsx(_.span,{...e,ref:t,style:{...Qa,...e.style}}));_r.displayName=Ja;var es=_r,[Oe]=H("Tooltip",[Te]),Ne=Te(),Or="TooltipProvider",ts=700,ze="tooltip.open",[rs,st]=Oe(Or),Nr=e=>{const{__scopeTooltip:t,delayDuration:r=ts,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,i=s.useRef(!0),c=s.useRef(!1),u=s.useRef(0);return s.useEffect(()=>{const l=u.current;return()=>window.clearTimeout(l)},[]),p.jsx(rs,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:s.useCallback(()=>{window.clearTimeout(u.current),i.current=!1},[]),onClose:s.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:s.useCallback(l=>{c.current=l},[]),disableHoverableContent:o,children:a})};Nr.displayName=Or;var ae="Tooltip",[ns,Ie]=Oe(ae),Ir=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:c}=e,u=st(ae,e.__scopeTooltip),l=Ne(t),[d,f]=s.useState(null),v=Y(),m=s.useRef(0),y=i??u.disableHoverableContent,h=c??u.delayDuration,g=s.useRef(!1),[b,C]=se({prop:n,defaultProp:o??!1,onChange:S=>{S?(u.onOpen(),document.dispatchEvent(new CustomEvent(ze))):u.onClose(),a==null||a(S)},caller:ae}),w=s.useMemo(()=>b?g.current?"delayed-open":"instant-open":"closed",[b]),E=s.useCallback(()=>{window.clearTimeout(m.current),m.current=0,g.current=!1,C(!0)},[C]),x=s.useCallback(()=>{window.clearTimeout(m.current),m.current=0,C(!1)},[C]),R=s.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{g.current=!0,C(!0),m.current=0},h)},[h,C]);return s.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),p.jsx(ir,{...l,children:p.jsx(ns,{scope:t,contentId:v,open:b,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:s.useCallback(()=>{u.isOpenDelayedRef.current?R():E()},[u.isOpenDelayedRef,R,E]),onTriggerLeave:s.useCallback(()=>{y?x():(window.clearTimeout(m.current),m.current=0)},[x,y]),onOpen:E,onClose:x,disableHoverableContent:y,children:r})})};Ir.displayName=ae;var Ye="TooltipTrigger",Dr=s.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Ie(Ye,r),a=st(Ye,r),i=Ne(r),c=s.useRef(null),u=N(t,c,o.onTriggerChange),l=s.useRef(!1),d=s.useRef(!1),f=s.useCallback(()=>l.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.jsx(rt,{asChild:!0,...i,children:p.jsx(_.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:u,onPointerMove:P(e.onPointerMove,v=>{v.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:P(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:P(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:P(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:P(e.onBlur,o.onClose),onClick:P(e.onClick,o.onClose)})})});Dr.displayName=Ye;var os="TooltipPortal",[di,as]=Oe(os,{forceMount:void 0}),re="TooltipContent",Mr=s.forwardRef((e,t)=>{const r=as(re,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,i=Ie(re,e.__scopeTooltip);return p.jsx(M,{present:n||i.open,children:i.disableHoverableContent?p.jsx(Lr,{side:o,...a,ref:t}):p.jsx(ss,{side:o,...a,ref:t})})}),ss=s.forwardRef((e,t)=>{const r=Ie(re,e.__scopeTooltip),n=st(re,e.__scopeTooltip),o=s.useRef(null),a=N(t,o),[i,c]=s.useState(null),{trigger:u,onClose:l}=r,d=o.current,{onPointerInTransitChange:f}=n,v=s.useCallback(()=>{c(null),f(!1)},[f]),m=s.useCallback((y,h)=>{const g=y.currentTarget,b={x:y.clientX,y:y.clientY},C=ds(b,g.getBoundingClientRect()),w=fs(b,C),E=ps(h.getBoundingClientRect()),x=hs([...w,...E]);c(x),f(!0)},[f]);return s.useEffect(()=>()=>v(),[v]),s.useEffect(()=>{if(u&&d){const y=g=>m(g,d),h=g=>m(g,u);return u.addEventListener("pointerleave",y),d.addEventListener("pointerleave",h),()=>{u.removeEventListener("pointerleave",y),d.removeEventListener("pointerleave",h)}}},[u,d,m,v]),s.useEffect(()=>{if(i){const y=h=>{const g=h.target,b={x:h.clientX,y:h.clientY},C=(u==null?void 0:u.contains(g))||(d==null?void 0:d.contains(g)),w=!vs(b,i);C?v():w&&(v(),l())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[u,d,i,l,v]),p.jsx(Lr,{...e,ref:a})}),[is,cs]=Oe(ae,{isInside:!1}),ls=qa("TooltipContent"),Lr=s.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...c}=e,u=Ie(re,r),l=Ne(r),{onClose:d}=u;return s.useEffect(()=>(document.addEventListener(ze,d),()=>document.removeEventListener(ze,d)),[d]),s.useEffect(()=>{if(u.trigger){const f=v=>{const m=v.target;m!=null&&m.contains(u.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[u.trigger,d]),p.jsx(Re,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:p.jsxs(cr,{"data-state":u.stateAttribute,...l,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(ls,{children:n}),p.jsx(is,{scope:r,isInside:!0,children:p.jsx(es,{id:u.contentId,role:"tooltip",children:o||n})})]})})});Mr.displayName=re;var jr="TooltipArrow",us=s.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Ne(r);return cs(jr,r).isInside?null:p.jsx(lr,{...o,...n,ref:t})});us.displayName=jr;function ds(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function fs(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function ps(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function vs(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const c=t[a],u=t[i],l=c.x,d=c.y,f=u.x,v=u.y;d>n!=v>n&&r<(f-l)*(n-d)/(v-d)+l&&(o=!o)}return o}function hs(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),ms(t)}function ms(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var fi=Nr,pi=Ir,vi=Dr,hi=Mr;function gs(e){const t=bs(e),r=s.forwardRef((n,o)=>{const{children:a,...i}=n,c=s.Children.toArray(a),u=c.find(Cs);if(u){const l=u.props.children,d=c.map(f=>f===u?s.Children.count(l)>1?s.Children.only(null):s.isValidElement(l)?l.props.children:null:f);return p.jsx(t,{...i,ref:o,children:s.isValidElement(l)?s.cloneElement(l,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function bs(e){const t=s.forwardRef((r,n)=>{const{children:o,...a}=r;if(s.isValidElement(o)){const i=Es(o),c=ws(a,o.props);return o.type!==s.Fragment&&(c.ref=n?ne(n,i):i),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ys=Symbol("radix.slottable");function Cs(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ys}function ws(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...c)=>{const u=a(...c);return o(...c),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Es(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var De="Dialog",[Fr]=H(De),[Ss,j]=Fr(De),kr=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,c=s.useRef(null),u=s.useRef(null),[l,d]=se({prop:n,defaultProp:o??!1,onChange:a,caller:De});return p.jsx(Ss,{scope:t,triggerRef:c,contentRef:u,contentId:Y(),titleId:Y(),descriptionId:Y(),open:l,onOpenChange:d,onOpenToggle:s.useCallback(()=>d(f=>!f),[d]),modal:i,children:r})};kr.displayName=De;var $r="DialogTrigger",xs=s.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=j($r,r),a=N(t,o.triggerRef);return p.jsx(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":lt(o.open),...n,ref:a,onClick:P(e.onClick,o.onOpenToggle)})});xs.displayName=$r;var it="DialogPortal",[Ps,Wr]=Fr(it,{forceMount:void 0}),Br=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=j(it,t);return p.jsx(Ps,{scope:t,forceMount:r,children:s.Children.map(n,i=>p.jsx(M,{present:r||a.open,children:p.jsx(nt,{asChild:!0,container:o,children:i})}))})};Br.displayName=it;var Se="DialogOverlay",Hr=s.forwardRef((e,t)=>{const r=Wr(Se,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=j(Se,e.__scopeDialog);return a.modal?p.jsx(M,{present:n||a.open,children:p.jsx(Ts,{...o,ref:t})}):null});Hr.displayName=Se;var Rs=gs("DialogOverlay.RemoveScroll"),Ts=s.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=j(Se,r);return p.jsx(ot,{as:Rs,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(_.div,{"data-state":lt(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),G="DialogContent",Vr=s.forwardRef((e,t)=>{const r=Wr(G,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=j(G,e.__scopeDialog);return p.jsx(M,{present:n||a.open,children:a.modal?p.jsx(As,{...o,ref:t}):p.jsx(_s,{...o,ref:t})})});Vr.displayName=G;var As=s.forwardRef((e,t)=>{const r=j(G,e.__scopeDialog),n=s.useRef(null),o=N(t,r.contentRef,n);return s.useEffect(()=>{const a=n.current;if(a)return dr(a)},[]),p.jsx(Ur,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:P(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:P(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&a.preventDefault()}),onFocusOutside:P(e.onFocusOutside,a=>a.preventDefault())})}),_s=s.forwardRef((e,t)=>{const r=j(G,e.__scopeDialog),n=s.useRef(!1),o=s.useRef(!1);return p.jsx(Ur,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,c;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(c=r.triggerRef.current)==null||c.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var u,l;(u=e.onInteractOutside)==null||u.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((l=r.triggerRef.current)==null?void 0:l.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ur=s.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,c=j(G,r),u=s.useRef(null),l=N(t,u);return Kt(),p.jsxs(p.Fragment,{children:[p.jsx(Je,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:p.jsx(Re,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":lt(c.open),...i,ref:l,onDismiss:()=>c.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(Os,{titleId:c.titleId}),p.jsx(Is,{contentRef:u,descriptionId:c.descriptionId})]})]})}),ct="DialogTitle",zr=s.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=j(ct,r);return p.jsx(_.h2,{id:o.titleId,...n,ref:t})});zr.displayName=ct;var Yr="DialogDescription",Gr=s.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=j(Yr,r);return p.jsx(_.p,{id:o.descriptionId,...n,ref:t})});Gr.displayName=Yr;var Xr="DialogClose",Kr=s.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=j(Xr,r);return p.jsx(_.button,{type:"button",...n,ref:t,onClick:P(e.onClick,()=>o.onOpenChange(!1))})});Kr.displayName=Xr;function lt(e){return e?"open":"closed"}var Zr="DialogTitleWarning",[mi,qr]=to(Zr,{contentName:G,titleName:ct,docsSlug:"dialog"}),Os=({titleId:e})=>{const t=qr(Zr),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
41
+ `)},ja=0,Q=[];function Fa(e){var t=s.useRef([]),r=s.useRef([0,0]),n=s.useRef(),o=s.useState(ja++)[0],a=s.useState(hr)[0],i=s.useRef(e);s.useEffect(function(){i.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=oa([e.lockRef.current],(e.shards||[]).map(Dt),!0).filter(Boolean);return h.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=s.useCallback(function(h,g){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var b=ge(h),C=r.current,w="deltaX"in h?h.deltaX:C[0]-b[0],E="deltaY"in h?h.deltaY:C[1]-b[1],x,R=h.target,S=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in h&&S==="h"&&R.type==="range")return!1;var T=window.getSelection(),A=T&&T.anchorNode,O=A?A===R||A.contains(R):!1;if(O)return!1;var I=Nt(S,R);if(!I)return!0;if(I?x=S:(x=S==="v"?"h":"v",I=Nt(S,R)),!I)return!1;if(!n.current&&"changedTouches"in h&&(w||E)&&(n.current=x),!x)return!0;var U=n.current||x;return Da(U,g,h,U==="h"?w:E)},[]),u=s.useCallback(function(h){var g=h;if(!(!Q.length||Q[Q.length-1]!==a)){var b="deltaY"in g?It(g):ge(g),C=t.current.filter(function(x){return x.name===g.type&&(x.target===g.target||g.target===x.shadowParent)&&Ma(x.delta,b)})[0];if(C&&C.should){g.cancelable&&g.preventDefault();return}if(!C){var w=(i.current.shards||[]).map(Dt).filter(Boolean).filter(function(x){return x.contains(g.target)}),E=w.length>0?c(g,w[0]):!i.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=s.useCallback(function(h,g,b,C){var w={name:h,delta:g,target:b,should:C,shadowParent:ka(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),d=s.useCallback(function(h){r.current=ge(h),n.current=void 0},[]),f=s.useCallback(function(h){l(h.type,It(h),h.target,c(h,e.lockRef.current))},[]),v=s.useCallback(function(h){l(h.type,ge(h),h.target,c(h,e.lockRef.current))},[]);s.useEffect(function(){return Q.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",u,q),document.addEventListener("touchmove",u,q),document.addEventListener("touchstart",d,q),function(){Q=Q.filter(function(h){return h!==a}),document.removeEventListener("wheel",u,q),document.removeEventListener("touchmove",u,q),document.removeEventListener("touchstart",d,q)}},[]);var m=e.removeScrollBar,y=e.inert;return s.createElement(s.Fragment,null,y?s.createElement(a,{styles:La(o)}):null,m?s.createElement(Ra,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ka(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const $a=pa(vr,Fa);var ot=s.forwardRef(function(e,t){return s.createElement(Ae,F({},e,{ref:t,sideCar:$a}))});ot.classNames=Ae.classNames;var _e="Popover",[yr]=H(_e,[Te]),ie=Te(),[Wa,V]=yr(_e),Cr=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,c=ie(t),u=s.useRef(null),[l,d]=s.useState(!1),[f,v]=se({prop:n,defaultProp:o??!1,onChange:a,caller:_e});return p.jsx(ir,{...c,children:p.jsx(Wa,{scope:t,contentId:Y(),triggerRef:u,open:f,onOpenChange:v,onOpenToggle:s.useCallback(()=>v(m=>!m),[v]),hasCustomAnchor:l,onCustomAnchorAdd:s.useCallback(()=>d(!0),[]),onCustomAnchorRemove:s.useCallback(()=>d(!1),[]),modal:i,children:r})})};Cr.displayName=_e;var wr="PopoverAnchor",Ba=s.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=V(wr,r),a=ie(r),{onCustomAnchorAdd:i,onCustomAnchorRemove:c}=o;return s.useEffect(()=>(i(),()=>c()),[i,c]),p.jsx(rt,{...a,...n,ref:t})});Ba.displayName=wr;var Er="PopoverTrigger",Sr=s.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=V(Er,r),a=ie(r),i=N(t,o.triggerRef),c=p.jsx(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ar(o.open),...n,ref:i,onClick:P(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:p.jsx(rt,{asChild:!0,...a,children:c})});Sr.displayName=Er;var at="PopoverPortal",[Ha,Va]=yr(at,{forceMount:void 0}),xr=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=V(at,t);return p.jsx(Ha,{scope:t,forceMount:r,children:p.jsx(M,{present:r||a.open,children:p.jsx(nt,{asChild:!0,container:o,children:n})})})};xr.displayName=at;var te="PopoverContent",Pr=s.forwardRef((e,t)=>{const r=Va(te,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=V(te,e.__scopePopover);return p.jsx(M,{present:n||a.open,children:a.modal?p.jsx(za,{...o,ref:t}):p.jsx(Ya,{...o,ref:t})})});Pr.displayName=te;var Ua=Yo("PopoverContent.RemoveScroll"),za=s.forwardRef((e,t)=>{const r=V(te,e.__scopePopover),n=s.useRef(null),o=N(t,n),a=s.useRef(!1);return s.useEffect(()=>{const i=n.current;if(i)return dr(i)},[]),p.jsx(ot,{as:Ua,allowPinchZoom:!0,children:p.jsx(Rr,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:P(e.onCloseAutoFocus,i=>{var c;i.preventDefault(),a.current||(c=r.triggerRef.current)==null||c.focus()}),onPointerDownOutside:P(e.onPointerDownOutside,i=>{const c=i.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,l=c.button===2||u;a.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:P(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),Ya=s.forwardRef((e,t)=>{const r=V(te,e.__scopePopover),n=s.useRef(!1),o=s.useRef(!1);return p.jsx(Rr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,c;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(c=r.triggerRef.current)==null||c.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var u,l;(u=e.onInteractOutside)==null||u.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((l=r.triggerRef.current)==null?void 0:l.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Rr=s.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:l,onInteractOutside:d,...f}=e,v=V(te,r),m=ie(r);return Kt(),p.jsx(Je,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:p.jsx(Re,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:l,onDismiss:()=>v.onOpenChange(!1),children:p.jsx(cr,{"data-state":Ar(v.open),role:"dialog",id:v.contentId,...m,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Tr="PopoverClose",Ga=s.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=V(Tr,r);return p.jsx(_.button,{type:"button",...n,ref:t,onClick:P(e.onClick,()=>o.onOpenChange(!1))})});Ga.displayName=Tr;var Xa="PopoverArrow",Ka=s.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=ie(r);return p.jsx(lr,{...o,...n,ref:t})});Ka.displayName=Xa;function Ar(e){return e?"open":"closed"}var ii=Cr,ci=Sr,li=xr,ui=Pr;function Za(e){const t=qa(e),r=s.forwardRef((n,o)=>{const{children:a,...i}=n,c=s.Children.toArray(a),u=c.find(Ja);if(u){const l=u.props.children,d=c.map(f=>f===u?s.Children.count(l)>1?s.Children.only(null):s.isValidElement(l)?l.props.children:null:f);return p.jsx(t,{...i,ref:o,children:s.isValidElement(l)?s.cloneElement(l,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function qa(e){const t=s.forwardRef((r,n)=>{const{children:o,...a}=r;if(s.isValidElement(o)){const i=ts(o),c=es(a,o.props);return o.type!==s.Fragment&&(c.ref=n?ne(n,i):i),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qa=Symbol("radix.slottable");function Ja(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qa}function es(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...c)=>{const u=a(...c);return o(...c),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function ts(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Oe="Dialog",[_r]=H(Oe),[rs,j]=_r(Oe),Or=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,c=s.useRef(null),u=s.useRef(null),[l,d]=se({prop:n,defaultProp:o??!1,onChange:a,caller:Oe});return p.jsx(rs,{scope:t,triggerRef:c,contentRef:u,contentId:Y(),titleId:Y(),descriptionId:Y(),open:l,onOpenChange:d,onOpenToggle:s.useCallback(()=>d(f=>!f),[d]),modal:i,children:r})};Or.displayName=Oe;var Nr="DialogTrigger",ns=s.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=j(Nr,r),a=N(t,o.triggerRef);return p.jsx(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ct(o.open),...n,ref:a,onClick:P(e.onClick,o.onOpenToggle)})});ns.displayName=Nr;var st="DialogPortal",[os,Ir]=_r(st,{forceMount:void 0}),Dr=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=j(st,t);return p.jsx(os,{scope:t,forceMount:r,children:s.Children.map(n,i=>p.jsx(M,{present:r||a.open,children:p.jsx(nt,{asChild:!0,container:o,children:i})}))})};Dr.displayName=st;var Se="DialogOverlay",Mr=s.forwardRef((e,t)=>{const r=Ir(Se,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=j(Se,e.__scopeDialog);return a.modal?p.jsx(M,{present:n||a.open,children:p.jsx(ss,{...o,ref:t})}):null});Mr.displayName=Se;var as=Za("DialogOverlay.RemoveScroll"),ss=s.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=j(Se,r);return p.jsx(ot,{as,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(_.div,{"data-state":ct(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),G="DialogContent",Lr=s.forwardRef((e,t)=>{const r=Ir(G,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=j(G,e.__scopeDialog);return p.jsx(M,{present:n||a.open,children:a.modal?p.jsx(is,{...o,ref:t}):p.jsx(cs,{...o,ref:t})})});Lr.displayName=G;var is=s.forwardRef((e,t)=>{const r=j(G,e.__scopeDialog),n=s.useRef(null),o=N(t,r.contentRef,n);return s.useEffect(()=>{const a=n.current;if(a)return dr(a)},[]),p.jsx(jr,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:P(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:P(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&a.preventDefault()}),onFocusOutside:P(e.onFocusOutside,a=>a.preventDefault())})}),cs=s.forwardRef((e,t)=>{const r=j(G,e.__scopeDialog),n=s.useRef(!1),o=s.useRef(!1);return p.jsx(jr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,c;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(c=r.triggerRef.current)==null||c.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var u,l;(u=e.onInteractOutside)==null||u.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((l=r.triggerRef.current)==null?void 0:l.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),jr=s.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,c=j(G,r),u=s.useRef(null),l=N(t,u);return Kt(),p.jsxs(p.Fragment,{children:[p.jsx(Je,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:p.jsx(Re,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":ct(c.open),...i,ref:l,onDismiss:()=>c.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(ls,{titleId:c.titleId}),p.jsx(ds,{contentRef:u,descriptionId:c.descriptionId})]})]})}),it="DialogTitle",Fr=s.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=j(it,r);return p.jsx(_.h2,{id:o.titleId,...n,ref:t})});Fr.displayName=it;var kr="DialogDescription",$r=s.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=j(kr,r);return p.jsx(_.p,{id:o.descriptionId,...n,ref:t})});$r.displayName=kr;var Wr="DialogClose",Br=s.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=j(Wr,r);return p.jsx(_.button,{type:"button",...n,ref:t,onClick:P(e.onClick,()=>o.onOpenChange(!1))})});Br.displayName=Wr;function ct(e){return e?"open":"closed"}var Hr="DialogTitleWarning",[di,Vr]=to(Hr,{contentName:G,titleName:it,docsSlug:"dialog"}),ls=({titleId:e})=>{const t=Vr(Hr),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
42
 
43
43
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
44
 
45
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return s.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Ns="DialogDescriptionWarning",Is=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${qr(Ns).contentName}}.`;return s.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},gi=kr,bi=Br,yi=Hr,Ci=Vr,wi=zr,Ei=Gr,Si=Kr;function Mt(e){const t=Ds(e),r=s.forwardRef((n,o)=>{const{children:a,...i}=n,c=s.Children.toArray(a),u=c.find(Ls);if(u){const l=u.props.children,d=c.map(f=>f===u?s.Children.count(l)>1?s.Children.only(null):s.isValidElement(l)?l.props.children:null:f);return p.jsx(t,{...i,ref:o,children:s.isValidElement(l)?s.cloneElement(l,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function Ds(e){const t=s.forwardRef((r,n)=>{const{children:o,...a}=r;if(s.isValidElement(o)){const i=Fs(o),c=js(a,o.props);return o.type!==s.Fragment&&(c.ref=n?ne(n,i):i),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ms=Symbol("radix.slottable");function Ls(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ms}function js(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...c)=>{const u=a(...c);return o(...c),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Fs(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function ks(e){const t=e+"CollectionProvider",[r,n]=H(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:g,children:b}=h,C=z.useRef(null),w=z.useRef(new Map).current;return p.jsx(o,{scope:g,itemMap:w,collectionRef:C,children:b})};i.displayName=t;const c=e+"CollectionSlot",u=Mt(c),l=z.forwardRef((h,g)=>{const{scope:b,children:C}=h,w=a(c,b),E=N(g,w.collectionRef);return p.jsx(u,{ref:E,children:C})});l.displayName=c;const d=e+"CollectionItemSlot",f="data-radix-collection-item",v=Mt(d),m=z.forwardRef((h,g)=>{const{scope:b,children:C,...w}=h,E=z.useRef(null),x=N(g,E),R=a(d,b);return z.useEffect(()=>(R.itemMap.set(E,{ref:E,...w}),()=>void R.itemMap.delete(E))),p.jsx(v,{[f]:"",ref:x,children:C})});m.displayName=d;function y(h){const g=a(e+"CollectionConsumer",h);return z.useCallback(()=>{const C=g.collectionRef.current;if(!C)return[];const w=Array.from(C.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((R,S)=>w.indexOf(R.ref.current)-w.indexOf(S.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:l,ItemSlot:m},y,n]}var He="rovingFocusGroup.onEntryFocus",$s={bubbles:!1,cancelable:!0},ce="RovingFocusGroup",[Ge,Qr,Ws]=ks(ce),[Bs,Jr]=H(ce,[Ws]),[Hs,Vs]=Bs(ce),en=s.forwardRef((e,t)=>p.jsx(Ge.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Ge.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Us,{...e,ref:t})})}));en.displayName=ce;var Us=s.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:d=!1,...f}=e,v=s.useRef(null),m=N(t,v),y=Ke(a),[h,g]=se({prop:i,defaultProp:c??null,onChange:u,caller:ce}),[b,C]=s.useState(!1),w=D(l),E=Qr(r),x=s.useRef(!1),[R,S]=s.useState(0);return s.useEffect(()=>{const T=v.current;if(T)return T.addEventListener(He,w),()=>T.removeEventListener(He,w)},[w]),p.jsx(Hs,{scope:r,orientation:n,dir:y,loop:o,currentTabStopId:h,onItemFocus:s.useCallback(T=>g(T),[g]),onItemShiftTab:s.useCallback(()=>C(!0),[]),onFocusableItemAdd:s.useCallback(()=>S(T=>T+1),[]),onFocusableItemRemove:s.useCallback(()=>S(T=>T-1),[]),children:p.jsx(_.div,{tabIndex:b||R===0?-1:0,"data-orientation":n,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:P(e.onMouseDown,()=>{x.current=!0}),onFocus:P(e.onFocus,T=>{const A=!x.current;if(T.target===T.currentTarget&&A&&!b){const O=new CustomEvent(He,$s);if(T.currentTarget.dispatchEvent(O),!O.defaultPrevented){const I=E().filter($=>$.focusable),U=I.find($=>$.active),X=I.find($=>$.id===h),le=[U,X,...I].filter(Boolean).map($=>$.ref.current);nn(le,d)}}x.current=!1}),onBlur:P(e.onBlur,()=>C(!1))})})}),tn="RovingFocusGroupItem",rn=s.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:i,...c}=e,u=Y(),l=a||u,d=Vs(tn,r),f=d.currentTabStopId===l,v=Qr(r),{onFocusableItemAdd:m,onFocusableItemRemove:y,currentTabStopId:h}=d;return s.useEffect(()=>{if(n)return m(),()=>y()},[n,m,y]),p.jsx(Ge.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:p.jsx(_.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...c,ref:t,onMouseDown:P(e.onMouseDown,g=>{n?d.onItemFocus(l):g.preventDefault()}),onFocus:P(e.onFocus,()=>d.onItemFocus(l)),onKeyDown:P(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){d.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=Gs(g,d.orientation,d.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let w=v().filter(E=>E.focusable).map(E=>E.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const E=w.indexOf(g.currentTarget);w=d.loop?Xs(w,E+1):w.slice(E+1)}setTimeout(()=>nn(w))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:h!=null}):i})})});rn.displayName=tn;var zs={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ys(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Gs(e,t,r){const n=Ys(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return zs[n]}function nn(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Xs(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Ks=en,Zs=rn,Me="Tabs",[qs]=H(Me,[Jr]),on=Jr(),[Qs,ut]=qs(Me),an=s.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:c,activationMode:u="automatic",...l}=e,d=Ke(c),[f,v]=se({prop:n,onChange:o,defaultProp:a??"",caller:Me});return p.jsx(Qs,{scope:r,baseId:Y(),value:f,onValueChange:v,orientation:i,dir:d,activationMode:u,children:p.jsx(_.div,{dir:d,"data-orientation":i,...l,ref:t})})});an.displayName=Me;var sn="TabsList",cn=s.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=ut(sn,r),i=on(r);return p.jsx(Ks,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:n,children:p.jsx(_.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});cn.displayName=sn;var ln="TabsTrigger",un=s.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,i=ut(ln,r),c=on(r),u=pn(i.baseId,n),l=vn(i.baseId,n),d=n===i.value;return p.jsx(Zs,{asChild:!0,...c,focusable:!o,active:d,children:p.jsx(_.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":l,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u,...a,ref:t,onMouseDown:P(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?i.onValueChange(n):f.preventDefault()}),onKeyDown:P(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&i.onValueChange(n)}),onFocus:P(e.onFocus,()=>{const f=i.activationMode!=="manual";!d&&!o&&f&&i.onValueChange(n)})})})});un.displayName=ln;var dn="TabsContent",fn=s.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...i}=e,c=ut(dn,r),u=pn(c.baseId,n),l=vn(c.baseId,n),d=n===c.value,f=s.useRef(d);return s.useEffect(()=>{const v=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(v)},[]),p.jsx(M,{present:o||d,children:({present:v})=>p.jsx(_.div,{"data-state":d?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!v,id:l,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:v&&a})})});fn.displayName=dn;function pn(e,t){return`${e}-trigger-${t}`}function vn(e,t){return`${e}-content-${t}`}var xi=an,Pi=cn,Ri=un,Ti=fn;export{ni as C,Ei as D,Pi as L,yi as O,li as P,ti as R,ei as S,ci as T,ri as V,oa as _,io as a,vo as b,ui as c,ii as d,hi as e,fi as f,pi as g,vi as h,xi as i,Ri as j,Ti as k,si as l,oi as m,ai as n,F as o,fr as p,gi as q,bi as r,Ci as s,Si as t,wi as u};
45
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return s.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},us="DialogDescriptionWarning",ds=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Vr(us).contentName}}.`;return s.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},fi=Or,pi=Dr,vi=Mr,hi=Lr,mi=Fr,gi=$r,bi=Br,fs=Symbol("radix.slottable");function ps(e){const t=({children:r})=>p.jsx(p.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=fs,t}var vs=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),hs="VisuallyHidden",Ur=s.forwardRef((e,t)=>p.jsx(_.span,{...e,ref:t,style:{...vs,...e.style}}));Ur.displayName=hs;var ms=Ur,[Ne]=H("Tooltip",[Te]),Ie=Te(),zr="TooltipProvider",gs=700,ze="tooltip.open",[bs,lt]=Ne(zr),Yr=e=>{const{__scopeTooltip:t,delayDuration:r=gs,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,i=s.useRef(!0),c=s.useRef(!1),u=s.useRef(0);return s.useEffect(()=>{const l=u.current;return()=>window.clearTimeout(l)},[]),p.jsx(bs,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:s.useCallback(()=>{window.clearTimeout(u.current),i.current=!1},[]),onClose:s.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:s.useCallback(l=>{c.current=l},[]),disableHoverableContent:o,children:a})};Yr.displayName=zr;var ae="Tooltip",[ys,De]=Ne(ae),Gr=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:c}=e,u=lt(ae,e.__scopeTooltip),l=Ie(t),[d,f]=s.useState(null),v=Y(),m=s.useRef(0),y=i??u.disableHoverableContent,h=c??u.delayDuration,g=s.useRef(!1),[b,C]=se({prop:n,defaultProp:o??!1,onChange:S=>{S?(u.onOpen(),document.dispatchEvent(new CustomEvent(ze))):u.onClose(),a==null||a(S)},caller:ae}),w=s.useMemo(()=>b?g.current?"delayed-open":"instant-open":"closed",[b]),E=s.useCallback(()=>{window.clearTimeout(m.current),m.current=0,g.current=!1,C(!0)},[C]),x=s.useCallback(()=>{window.clearTimeout(m.current),m.current=0,C(!1)},[C]),R=s.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{g.current=!0,C(!0),m.current=0},h)},[h,C]);return s.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),p.jsx(ir,{...l,children:p.jsx(ys,{scope:t,contentId:v,open:b,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:s.useCallback(()=>{u.isOpenDelayedRef.current?R():E()},[u.isOpenDelayedRef,R,E]),onTriggerLeave:s.useCallback(()=>{y?x():(window.clearTimeout(m.current),m.current=0)},[x,y]),onOpen:E,onClose:x,disableHoverableContent:y,children:r})})};Gr.displayName=ae;var Ye="TooltipTrigger",Xr=s.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=De(Ye,r),a=lt(Ye,r),i=Ie(r),c=s.useRef(null),u=N(t,c,o.onTriggerChange),l=s.useRef(!1),d=s.useRef(!1),f=s.useCallback(()=>l.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.jsx(rt,{asChild:!0,...i,children:p.jsx(_.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:u,onPointerMove:P(e.onPointerMove,v=>{v.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:P(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:P(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:P(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:P(e.onBlur,o.onClose),onClick:P(e.onClick,o.onClose)})})});Xr.displayName=Ye;var Cs="TooltipPortal",[yi,ws]=Ne(Cs,{forceMount:void 0}),re="TooltipContent",Kr=s.forwardRef((e,t)=>{const r=ws(re,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,i=De(re,e.__scopeTooltip);return p.jsx(M,{present:n||i.open,children:i.disableHoverableContent?p.jsx(Zr,{side:o,...a,ref:t}):p.jsx(Es,{side:o,...a,ref:t})})}),Es=s.forwardRef((e,t)=>{const r=De(re,e.__scopeTooltip),n=lt(re,e.__scopeTooltip),o=s.useRef(null),a=N(t,o),[i,c]=s.useState(null),{trigger:u,onClose:l}=r,d=o.current,{onPointerInTransitChange:f}=n,v=s.useCallback(()=>{c(null),f(!1)},[f]),m=s.useCallback((y,h)=>{const g=y.currentTarget,b={x:y.clientX,y:y.clientY},C=Ts(b,g.getBoundingClientRect()),w=As(b,C),E=_s(h.getBoundingClientRect()),x=Ns([...w,...E]);c(x),f(!0)},[f]);return s.useEffect(()=>()=>v(),[v]),s.useEffect(()=>{if(u&&d){const y=g=>m(g,d),h=g=>m(g,u);return u.addEventListener("pointerleave",y),d.addEventListener("pointerleave",h),()=>{u.removeEventListener("pointerleave",y),d.removeEventListener("pointerleave",h)}}},[u,d,m,v]),s.useEffect(()=>{if(i){const y=h=>{const g=h.target,b={x:h.clientX,y:h.clientY},C=(u==null?void 0:u.contains(g))||(d==null?void 0:d.contains(g)),w=!Os(b,i);C?v():w&&(v(),l())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[u,d,i,l,v]),p.jsx(Zr,{...e,ref:a})}),[Ss,xs]=Ne(ae,{isInside:!1}),Ps=ps("TooltipContent"),Zr=s.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...c}=e,u=De(re,r),l=Ie(r),{onClose:d}=u;return s.useEffect(()=>(document.addEventListener(ze,d),()=>document.removeEventListener(ze,d)),[d]),s.useEffect(()=>{if(u.trigger){const f=v=>{const m=v.target;m!=null&&m.contains(u.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[u.trigger,d]),p.jsx(Re,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:p.jsxs(cr,{"data-state":u.stateAttribute,...l,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(Ps,{children:n}),p.jsx(Ss,{scope:r,isInside:!0,children:p.jsx(ms,{id:u.contentId,role:"tooltip",children:o||n})})]})})});Kr.displayName=re;var qr="TooltipArrow",Rs=s.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Ie(r);return xs(qr,r).isInside?null:p.jsx(lr,{...o,...n,ref:t})});Rs.displayName=qr;function Ts(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function As(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function _s(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function Os(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const c=t[a],u=t[i],l=c.x,d=c.y,f=u.x,v=u.y;d>n!=v>n&&r<(f-l)*(n-d)/(v-d)+l&&(o=!o)}return o}function Ns(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Is(t)}function Is(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Ci=Yr,wi=Gr,Ei=Xr,Si=Kr;function Mt(e){const t=Ds(e),r=s.forwardRef((n,o)=>{const{children:a,...i}=n,c=s.Children.toArray(a),u=c.find(Ls);if(u){const l=u.props.children,d=c.map(f=>f===u?s.Children.count(l)>1?s.Children.only(null):s.isValidElement(l)?l.props.children:null:f);return p.jsx(t,{...i,ref:o,children:s.isValidElement(l)?s.cloneElement(l,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function Ds(e){const t=s.forwardRef((r,n)=>{const{children:o,...a}=r;if(s.isValidElement(o)){const i=Fs(o),c=js(a,o.props);return o.type!==s.Fragment&&(c.ref=n?ne(n,i):i),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ms=Symbol("radix.slottable");function Ls(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ms}function js(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...c)=>{const u=a(...c);return o(...c),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Fs(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function ks(e){const t=e+"CollectionProvider",[r,n]=H(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:g,children:b}=h,C=z.useRef(null),w=z.useRef(new Map).current;return p.jsx(o,{scope:g,itemMap:w,collectionRef:C,children:b})};i.displayName=t;const c=e+"CollectionSlot",u=Mt(c),l=z.forwardRef((h,g)=>{const{scope:b,children:C}=h,w=a(c,b),E=N(g,w.collectionRef);return p.jsx(u,{ref:E,children:C})});l.displayName=c;const d=e+"CollectionItemSlot",f="data-radix-collection-item",v=Mt(d),m=z.forwardRef((h,g)=>{const{scope:b,children:C,...w}=h,E=z.useRef(null),x=N(g,E),R=a(d,b);return z.useEffect(()=>(R.itemMap.set(E,{ref:E,...w}),()=>void R.itemMap.delete(E))),p.jsx(v,{[f]:"",ref:x,children:C})});m.displayName=d;function y(h){const g=a(e+"CollectionConsumer",h);return z.useCallback(()=>{const C=g.collectionRef.current;if(!C)return[];const w=Array.from(C.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((R,S)=>w.indexOf(R.ref.current)-w.indexOf(S.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:l,ItemSlot:m},y,n]}var He="rovingFocusGroup.onEntryFocus",$s={bubbles:!1,cancelable:!0},ce="RovingFocusGroup",[Ge,Qr,Ws]=ks(ce),[Bs,Jr]=H(ce,[Ws]),[Hs,Vs]=Bs(ce),en=s.forwardRef((e,t)=>p.jsx(Ge.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Ge.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Us,{...e,ref:t})})}));en.displayName=ce;var Us=s.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:d=!1,...f}=e,v=s.useRef(null),m=N(t,v),y=Ke(a),[h,g]=se({prop:i,defaultProp:c??null,onChange:u,caller:ce}),[b,C]=s.useState(!1),w=D(l),E=Qr(r),x=s.useRef(!1),[R,S]=s.useState(0);return s.useEffect(()=>{const T=v.current;if(T)return T.addEventListener(He,w),()=>T.removeEventListener(He,w)},[w]),p.jsx(Hs,{scope:r,orientation:n,dir:y,loop:o,currentTabStopId:h,onItemFocus:s.useCallback(T=>g(T),[g]),onItemShiftTab:s.useCallback(()=>C(!0),[]),onFocusableItemAdd:s.useCallback(()=>S(T=>T+1),[]),onFocusableItemRemove:s.useCallback(()=>S(T=>T-1),[]),children:p.jsx(_.div,{tabIndex:b||R===0?-1:0,"data-orientation":n,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:P(e.onMouseDown,()=>{x.current=!0}),onFocus:P(e.onFocus,T=>{const A=!x.current;if(T.target===T.currentTarget&&A&&!b){const O=new CustomEvent(He,$s);if(T.currentTarget.dispatchEvent(O),!O.defaultPrevented){const I=E().filter($=>$.focusable),U=I.find($=>$.active),X=I.find($=>$.id===h),le=[U,X,...I].filter(Boolean).map($=>$.ref.current);nn(le,d)}}x.current=!1}),onBlur:P(e.onBlur,()=>C(!1))})})}),tn="RovingFocusGroupItem",rn=s.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:i,...c}=e,u=Y(),l=a||u,d=Vs(tn,r),f=d.currentTabStopId===l,v=Qr(r),{onFocusableItemAdd:m,onFocusableItemRemove:y,currentTabStopId:h}=d;return s.useEffect(()=>{if(n)return m(),()=>y()},[n,m,y]),p.jsx(Ge.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:p.jsx(_.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...c,ref:t,onMouseDown:P(e.onMouseDown,g=>{n?d.onItemFocus(l):g.preventDefault()}),onFocus:P(e.onFocus,()=>d.onItemFocus(l)),onKeyDown:P(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){d.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=Gs(g,d.orientation,d.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let w=v().filter(E=>E.focusable).map(E=>E.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const E=w.indexOf(g.currentTarget);w=d.loop?Xs(w,E+1):w.slice(E+1)}setTimeout(()=>nn(w))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:h!=null}):i})})});rn.displayName=tn;var zs={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ys(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Gs(e,t,r){const n=Ys(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return zs[n]}function nn(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Xs(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Ks=en,Zs=rn,Me="Tabs",[qs]=H(Me,[Jr]),on=Jr(),[Qs,ut]=qs(Me),an=s.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:c,activationMode:u="automatic",...l}=e,d=Ke(c),[f,v]=se({prop:n,onChange:o,defaultProp:a??"",caller:Me});return p.jsx(Qs,{scope:r,baseId:Y(),value:f,onValueChange:v,orientation:i,dir:d,activationMode:u,children:p.jsx(_.div,{dir:d,"data-orientation":i,...l,ref:t})})});an.displayName=Me;var sn="TabsList",cn=s.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=ut(sn,r),i=on(r);return p.jsx(Ks,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:n,children:p.jsx(_.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});cn.displayName=sn;var ln="TabsTrigger",un=s.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,i=ut(ln,r),c=on(r),u=pn(i.baseId,n),l=vn(i.baseId,n),d=n===i.value;return p.jsx(Zs,{asChild:!0,...c,focusable:!o,active:d,children:p.jsx(_.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":l,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u,...a,ref:t,onMouseDown:P(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?i.onValueChange(n):f.preventDefault()}),onKeyDown:P(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&i.onValueChange(n)}),onFocus:P(e.onFocus,()=>{const f=i.activationMode!=="manual";!d&&!o&&f&&i.onValueChange(n)})})})});un.displayName=ln;var dn="TabsContent",fn=s.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...i}=e,c=ut(dn,r),u=pn(c.baseId,n),l=vn(c.baseId,n),d=n===c.value,f=s.useRef(d);return s.useEffect(()=>{const v=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(v)},[]),p.jsx(M,{present:o||d,children:({present:v})=>p.jsx(_.div,{"data-state":d?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!v,id:l,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:v&&a})})});fn.displayName=dn;function pn(e,t){return`${e}-trigger-${t}`}function vn(e,t){return`${e}-content-${t}`}var xi=an,Pi=cn,Ri=un,Ti=fn;export{ni as C,gi as D,Pi as L,vi as O,li as P,ti as R,ei as S,ci as T,ri as V,oa as _,io as a,vo as b,ui as c,ii as d,fi as e,pi as f,hi as g,bi as h,mi as i,Si as j,Ci as k,wi as l,Ei as m,xi as n,Ri as o,Ti as p,si as q,oi as r,ai as s,F as t,fr as u};
@@ -5,8 +5,8 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>BladeCode</title>
8
- <script type="module" crossorigin src="/assets/index-9t-WxRrl.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-Bu13aXyE.css">
8
+ <script type="module" crossorigin src="/assets/index-Cnz-_jPt.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-21gV5nOE.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blade-code",
3
- "version": "0.7.4",
3
+ "version": "0.7.6",
4
4
  "private": false,
5
5
  "description": "🗡️ Blade Code - 智能代码助手命令行工具",
6
6
  "type": "module",
@@ -1 +0,0 @@
1
- import{Ab as a}from"./chunk-98jpdmgc.js";import"./chunk-w1zb8zac.js";import"./chunk-kfg3vx5z.js";export{a as createChatServiceAsync};
@@ -1,6 +0,0 @@
1
- import{p as A,q as E,r as N,s as f}from"./chunk-by93yn92.js";import{t as D}from"./chunk-b1d49byc.js";import{v as L,w as _,x}from"./chunk-cw125vv3.js";import{y as B}from"./chunk-k4behavv.js";import{H as $,N as b}from"./chunk-6rszb7xd.js";import"./chunk-e21htmg4.js";import"./chunk-7mnefph6.js";import"./chunk-rtn0rb16.js";import"./chunk-5smacbk0.js";import"./chunk-rkhhzc4r.js";import"./chunk-4e2fzyf2.js";import{Va as Z}from"./chunk-3mhbped9.js";import"./chunk-cyxb6fxe.js";import"./chunk-jf48kahn.js";import{sb as Y,tb as T}from"./chunk-63dzf6hr.js";import"./chunk-98jpdmgc.js";import"./chunk-w1zb8zac.js";import"./chunk-kfg3vx5z.js";import h from"yargs";import{hideBin as R}from"yargs/helpers";var w=new Set(Object.values(Y));function X(k){if(k&&w.has(k))return k;return}function M(k){return k.command("* [message]","Print response and exit (useful for pipes)",(F)=>F.positional("message",{describe:"Message to process",type:"string"}).option("p",{alias:"print",describe:"Print response and exit (useful for pipes)",type:"boolean"}).option("output-format",{describe:'Output format: "text", "json", "stream-json"',type:"string",default:"text"}).option("include-partial-messages",{describe:"Include partial message chunks as they arrive",type:"boolean"}).option("input-format",{describe:'Input format: "text", "stream-json"',type:"string",default:"text"}).option("model",{describe:"Model for the current session",type:"string"}).option("append-system-prompt",{describe:"Append a system prompt to the default system prompt",type:"string"}).option("system-prompt",{describe:"Replace the default system prompt",type:"string"}).option("max-turns",{alias:["maxTurns"],describe:"Maximum conversation turns (-1: unlimited, N>0: limit to N turns)",type:"number"}),async(F)=>{if(!F.p)return;let q=await O(F);process.exit(q)})}async function O(k,F=process){let q;try{await A();let J=await E({message:k.message,_:k._,defaultMessage:"Hello"}),G=await N(J);if(G.mode==="output"){if(G.content)F.stdout.write(`${G.content}
2
- `);return G.exitCode??0}let Q=G.content,{sessionId:K,messages:U}=await f({sessionId:k.sessionId,continue:k.continue,resume:k.resume,forkSession:k.forkSession,fallbackSessionPrefix:"print"});q=await $.create({sessionId:K,workspaceRoot:T(),modelId:k.model,mcpConfig:k.mcpConfig,strictMcpConfig:k.strictMcpConfig,agents:k.agents?B(k.agents):void 0});let V=await b.createWithRuntime(q,{sessionId:K,systemPrompt:k.systemPrompt,appendSystemPrompt:k.appendSystemPrompt,maxTurns:k.maxTurns,modelId:k.model,permissionMode:X(k.permissionMode),toolWhitelist:k.allowedTools,toolBlacklist:k.disallowedTools,mcpConfig:k.mcpConfig,strictMcpConfig:k.strictMcpConfig}),H=(await Z(V.chatStream(Q,{messages:[...U],userId:"cli-user",sessionId:K,workspaceRoot:T(),permissionMode:X(k.permissionMode)}))).finalMessage||"";if(k.outputFormat==="json")F.stdout.write(`${JSON.stringify({response:H,input:Q,model:k.model,timestamp:new Date().toISOString()},null,2)}
3
- `);else if(k.outputFormat==="stream-json")F.stdout.write(`${JSON.stringify({type:"response",content:H})}
4
- `);else F.stdout.write(`${H}
5
- `);return 0}catch(J){return F.stderr.write(`Error: ${J instanceof Error?J.message:"未知错误"}
6
- `),1}finally{await q?.dispose()}}async function d(){if(process.argv.slice(2).findIndex((q)=>q==="--print"||q==="-p")===-1)return!1;try{let{print:q,"output-format":J,"include-partial-messages":G,"input-format":Q,"system-prompt":K,"append-system-prompt":U,"max-turns":V,...W}=D,H=h(R(process.argv)).scriptName("blade").strict(!1).options(W).middleware([_,L,x]);return M(H),await H.parse(),!0}catch(q){console.error(`Print mode error: ${q instanceof Error?q.message:"未知错误"}`),process.exit(1)}}export{O as runPrint,d as handlePrintMode};